version 3.8
porousmediumflow/2pnc/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_2PNC_INDICES_HH
14#define DUMUX_2PNC_INDICES_HH
15
16namespace Dumux {
17
23{
24 // present phases (-> 'pseudo' primary variable)
25 static constexpr int firstPhaseOnly = 1;
26 static constexpr int secondPhaseOnly = 2;
27 static constexpr int bothPhases = 3;
28
29 // Primary variable indices
30 static constexpr int pressureIdx = 0;
31 static constexpr int switchIdx = 1;
32
33 // equation indices
34 static constexpr int conti0EqIdx = 0;
35};
36
37} // end namespace Dumux
38
39#endif
Definition: adapt.hh:17
The indices for the isothermal two-phase n-component model.
Definition: porousmediumflow/2pnc/indices.hh:23
static constexpr int switchIdx
index for first/second phase pressure (depending on formulation) in privar vector
Definition: porousmediumflow/2pnc/indices.hh:31
static constexpr int conti0EqIdx
index of either the saturation or the mass/mole fraction of the first/second component
Definition: porousmediumflow/2pnc/indices.hh:34
static constexpr int bothPhases
Both phases are present.
Definition: porousmediumflow/2pnc/indices.hh:27
static constexpr int pressureIdx
Definition: porousmediumflow/2pnc/indices.hh:30
static constexpr int firstPhaseOnly
Only the first phase (in fluid system) is present.
Definition: porousmediumflow/2pnc/indices.hh:25
static constexpr int secondPhaseOnly
Only the second phase (in fluid system) is present.
Definition: porousmediumflow/2pnc/indices.hh:26