version 3.8
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_IO_NAME_HH
13#define DUMUX_IO_NAME_HH
14
15#include <string>
16
17namespace Dumux {
18namespace IOName {
19
21template<class FluidSystem>
22std::string pressure(int phaseIdx) noexcept
23{ return (FluidSystem::numPhases == 1) ? "p" : "p_" + FluidSystem::phaseName(phaseIdx); }
24
26std::string pressure() noexcept
27{ return "p"; }
28
30template<class FluidSystem>
31std::string saturation(int phaseIdx) noexcept
32{ return (FluidSystem::numPhases == 1) ? "S" : "S_" + FluidSystem::phaseName(phaseIdx); }
33
35std::string saturation() noexcept
36{ return "S"; }
37
39std::string temperature() noexcept
40{ return "T"; }
41
43template<class FluidSystem>
44std::string fluidTemperature(int phaseIdx) noexcept
45{ return "T_" + FluidSystem::phaseName(phaseIdx); }
46
48std::string solidTemperature() noexcept
49{ return "T_s"; }
50
52template<class FluidSystem>
53std::string density(int phaseIdx) noexcept
54{ return (FluidSystem::numPhases == 1) ? "rho" : "rho_" + FluidSystem::phaseName(phaseIdx); }
55
57std::string density() noexcept
58{ return "rho"; }
59
61template<class FluidSystem>
62std::string viscosity(int phaseIdx) noexcept
63{ return (FluidSystem::numPhases == 1) ? "mu" : "mu_" + FluidSystem::phaseName(phaseIdx); }
64
66std::string viscosity() noexcept
67{ return "mu"; }
68
70template<class FluidSystem>
71std::string molarDensity(int phaseIdx) noexcept
72{ return (FluidSystem::numPhases == 1) ? "rhoMolar" : "rhoMolar_" + FluidSystem::phaseName(phaseIdx); }
73
75std::string molarDensity() noexcept
76{ return "rhoMolar"; }
77
79template<class FluidSystem>
80std::string relativePermeability(int phaseIdx) noexcept
81{ return (FluidSystem::numPhases == 1) ? "kr" : "kr_" + FluidSystem::phaseName(phaseIdx); }
82
84std::string relativePermeability() noexcept
85{ return "kr"; }
86
88template<class FluidSystem>
89std::string mobility(int phaseIdx) noexcept
90{ return (FluidSystem::numPhases == 1) ? "mob" : "mob_" + FluidSystem::phaseName(phaseIdx); }
91
93std::string mobility() noexcept
94{ return "mob"; }
95
97template<class FluidSystem>
98std::string moleFraction(int phaseIdx, int compIdx) noexcept
99{ return "x^" + FluidSystem::componentName(compIdx) + "_" + FluidSystem::phaseName(phaseIdx); }
100
102template<class FluidSystem>
103std::string massFraction(int phaseIdx, int compIdx) noexcept
104{ return "X^" + FluidSystem::componentName(compIdx) + "_" + FluidSystem::phaseName(phaseIdx); }
105
107std::string liquidPhase() noexcept
108{ return "liq"; }
109
111std::string gaseousPhase() noexcept
112{ return "gas"; }
113
115std::string aqueousPhase() noexcept
116{ return "aq"; }
117
119std::string naplPhase() noexcept
120{ return "napl"; }
121
123std::string capillaryPressure() noexcept
124{ return "pc"; }
125
127std::string porosity() noexcept
128{ return "porosity"; }
129
131std::string permeability() noexcept
132{ return "permeability"; }
133
135std::string phasePresence() noexcept
136{ return "phase presence"; }
137
139std::string pressureHead() noexcept
140{ return "pressure head"; }
141
143std::string waterContent() noexcept
144{ return "water content"; }
145
147template<class SolidSystem>
148std::string solidVolumeFraction(int compIdx = 0) noexcept
149{ return "precipitateVolumeFraction^" + SolidSystem::componentName(compIdx); }
150
152std::string displacement() noexcept
153{ return "u"; }
154
155} // end namespace IOName
156} // end namespace Dumux
157
158#endif
std::string waterContent() noexcept
I/O name of water content.
Definition: name.hh:143
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
std::string solidVolumeFraction(int compIdx=0) noexcept
I/O name of solid volume fraction.
Definition: name.hh:148
std::string capillaryPressure() noexcept
I/O name of capillary pressure.
Definition: name.hh:123
std::string gaseousPhase() noexcept
I/O name of gaseous phase.
Definition: name.hh:111
std::string saturation(int phaseIdx) noexcept
I/O name of saturation for multiphase systems.
Definition: name.hh:31
std::string relativePermeability(int phaseIdx) noexcept
I/O name of relative permeability for multiphase systems.
Definition: name.hh:80
std::string solidTemperature() noexcept
I/O name of solid temperature for non-equilibrium models.
Definition: name.hh:48
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:135
std::string moleFraction(int phaseIdx, int compIdx) noexcept
I/O name of mole fraction.
Definition: name.hh:98
std::string displacement() noexcept
I/O name of displacement.
Definition: name.hh:152
std::string mobility(int phaseIdx) noexcept
I/O name of mobility for multiphase systems.
Definition: name.hh:89
std::string viscosity(int phaseIdx) noexcept
I/O name of viscosity for multiphase systems.
Definition: name.hh:62
std::string molarDensity(int phaseIdx) noexcept
I/O name of molar density for multiphase systems.
Definition: name.hh:71
std::string pressureHead() noexcept
I/O name of pressure head.
Definition: name.hh:139
std::string naplPhase() noexcept
I/O name of napl phase.
Definition: name.hh:119
std::string liquidPhase() noexcept
I/O name of liquid phase.
Definition: name.hh:107
std::string permeability() noexcept
I/O name of permeability.
Definition: name.hh:131
std::string aqueousPhase() noexcept
I/O name of aqueous phase.
Definition: name.hh:115
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:22
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:53
std::string fluidTemperature(int phaseIdx) noexcept
I/O name of temperature for non-equilibrium models.
Definition: name.hh:44
std::string massFraction(int phaseIdx, int compIdx) noexcept
I/O name of mass fraction.
Definition: name.hh:103
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:127
Definition: adapt.hh:17