3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | List of all members
Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder > Class Template Reference

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

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

Description

template<class TypeTag, int upwindSchemeOrder>
class Dumux::StaggeredUpwindHelper< TypeTag, upwindSchemeOrder >

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

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

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: