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

A two-phase fluid system with only one component. More...

#include <dumux/material/fluidsystems/2p1c.hh>

Inheritance diagram for Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >:

Description

template<class Scalar, class ComponentType>
class Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >

A two-phase fluid system with only one component.

Public Types

using Scalar = Scalar
 export the scalar type More...
 
using ParameterCache = NullParameterCache
 The type of parameter cache objects. More...
 

Static Public Member Functions

static std::string phaseName (int phaseIdx)
 Return the human readable name of a fluid phase. More...
 
static constexpr bool isMiscible ()
 Returns whether the fluids are miscible. More...
 
static constexpr bool isGas (int phaseIdx)
 Return whether a phase is gaseous. More...
 
static constexpr bool isIdealMixture (int phaseIdx)
 Returns true if and only if a fluid phase is assumed to be an ideal mixture. More...
 
static constexpr bool isCompressible (int phaseIdx)
 Returns true if and only if a fluid phase is assumed to be compressible. More...
 
static constexpr bool isIdealGas (int phaseIdx)
 Returns true if and only if a fluid phase is assumed to be an ideal gas. More...
 
static std::string componentName (int compIdx)
 Return the human readable name of a component. More...
 
static Scalar molarMass (int compIdx)
 Return the molar mass of a component in [kg/mol]. More...
 
static Scalar criticalTemperature (int compIdx)
 Critical temperature of a component [K]. More...
 
static Scalar criticalPressure (int compIdx)
 Critical pressure of a component [Pa]. More...
 
static Scalar criticalMolarVolume (int compIdx)
 Molar volume of a component at the critical point [m^3/mol]. More...
 
static Scalar acentricFactor (int compIdx)
 The acentric factor of a component []. More...
 
static void init ()
 Initialize the fluid system's static parameters generically. More...
 
static void init (Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress)
 Initialize the fluid system's static parameters using problem specific temperature and pressure ranges. More...
 
template<class FluidState >
static Scalar density (const FluidState &fluidState, int phaseIdx)
 
template<class FluidState >
static Scalar molarDensity (const FluidState &fluidState, int phaseIdx)
 The molar density \(\rho_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\). More...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, int phaseIdx)
 
template<class FluidState >
static Scalar vaporTemperature (const FluidState &fluidState, const unsigned int phaseIdx)
 calculate the temperature of vapor at a given pressure on the vapor pressure curve. More...
 
template<class FluidState >
static Scalar fugacityCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 
template<class FluidState >
static Scalar diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 
template<class FluidState >
static Scalar binaryDiffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIIdx, int compJIdx)
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, int phaseIdx)
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, const int phaseIdx)
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, int phaseIdx)
 
template<class FluidState >
static Scalar density (const FluidState &fluidState, int phaseIdx)
 Calculate the density [kg/m^3] of a fluid phase. More...
 
template<class FluidState >
static Scalar density (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Calculate the density [kg/m^3] of a fluid phase. More...
 
template<class FluidState >
static Scalar molarDensity (const FluidState &fluidState, int phaseIdx)
 Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase. More...
 
template<class FluidState >
static Scalar molarDensity (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase. More...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, int phaseIdx)
 Calculate the dynamic viscosity of a fluid phase [Pa*s]. More...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Calculate the dynamic viscosity of a fluid phase [Pa*s]. More...
 
template<class FluidState >
static Scalar fugacityCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculate the fugacity coefficient [-] of an individual component in a fluid phase. More...
 
template<class FluidState >
static Scalar fugacityCoefficient (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx, int compIdx)
 Calculate the fugacity coefficient [-] of an individual component in a fluid phase. More...
 
template<class FluidState >
static Scalar diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculate the molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)]. More...
 
template<class FluidState >
static Scalar diffusionCoefficient (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx, int compIdx)
 Calculate the molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)]. More...
 
template<class FluidState >
static Scalar binaryDiffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIIdx, int compJIdx)
 Given a phase's composition, temperature and pressure, return the binary diffusion coefficient for components \(i\) and \(j\) in this phase. More...
 
template<class FluidState >
static Scalar binaryDiffusionCoefficient (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx, int compIIdx, int compJIdx)
 Given a phase's composition, temperature and pressure, return the binary diffusion coefficient for components \(i\) and \(j\) in this phase. More...
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, int phaseIdx)
 Calculate specific enthalpy [J/kg]. More...
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Calculate specific enthalpy [J/kg]. More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, int phaseIdx)
 Thermal conductivity of a fluid phase [W/(m K)]. More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Thermal conductivity of a fluid phase [W/(m K)]. More...
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, int phaseIdx)
 Specific isobaric heat capacity of a fluid phase. \(\mathrm{[J/kg / K]}\). More...
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Specific isobaric heat capacity of a fluid phase. \(\mathrm{[J/kg / K]}\). More...
 
static constexpr bool isTracerFluidSystem ()
 Some properties of the fluid system. More...
 
static constexpr int getMainComponent (int phaseIdx)
 Get the main component of a given phase if possible. More...
 
static constexpr bool viscosityIsConstant (int phaseIdx)
 Returns true if and only if a fluid phase is assumed to have a constant viscosity. More...
 

Static Public Attributes

static constexpr int numPhases = 2
 Number of phases in the fluid system. More...
 
static constexpr int numComponents = 1
 Number of components in the fluid system. More...
 
static constexpr int liquidPhaseIdx = 0
 index of the liquid phase More...
 
static constexpr int gasPhaseIdx = 1
 index of the gas phase More...
 
static constexpr int phase0Idx = liquidPhaseIdx
 index of the first phase More...
 
static constexpr int phase1Idx = gasPhaseIdx
 index of the second phase More...
 
static constexpr int comp0Idx = 0
 index of the only component More...
 

Member Typedef Documentation

◆ ParameterCache

using Dumux::FluidSystems::Base< Scalar , TwoPOneC< Scalar, ComponentType > >::ParameterCache = NullParameterCache
inherited

The type of parameter cache objects.

◆ Scalar

using Dumux::FluidSystems::Base< Scalar , TwoPOneC< Scalar, ComponentType > >::Scalar = Scalar
inherited

export the scalar type

Member Function Documentation

◆ acentricFactor()

template<class Scalar , class ComponentType >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::acentricFactor ( int  compIdx)
inlinestatic

The acentric factor of a component [].

Parameters
compIdxThe index of the component to consider

◆ binaryDiffusionCoefficient() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

Given a phase's composition, temperature and pressure, return the binary diffusion coefficient for components \(i\) and \(j\) in this phase.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIIdxThe index of the first component to consider
compJIdxThe index of the second component to consider

◆ binaryDiffusionCoefficient() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

Given a phase's composition, temperature and pressure, return the binary diffusion coefficient for components \(i\) and \(j\) in this phase.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIIdxThe index of the first component to consider
compJIdxThe index of the second component to consider

◆ binaryDiffusionCoefficient() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

◆ componentName()

template<class Scalar , class ComponentType >
static std::string Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::componentName ( int  compIdx)
inlinestatic

Return the human readable name of a component.

Parameters
compIdxThe index of the component to consider

◆ criticalMolarVolume()

template<class Scalar , class ComponentType >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::criticalMolarVolume ( int  compIdx)
inlinestatic

Molar volume of a component at the critical point [m^3/mol].

Parameters
compIdxThe index of the component to consider

◆ criticalPressure()

template<class Scalar , class ComponentType >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::criticalPressure ( int  compIdx)
inlinestatic

Critical pressure of a component [Pa].

Parameters
compIdxThe index of the component to consider

◆ criticalTemperature()

template<class Scalar , class ComponentType >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::criticalTemperature ( int  compIdx)
inlinestatic

Critical temperature of a component [K].

Parameters
compIdxThe index of the component to consider

◆ density() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::density ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate the density [kg/m^3] of a fluid phase.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ density() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::density ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate the density [kg/m^3] of a fluid phase.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ density() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::density ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

◆ diffusionCoefficient() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::diffusionCoefficient ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)].

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ diffusionCoefficient() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::diffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)].

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ diffusionCoefficient() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::diffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

◆ enthalpy() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::enthalpy ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate specific enthalpy [J/kg].

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ enthalpy() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::enthalpy ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate specific enthalpy [J/kg].

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ enthalpy() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::enthalpy ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

◆ fugacityCoefficient() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::fugacityCoefficient ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the fugacity coefficient [-] of an individual component in a fluid phase.

The fugacity coefficient \(\phi^\kappa_\alpha\) of component \(\kappa\) in phase \(\alpha\) is connected to the fugacity \(f^\kappa_\alpha\) and the component's mole fraction \(x^\kappa_\alpha\) by means of the relation

\[ f^\kappa_\alpha = \phi^\kappa_\alpha\;x^\kappa_\alpha\;p_\alpha \]

where \(p_\alpha\) is the pressure of the fluid phase.

The quantity "fugacity" itself is just an other way to express the chemical potential \(\zeta^\kappa_\alpha\) of the component. It is defined via

\[ f^\kappa_\alpha := \exp\left\{\frac{\zeta^\kappa_\alpha}{k_B T_\alpha} \right\} \]

where \(k_B = 1.380\cdot10^{-23}\;J/K\) is the Boltzmann constant.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ fugacityCoefficient() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::fugacityCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the fugacity coefficient [-] of an individual component in a fluid phase.

The fugacity coefficient \(\phi^\kappa_\alpha\) of component \(\kappa\) in phase \(\alpha\) is connected to the fugacity \(f^\kappa_\alpha\) and the component's mole fraction \(x^\kappa_\alpha\) by means of the relation

\[ f^\kappa_\alpha = \phi^\kappa_\alpha\;x^\kappa_\alpha\;p_\alpha \]

where \(p_\alpha\) is the pressure of the fluid phase.

The quantity "fugacity" itself is just an other way to express the chemical potential \(\zeta^\kappa_\alpha\) of the component. It is defined via

\[ f^\kappa_\alpha := \exp\left\{\frac{\zeta^\kappa_\alpha}{k_B T_\alpha} \right\} \]

where \(k_B = 1.380\cdot10^{-23}\;J/K\) is the Boltzmann constant.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ fugacityCoefficient() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::fugacityCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

◆ getMainComponent()

static constexpr int Dumux::FluidSystems::Base< Scalar , TwoPOneC< Scalar, ComponentType > >::getMainComponent ( int  phaseIdx)
inlinestaticconstexprinherited

Get the main component of a given phase if possible.

Parameters
phaseIdxThe index of the fluid phase to consider
Todo:
Unfortunately we currently still have the assumption in some volume variables (e.g. 1pnc, 2pnc) that the main component index of a phase is equal to the phase index of that phase. This means changing this only works if the volume variables are written accordingly.
Note
This only makes sense if this is not a tracer fluid system (then the bulk component is not balanced)

◆ heatCapacity() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::heatCapacity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Specific isobaric heat capacity of a fluid phase. \(\mathrm{[J/kg / K]}\).

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ heatCapacity() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::heatCapacity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Specific isobaric heat capacity of a fluid phase. \(\mathrm{[J/kg / K]}\).

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ heatCapacity() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::heatCapacity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

◆ init() [1/2]

template<class Scalar , class ComponentType >
static void Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::init ( )
inlinestatic

Initialize the fluid system's static parameters generically.

If a tabulated H2O component is used, we do our best to create tables that always work.

◆ init() [2/2]

template<class Scalar , class ComponentType >
static void Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::init ( Scalar  tempMin,
Scalar  tempMax,
unsigned  nTemp,
Scalar  pressMin,
Scalar  pressMax,
unsigned  nPress 
)
inlinestatic

Initialize the fluid system's static parameters using problem specific temperature and pressure ranges.

Parameters
tempMinThe minimum temperature used for tabulation of water [K]
tempMaxThe maximum temperature used for tabulation of water [K]
nTempThe number of ticks on the temperature axis of the table of water
pressMinThe minimum pressure used for tabulation of water [Pa]
pressMaxThe maximum pressure used for tabulation of water [Pa]
nPressThe number of ticks on the pressure axis of the table of water

◆ isCompressible()

template<class Scalar , class ComponentType >
static constexpr bool Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::isCompressible ( int  phaseIdx)
inlinestaticconstexpr

Returns true if and only if a fluid phase is assumed to be compressible.

Compressible means that the partial derivative of the density to the fluid pressure is always larger than zero.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isGas()

template<class Scalar , class ComponentType >
static constexpr bool Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::isGas ( int  phaseIdx)
inlinestaticconstexpr

Return whether a phase is gaseous.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isIdealGas()

template<class Scalar , class ComponentType >
static constexpr bool Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::isIdealGas ( int  phaseIdx)
inlinestaticconstexpr

Returns true if and only if a fluid phase is assumed to be an ideal gas.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isIdealMixture()

template<class Scalar , class ComponentType >
static constexpr bool Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::isIdealMixture ( int  phaseIdx)
inlinestaticconstexpr

Returns true if and only if a fluid phase is assumed to be an ideal mixture.

We define an ideal mixture as a fluid phase where the fugacity coefficients of all components times the pressure of the phase are independent on the fluid composition. This assumption is true if Henry's law and Raoult's law apply. If you are unsure what this function should return, it is safe to return false. The only damage done will be (slightly) increased computation times in some cases.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isMiscible()

template<class Scalar , class ComponentType >
static constexpr bool Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::isMiscible ( )
inlinestaticconstexpr

Returns whether the fluids are miscible.

◆ isTracerFluidSystem()

static constexpr bool Dumux::FluidSystems::Base< Scalar , TwoPOneC< Scalar, ComponentType > >::isTracerFluidSystem ( )
inlinestaticconstexprinherited

Some properties of the fluid system.

If the fluid system only contains tracer components

◆ molarDensity() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::molarDensity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase.

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ molarDensity() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::molarDensity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase.

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ molarDensity() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::molarDensity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

The molar density \(\rho_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\).

The molar density is defined by the mass density \(\rho_\alpha\) and the molar mass \(M_\alpha\):

\[\rho_{mol,\alpha} = \frac{\rho_\alpha}{M_\alpha} \;.\]

◆ molarMass()

template<class Scalar , class ComponentType >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::molarMass ( int  compIdx)
inlinestatic

Return the molar mass of a component in [kg/mol].

Parameters
compIdxThe index of the component to consider

◆ phaseName()

template<class Scalar , class ComponentType >
static std::string Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::phaseName ( int  phaseIdx)
inlinestatic

Return the human readable name of a fluid phase.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ thermalConductivity() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::thermalConductivity ( const FluidState &  fluidState,
const int  phaseIdx 
)
inlinestatic

◆ thermalConductivity() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::thermalConductivity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Thermal conductivity of a fluid phase [W/(m K)].

Use the conductivity of vapor and liquid water at 100°C

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ thermalConductivity() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::thermalConductivity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Thermal conductivity of a fluid phase [W/(m K)].

Use the conductivity of vapor and liquid water at 100°C

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ vaporTemperature()

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::vaporTemperature ( const FluidState &  fluidState,
const unsigned int  phaseIdx 
)
inlinestatic

calculate the temperature of vapor at a given pressure on the vapor pressure curve.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ viscosity() [1/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::viscosity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate the dynamic viscosity of a fluid phase [Pa*s].

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ viscosity() [2/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::viscosity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate the dynamic viscosity of a fluid phase [Pa*s].

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider

◆ viscosity() [3/3]

template<class Scalar , class ComponentType >
template<class FluidState >
static Scalar Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::viscosity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

◆ viscosityIsConstant()

static constexpr bool Dumux::FluidSystems::Base< Scalar , TwoPOneC< Scalar, ComponentType > >::viscosityIsConstant ( int  phaseIdx)
inlinestaticconstexprinherited

Returns true if and only if a fluid phase is assumed to have a constant viscosity.

Parameters
phaseIdxThe index of the fluid phase to consider

Member Data Documentation

◆ comp0Idx

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::comp0Idx = 0
staticconstexpr

index of the only component

◆ gasPhaseIdx

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::gasPhaseIdx = 1
staticconstexpr

index of the gas phase

◆ liquidPhaseIdx

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::liquidPhaseIdx = 0
staticconstexpr

index of the liquid phase

◆ numComponents

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::numComponents = 1
staticconstexpr

Number of components in the fluid system.

◆ numPhases

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::numPhases = 2
staticconstexpr

Number of phases in the fluid system.

◆ phase0Idx

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::phase0Idx = liquidPhaseIdx
staticconstexpr

index of the first phase

◆ phase1Idx

template<class Scalar , class ComponentType >
constexpr int Dumux::FluidSystems::TwoPOneC< Scalar, ComponentType >::phase1Idx = gasPhaseIdx
staticconstexpr

index of the second phase


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