version 3.9-dev
Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder > Class Template Reference

The upwinding variables class for the Navier-Stokes model using the staggered grid discretization.

#include <dumux/freeflow/navierstokes/staggered/staggeredupwindhelper.hh>

Public Member Functions

 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 > &currentScvfBoundaryTypes, const std::optional< BoundaryTypes > &lateralFaceBoundaryTypes) const
 Returns the momentum in the lateral direction. More...
 

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ computeUpwindFrontalMomentum()

template<class TypeTag , int upwindSchemeOrder>
FacePrimaryVariables Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder >::computeUpwindFrontalMomentum ( const bool  selfIsUpstream) const
inline
   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
   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: