13#ifndef DUMUX_THREEP_IO_FIELDS_HH
14#define DUMUX_THREEP_IO_FIELDS_HH
27 template <
class OutputModule>
30 using VolumeVariables =
typename OutputModule::VolumeVariables;
31 using FluidSystem =
typename VolumeVariables::FluidSystem;
34 for (
int phaseIdx = 0; phaseIdx < VolumeVariables::numFluidPhases(); ++phaseIdx)
36 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.saturation(phaseIdx); },
37 IOName::saturation<FluidSystem>(phaseIdx));
38 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.pressure(phaseIdx); },
39 IOName::pressure<FluidSystem>(phaseIdx));
40 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.density(phaseIdx); },
41 IOName::density<FluidSystem>(phaseIdx));
44 out.addVolumeVariable( [](
const auto& v){
return v.porosity(); },
46 out.addVolumeVariable( [](
const auto& v){
return v.permeability(); },
50 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
55 case 0:
return IOName::pressure<FluidSystem>(FluidSystem::gPhaseIdx);
56 case 1:
return IOName::saturation<FluidSystem>(FluidSystem::wPhaseIdx);
57 default:
return IOName::saturation<FluidSystem>(FluidSystem::nPhaseIdx);
Adds I/O fields specific to the three-phase model.
Definition: porousmediumflow/3p/iofields.hh:25
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/3p/iofields.hh:28
static std::string primaryVariableName(int pvIdx, int state=0)
Definition: porousmediumflow/3p/iofields.hh:51
A collection of input/output field names for common physical quantities.
std::string permeability() noexcept
I/O name of permeability.
Definition: name.hh:131
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:127