25#ifndef DUMUX_RICHARDS_IO_FIELDS_HH
26#define DUMUX_RICHARDS_IO_FIELDS_HH
37template <
bool enableWaterDiffusionInAir>
41 template <
class OutputModule>
44 using VV =
typename OutputModule::VolumeVariables;
45 using FS =
typename VV::FluidSystem;
47 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase0Idx); },
48 IOName::saturation<FS>(FS::phase0Idx));
49 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase1Idx); },
50 IOName::saturation<FS>(FS::phase1Idx));
51 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase0Idx); },
52 IOName::pressure<FS>(FS::phase0Idx));
53 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase1Idx); },
54 IOName::pressure<FS>(FS::phase1Idx));
55 out.addVolumeVariable([](
const auto& v){
return v.capillaryPressure(); },
57 out.addVolumeVariable([](
const auto& v){
return v.density(FS::phase0Idx); },
58 IOName::density<FS>(FS::phase0Idx));
59 out.addVolumeVariable([](
const auto& v){
return v.mobility(FS::phase0Idx); },
60 IOName::mobility<FS>(FS::phase0Idx));
61 out.addVolumeVariable([](
const auto& v){
return v.relativePermeability(FS::phase0Idx); },
62 IOName::relativePermeability<FS>(FS::phase0Idx));
63 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
66 static const bool gravity = getParamFromGroup<bool>(out.paramGroup(),
"Problem.EnableGravity");
69 out.addVolumeVariable([](
const auto& v){
return v.pressureHead(FS::phase0Idx); },
71 if constexpr (enableWaterDiffusionInAir)
72 out.addVolumeVariable([](
const auto& v){
return v.moleFraction(FS::phase1Idx, FS::comp0Idx); },
73 IOName::moleFraction<FS>(FS::phase1Idx, FS::comp0Idx));
74 out.addVolumeVariable([](
const auto& v){
return v.waterContent(FS::phase0Idx); },
77 out.addVolumeVariable([](
const auto& v){
return v.priVars().state(); },
81 template<
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
84 using Indices =
typename ModelTraits::Indices;
86 if (state == Indices::gasPhaseOnly)
87 return IOName::moleFraction<FluidSystem>(FluidSystem::phase1Idx, FluidSystem::phase0Idx);
89 return IOName::pressure<FluidSystem>(FluidSystem::phase0Idx);
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
A collection of input/output field names for common physical quantities.
std::string waterContent() noexcept
I/O name of water content.
Definition: name.hh:155
std::string capillaryPressure() noexcept
I/O name of capillary pressure.
Definition: name.hh:135
std::string phasePresence() noexcept
I/O name of phase presence.
Definition: name.hh:147
std::string pressureHead() noexcept
I/O name of pressure head.
Definition: name.hh:151
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Adds I/O fields specific to the Richards model.
Definition: porousmediumflow/richards/iofields.hh:39
static std::string primaryVariableName(int pvIdx, int state)
Definition: porousmediumflow/richards/iofields.hh:82
static void initOutputModule(OutputModule &out)
Definition: porousmediumflow/richards/iofields.hh:42