25#ifndef DUMUX_TWOP_ONEC_IO_FIELDS_HH
26#define DUMUX_TWOP_ONEC_IO_FIELDS_HH
40 template <
class OutputModule>
47 out.addVolumeVariable([](
const auto& v){
return v.priVars().state(); },
51 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
54 using Indices =
typename ModelTraits::Indices;
57 return (pvIdx == 0) ? IOName::pressure<FluidSystem>(FluidSystem::phase0Idx) :
58 (state == Indices::twoPhases)
59 ? IOName::saturation<FluidSystem>(FluidSystem::phase1Idx)
62 return (pvIdx == 0) ? IOName::pressure<FluidSystem>(FluidSystem::phase1Idx) :
63 (state == Indices::twoPhases)
64 ? 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 temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:147
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/2p/iofields.hh:42
Adds I/O fields specific to two-phase one-component model.
Definition: porousmediumflow/2p1c/iofields.hh:38
static std::string primaryVariableName(int pvIdx, int state)
Definition: porousmediumflow/2p1c/iofields.hh:52
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/2p1c/iofields.hh:41
Adds I/O fields specific to the two-phase model.