13#ifndef DUMUX_RICHARDSEXTENDED_IO_FIELDS_HH
14#define DUMUX_RICHARDSEXTENDED_IO_FIELDS_HH
29 template <
class OutputModule>
32 using VV =
typename OutputModule::VolumeVariables;
33 using FS =
typename VV::FluidSystem;
37 out.addVolumeVariable([](
const auto& v){
return v.moleFraction(FS::phase1Idx, FS::comp0Idx); },
38 IOName::moleFraction<FS>(FS::phase1Idx, FS::comp0Idx));
39 out.addVolumeVariable([](
const auto& v){
return v.priVars().state(); },
44 template<
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
47 using Indices =
typename ModelTraits::Indices;
49 if (state == Indices::gasPhaseOnly)
50 return IOName::moleFraction<FluidSystem>(FluidSystem::phase1Idx, FluidSystem::phase0Idx);
52 return IOName::pressure<FluidSystem>(FluidSystem::phase0Idx);
Adds I/O fields specific to the extended Richards model.
Definition: porousmediumflow/richardsextended/iofields.hh:26
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/richardsextended/iofields.hh:30
Adds I/O fields specific to the Richards model.
Definition: porousmediumflow/richards/iofields.hh:27
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/richards/iofields.hh:30
A collection of input/output field names for common physical quantities.
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:135
static std::string primaryVariableName(int pvIdx, int state)
Definition: porousmediumflow/richardsextended/iofields.hh:45
Adds I/O fields specific to the Richards model.