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
3fc9cf31
Commit
3fc9cf31
authored
Jan 28, 2021
by
Melanie Lipp
Committed by
Ned Coltman
Feb 03, 2021
Browse files
[test][freeflow] Add possibility to vary the density to 2d channel test.
parent
6a74d8bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/freeflow/navierstokes/channel/2d/problem.hh
View file @
3fc9cf31
...
...
@@ -127,7 +127,7 @@ public:
:
ParentType
(
gridGeometry
)
{
inletVelocity_
=
getParam
<
Scalar
>
(
"Problem.InletVelocity"
);
kinemat
icViscosity_
=
getParam
<
Scalar
>
(
"Component.LiquidKinematicViscosity"
,
1.0
);
dynam
icViscosity_
=
getParam
<
Scalar
>
(
"Component.LiquidKinematicViscosity"
,
1.0
)
*
getParam
<
Scalar
>
(
"Component.LiquidDensity"
,
1.0
);
const
auto
tmp
=
getParam
<
std
::
string
>
(
"Problem.OutletCondition"
,
"Outflow"
);
if
(
tmp
==
"Outflow"
)
...
...
@@ -328,7 +328,7 @@ public:
const
Scalar
yMax
=
this
->
gridGeometry
().
bBoxMax
()[
1
];
Scalar
velocityQuadraticCoefficient
=
-
inletVelocity_
/
(
0.25
*
(
yMax
-
yMin
)
*
(
yMax
-
yMin
));
Scalar
pressureLinearCoefficient
=
2.0
*
velocityQuadraticCoefficient
*
kinemat
icViscosity_
;
Scalar
pressureLinearCoefficient
=
2.0
*
velocityQuadraticCoefficient
*
dynam
icViscosity_
;
Scalar
pressureConstant
=
-
pressureLinearCoefficient
*
this
->
gridGeometry
().
bBoxMax
()[
0
]
+
outletPressure_
;
PrimaryVariables
values
;
...
...
@@ -464,7 +464,7 @@ private:
static
constexpr
Scalar
eps_
=
1e-6
;
bool
printL2Error_
;
Scalar
inletVelocity_
;
Scalar
kinemat
icViscosity_
;
Scalar
dynam
icViscosity_
;
Scalar
outletPressure_
;
OutletCondition
outletCondition_
;
bool
useVelocityProfile_
;
...
...
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