Commit 19ad1052 authored by Ned Coltman's avatar Ned Coltman Committed by Melanie Lipp

[test][rans] add a test with HasChannelGeometry set as false (komega)

parent e4ce1e40
......@@ -333,6 +333,9 @@ private:
// parameters in the mpfa group
defaultParams["MPFA.Q"] = "0.0";
// parameters in the RANS group
defaultParams["RANS.HasChannelGeometry"] = "false";
// merge the global default tree but do not overwrite if the parameter already exists
mergeTree_(params, defaultParams, false);
}
......
......@@ -491,6 +491,12 @@ public:
"The problem does not provide an isOnWall() method.");
}
bool hasChannelGeometry() const
{
static const bool hasChannelGeometry = getParamFromGroup<bool>(this->paramGroup(), "RANS.HasChannelGeometry");
return hasChannelGeometry;
}
/*!
* \brief Returns the sand-grain roughness \f$\mathrm{[m]}\f$ at a given position
*
......
......@@ -14,7 +14,8 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_kepsilon_twolayers
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_kepsilon_twolayers-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_kepsilon_twolayers-00070.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_kepsilon params.input
-Problem.Name test_ff_rans_lauferpipe_kepsilon_twolayers")
-Problem.Name test_ff_rans_lauferpipe_kepsilon_twolayers
-RANS.HasChannelGeometry True")
dumux_add_test(NAME test_ff_rans_lauferpipe_kepsilon_wallfunction
TARGET test_ff_rans_lauferpipe_kepsilon
......@@ -26,7 +27,8 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_kepsilon_wallfunction
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_kepsilon_wallfunction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_kepsilon_wallfunction-00034.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_kepsilon params_wallfunction.input
-Problem.Name test_ff_rans_lauferpipe_kepsilon_wallfunction")
-Problem.Name test_ff_rans_lauferpipe_kepsilon_wallfunction
-RANS.HasChannelGeometry True")
dumux_add_test(NAME test_ff_rans_lauferpipe_lowrekepsilon
SOURCES main.cc
......@@ -38,11 +40,15 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_lowrekepsilon
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_lowrekepsilon-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_lowrekepsilon-00053.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_lowrekepsilon params.input
-Problem.Name test_ff_rans_lauferpipe_lowrekepsilon")
-Problem.Name test_ff_rans_lauferpipe_lowrekepsilon
-RANS.HasChannelGeometry True")
dumux_add_test(NAME test_ff_rans_lauferpipe_komega
SOURCES main.cc
COMPILE_DEFINITIONS TYPETAG=PipeLauferKOmega
add_executable(test_ff_rans_lauferpipe_komega EXCLUDE_FROM_ALL main.cc)
target_compile_definitions(test_ff_rans_lauferpipe_komega PUBLIC "TYPETAG=PipeLauferKOmega")
dumux_add_test(NAME test_ff_rans_lauferpipe_komega_channel
TARGET test_ff_rans_lauferpipe_komega
LABELS freeflow rans
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
......@@ -50,7 +56,19 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_komega
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_komega-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega-00047.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega params.input
-Problem.Name test_ff_rans_lauferpipe_komega")
-Problem.Name test_ff_rans_lauferpipe_komega
-RANS.HasChannelGeometry True")
dumux_add_test(NAME test_ff_rans_lauferpipe_komega_nochannel
TARGET test_ff_rans_lauferpipe_komega
LABELS freeflow rans
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--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
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_komega params.input
-Problem.Name test_ff_rans_lauferpipe_komega_nochannel")
dumux_add_test(NAME test_ff_rans_lauferpipe_oneeq
SOURCES main.cc
......@@ -62,7 +80,8 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_oneeq
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_oneeq-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_oneeq-00044.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_oneeq params.input
-Problem.Name test_ff_rans_lauferpipe_oneeq")
-Problem.Name test_ff_rans_lauferpipe_oneeq
-RANS.HasChannelGeometry True")
dumux_add_test(NAME test_ff_rans_lauferpipe_zeroeq
SOURCES main.cc
......@@ -74,7 +93,8 @@ dumux_add_test(NAME test_ff_rans_lauferpipe_zeroeq
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_rans_lauferpipe_zeroeq-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_zeroeq-00035.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_rans_lauferpipe_zeroeq params.input
-Problem.Name test_ff_rans_lauferpipe_zeroeq")
-Problem.Name test_ff_rans_lauferpipe_zeroeq
-RANS.HasChannelGeometry True")
#///////////////////////////////
#/// The nonisothermal tests ///
......
......@@ -17,6 +17,7 @@ EnableGravity = false
[RANS]
EddyViscosityModel = "baldwinLomax"
WallNormalAxis = 1
[KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids
......
......@@ -21,7 +21,8 @@ EnableGravity = false
[RANS]
EddyViscosityModel = "baldwinLomax"
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
HasChannelGeometry = True
[Assembly]
NumericDifferenceMethod = 0
......
......@@ -21,6 +21,8 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids
[RANS]
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
HasChannelGeometry = True
[Assembly]
NumericDifferenceMethod = 0
......
......@@ -21,6 +21,9 @@ EnableGravity = false
[KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids
[RANS]
WallNormalAxis = 1
[Assembly]
NumericDifferenceMethod = 0
NumericDifference.BaseEpsilon = 1e-8
......
......@@ -20,6 +20,7 @@ SandGrainRoughness = 0.0 # [m] # not implemented for EddyViscosityModel = 3
[RANS]
EddyViscosityModel = "baldwinLomax"
UseStoredEddyViscosity = false
HasChannelGeometry = True
[KEpsilon]
YPlusThreshold = 60. # should be large (30-60) for fine grids
......
......@@ -21,6 +21,8 @@ InletMoleFraction = 1e-3
[RANS]
EddyViscosityModel = "prandtl"
TurbulentSchmidtNumber = 0.7
WallNormalAxis = 1
HasChannelGeometry = True
[Assembly]
NumericDifferenceMethod = 0
......
......@@ -19,6 +19,8 @@ EnableGravity = false
EddyViscosityModel = "prandtl"
TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
HasChannelGeometry = True
[Assembly]
NumericDifferenceMethod = 0
......
......@@ -17,6 +17,8 @@ EnableGravity = false
[RANS]
TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
HasChannelGeometry = True
[KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids
......
......@@ -20,6 +20,8 @@ InletMoleFraction = 1e-3
[RANS]
TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
HasChannelGeometry = True
[KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids
......
Markdown is supported
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