version 3.8
Dumux::NavierStokesVolumeVariables< Traits > Class Template Reference

Volume variables for the single-phase Navier-Stokes model.

#include <dumux/freeflow/navierstokes/volumevariables.hh>

Inheritance diagram for Dumux::NavierStokesVolumeVariables< Traits >:

Public Types

using FluidSystem = typename Traits::FluidSystem
 export the underlying fluid system More...
 
using FluidState = typename Traits::FluidState
 export the fluid state type More...
 
using Indices = typename Traits::ModelTraits::Indices
 export the indices type More...
 

Public Member Functions

template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void update (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
 Update all quantities for a given control volume. More...
 
Scalar pressure (int phaseIdx=0) const
 Return the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. More...
 
Scalar density (int phaseIdx=0) const
 Return the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume. More...
 
Scalar temperature () const
 Return temperature \(\mathrm{[K]}\) inside the sub-control volume. More...
 
Scalar molarMass (int phaseIdx=0) const
 Returns the molar mass of a given phase within the control volume. More...
 
Scalar viscosity (int phaseIdx=0) const
 Return the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More...
 
Scalar effectiveViscosity () const
 Return the effective dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More...
 
const FluidStatefluidState () const
 Return the fluid state of the control volume. More...
 

Static Public Member Functions

template<class ElementSolution , class Problem , class Element , class SubControlVolume >
static void completeFluidState (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv, FluidState &fluidState)
 Update the fluid state. More...
 

Protected Attributes

FluidState fluidState_
 

Member Typedef Documentation

◆ FluidState

template<class Traits >
using Dumux::NavierStokesVolumeVariables< Traits >::FluidState = typename Traits::FluidState

◆ FluidSystem

template<class Traits >
using Dumux::NavierStokesVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem

◆ Indices

template<class Traits >
using Dumux::NavierStokesVolumeVariables< Traits >::Indices = typename Traits::ModelTraits::Indices

Member Function Documentation

◆ completeFluidState()

template<class Traits >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
static void Dumux::NavierStokesVolumeVariables< Traits >::completeFluidState ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv,
FluidState fluidState 
)
inlinestatic

◆ density()

template<class Traits >
Scalar Dumux::NavierStokesVolumeVariables< Traits >::density ( int  phaseIdx = 0) const
inline

◆ effectiveViscosity()

template<class Traits >
Scalar Dumux::NavierStokesVolumeVariables< Traits >::effectiveViscosity ( ) const
inline

◆ fluidState()

template<class Traits >
const FluidState & Dumux::NavierStokesVolumeVariables< Traits >::fluidState ( ) const
inline

◆ molarMass()

template<class Traits >
Scalar Dumux::NavierStokesVolumeVariables< Traits >::molarMass ( int  phaseIdx = 0) const
inline

◆ pressure()

template<class Traits >
Scalar Dumux::NavierStokesVolumeVariables< Traits >::pressure ( int  phaseIdx = 0) const
inline

◆ temperature()

template<class Traits >
Scalar Dumux::NavierStokesVolumeVariables< Traits >::temperature ( ) const
inline

Note that we assume thermodynamic equilibrium, i.e. the temperatures of the rock matrix and of all fluid phases are identical.

◆ update()

template<class Traits >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void Dumux::NavierStokesVolumeVariables< Traits >::update ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv 
)
inline
Parameters
elemSolA vector containing all primary variables connected to the element
problemThe object specifying the problem which ought to be simulated
elementAn element which contains part of the control volume
scvThe sub-control volume

◆ viscosity()

template<class Traits >
Scalar Dumux::NavierStokesVolumeVariables< Traits >::viscosity ( int  phaseIdx = 0) const
inline

Member Data Documentation

◆ fluidState_

template<class Traits >
FluidState Dumux::NavierStokesVolumeVariables< Traits >::fluidState_
protected

The documentation for this class was generated from the following file: