version 3.8
porousmediumflow/3pwateroil/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_3P2CNI_INDICES_HH
14#define DUMUX_3P2CNI_INDICES_HH
15
16namespace Dumux {
17
23{
24public:
25 // present phases (-> 'pseudo' primary variable)
26 static const int threePhases = 1;
27 static const int wPhaseOnly = 2;
28 static const int gnPhaseOnly = 3;
29 static const int wnPhaseOnly = 4;
30 static const int gPhaseOnly = 5;
31 static const int wgPhaseOnly = 6;
32
33 // Primary variable indices
34 static const int pressureIdx = 0;
35 static const int switch1Idx = 1;
36 static const int switch2Idx = 2;
37
38 // equation indices
39 static const int conti0EqIdx = 0;
40};
41
42} // end namespace Dumux
43
44#endif
The indices for the isothermal 3p2cni model.
Definition: porousmediumflow/3pwateroil/indices.hh:23
static const int conti0EqIdx
Index of the mass conservation equation for the water component.
Definition: porousmediumflow/3pwateroil/indices.hh:39
static const int wPhaseOnly
Only the water phase is present.
Definition: porousmediumflow/3pwateroil/indices.hh:27
static const int wnPhaseOnly
Only water and NAPL phases are present.
Definition: porousmediumflow/3pwateroil/indices.hh:29
static const int threePhases
All three phases are present.
Definition: porousmediumflow/3pwateroil/indices.hh:26
static const int switch2Idx
Index 2 of saturation, mole fraction or temperature.
Definition: porousmediumflow/3pwateroil/indices.hh:36
static const int gPhaseOnly
Only gas phase is present.
Definition: porousmediumflow/3pwateroil/indices.hh:30
static const int switch1Idx
Index 1 of saturation, mole fraction or temperature.
Definition: porousmediumflow/3pwateroil/indices.hh:35
static const int wgPhaseOnly
Only water and gas phases are present.
Definition: porousmediumflow/3pwateroil/indices.hh:31
static const int gnPhaseOnly
Only gas and NAPL phases are present.
Definition: porousmediumflow/3pwateroil/indices.hh:28
static const int pressureIdx
Index for phase pressure in a solution vector.
Definition: porousmediumflow/3pwateroil/indices.hh:34
Definition: adapt.hh:17