version 3.8
porousmediumflow/mpnc/indices.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
13#ifndef DUMUX_MPNC_INDICES_HH
14#define DUMUX_MPNC_INDICES_HH
15
16namespace Dumux {
17
25template <int numPhases, int numEqBalance>
27{
35 static const unsigned int s0Idx = numEqBalance - numPhases;
36
40 static const unsigned int p0Idx = numEqBalance - 1;
41
46 static const unsigned int phase0NcpIdx = numEqBalance - numPhases;
47
48 static const unsigned int fug0Idx = 0;
49 static const unsigned int conti0EqIdx = 0;
50 static const unsigned int moleFrac00Idx = 0;
51};
52
53}
54
55#endif
Definition: adapt.hh:17
The primary variable and equation indices for the MpNc model.
Definition: porousmediumflow/mpnc/indices.hh:27
static const unsigned int phase0NcpIdx
Index of the first phase NCP equation.
Definition: porousmediumflow/mpnc/indices.hh:46
static const unsigned int p0Idx
Index of the first phase' pressure in a vector of primary variables.
Definition: porousmediumflow/mpnc/indices.hh:40
static const unsigned int moleFrac00Idx
Definition: porousmediumflow/mpnc/indices.hh:50
static const unsigned int conti0EqIdx
Definition: porousmediumflow/mpnc/indices.hh:49
static const unsigned int s0Idx
Index of the saturation of the first phase in a vector of primary variables.
Definition: porousmediumflow/mpnc/indices.hh:35
static const unsigned int fug0Idx
Definition: porousmediumflow/mpnc/indices.hh:48