version 3.10-dev
porousmediumflow/nonequilibrium/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_NONEQUILIBRIUM_INDICES_HH
14#define DUMUX_NONEQUILIBRIUM_INDICES_HH
15
16namespace Dumux {
17
22template <class EquilibriumIndices, int numEnergyEqFluid, int numEnergyEqSolid, int numEq>
23class NonEquilbriumIndices : public EquilibriumIndices
24{
25public:
30 static constexpr unsigned int temperature0Idx = numEq - numEnergyEqFluid - numEnergyEqSolid;
31
36 static constexpr unsigned int temperatureSolidIdx = numEq - numEnergyEqSolid;
40 static constexpr unsigned int temperatureIdx = temperature0Idx;
44 static constexpr unsigned int energyEq0Idx = numEq - numEnergyEqFluid - numEnergyEqSolid;
48 static constexpr unsigned int energyEqIdx = energyEq0Idx;
49
53 static constexpr unsigned int energyEqSolidIdx = numEq - numEnergyEqSolid;
54};
55
56} // end namespace Dumux
57
58#endif
The primary variable and equation indices for the MpNc model.
Definition: porousmediumflow/nonequilibrium/indices.hh:24
static constexpr unsigned int temperatureIdx
Compatibility with non kinetic models.
Definition: porousmediumflow/nonequilibrium/indices.hh:40
static constexpr unsigned int energyEqIdx
Compatibility with non kinetic models.
Definition: porousmediumflow/nonequilibrium/indices.hh:48
static constexpr unsigned int temperatureSolidIdx
Index for the temperature of the solid phase in a vector of primary variables.
Definition: porousmediumflow/nonequilibrium/indices.hh:36
static constexpr unsigned int temperature0Idx
Index for the temperature of the wetting phase in a vector of primary variables.
Definition: porousmediumflow/nonequilibrium/indices.hh:30
static constexpr unsigned int energyEq0Idx
Equation index of the energy equation.
Definition: porousmediumflow/nonequilibrium/indices.hh:44
static constexpr unsigned int energyEqSolidIdx
Equation index of the energy equation.
Definition: porousmediumflow/nonequilibrium/indices.hh:53
Definition: adapt.hh:17