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
c7760238
Commit
c7760238
authored
3 years ago
by
Ned Coltman
Browse files
Options
Downloads
Patches
Plain Diff
[rans][problem] Move size initialization to the constructor and update function description
parent
f7c9b6a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2726
Replace the IsOnWall function requirement with a boundary type
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/freeflow/rans/problem.hh
+16
-22
16 additions, 22 deletions
dumux/freeflow/rans/problem.hh
with
16 additions
and
22 deletions
dumux/freeflow/rans/problem.hh
+
16
−
22
View file @
c7760238
...
...
@@ -101,18 +101,13 @@ public:
*/
RANSProblemBase
(
std
::
shared_ptr
<
const
GridGeometry
>
gridGeometry
,
const
std
::
string
&
paramGroup
=
""
)
:
ParentType
(
gridGeometry
,
paramGroup
)
{
}
/*!
* \brief Update the static (solution independent) relations to the walls
*
* This function determines all element with a wall intersection,
* the wall distances and the relation to the neighboring elements.
*/
void
updateStaticWallProperties
()
{
std
::
cout
<<
"Update static wall properties. "
;
calledUpdateStaticWallProperties
=
true
;
if
(
!
(
hasParamInGroup
(
this
->
paramGroup
(),
"RANS.IsFlatWallBounded"
)))
{
std
::
cout
<<
"The parameter
\"
Rans.IsFlatWallBounded
\"
is not specified.
\n
"
<<
" -- Based on the grid and the isOnWallAtPos function specified by the user,"
<<
" this parameter is set to be "
<<
std
::
boolalpha
<<
isFlatWallBounded
()
<<
"
\n
"
;
}
// update size and initial values of the global vectors
wallDistance_
.
resize
(
this
->
gridGeometry
().
elementMapper
().
size
(),
std
::
numeric_limits
<
Scalar
>::
max
());
...
...
@@ -124,23 +119,22 @@ public:
flowDirectionAxis_
.
resize
(
this
->
gridGeometry
().
elementMapper
().
size
(),
fixedFlowDirectionAxis_
);
storedViscosity_
.
resize
(
this
->
gridGeometry
().
elementMapper
().
size
(),
0.0
);
storedDensity_
.
resize
(
this
->
gridGeometry
().
elementMapper
().
size
(),
0.0
);
if
(
!
(
hasParamInGroup
(
this
->
paramGroup
(),
"RANS.IsFlatWallBounded"
)))
{
std
::
cout
<<
"The parameter
\"
Rans.IsFlatWallBounded
\"
is not specified.
\n
"
<<
" -- Based on the grid and the isOnWallAtPos function specified by the user,"
<<
" this parameter is set to be "
<<
std
::
boolalpha
<<
isFlatWallBounded
()
<<
"
\n
"
;
}
}
/*!
* \brief Update the static (solution independent) relations to the walls and neighbors
*/
void
updateStaticWallProperties
()
{
std
::
cout
<<
"Update static wall properties. "
;
calledUpdateStaticWallProperties
=
true
;
findWallDistances_
();
findNeighborIndices_
();
}
/*!
* \brief Update the dynamic (solution dependent) relations to the walls
*
* The basic function calcuates the cell-centered velocities and
* the respective gradients.
* Further, the kinematic viscosity at the wall is stored.
* \brief Update the dynamic (solution dependent) turbulence parameters
*
* \param curSol The solution vector.
*/
...
...
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