25#ifndef DUMUX_MPNC_IO_FIELDS_HH
26#define DUMUX_MPNC_IO_FIELDS_HH
39 template <
class OutputModule>
42 using VolumeVariables =
typename OutputModule::VolumeVariables;
43 using FluidSystem =
typename VolumeVariables::FluidSystem;
45 for (
int i = 0; i < VolumeVariables::numFluidPhases(); ++i)
47 out.addVolumeVariable([i](
const auto& v){
return v.saturation(i); },
49 out.addVolumeVariable([i](
const auto& v){
return v.pressure(i); },
51 out.addVolumeVariable([i](
const auto& v){
return v.density(i); },
53 out.addVolumeVariable([i](
const auto& v){
return v.mobility(i); },
56 for (
int j = 0; j < VolumeVariables::numFluidComponents(); ++j)
57 out.addVolumeVariable([i,j](
const auto& v){ return v.moleFraction(i,j); },
61 for (
int j = 0; j < VolumeVariables::numFluidComponents(); ++j)
62 out.addVolumeVariable([j](
const auto& v){ return v.fugacity(j); },
63 "fugacity^"+ FluidSystem::componentName(j));
66 out.addVolumeVariable([](
const auto& v){
return v.porosity(); },
A collection of input/output field names for common physical quantities.
make the local view function available whenever we use the grid geometry
Definition adapt.hh:29
std::string pressure() noexcept
I/O name of pressure for singlephase systems.
Definition name.hh:38
std::string moleFraction(int phaseIdx, int compIdx) noexcept
I/O name of mole fraction.
Definition name.hh:110
std::string density() noexcept
I/O name of density for singlephase systems.
Definition name.hh:69
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 mpnc model.
Definition dumux/porousmediumflow/mpnc/iofields.hh:37
static void initOutputModule(OutputModule &out)
Definition dumux/porousmediumflow/mpnc/iofields.hh:40