25#ifndef DUMUX_THREEP_IO_FIELDS_HH
26#define DUMUX_THREEP_IO_FIELDS_HH
39 template <
class OutputModule>
42 using VolumeVariables =
typename OutputModule::VolumeVariables;
43 using FluidSystem =
typename VolumeVariables::FluidSystem;
46 for (
int phaseIdx = 0; phaseIdx < VolumeVariables::numFluidPhases(); ++phaseIdx)
48 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.saturation(phaseIdx); },
49 IOName::saturation<FluidSystem>(phaseIdx));
50 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.pressure(phaseIdx); },
51 IOName::pressure<FluidSystem>(phaseIdx));
52 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.density(phaseIdx); },
53 IOName::density<FluidSystem>(phaseIdx));
56 out.addVolumeVariable( [](
const auto& v){
return v.porosity(); },
58 out.addVolumeVariable( [](
const auto& v){
return v.permeability(); },
62 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
67 case 0:
return IOName::pressure<FluidSystem>(FluidSystem::gPhaseIdx);
68 case 1:
return IOName::saturation<FluidSystem>(FluidSystem::wPhaseIdx);
69 default:
return IOName::saturation<FluidSystem>(FluidSystem::nPhaseIdx);
A collection of input/output field names for common physical quantities.
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
std::string permeability() noexcept
I/O name of permeability.
Definition: name.hh:143
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Adds I/O fields specific to the three-phase model.
Definition: porousmediumflow/3p/iofields.hh:37
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/3p/iofields.hh:40
static std::string primaryVariableName(int pvIdx, int state=0)
Definition: porousmediumflow/3p/iofields.hh:63