version 3.10-dev
porousmediumflow/2p1c/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_2P1C_INDICES_HH
14#define DUMUX_2P1C_INDICES_HH
15
16namespace Dumux {
17
23{
24public:
25 // Present phases (-> 'pseudo' primary variable)
26 static const int twoPhases = 1;
27 static const int liquidPhaseOnly = 2;
28 static const int gasPhaseOnly = 3;
29
30 // Primary variable indices
31 static const int pressureIdx = 0;
32 static const int switchIdx = 1;
33
34 // Equation indices
35 static const int conti0EqIdx = 0;
36 static const int energyEqIdx = 1; //<! The index for energy in equation vectors.
37
38 static const int temperatureIdx = -99;
39};
40
41} // end namespace Dumux
42
43#endif
The indices for the two-phase one-component model.
Definition: porousmediumflow/2p1c/indices.hh:23
static const int gasPhaseOnly
Only gas phase is present.
Definition: porousmediumflow/2p1c/indices.hh:28
static const int conti0EqIdx
Index of the mass conservation equation for the water component.
Definition: porousmediumflow/2p1c/indices.hh:35
static const int temperatureIdx
For compatibility reasons. Do not use.
Definition: porousmediumflow/2p1c/indices.hh:38
static const int energyEqIdx
Definition: porousmediumflow/2p1c/indices.hh:36
static const int pressureIdx
Index for phase pressure in a solution vector.
Definition: porousmediumflow/2p1c/indices.hh:31
static const int liquidPhaseOnly
Only the liquid phase is present.
Definition: porousmediumflow/2p1c/indices.hh:27
static const int switchIdx
Index of saturation or temperature.
Definition: porousmediumflow/2p1c/indices.hh:32
static const int twoPhases
Both liquid and gas phase are present.
Definition: porousmediumflow/2p1c/indices.hh:26
Definition: adapt.hh:17