version 3.10-dev
porousmediumflow/2p/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_2P_INDICES_HH
14#define DUMUX_2P_INDICES_HH
15
16#include "formulation.hh"
17
18namespace Dumux {
19
25{
26 // Primary variable indices
27 static constexpr int pressureIdx = 0;
28 static constexpr int saturationIdx = 1;
29
30 // indices of the equations
31 static constexpr int conti0EqIdx = 0;
32};
33
34} // namespace Dumux
35
36
37#endif
Defines an enumeration for the formulations accepted by the two-phase model.
Definition: adapt.hh:17
Defines the indices required for the two-phase fully implicit model.
Definition: porousmediumflow/2p/indices.hh:25
static constexpr int pressureIdx
index for first/second phase pressure (depending on formulation) in a solution vector
Definition: porousmediumflow/2p/indices.hh:27
static constexpr int saturationIdx
index of the saturation of the first/second phase
Definition: porousmediumflow/2p/indices.hh:28
static constexpr int conti0EqIdx
index of the first continuity equation
Definition: porousmediumflow/2p/indices.hh:31