version 3.8
Dumux::NavierStokesMomentumIndices< dimension > Struct Template Reference

The common indices for the isothermal Navier-Stokes model. More...

#include <dumux/freeflow/navierstokes/momentum/indices.hh>

Description

template<int dimension>
struct Dumux::NavierStokesMomentumIndices< dimension >
Template Parameters
dimensionThe dimension of the problem

Static Public Member Functions

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

Static Public Attributes

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 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

◆ momentumBalanceIdx()

template<int dimension>
static constexpr int Dumux::NavierStokesMomentumIndices< dimension >::momentumBalanceIdx ( int  dirIdx)
inlinestaticconstexpr
Parameters
dirIdxThe index of the direction.

◆ velocity()

template<int dimension>
static constexpr int Dumux::NavierStokesMomentumIndices< dimension >::velocity ( int  dirIdx)
inlinestaticconstexpr
Parameters
dirIdxThe index of the direction.

Member Data Documentation

◆ dim

template<int dimension>
constexpr auto Dumux::NavierStokesMomentumIndices< dimension >::dim = dimension
staticconstexpr

◆ dimXIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::dimXIdx = 0
staticconstexpr

◆ dimYIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::dimYIdx = 1
staticconstexpr

◆ dimZIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::dimZIdx = 2
staticconstexpr

◆ momentumXBalanceIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::momentumXBalanceIdx = 0
staticconstexpr

◆ momentumYBalanceIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::momentumYBalanceIdx = 1
staticconstexpr

◆ momentumZBalanceIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::momentumZBalanceIdx = 2
staticconstexpr

◆ velocityXIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::velocityXIdx = 0
staticconstexpr

◆ velocityYIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::velocityYIdx = 1
staticconstexpr

◆ velocityZIdx

template<int dimension>
constexpr int Dumux::NavierStokesMomentumIndices< dimension >::velocityZIdx = 2
staticconstexpr

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