3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
name.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 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_IO_NAME_HH
25#define DUMUX_IO_NAME_HH
26
27#include <string>
28
29namespace Dumux {
30namespace IOName {
31
33template<class FluidSystem>
34std::string pressure(int phaseIdx) noexcept
35{ return (FluidSystem::numPhases == 1) ? "p" : "p_" + FluidSystem::phaseName(phaseIdx); }
36
38std::string pressure() noexcept
39{ return "p"; }
40
42template<class FluidSystem>
43std::string saturation(int phaseIdx) noexcept
44{ return (FluidSystem::numPhases == 1) ? "S" : "S_" + FluidSystem::phaseName(phaseIdx); }
45
47std::string saturation() noexcept
48{ return "S"; }
49
51std::string temperature() noexcept
52{ return "T"; }
53
55template<class FluidSystem>
56std::string fluidTemperature(int phaseIdx) noexcept
57{ return "T_" + FluidSystem::phaseName(phaseIdx); }
58
60std::string solidTemperature() noexcept
61{ return "T_s"; }
62
64template<class FluidSystem>
65std::string density(int phaseIdx) noexcept
66{ return (FluidSystem::numPhases == 1) ? "rho" : "rho_" + FluidSystem::phaseName(phaseIdx); }
67
69std::string density() noexcept
70{ return "rho"; }
71
73template<class FluidSystem>
74std::string viscosity(int phaseIdx) noexcept
75{ return (FluidSystem::numPhases == 1) ? "mu" : "mu_" + FluidSystem::phaseName(phaseIdx); }
76
78std::string viscosity() noexcept
79{ return "mu"; }
80
82template<class FluidSystem>
83std::string molarDensity(int phaseIdx) noexcept
84{ return (FluidSystem::numPhases == 1) ? "rhoMolar" : "rhoMolar_" + FluidSystem::phaseName(phaseIdx); }
85
87std::string molarDensity() noexcept
88{ return "rhoMolar"; }
89
91template<class FluidSystem>
92std::string relativePermeability(int phaseIdx) noexcept
93{ return (FluidSystem::numPhases == 1) ? "kr" : "kr_" + FluidSystem::phaseName(phaseIdx); }
94
96std::string relativePermeability() noexcept
97{ return "kr"; }
98
100template<class FluidSystem>
101std::string mobility(int phaseIdx) noexcept
102{ return (FluidSystem::numPhases == 1) ? "mob" : "mob_" + FluidSystem::phaseName(phaseIdx); }
103
105std::string mobility() noexcept
106{ return "mob"; }
107
109template<class FluidSystem>
110std::string moleFraction(int phaseIdx, int compIdx) noexcept
111{ return "x^" + FluidSystem::componentName(compIdx) + "_" + FluidSystem::phaseName(phaseIdx); }
112
114template<class FluidSystem>
115std::string massFraction(int phaseIdx, int compIdx) noexcept
116{ return "X^" + FluidSystem::componentName(compIdx) + "_" + FluidSystem::phaseName(phaseIdx); }
117
119std::string liquidPhase() noexcept
120{ return "liq"; }
121
123std::string gaseousPhase() noexcept
124{ return "gas"; }
125
127std::string aqueousPhase() noexcept
128{ return "aq"; }
129
131std::string naplPhase() noexcept
132{ return "napl"; }
133
135std::string capillaryPressure() noexcept
136{ return "pc"; }
137
139std::string porosity() noexcept
140{ return "porosity"; }
141
143std::string permeability() noexcept
144{ return "permeability"; }
145
147std::string phasePresence() noexcept
148{ return "phase presence"; }
149
151std::string pressureHead() noexcept
152{ return "pressure head"; }
153
155std::string waterContent() noexcept
156{ return "water content"; }
157
159template<class SolidSystem>
160std::string solidVolumeFraction(int compIdx = 0) noexcept
161{ return "precipitateVolumeFraction^" + SolidSystem::componentName(compIdx); }
162
164std::string displacement() noexcept
165{ return "u"; }
166
167} // end namespace IOName
168} // end namespace Dumux
169
170#endif
Definition: adapt.hh:29
std::string waterContent() noexcept
I/O name of water content.
Definition: name.hh:155
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string solidVolumeFraction(int compIdx=0) noexcept
I/O name of solid volume fraction.
Definition: name.hh:160
std::string capillaryPressure() noexcept
I/O name of capillary pressure.
Definition: name.hh:135
std::string gaseousPhase() noexcept
I/O name of gaseous phase.
Definition: name.hh:123
std::string saturation(int phaseIdx) noexcept
I/O name of saturation for multiphase systems.
Definition: name.hh:43
std::string relativePermeability(int phaseIdx) noexcept
I/O name of relative permeability for multiphase systems.
Definition: name.hh:92
std::string solidTemperature() noexcept
I/O name of solid temperature for non-equilibrium models.
Definition: name.hh:60
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:147
std::string moleFraction(int phaseIdx, int compIdx) noexcept
I/O name of mole fraction.
Definition: name.hh:110
std::string displacement() noexcept
I/O name of displacement.
Definition: name.hh:164
std::string mobility(int phaseIdx) noexcept
I/O name of mobility for multiphase systems.
Definition: name.hh:101
std::string viscosity(int phaseIdx) noexcept
I/O name of viscosity for multiphase systems.
Definition: name.hh:74
std::string molarDensity(int phaseIdx) noexcept
I/O name of molar density for multiphase systems.
Definition: name.hh:83
std::string pressureHead() noexcept
I/O name of pressure head.
Definition: name.hh:151
std::string naplPhase() noexcept
I/O name of napl phase.
Definition: name.hh:131
std::string liquidPhase() noexcept
I/O name of liquid phase.
Definition: name.hh:119
std::string permeability() noexcept
I/O name of permeability.
Definition: name.hh:143
std::string aqueousPhase() noexcept
I/O name of aqueous phase.
Definition: name.hh:127
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
std::string fluidTemperature(int phaseIdx) noexcept
I/O name of temperature for non-equilibrium models.
Definition: name.hh:56
std::string massFraction(int phaseIdx, int compIdx) noexcept
I/O name of mass fraction.
Definition: name.hh:115
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139