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); },
36 IOName::saturation<FS>(FS::phase0Idx));
37 out.addVolumeVariable([](
const auto& v){
return v.saturation(FS::phase1Idx); },
38 IOName::saturation<FS>(FS::phase1Idx));
39 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase0Idx); },
40 IOName::pressure<FS>(FS::phase0Idx));
41 out.addVolumeVariable([](
const auto& v){
return v.pressure(FS::phase1Idx); },
42 IOName::pressure<FS>(FS::phase1Idx));
43 out.addVolumeVariable([](
const auto& v){
return v.capillaryPressure(); },
45 out.addVolumeVariable([](
const auto& v){
return v.density(FS::phase0Idx); },
46 IOName::density<FS>(FS::phase0Idx));
47 out.addVolumeVariable([](
const auto& v){
return v.mobility(FS::phase0Idx); },
48 IOName::mobility<FS>(FS::phase0Idx));
49 out.addVolumeVariable([](
const auto& v){
return v.relativePermeability(FS::phase0Idx); },
50 IOName::relativePermeability<FS>(FS::phase0Idx));
51 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
54 static const bool gravity = getParamFromGroup<bool>(out.paramGroup(),
"Problem.EnableGravity");
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>
66 return IOName::pressure<FluidSystem>(FluidSystem::phase0Idx);
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
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 pressureHead() noexcept
I/O name of pressure head.
Definition: name.hh:139
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.