Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
768b8703
Commit
768b8703
authored
Oct 19, 2020
by
Ned Coltman
Committed by
Timo Koch
Oct 23, 2020
Browse files
[rans][iofields] add writeFlatWallBoundedFields to the rans IO fields
parent
20525641
Changes
11
Hide whitespace changes
Inline
Side-by-side
dumux/common/parameters.hh
View file @
768b8703
...
...
@@ -333,7 +333,6 @@ private:
// parameters in the mpfa group
defaultParams
[
"MPFA.Q"
]
=
"0.0"
;
// merge the global default tree but do not overwrite if the parameter already exists
mergeTree_
(
params
,
defaultParams
,
false
);
}
...
...
dumux/freeflow/rans/iofields.hh
View file @
768b8703
...
...
@@ -40,7 +40,8 @@ struct RANSIOFields
{
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
;
...
...
@@ -54,7 +55,7 @@ struct RANSIOFields
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
.
wallDistance
();
},
"l_w"
);
if
(
is
FlatWallBounded
)
if
(
write
FlatWallBounded
Fields
)
{
out
.
addVolumeVariable
([](
const
auto
&
v
){
return
v
.
yPlus
();
},
"y^+"
);
out
.
addVolumeVariable
([](
const
auto
&
v
){
return
v
.
uPlus
();
},
"u^+"
);
...
...
test/freeflow/rans/CMakeLists.txt
View file @
768b8703
...
...
@@ -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
${
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"
)
-Problem.Name test_ff_rans_lauferpipe_komega_nochannel
-RANS.IsFlatWallBounded False
-RANS.WriteFlatWallBoundedFields False"
)
dumux_add_test
(
NAME test_ff_rans_lauferpipe_oneeq
SOURCES main.cc
...
...
test/freeflow/rans/params_nonisothermal.input
View file @
768b8703
...
...
@@ -23,6 +23,7 @@ EddyViscosityModel = "baldwinLomax"
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly]
NumericDifferenceMethod = 0
...
...
test/freeflow/rans/params_nonisothermal_wallfunction.input
View file @
768b8703
...
...
@@ -23,6 +23,7 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly]
NumericDifferenceMethod = 0
...
...
test/freeflow/rans/params_wallfunction.input
View file @
768b8703
...
...
@@ -23,6 +23,7 @@ YPlusThreshold = 10. # should be small (10-30) for coarse grids
[RANS]
WallNormalAxis = 1
WriteFlatWallBoundedFields = True
[Assembly]
NumericDifferenceMethod = 0
...
...
test/freeflow/rans/scripts/params_verbose.input
View file @
768b8703
...
...
@@ -21,6 +21,7 @@ SandGrainRoughness = 0.0 # [m] # not implemented for EddyViscosityModel = 3
EddyViscosityModel = "baldwinLomax"
UseStoredEddyViscosity = false
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[KEpsilon]
YPlusThreshold = 60. # should be large (30-60) for fine grids
...
...
test/freeflow/ransnc/params.input
View file @
768b8703
...
...
@@ -23,6 +23,7 @@ EddyViscosityModel = "prandtl"
TurbulentSchmidtNumber = 0.7
WallNormalAxis = 1
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly]
NumericDifferenceMethod = 0
...
...
test/freeflow/ransnc/params_nonisothermal.input
View file @
768b8703
...
...
@@ -21,6 +21,7 @@ TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[Assembly]
NumericDifferenceMethod = 0
...
...
test/freeflow/ransnc/params_nonisothermal_wallfunction.input
View file @
768b8703
...
...
@@ -19,6 +19,7 @@ TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids
...
...
test/freeflow/ransnc/params_wallfunction.input
View file @
768b8703
...
...
@@ -22,6 +22,7 @@ TurbulentSchmidtNumber = 0.7
TurbulentPrandtlNumber = 0.85
WallNormalAxis = 1
IsFlatWallBounded = True
WriteFlatWallBoundedFields = True
[KEpsilon]
YPlusThreshold = 10. # should be small (10-30) for coarse grids
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment