Commit 768b8703 authored by Ned Coltman's avatar Ned Coltman Committed by Timo Koch
Browse files

[rans][iofields] add writeFlatWallBoundedFields to the rans IO fields

parent 20525641
...@@ -333,7 +333,6 @@ private: ...@@ -333,7 +333,6 @@ private:
// parameters in the mpfa group // parameters in the mpfa group
defaultParams["MPFA.Q"] = "0.0"; defaultParams["MPFA.Q"] = "0.0";
// merge the global default tree but do not overwrite if the parameter already exists // merge the global default tree but do not overwrite if the parameter already exists
mergeTree_(params, defaultParams, false); mergeTree_(params, defaultParams, false);
} }
......
...@@ -40,7 +40,8 @@ struct RANSIOFields ...@@ -40,7 +40,8 @@ struct RANSIOFields
{ {
NavierStokesIOFields::initOutputModule(out); NavierStokesIOFields::initOutputModule(out);
static const bool isFlatWallBounded = getParamFromGroup<bool>(out.paramGroup(), "RANS.IsFlatWallBounded"); static const bool isFlatWallBounded = getParamFromGroup<bool>(out.paramGroup(), "RANS.IsFlatWallBounded", false);
static const bool writeFlatWallBoundedFields = getParamFromGroup<bool>(out.paramGroup(), "RANS.WriteFlatWallBoundedFields", isFlatWallBounded);
static constexpr auto dim = decltype(std::declval<typename OutputModule::VolumeVariables>().ccVelocityVector())::dimension; static constexpr auto dim = decltype(std::declval<typename OutputModule::VolumeVariables>().ccVelocityVector())::dimension;
...@@ -54,7 +55,7 @@ struct RANSIOFields ...@@ -54,7 +55,7 @@ struct RANSIOFields
out.addVolumeVariable([](const auto& v){ return v.viscosity() / v.density(); }, "nu"); out.addVolumeVariable([](const auto& v){ return v.viscosity() / v.density(); }, "nu");
out.addVolumeVariable([](const auto& v){ return v.kinematicEddyViscosity(); }, "nu_t"); out.addVolumeVariable([](const auto& v){ return v.kinematicEddyViscosity(); }, "nu_t");
out.addVolumeVariable([](const auto& v){ return v.wallDistance(); }, "l_w"); out.addVolumeVariable([](const auto& v){ return v.wallDistance(); }, "l_w");
if (isFlatWallBounded) if (writeFlatWallBoundedFields)
{ {
out.addVolumeVariable([](const auto& v){ return v.yPlus(); }, "y^+"); out.addVolumeVariable([](const auto& v){ return v.yPlus(); }, "y^+");
out.addVolumeVariable([](const auto& v){ return v.uPlus(); }, "u^+"); out.addVolumeVariable([](const auto& v){ return v.uPlus(); }, "u^+");
......
...@@ -68,7 +68,9 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_komega_nochannel ...@@ -68,7 +68,9 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_komega_nochannel
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_komega_nochannel-reference.vtu --files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_komega_nochannel-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega_nochannel-00047.vtu ${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega_nochannel-00047.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega params.input --command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega params.input
-Problem.Name test_ff_rans_lauferpipe_komega_nochannel") -Problem.Name test_ff_rans_lauferpipe_komega_nochannel
-RANS.IsFlatWallBounded False
-RANS.WriteFlatWallBoundedFields False")
dumux_add_test(NAME test_ff_rans_lauferpipe_oneeq dumux_add_test(NAME test_ff_rans_lauferpipe_oneeq
SOURCES main.cc SOURCES main.cc
......
...@@ -23,6 +23,7 @@ EddyViscosityModel = "baldwinLomax" ...@@ -23,6 +23,7 @@ EddyViscosityModel = "baldwinLomax"
TurbulentPrandtlNumber = 0.85 TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1 WallNormalAxis = 1
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly] [Assembly]
NumericDifferenceMethod = 0 NumericDifferenceMethod = 0
......
...@@ -23,6 +23,7 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids ...@@ -23,6 +23,7 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids
TurbulentPrandtlNumber = 0.85 TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1 WallNormalAxis = 1
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly] [Assembly]
NumericDifferenceMethod = 0 NumericDifferenceMethod = 0
......
...@@ -23,6 +23,7 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids ...@@ -23,6 +23,7 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids
[RANS] [RANS]
WallNormalAxis = 1 WallNormalAxis = 1
WriteFlatWallBoundedFields = True
[Assembly] [Assembly]
NumericDifferenceMethod = 0 NumericDifferenceMethod = 0
......
...@@ -21,6 +21,7 @@ SandGrainRoughness = 0.0 # [m] # not implemented for EddyViscosityModel = 3 ...@@ -21,6 +21,7 @@ SandGrainRoughness = 0.0 # [m] # not implemented for EddyViscosityModel = 3
EddyViscosityModel = "baldwinLomax" EddyViscosityModel = "baldwinLomax"
UseStoredEddyViscosity = false UseStoredEddyViscosity = false
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[KEpsilon] [KEpsilon]
YPlusThreshold = 60. # should be large (30-60) for fine grids YPlusThreshold = 60. # should be large (30-60) for fine grids
......
...@@ -23,6 +23,7 @@ EddyViscosityModel = "prandtl" ...@@ -23,6 +23,7 @@ EddyViscosityModel = "prandtl"
TurbulentSchmidtNumber = 0.7 TurbulentSchmidtNumber = 0.7
WallNormalAxis = 1 WallNormalAxis = 1
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly] [Assembly]
NumericDifferenceMethod = 0 NumericDifferenceMethod = 0
......
...@@ -21,6 +21,7 @@ TurbulentSchmidtNumber = 0.7 ...@@ -21,6 +21,7 @@ TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85 TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1 WallNormalAxis = 1
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly] [Assembly]
NumericDifferenceMethod = 0 NumericDifferenceMethod = 0
......
...@@ -19,6 +19,7 @@ TurbulentSchmidtNumber = 0.7 ...@@ -19,6 +19,7 @@ TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85 TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1 WallNormalAxis = 1
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[KEpsilon] [KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids YPlusThreshold = 10. # should be small (10-30) for coarse grids
......
...@@ -22,6 +22,7 @@ TurbulentSchmidtNumber = 0.7 ...@@ -22,6 +22,7 @@ TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85 TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1 WallNormalAxis = 1
IsFlatWallBounded = True IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[KEpsilon] [KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids YPlusThreshold = 10. # should be small (10-30) for coarse grids
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment