Skip to content
GitLab
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
df504d31
Commit
df504d31
authored
Jul 23, 2018
by
Giuliano Lombardo
Browse files
TEMP Bind coupling context RANS
parent
d6659eef
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/freeflow/rans/problem.hh
View file @
df504d31
...
...
@@ -204,7 +204,7 @@ public:
}
}
/*!
/*!
* \brief Update the dynamic (solution dependent) relations to the walls
*
* The basic function calcuates the cell-centered velocities and
...
...
@@ -214,6 +214,23 @@ public:
* \param curSol The solution vector.
*/
void
updateDynamicWallProperties
(
const
SolutionVector
&
curSol
)
{
updateDynamicWallProperties
(
curSol
,
[](
auto
&
x
){});
}
/*!
* \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.
*
* \param curSol The solution vector.
*/
template
<
class
ContexHelper
>
void
updateDynamicWallProperties
(
const
SolutionVector
&
curSol
,
ContexHelper
contexHelper
)
{
using
std
::
abs
;
using
std
::
max
;
...
...
@@ -289,6 +306,10 @@ public:
auto
fvGeometry
=
localView
(
this
->
fvGridGeometry
());
fvGeometry
.
bindElement
(
element
);
// bind the coupling context in case the free flow model is coupled to another domain
contexHelper
(
element
);
for
(
auto
&&
scvf
:
scvfs
(
fvGeometry
))
{
// adapt calculations for Dirichlet condition
...
...
dumux/freeflow/rans/zeroeq/problem.hh
View file @
df504d31
...
...
@@ -100,9 +100,22 @@ public:
*
* \param curSol The solution vector.
*/
void
updateDynamicWallProperties
(
const
SolutionVector
&
curSol
)
{
ParentType
::
updateDynamicWallProperties
(
curSol
);
updateDynamicWallProperties
(
curSol
,
[](
auto
&
x
){});
}
/*!
* \brief Update the dynamic (solution dependent) relations to the walls
*
* This calculates the roughness related properties
*
* \param curSol The solution vector.
*/
template
<
class
ContexHelper
>
void
updateDynamicWallProperties
(
const
SolutionVector
&
curSol
,
ContexHelper
contextHelper
)
{
ParentType
::
updateDynamicWallProperties
(
curSol
,
contextHelper
);
// calculate additional roughness
bool
printedRangeWarning
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment