25#ifndef DUMUX_TRACER_IO_FIELDS_HH
26#define DUMUX_TRACER_IO_FIELDS_HH
41 template <
class OutputModule>
44 using VolumeVariables =
typename OutputModule::VolumeVariables;
45 using FluidSystem =
typename VolumeVariables::FluidSystem;
48 for (
int compIdx = 0; compIdx < VolumeVariables::numFluidComponents(); ++compIdx)
50 out.addVolumeVariable([compIdx](
const auto& v){
return v.moleFraction(0, compIdx); },
51 "x^" + FluidSystem::componentName(compIdx));
52 out.addVolumeVariable([compIdx](
const auto& v){
return v.massFraction(0, compIdx); },
53 "X^" + FluidSystem::componentName(compIdx));
55 out.addVolumeVariable( [](
const auto& v){
return v.density(); },
IOName::density());
58 template <
class ModelTraits,
class Flu
idSystem,
class Sol
idSystem =
void>
61 const std::string xString = ModelTraits::useMoles() ?
"x" :
"X";
62 return xString +
"^" + FluidSystem::componentName(pvIdx);
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 density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Adds I/O fields specific to the tracer model.
Definition: dumux/porousmediumflow/tracer/iofields.hh:39
static std::string primaryVariableName(int pvIdx, int state=0)
Definition: dumux/porousmediumflow/tracer/iofields.hh:59
static void initOutputModule(OutputModule &out)
Definition: dumux/porousmediumflow/tracer/iofields.hh:42