13#ifndef DUMUX_FREEFLOW_NAVIERSTOKES_MASS_1P_VOLUME_VARIABLES_HH 
   14#define DUMUX_FREEFLOW_NAVIERSTOKES_MASS_1P_VOLUME_VARIABLES_HH 
   25template <
class Traits>
 
   32    using Scalar = 
typename Traits::PrimaryVariables::value_type;
 
   38    using Indices = 
typename Traits::ModelTraits::Indices;
 
   45    static constexpr int numFluidPhases() { 
return Traits::ModelTraits::numFluidPhases(); }
 
   58    template<
class ElementSolution, 
class Problem, 
class Element, 
class SubControlVolume>
 
   59    void update(
const ElementSolution& elemSol,
 
   60                const Problem& problem,
 
   61                const Element& element,
 
   62                const SubControlVolume& scv)
 
 
   79    template<
class ElemSol, 
class Problem, 
class Element, 
class Scv>
 
   81                            const Problem& problem,
 
   82                            const Element& element,
 
   88        const auto& 
priVars = elemSol[scv.localDofIndex()];
 
   96        typename FluidSystem::ParameterCache paramCache;
 
   99        Scalar value = FluidSystem::density(
fluidState, paramCache, 0);
 
  102        value = FluidSystem::viscosity(
fluidState, paramCache, 0);
 
 
 
The isothermal base class.
Definition freeflow/navierstokes/energy/volumevariables.hh:47
Scalar getTemperature(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv) const
Returns the temperature at a given sub-control volume.
Definition freeflow/navierstokes/energy/volumevariables.hh:66
void updateEffectiveThermalConductivity()
Definition freeflow/navierstokes/energy/volumevariables.hh:79
Scalar enthalpy(const int phaseIdx=0) const
Definition freeflow/navierstokes/energy/volumevariables.hh:105
Volume variables for the single-phase Navier-Stokes model.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:29
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:59
typename NITraits::ModelTraits::Indices Indices
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:38
FluidState fluidState_
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:145
const FluidState & fluidState() const
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:120
void completeFluidState(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState)
Sets complete fluid state.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:80
Scalar viscosity(int phaseIdx=0) const
Returns the dynamic viscosity  of the fluid within the control volume.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:127
typename NITraits::PrimaryVariables PrimaryVariables
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:36
typename NITraits::FluidState FluidState
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:42
Scalar density(int phaseIdx=0) const
Returns the mass density  of a given phase within the control volume.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:134
static constexpr int numFluidPhases()
Return number of phases considered by the model.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:45
typename NITraits::FluidSystem FluidSystem
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:40
Scalar pressure(int phaseIdx=0) const
Returns the effective pressure  of a given phase within the control volume.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:114
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:47
Scalar temperature() const
Returns the temperature  inside the sub-control volume.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:141
Volume variables for the single-phase Navier-Stokes model.
Definition scalarvolumevariables.hh:24
const PrimaryVariables & priVars() const
Definition scalarvolumevariables.hh:84
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition scalarvolumevariables.hh:52
Base class for the model specific class which provides access to all volume averaged quantities.
Volume variables for the single-phase Navier-Stokes model.