25#ifndef DUMUX_NAVIERSTOKES_VOLUME_VARIABLES_HH
26#define DUMUX_NAVIERSTOKES_VOLUME_VARIABLES_HH
36template <
class Traits>
42 using Scalar =
typename Traits::PrimaryVariables::value_type;
61 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
62 void update(
const ElementSolution& elemSol,
63 const Problem& problem,
64 const Element& element,
65 const SubControlVolume& scv)
67 ParentType::update(elemSol, problem, element, scv);
74 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
76 const Problem& problem,
77 const Element& element,
78 const SubControlVolume& scv,
84 fluidState.setPressure(0, elemSol[0][Indices::pressureIdx]);
91 typename FluidSystem::ParameterCache paramCache;
101 value = ParentType::enthalpy(
fluidState, paramCache);
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Property tag Indices
Definition: porousmediumflow/sequential/properties.hh:59
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string viscosity(int phaseIdx) noexcept
I/O name of viscosity for multiphase systems.
Definition: name.hh:74
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Volume variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/volumevariables.hh:38
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/navierstokes/volumevariables.hh:50
FluidState fluidState_
Definition: freeflow/navierstokes/volumevariables.hh:159
Scalar pressure(int phaseIdx=0) const
Return the effective pressure of a given phase within the control volume.
Definition: freeflow/navierstokes/volumevariables.hh:109
Scalar molarMass(int phaseIdx=0) const
Returns the molar mass of a given phase within the control volume.
Definition: freeflow/navierstokes/volumevariables.hh:133
Scalar density(int phaseIdx=0) const
Return the mass density of a given phase within the control volume.
Definition: freeflow/navierstokes/volumevariables.hh:116
Scalar effectiveViscosity() const
Return the effective dynamic viscosity of the fluid within the control volume.
Definition: freeflow/navierstokes/volumevariables.hh:149
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/volumevariables.hh:62
static void completeFluidState(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv, FluidState &fluidState)
Update the fluid state.
Definition: freeflow/navierstokes/volumevariables.hh:75
typename Traits::FluidState FluidState
export the fluid state type
Definition: freeflow/navierstokes/volumevariables.hh:48
const FluidState & fluidState() const
Return the fluid state of the control volume.
Definition: freeflow/navierstokes/volumevariables.hh:155
Scalar temperature() const
Return temperature inside the sub-control volume.
Definition: freeflow/navierstokes/volumevariables.hh:126
Scalar viscosity(int phaseIdx=0) const
Return the dynamic viscosity of the fluid within the control volume.
Definition: freeflow/navierstokes/volumevariables.hh:142
typename Traits::FluidSystem FluidSystem
export the underlying fluid system
Definition: freeflow/navierstokes/volumevariables.hh:46
Definition: freeflow/volumevariables.hh:34