24#ifndef DUMUX_FREEFLOW_NAVIERSTOKES_MASS_1P_FLUXVARIABLES_HH
25#define DUMUX_FREEFLOW_NAVIERSTOKES_MASS_1P_FLUXVARIABLES_HH
38template<
class Problem,
41 class ElementVolumeVariables,
42 class ElementFluxVariablesCache,
43 class UpwindScheme = UpwindScheme<typename ProblemTraits<Problem>::GridGeometry>>
48 ElementVolumeVariables,
49 ElementFluxVariablesCache,
55 ElementVolumeVariables,
56 ElementFluxVariablesCache,
59 using VolumeVariables =
typename ElementVolumeVariables::VolumeVariables;
60 using NumEqVector =
typename VolumeVariables::PrimaryVariables;
69 NumEqVector result(0.0);
71 const auto upwinding = [
this](
const auto& term) {
return this->
getAdvectiveFlux(term); };
72 AdvectiveFlux<ModelTraits>::addAdvectiveFlux(result, upwinding);
80 NumEqVector
flux(
int phaseIdx = 0)
const
Helper struct defining the advective fluxes of the single-phase flow Navier-Stokes mass model.
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:42
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
Forward declaration of the upwind scheme implementation.
Definition: flux/upwindscheme.hh:34
The flux variables class for the single-phase flow Navier-Stokes model.
Definition: freeflow/navierstokes/mass/1p/fluxvariables.hh:51
NumEqVector flux(int phaseIdx=0) const
Returns all fluxes for the single-phase flow Navier-Stokes model: the advective mass flux in kg/s and...
Definition: freeflow/navierstokes/mass/1p/fluxvariables.hh:80
NumEqVector advectiveFlux(int phaseIdx=0) const
Returns the advective mass flux in kg/s.
Definition: freeflow/navierstokes/mass/1p/fluxvariables.hh:67
The flux variables base class for scalar quantities balanced in the Navier-Stokes model.
Definition: scalarfluxvariables.hh:51
void addHeatFlux(NumEqVector &flux) const
Adds the energy flux to a given flux vector.
Definition: scalarfluxvariables.hh:139
Scalar getAdvectiveFlux(const FunctionType &upwindTerm) const
Returns the advective flux computed by the respective law.
Definition: scalarfluxvariables.hh:81
Base class for the upwind scheme.