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
46f2a9e9
Commit
46f2a9e9
authored
Jul 02, 2018
by
Thomas Fetzer
Browse files
[freeflow] Rename computeNormalMomentumFlux to computeLateralMomentumFlux
parent
4f381c82
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/freeflow/navierstokes/staggered/fluxvariables.hh
View file @
46f2a9e9
...
...
@@ -160,7 +160,7 @@ public:
const
ElementFaceVariables
&
elemFaceVars
)
{
return
computeFrontalMomentumFlux
(
problem
,
element
,
scvf
,
fvGeometry
,
elemVolVars
,
elemFaceVars
)
+
compute
Norm
alMomentumFlux
(
problem
,
element
,
scvf
,
fvGeometry
,
elemVolVars
,
elemFaceVars
);
compute
Later
alMomentumFlux
(
problem
,
element
,
scvf
,
fvGeometry
,
elemVolVars
,
elemFaceVars
);
}
/*!
...
...
@@ -273,12 +273,12 @@ public:
* scvf
* \endverbatim
*/
FacePrimaryVariables
compute
Norm
alMomentumFlux
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
ElementFaceVariables
&
elemFaceVars
)
FacePrimaryVariables
compute
Later
alMomentumFlux
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
ElementFaceVariables
&
elemFaceVars
)
{
FacePrimaryVariables
normalFlux
(
0.0
);
auto
&
faceVars
=
elemFaceVars
[
scvf
];
...
...
@@ -329,9 +329,9 @@ public:
// If there is no symmetry or Neumann boundary condition for the given sub face, proceed to calculate the tangential momentum flux.
if
(
enableInertiaTerms
)
normalFlux
+=
computeAdvectivePartOf
Norm
alMomentumFlux_
(
problem
,
element
,
scvf
,
normalFace
,
elemVolVars
,
faceVars
,
localSubFaceIdx
);
normalFlux
+=
computeAdvectivePartOf
Later
alMomentumFlux_
(
problem
,
element
,
scvf
,
normalFace
,
elemVolVars
,
faceVars
,
localSubFaceIdx
);
normalFlux
+=
computeDiffusivePartOf
Norm
alMomentumFlux_
(
problem
,
element
,
scvf
,
normalFace
,
elemVolVars
,
faceVars
,
localSubFaceIdx
);
normalFlux
+=
computeDiffusivePartOf
Later
alMomentumFlux_
(
problem
,
element
,
scvf
,
normalFace
,
elemVolVars
,
faceVars
,
localSubFaceIdx
);
}
return
normalFlux
;
}
...
...
@@ -359,13 +359,13 @@ private:
* scvf
* \endverbatim
*/
FacePrimaryVariables
computeAdvectivePartOf
Norm
alMomentumFlux_
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
,
const
SubControlVolumeFace
&
normalFace
,
const
ElementVolumeVariables
&
elemVolVars
,
const
FaceVariables
&
faceVars
,
const
int
localSubFaceIdx
)
FacePrimaryVariables
computeAdvectivePartOf
Later
alMomentumFlux_
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
,
const
SubControlVolumeFace
&
normalFace
,
const
ElementVolumeVariables
&
elemVolVars
,
const
FaceVariables
&
faceVars
,
const
int
localSubFaceIdx
)
{
// Get the transporting velocity, located at the scvf perpendicular to the current scvf where the dof
// of interest is located.
...
...
@@ -437,13 +437,13 @@ private:
* -- elements
* \endverbatim
*/
FacePrimaryVariables
computeDiffusivePartOf
Norm
alMomentumFlux_
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
,
const
SubControlVolumeFace
&
normalFace
,
const
ElementVolumeVariables
&
elemVolVars
,
const
FaceVariables
&
faceVars
,
const
int
localSubFaceIdx
)
FacePrimaryVariables
computeDiffusivePartOf
Later
alMomentumFlux_
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
,
const
SubControlVolumeFace
&
normalFace
,
const
ElementVolumeVariables
&
elemVolVars
,
const
FaceVariables
&
faceVars
,
const
int
localSubFaceIdx
)
{
FacePrimaryVariables
normalDiffusiveFlux
(
0.0
);
...
...
dumux/freeflow/navierstokes/staggered/localresidual.hh
View file @
46f2a9e9
...
...
@@ -289,7 +289,7 @@ protected:
// treat the remaining (normal) faces of the staggered control volume
FluxVariables
fluxVars
;
residual
+=
fluxVars
.
compute
Norm
alMomentumFlux
(
problem
,
element
,
scvf
,
fvGeometry
,
elemVolVars
,
elemFaceVars
);
residual
+=
fluxVars
.
compute
Later
alMomentumFlux
(
problem
,
element
,
scvf
,
fvGeometry
,
elemVolVars
,
elemFaceVars
);
}
else
if
(
bcTypes
.
isSymmetry
())
{
...
...
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