13#ifndef DUMUX_TWOP_ONEC_IO_FIELDS_HH
14#define DUMUX_TWOP_ONEC_IO_FIELDS_HH
28 template <
class OutputModule>
35 out.addVolumeVariable([](
const auto& v){
return v.priVars().state(); },
39 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
42 using Indices =
typename ModelTraits::Indices;
45 return (pvIdx == 0) ? IOName::pressure<FluidSystem>(FluidSystem::phase0Idx) :
46 (state == Indices::twoPhases)
47 ? IOName::saturation<FluidSystem>(FluidSystem::phase1Idx)
50 return (pvIdx == 0) ? IOName::pressure<FluidSystem>(FluidSystem::phase1Idx) :
51 (state == Indices::twoPhases)
52 ? IOName::saturation<FluidSystem>(FluidSystem::phase0Idx)
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/2p/iofields.hh:30
Adds I/O fields specific to two-phase one-component model.
Definition: porousmediumflow/2p1c/iofields.hh:26
static std::string primaryVariableName(int pvIdx, int state)
Definition: porousmediumflow/2p1c/iofields.hh:40
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/2p1c/iofields.hh:29
@ p0s1
first phase pressure and second phase saturation as primary variables
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:39
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:135
Adds I/O fields specific to the two-phase model.