13#ifndef DUMUX_3P2CNI_IO_FIELDS_HH
14#define DUMUX_3P2CNI_IO_FIELDS_HH
29 template <
class OutputModule>
32 using VolumeVariables =
typename OutputModule::VolumeVariables;
33 using FluidSystem =
typename VolumeVariables::FluidSystem;
36 for (
int phaseIdx = 0; phaseIdx < VolumeVariables::numFluidPhases(); ++phaseIdx)
38 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.saturation(phaseIdx); },
40 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.pressure(phaseIdx); },
42 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.density(phaseIdx); },
44 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.mobility(phaseIdx); },
46 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.viscosity(phaseIdx); },
49 for (
int compIdx = 0; compIdx < VolumeVariables::numFluidComponents(); ++compIdx)
50 out.addVolumeVariable([phaseIdx, compIdx](
const auto& v){
return v.moleFraction(phaseIdx, compIdx); },
54 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
56 out.addVolumeVariable([](
const auto& v){
return v.priVars().state(); },
58 out.addVolumeVariable([](
const auto& v){
return v.permeability(); },
62 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
65 using Indices =
typename ModelTraits::Indices;
66 static constexpr auto numEq = ModelTraits::numEq();
67 using StringVec = std::array<std::string, numEq>;
71 case Indices::threePhases:
78 case Indices::wPhaseOnly:
85 case Indices::gnPhaseOnly:
92 case Indices::wnPhaseOnly:
99 case Indices::gPhaseOnly:
106 case Indices::wgPhaseOnly:
Adds I/O fields specific to the three-phase three-component model.
Definition porousmediumflow/3pwateroil/iofields.hh:26
static void initOutputModule(OutputModule &out)
Definition porousmediumflow/3pwateroil/iofields.hh:30
static std::string primaryVariableName(int pvIdx, int state)
Definition porousmediumflow/3pwateroil/iofields.hh:63
A collection of input/output field names for common physical quantities.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition name.hh:39
std::string pressure() noexcept
I/O name of pressure for singlephase systems.
Definition name.hh:26
std::string viscosity() noexcept
I/O name of viscosity for singlephase systems.
Definition name.hh:66
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 density() noexcept
I/O name of density for singlephase systems.
Definition name.hh:57
std::string permeability() noexcept
I/O name of permeability.
Definition name.hh:131
std::string saturation() noexcept
I/O name of saturation for singlephase systems.
Definition name.hh:35
std::string mobility() noexcept
I/O name of mobility for singlephase systems.
Definition name.hh:93
std::string porosity() noexcept
I/O name of porosity.
Definition name.hh:127
Adds I/O fields specific to the three-phase three-component model.