Plugins
ug::NavierStokes::NavierStokesRegularUpwind< dim > Class Template Reference

#include <upwind.h>

+ Inheritance diagram for ug::NavierStokes::NavierStokesRegularUpwind< dim >:

Public Types

typedef INavierStokesUpwind< dimbase_type
 
- Public Types inherited from ug::NavierStokes::INavierStokesUpwind< dim >
typedef INavierStokesUpwind< dimthis_type
 Abbreviation for own type. More...
 
- Public Types inherited from ug::NavierStokes::NavierStokesUpwindRegister< FV1Geometry, dim, NavierStokesRegularUpwind< dim > >
typedef INavierStokesUpwind< dimbase_type
 Base class. More...
 

Public Member Functions

 NavierStokesRegularUpwind ()
 constructor More...
 
- Public Member Functions inherited from ug::NavierStokes::INavierStokesUpwind< dim >
number downwind_conv_length (size_t scvf) const
 Convection Length. More...
 
number downwind_shape_ip (size_t scvf, size_t scvf2) const
 upwind shapes for ip vel More...
 
number downwind_shape_sh (size_t scvf, size_t sh) const
 upwind shape for corner vel More...
 
 INavierStokesUpwind ()
 constructor More...
 
bool non_zero_shape_ip () const
 returns if upwind shape w.r.t. ip vel is non-zero More...
 
size_t num_scvf () const
 returns number of sub control volume faces More...
 
size_t num_sh () const
 returns number of shapes More...
 
template<typename TFVGeom , typename TAssFunc >
void register_update_func (TAssFunc func)
 register a update function for a Geometry More...
 
template<typename TFVGeom , typename TAssFunc >
void register_update_ip_vel_func (TAssFunc func)
 register a update function for a Geometry More...
 
template<typename TFVGeom >
void set_geometry_type ()
 set the Geometry type to use for next updates More...
 
void update (const FVGeometryBase *geo, const MathVector< dim > vStdVel[])
 compute values for new geometry and corner velocities More...
 
void update_downwind (const FVGeometryBase *geo, const MathVector< dim > vStdVel[])
 compute values for new geometry and corner velocities More...
 
void update_upwind (const FVGeometryBase *geo, const MathVector< dim > vStdVel[])
 compute values for new geometry and corner velocities More...
 
number upwind_conv_length (size_t scvf) const
 Convection Length. More...
 
number upwind_shape_ip (size_t scvf, size_t scvf2) const
 upwind shapes for ip vel More...
 
number upwind_shape_sh (size_t scvf, size_t sh) const
 upwind shape for corner vel More...
 
MathVector< dimupwind_vel (const size_t scvf, const LocalVector &CornerVel, const MathVector< dim > vStdVel[]) const
 returns the upwind velocity More...
 
- Public Member Functions inherited from ug::NavierStokes::NavierStokesUpwindRegister< FV1Geometry, dim, NavierStokesRegularUpwind< dim > >
 NavierStokesUpwindRegister ()
 constructor More...
 

Static Public Member Functions

template<typename TElem >
static void compute (const FV1Geometry< TElem, dim > *geo, const MathVector< dim > vIPVel[maxNumSCVF], number vUpShapeSh[maxNumSCVF][maxNumSH], number vUpShapeIp[maxNumSCVF][maxNumSCVF], number vConvLength[maxNumSCVF])
 update of values for FV1Geometry More...
 

Static Public Attributes

static const size_t maxNumSCVF = base_type::maxNumSCVF
 
static const size_t maxNumSH = base_type::maxNumSH
 
- Static Public Attributes inherited from ug::NavierStokes::INavierStokesUpwind< dim >
static const size_t maxNumSCVF = traits::maxNumSCVF + 10
 max number of SubControlVolumeFaces More...
 
static const size_t maxNumSH = traits::maxNSH + 10
 max number of shape functions More...
 

Additional Inherited Members

- Protected Types inherited from ug::NavierStokes::INavierStokesUpwind< dim >
typedef void(* ComputeFunc) (const FVGeometryBase *obj, const MathVector< dim > vIPVel[maxNumSCVF], number vUpShapeSh[maxNumSCVF][maxNumSH], number vUpShapeIp[maxNumSCVF][maxNumSCVF], number vConvLength[maxNumSCVF])
 type of update function More...
 
typedef fv1_dim_traits< dim, dimtraits
 used traits More...
 
- Protected Member Functions inherited from ug::NavierStokes::INavierStokesUpwind< dim >
void compute (const FVGeometryBase *geo, const MathVector< dim > vIPVel[maxNumSCVF], number vUpShapeSh[maxNumSCVF][maxNumSH], number vUpShapeIp[maxNumSCVF][maxNumSCVF], number vConvLength[maxNumSCVF])
 compute values for new geometry and corner velocities More...
 
numberdown_upwind_conv_length (size_t scvf)
 non-const access to Convection Length More...
 
numberdownwind_shape_ip (size_t scvf, size_t scvf2)
 non-const access to upwind shapes for ip vel More...
 
numberdownwind_shape_sh (size_t scvf, size_t sh)
 non-const access to upwind shapes for corner vel More...
 
void set_shape_ip_flag (bool flag)
 sets the shape ip flag More...
 
numberupwind_conv_length (size_t scvf)
 non-const access to Convection Length More...
 
numberupwind_shape_ip (size_t scvf, size_t scvf2)
 non-const access to upwind shapes for ip vel More...
 
numberupwind_shape_sh (size_t scvf, size_t sh)
 non-const access to upwind shapes for corner vel More...
 
- Protected Member Functions inherited from ug::NavierStokes::NavierStokesUpwindRegister< FV1Geometry, dim, NavierStokesRegularUpwind< dim > >
NavierStokesRegularUpwind< dim > & getImpl ()
 access to implementation More...
 
- Protected Attributes inherited from ug::NavierStokes::INavierStokesUpwind< dim >
bool m_bNonZeroShapeIp
 flag if ip shapes are non-zero More...
 
int m_id
 id of current geometry type More...
 
size_t m_numScvf
 number of current scvf More...
 
size_t m_numSh
 number of current shape functions (usually in corners) More...
 
std::vector< ComputeFuncm_vComputeFunc
 Vector holding all update functions. More...
 
number m_vDownConvLength [maxNumSCVF]
 
number m_vUpConvLength [maxNumSCVF]
 convection length More...
 
number m_vvDownShapeIp [maxNumSCVF][maxNumSCVF]
 
number m_vvDownShapeSh [maxNumSCVF][maxNumSH]
 
number m_vvUpShapeIp [maxNumSCVF][maxNumSCVF]
 upwind shapes for ip vels More...
 
number m_vvUpShapeSh [maxNumSCVF][maxNumSH]
 upwind shapes for corners shape functions More...
 
- Static Protected Attributes inherited from ug::NavierStokes::NavierStokesUpwindRegister< FV1Geometry, dim, NavierStokesRegularUpwind< dim > >
static const size_t maxNumSCVF
 
static const size_t maxNumSH
 

Member Typedef Documentation

◆ base_type

Constructor & Destructor Documentation

◆ NavierStokesRegularUpwind()

Member Function Documentation

◆ compute()

Member Data Documentation

◆ maxNumSCVF

template<int dim>
const size_t ug::NavierStokes::NavierStokesRegularUpwind< dim >::maxNumSCVF = base_type::maxNumSCVF
static

◆ maxNumSH

template<int dim>
const size_t ug::NavierStokes::NavierStokesRegularUpwind< dim >::maxNumSH = base_type::maxNumSH
static

The documentation for this class was generated from the following files: