25#ifndef DUMUX_TWOP_IO_FIELDS_HH
26#define DUMUX_TWOP_IO_FIELDS_HH
41 template <
class OutputModule>
44 using VolumeVariables =
typename OutputModule::VolumeVariables;
45 using FS =
typename VolumeVariables::FluidSystem;
47 for (
int phaseIdx = 0; phaseIdx < FS::numPhases; ++phaseIdx)
49 out.addVolumeVariable([phaseIdx](
const VolumeVariables& v){
return v.saturation(phaseIdx); },
50 IOName::saturation<FS>(phaseIdx));
51 out.addVolumeVariable([phaseIdx](
const VolumeVariables& v){
return v.pressure(phaseIdx); },
52 IOName::pressure<FS>(phaseIdx));
53 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.density(phaseIdx); },
54 IOName::density<FS>(phaseIdx));
55 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.mobility(phaseIdx); },
56 IOName::mobility<FS>(phaseIdx));
59 out.addVolumeVariable([](
const auto& v){
return v.capillaryPressure(); },
61 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
65 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
69 return pvIdx == 0 ? IOName::pressure<FluidSystem>(FluidSystem::phase0Idx)
70 : IOName::saturation<FluidSystem>(FluidSystem::phase1Idx);
72 return pvIdx == 0 ? IOName::pressure<FluidSystem>(FluidSystem::phase1Idx)
73 : IOName::saturation<FluidSystem>(FluidSystem::phase0Idx);
A collection of input/output field names for common physical quantities.
@ p0s1
first phase pressure and second phase saturation as primary variables
std::string capillaryPressure() noexcept
I/O name of capillary pressure.
Definition: name.hh:135
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Adds I/O fields specific to the two-phase model.
Definition: porousmediumflow/2p/iofields.hh:39
static std::string primaryVariableName(int pvIdx, int state=0)
Definition: porousmediumflow/2p/iofields.hh:66
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/2p/iofields.hh:42
Adaption of the fully implicit scheme to the tracer transport model.