Ewoms::NcpIndices< TypeTag, PVOffset > Struct Template Reference

The primary variable and equation indices for the compositional multi-phase NCP model. More...

#include <ncpindices.hh>

Inheritance diagram for Ewoms::NcpIndices< TypeTag, PVOffset >:
Inheritance graph

Static Public Attributes

static const int numEq = numComponents + numPhases + EnergyIndices::numEq_
 The number of primary variables / equations. More...
 
static const int conti0EqIdx = PVOffset
 Index of the equation for the continuity of mass of the first component. More...
 
static const int ncp0EqIdx = conti0EqIdx + numComponents
 Index of the first phase NCP equation. More...
 
static const int fugacity0Idx = PVOffset
 Index of the primary variable for the fugacity of the first component. More...
 
static const int saturation0Idx = fugacity0Idx + numComponents
 Index of the saturation of the first phase in a vector of primary variables. More...
 
static const int pressure0Idx = saturation0Idx + numPhases - 1
 Index of the first phase' pressure in a vector of primary variables. More...
 

Detailed Description

template<class TypeTag, int PVOffset = 0>
struct Ewoms::NcpIndices< TypeTag, PVOffset >

The primary variable and equation indices for the compositional multi-phase NCP model.

Member Data Documentation

template<class TypeTag , int PVOffset = 0>
const int Ewoms::NcpIndices< TypeTag, PVOffset >::conti0EqIdx = PVOffset
static

Index of the equation for the continuity of mass of the first component.

numComponents equations follow...

template<class TypeTag , int PVOffset = 0>
const int Ewoms::NcpIndices< TypeTag, PVOffset >::fugacity0Idx = PVOffset
static

Index of the primary variable for the fugacity of the first component.

numComponents primary variables follow...

template<class TypeTag , int PVOffset = 0>
const int Ewoms::NcpIndices< TypeTag, PVOffset >::ncp0EqIdx = conti0EqIdx + numComponents
static

Index of the first phase NCP equation.

The index for the remaining phases are consecutive.

template<class TypeTag , int PVOffset = 0>
const int Ewoms::NcpIndices< TypeTag, PVOffset >::numEq = numComponents + numPhases + EnergyIndices::numEq_
static

The number of primary variables / equations.

template<class TypeTag , int PVOffset = 0>
const int Ewoms::NcpIndices< TypeTag, PVOffset >::pressure0Idx = saturation0Idx + numPhases - 1
static

Index of the first phase' pressure in a vector of primary variables.

template<class TypeTag , int PVOffset = 0>
const int Ewoms::NcpIndices< TypeTag, PVOffset >::saturation0Idx = fugacity0Idx + numComponents
static

Index of the saturation of the first phase in a vector of primary variables.

The following (numPhases - 1) primary variables represent the saturations for the phases [1, ..., numPhases - 1]


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