3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits > Class Template Reference

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

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

Inheritance diagram for Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >:

Description

template<class Traits>
class Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >

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

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...
 

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 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...
 

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...
 

Protected Attributes

PrimaryVariables priVars_
 
Scalar extrusionFactor_
 

Member Typedef Documentation

◆ FluidState

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

Export the fluid state type.

◆ FluidSystem

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

Export the underlying fluid system.

◆ Indices

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

export the indices type

◆ PrimaryVariables

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

export the type used for the primary variables

Member Function Documentation

◆ extrusionFactor()

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

Return how much the sub-control volume is extruded.

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.

◆ numFluidComponents()

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

Return number of components considered by the model.

◆ numFluidPhases()

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

Return number of phases considered by the model.

◆ priVar()

template<class Traits >
Scalar Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::priVar ( const int  pvIdx) const
inline

Return a component of primary variable vector.

Parameters
pvIdxThe index of the primary variable of interest

◆ priVars()

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

Return the primary variable vector.

◆ update()

template<class Traits >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void Dumux::NavierStokesScalarConservationModelVolumeVariables< Traits >::update ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv 
)
inline

Update all quantities for a given control volume.

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

Member Data Documentation

◆ extrusionFactor_

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

◆ priVars_

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

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