The upwinding variables class for the Navier-Stokes model using the staggered grid discretization.
More...
#include <dumux/freeflow/navierstokes/staggered/staggeredupwindhelper.hh>
template<class TypeTag, int upwindSchemeOrder>
class Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder >
The upwinding variables class for the Navier-Stokes model using the staggered grid discretization.
|
| StaggeredUpwindHelper (const Element &element, const FVElementGeometry &fvGeometry, const SubControlVolumeFace &scvf, const ElementFaceVariables &elemFaceVars, const ElementVolumeVariables &elemVolVars, const UpwindScheme &upwindScheme) |
|
FacePrimaryVariables | computeUpwindFrontalMomentum (const bool selfIsUpstream) const |
| Returns the momentum in the frontal direction. More...
|
|
FacePrimaryVariables | computeUpwindLateralMomentum (const bool selfIsUpstream, const SubControlVolumeFace &lateralFace, const int localSubFaceIdx, const std::optional< BoundaryTypes > ¤tScvfBoundaryTypes, const std::optional< BoundaryTypes > &lateralFaceBoundaryTypes) const |
| Returns the momentum in the lateral direction. More...
|
|
◆ StaggeredUpwindHelper()
template<class TypeTag , int upwindSchemeOrder>
Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder >::StaggeredUpwindHelper |
( |
const Element & |
element, |
|
|
const FVElementGeometry & |
fvGeometry, |
|
|
const SubControlVolumeFace & |
scvf, |
|
|
const ElementFaceVariables & |
elemFaceVars, |
|
|
const ElementVolumeVariables & |
elemVolVars, |
|
|
const UpwindScheme & |
upwindScheme |
|
) |
| |
|
inline |
◆ computeUpwindFrontalMomentum()
template<class TypeTag , int upwindSchemeOrder>
FacePrimaryVariables Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder >::computeUpwindFrontalMomentum |
( |
const bool |
selfIsUpstream | ) |
const |
|
inline |
Returns the momentum in the frontal direction.
Checks if the model has higher order methods enabled and if the scvf in
question is far enough from the boundary such that higher order methods can be employed.
Then the corresponding set of momenta are collected and the prescribed
upwinding method is used to calculate the momentum.
◆ computeUpwindLateralMomentum()
template<class TypeTag , int upwindSchemeOrder>
FacePrimaryVariables Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder >::computeUpwindLateralMomentum |
( |
const bool |
selfIsUpstream, |
|
|
const SubControlVolumeFace & |
lateralFace, |
|
|
const int |
localSubFaceIdx, |
|
|
const std::optional< BoundaryTypes > & |
currentScvfBoundaryTypes, |
|
|
const std::optional< BoundaryTypes > & |
lateralFaceBoundaryTypes |
|
) |
| const |
|
inline |
Returns the momentum in the lateral direction.
Evaluates which face is upstream.
Checks if the model has higher order methods enabled and if the scvf in
question is far enough from the boundary such that higher order methods can be employed.
Then the corresponding set of momenta are collected and the prescribed
upwinding method is used to calculate the momentum.
The documentation for this class was generated from the following file: