version 3.10-dev
Dumux::NavierStokesMassOnePVolumeVariables< Traits > Class Template Reference

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

#include <dumux/freeflow/navierstokes/mass/1p/volumevariables.hh>

Inheritance diagram for Dumux::NavierStokesMassOnePVolumeVariables< Traits >:

Public Types

using PrimaryVariables = typename Traits::PrimaryVariables
 export the type used for the primary variables More...
 
using Indices = typename Traits::ModelTraits::Indices
 export the indices type More...
 
using FluidSystem = typename Traits::FluidSystem
 Export the underlying fluid system. More...
 
using FluidState = typename Traits::FluidState
 Export the fluid state type. More...
 
using HeatConductionType = typename Detail::FreeFlowHeatCondType< enableEnergyBalance, Traits >::type
 

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...
 
template<class ElemSol , class Problem , class Element , class Scv >
void completeFluidState (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState)
 Sets complete fluid state. More...
 
Scalar pressure (int phaseIdx=0) const
 Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. More...
 
const FluidStatefluidState () const
 Returns the fluid state of the control volume. More...
 
Scalar viscosity (int phaseIdx=0) const
 Returns the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More...
 
Scalar density (int phaseIdx=0) const
 Returns the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume. More...
 
Scalar temperature () const
 Returns the temperature \(\mathrm{[K]}\) inside the sub-control volume. More...
 
Scalar extrusionFactor () const
 Return how much the sub-control volume is extruded. More...
 
Scalar priVar (const int pvIdx) const
 Return a component of primary variable vector. More...
 
const PrimaryVariablespriVars () const
 Return the primary variable vector. More...
 
Scalar getTemperature (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv) const
 Returns the temperature at a given sub-control volume. More...
 
void updateEffectiveThermalConductivity ()
 The effective thermal conductivity is zero for isothermal models. More...
 
Scalar internalEnergy (const int phaseIdx=0) const
 Returns the total internal energy of a phase in the sub-control volume. More...
 
Scalar enthalpy (const int phaseIdx=0) const
 Returns the total enthalpy of a phase in the sub-control volume. More...
 
Scalar temperatureFluid (const int phaseIdx=0) const
 Returns the temperature of a fluid phase assuming thermal nonequilibrium the sub-control volume. More...
 
Scalar fluidThermalConductivity (const int phaseIdx=0) const
 Returns the thermal conductivity \(\mathrm{[W/(m*K)]}\) of a fluid phase in the sub-control volume. More...
 
Scalar effectiveThermalConductivity (const int phaseIdx=0) const
 Returns the effective thermal conductivity \(\mathrm{[W/(m*K)]}\) in the sub-control volume. Specific to equilibirum models (case fullThermalEquilibrium). More...
 

Static Public Member Functions

static constexpr int numFluidPhases ()
 Return number of phases considered by the model. More...
 
static constexpr int numFluidComponents ()
 Return number of components considered by the model. More...
 
static Scalar enthalpy (const FluidState &fluidState, const ParameterCache &paramCache)
 

Protected Member Functions

const NavierStokesMassOnePVolumeVariables< Traits > & asImp_ () const
 
NavierStokesMassOnePVolumeVariables< Traits > & asImp_ ()
 

Protected Attributes

FluidState fluidState_
 
PrimaryVariables priVars_
 
Scalar extrusionFactor_
 
Scalar lambdaEff_
 

Member Typedef Documentation

◆ FluidState

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

◆ FluidSystem

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

◆ HeatConductionType

using Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::HeatConductionType = typename Detail::FreeFlowHeatCondType<enableEnergyBalance, Traits>::type
inherited

◆ Indices

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

◆ PrimaryVariables

template<class Traits >
using Dumux::NavierStokesMassOnePVolumeVariables< Traits >::PrimaryVariables = typename Traits::PrimaryVariables

Member Function Documentation

◆ asImp_() [1/2]

NavierStokesMassOnePVolumeVariables< Traits > & Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::asImp_ ( )
inlineprotectedinherited

◆ asImp_() [2/2]

const NavierStokesMassOnePVolumeVariables< Traits > & Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::asImp_ ( ) const
inlineprotectedinherited

◆ completeFluidState()

template<class Traits >
template<class ElemSol , class Problem , class Element , class Scv >
void Dumux::NavierStokesMassOnePVolumeVariables< Traits >::completeFluidState ( const ElemSol &  elemSol,
const Problem &  problem,
const Element &  element,
const Scv &  scv,
FluidState fluidState 
)
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
fluidStateA container with the current (physical) state of the fluid

◆ density()

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

◆ effectiveThermalConductivity()

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::effectiveThermalConductivity ( const int  phaseIdx = 0) const
inlineinherited

◆ enthalpy() [1/2]

static Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::enthalpy ( const FluidState fluidState,
const ParameterCache &  paramCache 
)
inlinestaticinherited

The phase enthalpy is zero for isothermal models This is needed for completing the fluid state

◆ enthalpy() [2/2]

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::enthalpy ( const int  phaseIdx = 0) const
inlineinherited
Parameters
phaseIdxThe phase index

◆ extrusionFactor()

template<class Traits >
Scalar Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::extrusionFactor ( ) const
inlineinherited

This means the factor by which a lower-dimensional (1D or 2D) entity needs to be expanded to get a full dimensional cell. The default is 1.0 which means that 1D problems are actually thought as pipes with a cross section of 1 m^2 and 2D problems are assumed to extend 1 m to the back.

◆ fluidState()

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

◆ fluidThermalConductivity()

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::fluidThermalConductivity ( const int  phaseIdx = 0) const
inlineinherited

◆ getTemperature()

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::getTemperature ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv 
) const
inlineinherited
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

◆ internalEnergy()

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::internalEnergy ( const int  phaseIdx = 0) const
inlineinherited
Parameters
phaseIdxThe phase index

◆ numFluidComponents()

template<class Traits >
static constexpr int Dumux::NavierStokesMassOnePVolumeVariables< Traits >::numFluidComponents ( )
inlinestaticconstexpr

◆ numFluidPhases()

template<class Traits >
static constexpr int Dumux::NavierStokesMassOnePVolumeVariables< Traits >::numFluidPhases ( )
inlinestaticconstexpr

◆ pressure()

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

◆ priVar()

template<class Traits >
Scalar Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::priVar ( const int  pvIdx) const
inlineinherited
Parameters
pvIdxThe index of the primary variable of interest

◆ priVars()

template<class Traits >
const PrimaryVariables & Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::priVars ( ) const
inlineinherited

◆ temperature()

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

◆ temperatureFluid()

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::temperatureFluid ( const int  phaseIdx = 0) const
inlineinherited
Parameters
phaseIdxThe local index of the phases

◆ update()

template<class Traits >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void Dumux::NavierStokesMassOnePVolumeVariables< 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

◆ updateEffectiveThermalConductivity()

void Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::updateEffectiveThermalConductivity ( )
inlineinherited

◆ viscosity()

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

Member Data Documentation

◆ extrusionFactor_

template<class Traits >
Scalar Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::extrusionFactor_
protectedinherited

◆ fluidState_

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

◆ lambdaEff_

Scalar Dumux::NavierStokesEnergyVolumeVariables< Traits, NavierStokesMassOnePVolumeVariables< Traits > >::lambdaEff_
protectedinherited

◆ priVars_

template<class Traits >
PrimaryVariables Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::priVars_
protectedinherited

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