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); },
48 IOName::saturation<FluidSystem>(i));
49 out.addVolumeVariable([i](
const auto& v){
return v.pressure(i); },
50 IOName::pressure<FluidSystem>(i));
51 out.addVolumeVariable([i](
const auto& v){
return v.density(i); },
52 IOName::density<FluidSystem>(i));
53 out.addVolumeVariable([i](
const auto& v){
return v.mobility(i); },
54 IOName::mobility<FluidSystem>(i));
56 for (
int j = 0; j < VolumeVariables::numFluidComponents(); ++j)
57 out.addVolumeVariable([i,j](
const auto& v){
return v.moleFraction(i,j); },
58 IOName::moleFraction<FluidSystem>(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 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