version 3.8
porousmediumflow/3p3c/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_3P3C_INDICES_HH
14#define DUMUX_3P3C_INDICES_HH
15
16namespace Dumux {
17
23{
24public:
25 // present phases (-> 'pseudo' primary variable)
26 static constexpr int threePhases = 1;
27 static constexpr int wPhaseOnly = 2;
28 static constexpr int gnPhaseOnly = 3;
29 static constexpr int wnPhaseOnly = 4;
30 static constexpr int gPhaseOnly = 5;
31 static constexpr int wgPhaseOnly = 6;
32
33 // Primary variable indices
34 static constexpr int pressureIdx = 0;
35 static constexpr int switch1Idx = 1;
36 static constexpr int switch2Idx = 2;
37
39 static constexpr int pgIdx = pressureIdx;
41 static constexpr int sOrX1Idx = switch1Idx;
43 static constexpr int sOrX2Idx = switch2Idx;
44
45 // equation indices
46 static constexpr int conti0EqIdx = 0;
47};
48
49} // end namespace Dumux
50
51#endif
The indices for the isothermal three-phase three-component model.
Definition: porousmediumflow/3p3c/indices.hh:23
static constexpr int conti0EqIdx
Definition: porousmediumflow/3p3c/indices.hh:46
static constexpr int switch2Idx
index 2 of saturation or mole fraction
Definition: porousmediumflow/3p3c/indices.hh:36
static constexpr int wPhaseOnly
Only the water phase is present.
Definition: porousmediumflow/3p3c/indices.hh:27
static constexpr int pressureIdx
index for gas phase pressure in a solution vector
Definition: porousmediumflow/3p3c/indices.hh:34
static constexpr int threePhases
All three phases are present.
Definition: porousmediumflow/3p3c/indices.hh:26
static constexpr int gnPhaseOnly
Only gas and NAPL phases are present.
Definition: porousmediumflow/3p3c/indices.hh:28
static constexpr int sOrX1Idx
index of either the saturation of the wetting phase or the mole fraction secondary component if a pha...
Definition: porousmediumflow/3p3c/indices.hh:41
static constexpr int wnPhaseOnly
Only water and NAPL phases are present.
Definition: porousmediumflow/3p3c/indices.hh:29
static constexpr int switch1Idx
index 1 of saturation or mole fraction
Definition: porousmediumflow/3p3c/indices.hh:35
static constexpr int sOrX2Idx
index of either the saturation of the nonwetting phase or the mole fraction secondary component if a ...
Definition: porousmediumflow/3p3c/indices.hh:43
static constexpr int wgPhaseOnly
Only water and gas phases are present.
Definition: porousmediumflow/3p3c/indices.hh:31
static constexpr int pgIdx
index for gas phase pressure in a solution vector
Definition: porousmediumflow/3p3c/indices.hh:39
static constexpr int gPhaseOnly
Only gas phase is present.
Definition: porousmediumflow/3p3c/indices.hh:30
Definition: adapt.hh:17