12#ifndef DUMUX_NAVIERSTOKES_MASS_1PNC_IO_FIELDS_HH
13#define DUMUX_NAVIERSTOKES_MASS_1PNC_IO_FIELDS_HH
23template<
class BaseOutputFields>
27 template <
class OutputModule>
30 BaseOutputFields::initOutputModule(out);
35 using FluidSystem =
typename OutputModule::VolumeVariables::FluidSystem;
36 for (
int j = 0; j < FluidSystem::numComponents; ++j)
41 if (j != FluidSystem::getMainComponent(0))
43 out.addVolumeVariable([j](
const auto& v){
return v.diffusionCoefficient(0,0, j); },
"D^" + FluidSystem::componentName(j) +
"_" + FluidSystem::phaseName(0));
49 template <
class ModelTraits,
class Flu
idSystem>
53 if (pvIdx > 0 && pvIdx < ModelTraits::numFluidComponents() + 1)
61 template<
class VolumeVariables>
64 return volVars.effectiveDiffusionCoefficient(phaseIdx, VolumeVariables::FluidSystem::getMainComponent(phaseIdx), compIdx);
A collection of input/output field names for common physical quantities.
std::string molarDensity() noexcept
I/O name of molar density for singlephase systems.
Definition name.hh:75
std::string moleFraction(int phaseIdx, int compIdx) noexcept
I/O name of mole fraction.
Definition name.hh:98
std::string massFraction(int phaseIdx, int compIdx) noexcept
I/O name of mass fraction.
Definition name.hh:103
Adds I/O fields specific to the FreeflowNC model.
Definition freeflow/navierstokes/mass/1pnc/iofields.hh:25
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition freeflow/navierstokes/mass/1pnc/iofields.hh:50
static void initOutputModule(OutputModule &out)
Initialize the FreeflowNC specific output fields.
Definition freeflow/navierstokes/mass/1pnc/iofields.hh:28
static double getEffectiveDiffusionCoefficient_(const VolumeVariables &volVars, const int phaseIdx, const int compIdx)
Definition freeflow/navierstokes/mass/1pnc/iofields.hh:62