12#ifndef DUMUX_FREEFLOW_NAVIERSTOKES_MASS_1P_FLUXVARIABLES_HH
13#define DUMUX_FREEFLOW_NAVIERSTOKES_MASS_1P_FLUXVARIABLES_HH
26template<
class Problem,
29 class ElementVolumeVariables,
30 class ElementFluxVariablesCache,
31 class UpwindScheme = UpwindScheme<typename ProblemTraits<Problem>::GridGeometry>>
36 ElementVolumeVariables,
37 ElementFluxVariablesCache,
43 ElementVolumeVariables,
44 ElementFluxVariablesCache,
47 using VolumeVariables =
typename ElementVolumeVariables::VolumeVariables;
48 using NumEqVector =
typename VolumeVariables::PrimaryVariables;
58 NumEqVector result(0.0);
60 const auto upwinding = [
this](
const auto& term) {
return this->
getAdvectiveFlux(term); };
61 AdvectiveFlux<ModelTraits>::addAdvectiveFlux(result, upwinding);
71 NumEqVector
flux(
int phaseIdx = 0)
const
Helper struct defining the advective fluxes of the single-phase flow multicomponent Navier-Stokes mas...
The flux variables class for the single-phase flow Navier-Stokes model.
Definition: freeflow/navierstokes/mass/1p/fluxvariables.hh:39
NumEqVector flux(int phaseIdx=0) const
Returns all fluxes for the single-phase flow, multi-component Navier-Stokes model: the advective mass...
Definition: freeflow/navierstokes/mass/1p/fluxvariables.hh:71
NumEqVector advectiveFlux(int phaseIdx=0) const
Returns the advective mass flux in kg/s or the advective mole flux in mole/s.
Definition: freeflow/navierstokes/mass/1p/fluxvariables.hh:56
The flux variables base class for scalar quantities balanced in the Navier-Stokes model.
Definition: scalarfluxvariables.hh:39
void addHeatFlux(NumEqVector &flux) const
Adds the energy flux to a given flux vector.
Definition: scalarfluxvariables.hh:127
Scalar getAdvectiveFlux(const FunctionType &upwindTerm) const
Returns the advective flux computed by the respective law.
Definition: scalarfluxvariables.hh:69
Forward declaration of the upwind scheme implementation.
Definition: flux/upwindscheme.hh:22
Base class for the upwind scheme.
UpwindSchemeImpl< GridGeometry, typename GridGeometry::DiscretizationMethod > UpwindScheme
The upwind scheme used for the advective fluxes. This depends on the chosen discretization method.
Definition: flux/upwindscheme.hh:30