13#ifndef DUMUX_RICHARDS_IO_FIELDS_HH
14#define DUMUX_RICHARDS_IO_FIELDS_HH
29 template <
class OutputModule>
32 using VV =
typename OutputModule::VolumeVariables;
33 using FS =
typename VV::FluidSystem;
35 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase0Idx); },
37 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase1Idx); },
39 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase0Idx); },
41 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase1Idx); },
43 out.addVolumeVariable([](
const auto& v){
return v.capillaryPressure(); },
45 out.addVolumeVariable([](
const auto& v){
return v.density(FS::phase0Idx); },
47 out.addVolumeVariable([](
const auto& v){
return v.mobility(FS::phase0Idx); },
49 out.addVolumeVariable([](
const auto& v){
return v.relativePermeability(FS::phase0Idx); },
51 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
57 out.addVolumeVariable([](
const auto& v){
return v.pressureHead(FS::phase0Idx); },
59 out.addVolumeVariable([](
const auto& v){
return v.waterContent(FS::phase0Idx); },
63 template<
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
Adds I/O fields specific to the Richards model.
Definition porousmediumflow/richards/iofields.hh:27
static std::string primaryVariableName(int pvIdx, int state)
Definition porousmediumflow/richards/iofields.hh:64
static void initOutputModule(OutputModule &out)
Definition porousmediumflow/richards/iofields.hh:30
T getParamFromGroup(Args &&... args)
A free function to get a parameter from the parameter tree singleton with a model group.
Definition parameters.hh:149
A collection of input/output field names for common physical quantities.
std::string waterContent() noexcept
I/O name of water content.
Definition name.hh:143
std::string capillaryPressure() noexcept
I/O name of capillary pressure.
Definition name.hh:123
std::string pressure() noexcept
I/O name of pressure for singlephase systems.
Definition name.hh:26
std::string relativePermeability() noexcept
I/O name of relative permeability for singlephase systems.
Definition name.hh:84
std::string density() noexcept
I/O name of density for singlephase systems.
Definition name.hh:57
std::string pressureHead() noexcept
I/O name of pressure head.
Definition name.hh:139
std::string saturation() noexcept
I/O name of saturation for singlephase systems.
Definition name.hh:35
std::string mobility() noexcept
I/O name of mobility for singlephase systems.
Definition name.hh:93
std::string porosity() noexcept
I/O name of porosity.
Definition name.hh:127
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Type traits to be used with matrix types.