Volume variables for the single-phase Navier-Stokes model. More...
#include <dumux/freeflow/navierstokes/mass/1p/volumevariables.hh>
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... | |
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 FluidState & | fluidState () 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 PrimaryVariables & | priVars () 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 ¶mCache) |
Protected Member Functions | |
const NavierStokesMassOnePVolumeVariables< Traits > & | asImp_ () const |
NavierStokesMassOnePVolumeVariables< Traits > & | asImp_ () |
Protected Attributes | |
FluidState | fluidState_ |
PrimaryVariables | priVars_ |
Scalar | extrusionFactor_ |
Scalar | lambdaEff_ |
using Dumux::NavierStokesMassOnePVolumeVariables< Traits >::FluidState = typename Traits::FluidState |
Export the fluid state type.
using Dumux::NavierStokesMassOnePVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem |
Export the underlying fluid system.
|
inherited |
using Dumux::NavierStokesMassOnePVolumeVariables< Traits >::Indices = typename Traits::ModelTraits::Indices |
export the indices type
using Dumux::NavierStokesMassOnePVolumeVariables< Traits >::PrimaryVariables = typename Traits::PrimaryVariables |
export the type used for the primary variables
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
Sets complete fluid state.
elemSol | A vector containing all primary variables connected to the element |
problem | The object specifying the problem which ought to be simulated |
element | An element which contains part of the control volume |
scv | The sub-control volume |
fluidState | A container with the current (physical) state of the fluid |
|
inline |
Returns the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume.
|
inlineinherited |
Returns the effective thermal conductivity \(\mathrm{[W/(m*K)]}\) in the sub-control volume. Specific to equilibirum models (case fullThermalEquilibrium).
|
inlinestaticinherited |
The phase enthalpy is zero for isothermal models This is needed for completing the fluid state
|
inlineinherited |
Returns the total enthalpy of a phase in the sub-control volume.
phaseIdx | The phase index |
|
inlineinherited |
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.
|
inline |
Returns the fluid state of the control volume.
|
inlineinherited |
Returns the thermal conductivity \(\mathrm{[W/(m*K)]}\) of a fluid phase in the sub-control volume.
|
inlineinherited |
Returns the temperature at a given sub-control volume.
elemSol | A vector containing all primary variables connected to the element |
problem | The object specifying the problem which ought to be simulated |
element | An element which contains part of the control volume |
scv | The sub-control volume |
|
inlineinherited |
Returns the total internal energy of a phase in the sub-control volume.
phaseIdx | The phase index |
|
inlinestaticconstexpr |
Return number of components considered by the model.
|
inlinestaticconstexpr |
Return number of phases considered by the model.
|
inline |
Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume.
|
inlineinherited |
Return a component of primary variable vector.
pvIdx | The index of the primary variable of interest |
|
inlineinherited |
Return the primary variable vector.
|
inline |
Returns the temperature \(\mathrm{[K]}\) inside the sub-control volume.
Note that we assume thermodynamic equilibrium, i.e. the temperatures of the rock matrix and of all fluid phases are identical.
|
inlineinherited |
Returns the temperature of a fluid phase assuming thermal nonequilibrium the sub-control volume.
phaseIdx | The local index of the phases |
|
inline |
Update all quantities for a given control volume.
elemSol | A vector containing all primary variables connected to the element |
problem | The object specifying the problem which ought to be simulated |
element | An element which contains part of the control volume |
scv | The sub-control volume |
|
inlineinherited |
The effective thermal conductivity is zero for isothermal models.
|
inline |
Returns the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume.
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |