24#ifndef DUMUX_FREEFLOW_NC_IO_FIELDS_HH
25#define DUMUX_FREEFLOW_NC_IO_FIELDS_HH
36template<
class BaseOutputFields,
bool turbulenceModel = false>
40 template <
class OutputModule>
43 BaseOutputFields::initOutputModule(out);
48 using FluidSystem =
typename OutputModule::VolumeVariables::FluidSystem;
49 for (
int j = 0; j < FluidSystem::numComponents; ++j)
54 if (j != FluidSystem::getMainComponent(0))
56 out.addVolumeVariable([j](
const auto& v){
return v.diffusionCoefficient(0, j); },
"D^" + FluidSystem::componentName(j) +
"_" + FluidSystem::phaseName(0));
60 out.addVolumeVariable([j](
const auto& v){
return v.effectiveDiffusivity(0, j) - v.diffusionCoefficient(0, j); },
"D_t^" + FluidSystem::componentName(j) +
"_" + FluidSystem::phaseName(0));
66 template <
class ModelTraits,
class Flu
idSystem>
70 if (pvIdx > ModelTraits::dim() && pvIdx < ModelTraits::dim() + ModelTraits::numFluidComponents())
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 molarDensity() noexcept
I/O name of molar density for singlephase systems.
Definition name.hh:87
std::string moleFraction(int phaseIdx, int compIdx) noexcept
I/O name of mole fraction.
Definition name.hh:110
std::string massFraction(int phaseIdx, int compIdx) noexcept
I/O name of mass fraction.
Definition name.hh:115
Adds I/O fields specific to the FreeflowNC model.
Definition dumux/freeflow/compositional/iofields.hh:38
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition dumux/freeflow/compositional/iofields.hh:67
static void initOutputModule(OutputModule &out)
Initialize the FreeflowNC specific output fields.
Definition dumux/freeflow/compositional/iofields.hh:41
Adds I/O fields for the Navier-Stokes model.