3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | Static Public Attributes | List of all members
Dumux::RANSTwoEqIndices< dimension, numComponents > Struct Template Reference

The common indices for isothermal two-equation RANS models. More...

#include <dumux/freeflow/rans/twoeq/indices.hh>

Inheritance diagram for Dumux::RANSTwoEqIndices< dimension, numComponents >:
Inheritance graph

Description

template<int dimension, int numComponents>
struct Dumux::RANSTwoEqIndices< dimension, numComponents >

The common indices for isothermal two-equation RANS models.

Template Parameters
dimensionThe dimension of the problem
numComponentsThe number of considered transported components

Static Public Member Functions

static constexpr int velocity (int dirIdx)
 Index of the velocity in a solution vector given a certain direction. More...
 

Static Public Attributes

static constexpr auto turbulentKineticEnergyEqIdx = dimension + numComponents
 
static constexpr auto turbulentKineticEnergyIdx = turbulentKineticEnergyEqIdx
 
static constexpr auto dissipationEqIdx = turbulentKineticEnergyEqIdx + 1
 
static constexpr auto dissipationIdx = dissipationEqIdx
 
static constexpr int dimXIdx = 0
 Index of the x-component of a vector of size dim. More...
 
static constexpr int dimYIdx = 1
 Index of the y-component of a vector of size dim. More...
 
static constexpr int dimZIdx = 2
 Index of the z-component of a vector of size dim. More...
 
static constexpr int conti0EqIdx = dimension
 Index of the total mass balance equation. More...
 
static constexpr int pressureIdx = conti0EqIdx
 Index of the pressure in a solution vector. More...
 
static constexpr auto dim = dimension
 
static constexpr int momentumXBalanceIdx = 0
 Index of the momentum balance equation. More...
 
static constexpr int momentumYBalanceIdx = 1
 Index of the momentum balance equation. More...
 
static constexpr int momentumZBalanceIdx = 2
 Index of the momentum balance equation. More...
 
static constexpr int velocityXIdx = 0
 Index of the velocity in a solution vector. More...
 
static constexpr int velocityYIdx = 1
 Index of the velocity in a solution vector. More...
 
static constexpr int velocityZIdx = 2
 Index of the velocity in a solution vector. More...
 

Member Function Documentation

◆ velocity()

template<int dimension>
static constexpr int Dumux::NavierStokesIndices< dimension >::velocity ( int  dirIdx)
inlinestaticconstexprinherited

Index of the velocity in a solution vector given a certain direction.

Parameters
dirIdxThe index of the direction.

Member Data Documentation

◆ conti0EqIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::conti0EqIdx = dimension
staticconstexprinherited

Index of the total mass balance equation.

◆ dim

template<int dimension>
constexpr auto Dumux::NavierStokesIndices< dimension >::dim = dimension
staticconstexprinherited

◆ dimXIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::dimXIdx = 0
staticconstexprinherited

Index of the x-component of a vector of size dim.

◆ dimYIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::dimYIdx = 1
staticconstexprinherited

Index of the y-component of a vector of size dim.

◆ dimZIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::dimZIdx = 2
staticconstexprinherited

Index of the z-component of a vector of size dim.

◆ dissipationEqIdx

template<int dimension, int numComponents>
constexpr auto Dumux::RANSTwoEqIndices< dimension, numComponents >::dissipationEqIdx = turbulentKineticEnergyEqIdx + 1
staticconstexpr

◆ dissipationIdx

template<int dimension, int numComponents>
constexpr auto Dumux::RANSTwoEqIndices< dimension, numComponents >::dissipationIdx = dissipationEqIdx
staticconstexpr

◆ momentumXBalanceIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::momentumXBalanceIdx = 0
staticconstexprinherited

Index of the momentum balance equation.

◆ momentumYBalanceIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::momentumYBalanceIdx = 1
staticconstexprinherited

Index of the momentum balance equation.

◆ momentumZBalanceIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::momentumZBalanceIdx = 2
staticconstexprinherited

Index of the momentum balance equation.

◆ pressureIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::pressureIdx = conti0EqIdx
staticconstexprinherited

Index of the pressure in a solution vector.

◆ turbulentKineticEnergyEqIdx

template<int dimension, int numComponents>
constexpr auto Dumux::RANSTwoEqIndices< dimension, numComponents >::turbulentKineticEnergyEqIdx = dimension + numComponents
staticconstexpr

◆ turbulentKineticEnergyIdx

template<int dimension, int numComponents>
constexpr auto Dumux::RANSTwoEqIndices< dimension, numComponents >::turbulentKineticEnergyIdx = turbulentKineticEnergyEqIdx
staticconstexpr

◆ velocityXIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::velocityXIdx = 0
staticconstexprinherited

Index of the velocity in a solution vector.

◆ velocityYIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::velocityYIdx = 1
staticconstexprinherited

Index of the velocity in a solution vector.

◆ velocityZIdx

template<int dimension>
constexpr int Dumux::NavierStokesIndices< dimension >::velocityZIdx = 2
staticconstexprinherited

Index of the velocity in a solution vector.


The documentation for this struct was generated from the following file: