12#ifndef DUMUX_NAVIERSTOKES_INDICES_HH
13#define DUMUX_NAVIERSTOKES_INDICES_HH
23template <
int dimension>
33 static constexpr auto dim = dimension;
The common indices for the isothermal Navier-Stokes model.
Definition: freeflow/navierstokes/indices.hh:25
static constexpr int momentumXBalanceIdx
Index of the momentum balance equation.
Definition: freeflow/navierstokes/indices.hh:35
static constexpr int dimXIdx
Index of the x-component of a vector of size dim.
Definition: freeflow/navierstokes/indices.hh:26
static constexpr int pressureIdx
Index of the pressure in a solution vector.
Definition: freeflow/navierstokes/indices.hh:31
static constexpr int velocityYIdx
Index of the velocity in a solution vector.
Definition: freeflow/navierstokes/indices.hh:40
static constexpr auto dim
Definition: freeflow/navierstokes/indices.hh:33
static constexpr int dimYIdx
Index of the y-component of a vector of size dim.
Definition: freeflow/navierstokes/indices.hh:27
static constexpr int momentumZBalanceIdx
Index of the momentum balance equation.
Definition: freeflow/navierstokes/indices.hh:37
static constexpr int velocity(int dirIdx)
Index of the velocity in a solution vector given a certain direction.
Definition: freeflow/navierstokes/indices.hh:48
static constexpr int conti0EqIdx
Index of the total mass balance equation.
Definition: freeflow/navierstokes/indices.hh:30
static constexpr int velocityZIdx
Index of the velocity in a solution vector.
Definition: freeflow/navierstokes/indices.hh:41
static constexpr int dimZIdx
Index of the z-component of a vector of size dim.
Definition: freeflow/navierstokes/indices.hh:28
static constexpr int momentumYBalanceIdx
Index of the momentum balance equation.
Definition: freeflow/navierstokes/indices.hh:36
static constexpr int velocityXIdx
Index of the velocity in a solution vector.
Definition: freeflow/navierstokes/indices.hh:39