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
f9933f1b
Commit
f9933f1b
authored
Sep 15, 2021
by
Timo Koch
Browse files
[ff][momentum] Rename getInsideAndOutsideDensity to insideAndOutsideDensity
parent
e6aef39b
Changes
3
Hide whitespace changes
Inline
Side-by-side
dumux/freeflow/navierstokes/momentum/fluxhelper.hh
View file @
f9933f1b
...
...
@@ -151,7 +151,7 @@ struct NavierStokesMomentumBoundaryFluxHelper
return
elemVolVars
[
scvf
.
outsideScvIdx
()].
velocity
();
}();
const
auto
rho
=
problem
.
getI
nsideAndOutsideDensity
(
element
,
fvGeometry
,
scvf
);
const
auto
rho
=
problem
.
i
nsideAndOutsideDensity
(
element
,
fvGeometry
,
scvf
);
const
bool
selfIsUpstream
=
scvf
.
directionSign
()
==
sign
(
transportingVelocity
);
const
auto
insideMomentum
=
innerVelocity
*
rho
.
first
;
...
...
@@ -277,7 +277,7 @@ struct NavierStokesMomentumBoundaryFluxHelper
// Do not use upwinding here but directly take the slip velocity located on the boundary. Upwinding with a weight of 0.5
// would actually prevent second order grid convergence.
const
auto
rho
=
problem
.
getI
nsideAndOutsideDensity
(
fvGeometry
.
element
(),
fvGeometry
,
scvf
);
const
auto
rho
=
problem
.
i
nsideAndOutsideDensity
(
fvGeometry
.
element
(),
fvGeometry
,
scvf
);
const
auto
transportedMomentum
=
slipVelocity
*
rho
.
second
;
flux
[
scv
.
dofAxis
()]
+=
transportingVelocity
*
transportedMomentum
*
scvf
.
directionSign
();
...
...
@@ -348,7 +348,7 @@ struct NavierStokesMomentumBoundaryFluxHelper
return
elemVolVars
[
scvf
.
outsideScvIdx
()].
velocity
();
}();
const
auto
rho
=
problem
.
getI
nsideAndOutsideDensity
(
fvGeometry
.
element
(),
fvGeometry
,
scvf
);
const
auto
rho
=
problem
.
i
nsideAndOutsideDensity
(
fvGeometry
.
element
(),
fvGeometry
,
scvf
);
const
bool
selfIsUpstream
=
scvf
.
directionSign
()
==
sign
(
transportingVelocity
);
const
auto
insideMomentum
=
innerVelocity
*
rho
.
first
;
...
...
dumux/freeflow/navierstokes/momentum/fluxvariables.hh
View file @
f9933f1b
...
...
@@ -429,7 +429,7 @@ public:
const
auto
innerVelocity
=
elemVolVars
[
scvf
.
insideScvIdx
()].
velocity
();
const
auto
outerVelocity
=
elemVolVars
[
scvf
.
outsideScvIdx
()].
velocity
();
const
auto
rho
=
this
->
problem
().
getI
nsideAndOutsideDensity
(
this
->
element
(),
fvGeometry
,
scvf
);
const
auto
rho
=
this
->
problem
().
i
nsideAndOutsideDensity
(
this
->
element
(),
fvGeometry
,
scvf
);
const
auto
insideMomentum
=
innerVelocity
*
rho
.
first
;
const
auto
outsideMomentum
=
outerVelocity
*
rho
.
second
;
...
...
dumux/freeflow/navierstokes/problem.hh
View file @
f9933f1b
...
...
@@ -334,10 +334,10 @@ public:
return
asImp_
().
densityAtPos
(
scv
.
dofPosition
());
}
auto
getI
nsideAndOutsideDensity
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
SubControlVolumeFace
&
scvf
,
const
bool
isPreviousTimeStep
=
false
)
const
auto
i
nsideAndOutsideDensity
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
SubControlVolumeFace
&
scvf
,
const
bool
isPreviousTimeStep
=
false
)
const
{
if
constexpr
(
isCoupled_
)
return
couplingManager_
->
insideAndOutsideDensity
(
element
,
fvGeometry
,
scvf
,
isPreviousTimeStep
);
...
...
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