25#ifndef DUMUX_3P2CNI_IO_FIELDS_HH
26#define DUMUX_3P2CNI_IO_FIELDS_HH
41 template <
class OutputModule>
44 using VolumeVariables =
typename OutputModule::VolumeVariables;
45 using FluidSystem =
typename VolumeVariables::FluidSystem;
48 for (
int phaseIdx = 0; phaseIdx < VolumeVariables::numFluidPhases(); ++phaseIdx)
50 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.saturation(phaseIdx); },
52 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.pressure(phaseIdx); },
54 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.density(phaseIdx); },
56 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.mobility(phaseIdx); },
58 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.viscosity(phaseIdx); },
61 for (
int compIdx = 0; compIdx < VolumeVariables::numFluidComponents(); ++compIdx)
62 out.addVolumeVariable([phaseIdx, compIdx](
const auto& v){ return v.moleFraction(phaseIdx, compIdx); },
66 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
68 out.addVolumeVariable([](
const auto& v){
return v.priVars().state(); },
70 out.addVolumeVariable([](
const auto& v){
return v.permeability(); },
74 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
77 using Indices =
typename ModelTraits::Indices;
78 static constexpr auto numEq = ModelTraits::numEq();
79 using StringVec = std::array<std::string, numEq>;
83 case Indices::threePhases:
90 case Indices::wPhaseOnly:
97 case Indices::gnPhaseOnly:
104 case Indices::wnPhaseOnly:
111 case Indices::gPhaseOnly:
118 case Indices::wgPhaseOnly:
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:51
std::string pressure() noexcept
I/O name of pressure for singlephase systems.
Definition name.hh:38
std::string viscosity() noexcept
I/O name of viscosity for singlephase systems.
Definition name.hh:78
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 density() noexcept
I/O name of density for singlephase systems.
Definition name.hh:69
std::string permeability() noexcept
I/O name of permeability.
Definition name.hh:143
std::string saturation() noexcept
I/O name of saturation for singlephase systems.
Definition name.hh:47
std::string mobility() noexcept
I/O name of mobility for singlephase systems.
Definition name.hh:105
std::string porosity() noexcept
I/O name of porosity.
Definition name.hh:139
Adds I/O fields specific to the three-phase three-component model.
Definition porousmediumflow/3pwateroil/iofields.hh:38
static void initOutputModule(OutputModule &out)
Definition porousmediumflow/3pwateroil/iofields.hh:42
static std::string primaryVariableName(int pvIdx, int state)
Definition porousmediumflow/3pwateroil/iofields.hh:75
Adds I/O fields specific to the three-phase three-component model.