25#ifndef DUMUX_RICHARDS_IO_FIELDS_HH
26#define DUMUX_RICHARDS_IO_FIELDS_HH
38template <
bool enableWaterDiffusionInAir>
42 template <
class OutputModule>
45 using VV =
typename OutputModule::VolumeVariables;
46 using FS =
typename VV::FluidSystem;
48 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase0Idx); },
50 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase1Idx); },
52 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase0Idx); },
54 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase1Idx); },
56 out.addVolumeVariable([](
const auto& v){
return v.capillaryPressure(); },
58 out.addVolumeVariable([](
const auto& v){
return v.density(FS::phase0Idx); },
60 out.addVolumeVariable([](
const auto& v){
return v.mobility(FS::phase0Idx); },
62 out.addVolumeVariable([](
const auto& v){
return v.relativePermeability(FS::phase0Idx); },
64 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
70 out.addVolumeVariable([](
const auto& v){
return v.pressureHead(FS::phase0Idx); },
72 if constexpr (enableWaterDiffusionInAir)
73 out.addVolumeVariable([](
const auto& v){ return v.moleFraction(FS::phase1Idx, FS::comp0Idx); },
75 out.addVolumeVariable([](
const auto& v){
return v.waterContent(FS::phase0Idx); },
79 out.addVolumeVariable([](
const auto& v){ return v.priVars().state(); },
83 template<
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
86 using Indices =
typename ModelTraits::Indices;
88 if (state == Indices::gasPhaseOnly)
Type traits to be used with matrix types.
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
A collection of input/output field names for common physical quantities.
T getParamFromGroup(Args &&... args)
A free function to get a parameter from the parameter tree singleton with a model group.
Definition parameters.hh:161
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition adapt.hh:29
constexpr bool priVarsHaveState()
Definition state.hh:44
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 pressure() noexcept
I/O name of pressure for singlephase systems.
Definition name.hh:38
std::string phasePresence() noexcept
I/O name of phase presence.
Definition name.hh:147
std::string moleFraction(int phaseIdx, int compIdx) noexcept
I/O name of mole fraction.
Definition name.hh:110
std::string relativePermeability() noexcept
I/O name of relative permeability for singlephase systems.
Definition name.hh:96
std::string density() noexcept
I/O name of density for singlephase systems.
Definition name.hh:69
std::string pressureHead() noexcept
I/O name of pressure head.
Definition name.hh:151
std::string saturation() noexcept
I/O name of saturation for singlephase systems.
Definition name.hh:47
std::string mobility() noexcept
I/O name of mobility for singlephase systems.
Definition name.hh:105
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:40
static std::string primaryVariableName(int pvIdx, int state)
Definition porousmediumflow/richards/iofields.hh:84
static void initOutputModule(OutputModule &out)
Definition porousmediumflow/richards/iofields.hh:43