13#ifndef DUMUX_TWOP_IO_FIELDS_HH
14#define DUMUX_TWOP_IO_FIELDS_HH
29 template <
class OutputModule>
32 using VolumeVariables =
typename OutputModule::VolumeVariables;
33 using FS =
typename VolumeVariables::FluidSystem;
35 for (
int phaseIdx = 0; phaseIdx < FS::numPhases; ++phaseIdx)
37 out.addVolumeVariable([phaseIdx](
const VolumeVariables& v){
return v.saturation(phaseIdx); },
39 out.addVolumeVariable([phaseIdx](
const VolumeVariables& v){
return v.pressure(phaseIdx); },
41 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.density(phaseIdx); },
43 out.addVolumeVariable([phaseIdx](
const auto& v){
return v.mobility(phaseIdx); },
47 out.addVolumeVariable([](
const auto& v){
return v.capillaryPressure(); },
49 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
53 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
Adds I/O fields specific to the two-phase model.
Definition porousmediumflow/2p/iofields.hh:27
static std::string primaryVariableName(int pvIdx, int state=0)
Definition porousmediumflow/2p/iofields.hh:54
static void initOutputModule(OutputModule &out)
Definition porousmediumflow/2p/iofields.hh:30
@ p0s1
first phase pressure and second phase saturation as primary variables
A collection of input/output field names for common physical quantities.
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 density() noexcept
I/O name of density for singlephase systems.
Definition name.hh:57
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
Adaption of the fully implicit scheme to the two-phase flow model.