Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
240d144b
Commit
240d144b
authored
9 years ago
by
Thomas Fetzer
Browse files
Options
Downloads
Patches
Plain Diff
Add asking for boundary layer models parameters.
parent
f1f5e0f3
Branches
1094-search-and-remove-deprecated-stuff
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!31
Feature/colebrookwhiteboundarylayer
,
!30
Feature/colebrookwhiteboundarylayer
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/freeflow/boundarylayermodel.hh
+5
-0
5 additions, 0 deletions
dumux/freeflow/boundarylayermodel.hh
dumux/multidomain/2cnistokes2p2cni/2cnistokes2p2cnilocaloperator.hh
+7
-0
7 additions, 0 deletions
...idomain/2cnistokes2p2cni/2cnistokes2p2cnilocaloperator.hh
with
12 additions
and
0 deletions
dumux/freeflow/boundarylayermodel.hh
+
5
−
0
View file @
240d144b
...
@@ -137,6 +137,11 @@ public:
...
@@ -137,6 +137,11 @@ public:
// application is bounded to specific roughness length
// application is bounded to specific roughness length
assert
(
1e-6
<
roughnessLength_
/
distance_
&&
roughnessLength_
/
distance_
<
1e-2
);
assert
(
1e-6
<
roughnessLength_
/
distance_
&&
roughnessLength_
/
distance_
<
1e-2
);
Scalar
cf
=
std
::
pow
(
1.89
-
1.62
*
std
::
log10
(
roughnessLength_
/
distance_
),
-
2.5
);
Scalar
cf
=
std
::
pow
(
1.89
-
1.62
*
std
::
log10
(
roughnessLength_
/
distance_
),
-
2.5
);
// application is bounded to rough cases, indicated by the line in the chart in Truckenbrodt
// NOTE: disabling the assertion assumes that the cf of the hydrodynamically
// rough region is a good approximation of the cf in the hydrodynamically
// smooth case
assert
(
130.0e-3
*
std
::
pow
(
reynoldsX
,
-
0.1872
)
<
cf
);
return
yPlus_
*
distance_
/
(
reynoldsX
*
std
::
sqrt
(
cf
/
2.0
));
return
yPlus_
*
distance_
/
(
reynoldsX
*
std
::
sqrt
(
cf
/
2.0
));
}
}
// turbulent, rough: viscous sublayer thickness via friction coefficient
// turbulent, rough: viscous sublayer thickness via friction coefficient
...
...
This diff is collapsed.
Click to expand it.
dumux/multidomain/2cnistokes2p2cni/2cnistokes2p2cnilocaloperator.hh
+
7
−
0
View file @
240d144b
...
@@ -247,6 +247,13 @@ public:
...
@@ -247,6 +247,13 @@ public:
const
Scalar
distance
=
globalPos1
[
0
]
+
GET_RUNTIME_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
BoundaryLayer
,
Offset
);
const
Scalar
distance
=
globalPos1
[
0
]
+
GET_RUNTIME_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
BoundaryLayer
,
Offset
);
const
Scalar
kinematicViscosity
=
cParams
.
elemVolVarsCur1
[
vertInElem2
].
kinematicViscosity
();
const
Scalar
kinematicViscosity
=
cParams
.
elemVolVarsCur1
[
vertInElem2
].
kinematicViscosity
();
BoundaryLayerModel
<
TypeTag
>
boundaryLayerModel
(
velocity
,
distance
,
kinematicViscosity
,
blModel
);
BoundaryLayerModel
<
TypeTag
>
boundaryLayerModel
(
velocity
,
distance
,
kinematicViscosity
,
blModel
);
if
(
blModel
==
1
)
boundaryLayerModel
.
setConstThickness
(
GET_RUNTIME_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
BoundaryLayer
,
ConstThickness
));
if
(
blModel
>=
4
)
boundaryLayerModel
.
setYPlus
(
GET_RUNTIME_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
BoundaryLayer
,
YPlus
));
if
(
blModel
>=
5
)
boundaryLayerModel
.
setRoughnessLength
(
GET_RUNTIME_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
BoundaryLayer
,
RoughnessLength
));
normalMoleFracGrad
/=
boundaryLayerModel
.
massBoundaryLayerThickness
();
normalMoleFracGrad
/=
boundaryLayerModel
.
massBoundaryLayerThickness
();
Scalar
diffusiveFlux
=
Scalar
diffusiveFlux
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment