3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Attributes | List of all members
Dumux::ShallowWaterIndices Struct Reference

The common indices for the shallow water equations model. More...

#include <dumux/freeflow/shallowwater/indices.hh>

Description

The common indices for the shallow water equations model.

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 massBalanceIdx = 0
 Index of the mass balance equation. More...
 
static constexpr int momentumXBalanceIdx = 1
 Index of the x momentum balance equation. More...
 
static constexpr int momentumYBalanceIdx = 2
 Index of the y momentum balance equation. More...
 
static constexpr int waterdepthIdx = massBalanceIdx
 Index of the velocity in a solution vector. More...
 
static constexpr int velocityXIdx = momentumXBalanceIdx
 Index of the velocity in a solution vector. More...
 
static constexpr int velocityYIdx = momentumYBalanceIdx
 Index of the velocity in a solution vector. More...
 
static constexpr int velocityOffset = velocityXIdx
 Offset vor the velocity index. More...
 

Member Data Documentation

◆ dimXIdx

constexpr int Dumux::ShallowWaterIndices::dimXIdx = 0
staticconstexpr

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

◆ dimYIdx

constexpr int Dumux::ShallowWaterIndices::dimYIdx = 1
staticconstexpr

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

◆ massBalanceIdx

constexpr int Dumux::ShallowWaterIndices::massBalanceIdx = 0
staticconstexpr

Index of the mass balance equation.

◆ momentumXBalanceIdx

constexpr int Dumux::ShallowWaterIndices::momentumXBalanceIdx = 1
staticconstexpr

Index of the x momentum balance equation.

◆ momentumYBalanceIdx

constexpr int Dumux::ShallowWaterIndices::momentumYBalanceIdx = 2
staticconstexpr

Index of the y momentum balance equation.

◆ velocityOffset

constexpr int Dumux::ShallowWaterIndices::velocityOffset = velocityXIdx
staticconstexpr

Offset vor the velocity index.

◆ velocityXIdx

constexpr int Dumux::ShallowWaterIndices::velocityXIdx = momentumXBalanceIdx
staticconstexpr

Index of the velocity in a solution vector.

◆ velocityYIdx

constexpr int Dumux::ShallowWaterIndices::velocityYIdx = momentumYBalanceIdx
staticconstexpr

Index of the velocity in a solution vector.

◆ waterdepthIdx

constexpr int Dumux::ShallowWaterIndices::waterdepthIdx = massBalanceIdx
staticconstexpr

Index of the velocity in a solution vector.


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