version 3.11-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
Dumux::TemperatureOverlayFluidState< FluidState > Class Template Reference

This is a fluid state which allows to set the fluid temperatures and takes all other quantities from an other fluid state.

#include <dumux/material/fluidstates/temperatureoverlay.hh>

Public Types

using Scalar = typename FluidState::Scalar
 export the scalar type More...
 

Public Member Functions

 TemperatureOverlayFluidState (const FluidState &fs)
 Constructor. More...
 
 TemperatureOverlayFluidState (Scalar T, const FluidState &fs)
 
 TemperatureOverlayFluidState (const TemperatureOverlayFluidState &fs)=default
 
 TemperatureOverlayFluidState (TemperatureOverlayFluidState &&fs)=default
 
TemperatureOverlayFluidStateoperator= (const TemperatureOverlayFluidState &fs)=default
 
TemperatureOverlayFluidStateoperator= (TemperatureOverlayFluidState &&fs)=default
 
Scalar saturation (int phaseIdx) const
 Returns the saturation Sα of a fluid phase α in []. More...
 
Scalar moleFraction (int phaseIdx, int compIdx) const
 Returns the molar fraction xακ of the component κ in fluid phase α in []. More...
 
Scalar massFraction (int phaseIdx, int compIdx) const
 Returns the mass fraction Xακ of component κ in fluid phase α in []. More...
 
Scalar averageMolarMass (int phaseIdx) const
 The average molar mass Mα of phase α in [kg/mol]. More...
 
Scalar molarity (int phaseIdx, int compIdx) const
 The molar concentration cακ of component κ in fluid phase α in [mol/m3]. More...
 
Scalar fugacity (int phaseIdx, int compIdx) const
 The fugacity fακ of component κ in fluid phase α in [Pa]. More...
 
Scalar fugacityCoefficient (int phaseIdx, int compIdx) const
 The fugacity coefficient Φακ of component κ in fluid phase α in []. More...
 
Scalar molarVolume (int phaseIdx) const
 The molar volume vmol,α of a fluid phase α in [m3/mol]. More...
 
Scalar density (int phaseIdx) const
 The mass density ρα of the fluid phase α in [kg/m3]. More...
 
Scalar molarDensity (int phaseIdx) const
 The molar density ρα of the fluid phase α in [mol/m3]. More...
 
Scalar temperature (int phaseIdx) const
 The temperature of a fluid phase [K]. More...
 
Scalar pressure (int phaseIdx) const
 The pressure pα of a fluid phase α in [Pa]. More...
 
Scalar enthalpy (int phaseIdx) const
 The specific enthalpy hα of a fluid phase α in [J/kg]. More...
 
Scalar internalEnergy (int phaseIdx) const
 The specific internal energy uα of a fluid phase α in [J/kg]. More...
 
Scalar viscosity (int phaseIdx) const
 The dynamic viscosity μα of fluid phase α in [Pas]. More...
 
void setTemperature (Scalar value)
 Set the temperature [K] of a fluid phase. More...
 

Static Public Attributes

static constexpr int numPhases = FluidState::numPhases
 
static constexpr int numComponents = FluidState::numComponents
 

Protected Attributes

const FluidState * fs_
 
Scalar temperature_
 

Member Typedef Documentation

◆ Scalar

template<class FluidState >
using Dumux::TemperatureOverlayFluidState< FluidState >::Scalar = typename FluidState::Scalar

Constructor & Destructor Documentation

◆ TemperatureOverlayFluidState() [1/4]

template<class FluidState >
Dumux::TemperatureOverlayFluidState< FluidState >::TemperatureOverlayFluidState ( const FluidState &  fs)
inlineexplicit
Parameters
fsFluidstate The overlay fluid state copies the saturation from the argument, so it initially behaves exactly like the underlying fluid state.

◆ TemperatureOverlayFluidState() [2/4]

template<class FluidState >
Dumux::TemperatureOverlayFluidState< FluidState >::TemperatureOverlayFluidState ( Scalar  T,
const FluidState &  fs 
)
inline

◆ TemperatureOverlayFluidState() [3/4]

template<class FluidState >
Dumux::TemperatureOverlayFluidState< FluidState >::TemperatureOverlayFluidState ( const TemperatureOverlayFluidState< FluidState > &  fs)
default

◆ TemperatureOverlayFluidState() [4/4]

template<class FluidState >
Dumux::TemperatureOverlayFluidState< FluidState >::TemperatureOverlayFluidState ( TemperatureOverlayFluidState< FluidState > &&  fs)
default

Member Function Documentation

◆ averageMolarMass()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::averageMolarMass ( int  phaseIdx) const
inline

The average molar mass is the mean mass of a mole of the fluid at current composition. It is defined as the sum of the component's molar masses weighted by the current mole fraction:

Mα=κMκxακ

◆ density()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::density ( int  phaseIdx) const
inline

◆ enthalpy()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::enthalpy ( int  phaseIdx) const
inline

◆ fugacity()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::fugacity ( int  phaseIdx,
int  compIdx 
) const
inline

The fugacity is defined as: fακ:=Φακxακpα, where Φακ is the fugacity coefficient [76] . The physical meaning of fugacity becomes clear from the equation:

fακ=pαexp{ζακRTα},

where ζακ represents the κ's chemical potential in phase α, R stands for the ideal gas constant, and Tα for the absolute temperature of phase α. Assuming thermal equilibrium, there is a one-to-one mapping between a component's chemical potential ζακ and its fugacity fακ. In this case chemical equilibrium can thus be expressed by:

fκ:=fακ=fβκα,β

◆ fugacityCoefficient()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::fugacityCoefficient ( int  phaseIdx,
int  compIdx 
) const
inline

◆ internalEnergy()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::internalEnergy ( int  phaseIdx) const
inline

The specific internal energy is defined by the relation:

uα=hαpαρα

◆ massFraction()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::massFraction ( int  phaseIdx,
int  compIdx 
) const
inline

The mass fraction Xακ is defined as the weight of all molecules of a component divided by the total mass of the fluid phase. It is related with the component's mole fraction by means of the relation

Xακ=xακMκMα,

where Mκ is the molar mass of component κ and Mα is the mean molar mass of a molecule of phase α.

Parameters
phaseIdxthe index of the phase
compIdxthe index of the component

◆ molarDensity()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::molarDensity ( int  phaseIdx) const
inline

◆ molarity()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::molarity ( int  phaseIdx,
int  compIdx 
) const
inline

This quantity is usually called "molar concentration" or just "concentration", but there are many other (though less common) measures for concentration.

http://en.wikipedia.org/wiki/Concentration

◆ molarVolume()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::molarVolume ( int  phaseIdx) const
inline

This quantity is the inverse of the molar density.

◆ moleFraction()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::moleFraction ( int  phaseIdx,
int  compIdx 
) const
inline

The molar fraction xακ is defined as the ratio of the number of molecules of component κ and the total number of molecules of the phase α.

Parameters
phaseIdxthe index of the phase
compIdxthe index of the component

◆ operator=() [1/2]

template<class FluidState >
TemperatureOverlayFluidState & Dumux::TemperatureOverlayFluidState< FluidState >::operator= ( const TemperatureOverlayFluidState< FluidState > &  fs)
default

◆ operator=() [2/2]

template<class FluidState >
TemperatureOverlayFluidState & Dumux::TemperatureOverlayFluidState< FluidState >::operator= ( TemperatureOverlayFluidState< FluidState > &&  fs)
default

◆ pressure()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::pressure ( int  phaseIdx) const
inline

◆ saturation()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::saturation ( int  phaseIdx) const
inline

The saturation is defined as the pore space occupied by the fluid divided by the total pore space:

Sα:=ϕVαϕV

Parameters
phaseIdxthe index of the phase

◆ setTemperature()

template<class FluidState >
void Dumux::TemperatureOverlayFluidState< FluidState >::setTemperature ( Scalar  value)
inline

◆ temperature()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::temperature ( int  phaseIdx) const
inline

◆ viscosity()

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::viscosity ( int  phaseIdx) const
inline

Member Data Documentation

◆ fs_

template<class FluidState >
const FluidState* Dumux::TemperatureOverlayFluidState< FluidState >::fs_
protected

◆ numComponents

template<class FluidState >
constexpr int Dumux::TemperatureOverlayFluidState< FluidState >::numComponents = FluidState::numComponents
staticconstexpr

◆ numPhases

template<class FluidState >
constexpr int Dumux::TemperatureOverlayFluidState< FluidState >::numPhases = FluidState::numPhases
staticconstexpr

◆ temperature_

template<class FluidState >
Scalar Dumux::TemperatureOverlayFluidState< FluidState >::temperature_
protected

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