3.2-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::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent > Class Template Reference

A liquid phase consisting of a two components, a main component and a conservative tracer component. More...

#include <dumux/material/fluidsystems/liquidphase2c.hh>

Inheritance diagram for Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >:
Inheritance graph

Description

template<class Scalar, class MainComponent, class SecondComponent>
class Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >

A liquid phase consisting of a two components, a main component and a conservative tracer component.

Public Types

using ParameterCache = NullParameterCache
 
using Scalar = Scalar
 export the scalar type More...
 

Static Public Member Functions

static void init ()
 Initialize the fluid system's static parameters generically. More...
 
static std::string phaseName (int phaseIdx=0)
 Return the human readable name of a fluid phase. More...
 
static constexpr bool isMiscible ()
 Returns whether the fluids are miscible. More...
 
static std::string componentName (int compIdx)
 A human readable name for the component. More...
 
static std::string name ()
 A human readable name for the fluid system. More...
 
static constexpr bool isGas (int phaseIdx=0)
 Returns whether the fluid is gaseous. More...
 
static bool isIdealMixture (int phaseIdx=0)
 Returns true if and only if a fluid phase is assumed to be an ideal mixture. More...
 
static constexpr bool isCompressible (int phaseIdx=0)
 Returns true if the fluid is assumed to be compressible. More...
 
static bool isIdealGas (int phaseIdx=0)
 Returns true if the fluid is assumed to be an ideal gas. More...
 
static Scalar molarMass (int compIdx)
 The mass in \(\mathrm{[kg]}\) of one mole of the component. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature \(\mathrm{[K]}\) of the main component. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure \(\mathrm{[Pa]}\) of the main component. More...
 
static Scalar tripleTemperature ()
 Returns the temperature \(\mathrm{[K]}\) at the main component's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure \(\mathrm{[Pa]}\) at the main component's triple point. More...
 
static Scalar vaporPressure (Scalar T)
 The vapor pressure in \(\mathrm{[Pa]}\) of the main component at a given temperature. More...
 
static Scalar density (Scalar temperature, Scalar pressure)
 The density \(\mathrm{[kg/m^3]}\) of the phase at a given pressure and temperature. More...
 
template<class FluidState >
static Scalar density (const FluidState &fluidState, const int phaseIdx=0)
 The density \(\mathrm{[kg/m^3]}\) of the phase at a given pressure and temperature. More...
 
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...
 
static Scalar pressure (Scalar temperature, Scalar density)
 The pressure \(\mathrm{[Pa]}\) of the component at a given density and temperature. More...
 
static const Scalar enthalpy (Scalar temperature, Scalar pressure)
 Specific enthalpy \(\mathrm{[J/kg]}\) the pure component as a liquid. More...
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, const int phaseIdx)
 Specific enthalpy \(\mathrm{[J/kg]}\) the pure component as a liquid. More...
 
template<class FluidState >
static Scalar componentEnthalpy (const FluidState &fluidState, int phaseIdx, int componentIdx)
 Returns the specific enthalpy \(\mathrm{[J/kg]}\) of a component in the specified phase. More...
 
static const Scalar internalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy \(\mathrm{[J/kg]}\) the pure component as a liquid. More...
 
static Scalar viscosity (Scalar temperature, Scalar pressure)
 The dynamic liquid viscosity \(\mathrm{[N/m^3*s]}\) of the pure component. More...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, const int phaseIdx)
 The dynamic liquid viscosity \(\mathrm{[N/m^3*s]}\) of the pure component. More...
 
template<class FluidState >
static Scalar fugacityCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase. More...
 
template<class FluidState >
static Scalar diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[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 \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase. More...
 
static Scalar thermalConductivity (Scalar temperature, Scalar pressure)
 Thermal conductivity of the fluid \(\mathrm{[W/(m K)]}\). More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, const int phaseIdx)
 Thermal conductivity of the fluid \(\mathrm{[W/(m K)]}\). More...
 
static Scalar heatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of the fluid \(\mathrm{[J/(kg K)]}\). More...
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, const int phaseIdx)
 Specific isobaric heat capacity of the fluid \(\mathrm{[J/(kg K)]}\). More...
 
template<class FluidState >
static Scalar density (const FluidState &fluidState, int phaseIdx)
 Calculate the density \(\mathrm{[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 \(\mathrm{[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 enthalpy (const FluidState &fluidState, int phaseIdx)
 Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\). More...
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\). More...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, int phaseIdx)
 Calculate the dynamic viscosity of a fluid phase \(\mathrm{[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 \(\mathrm{[Pa*s]}\). More...
 
template<class FluidState >
static Scalar fugacityCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculate the fugacity coefficient \(\mathrm{[Pa]}\) 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 \(\mathrm{[Pa]}\) of an individual component in a fluid phase. More...
 
template<class FluidState >
static Scalar diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[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 binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[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 \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{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 \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase. More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, int phaseIdx)
 Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\). More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\). More...
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, int phaseIdx)
 Specific isobaric heat capacity \(c_{p,\alpha}\) 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 \(c_{p,\alpha}\) 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 = 1
 Number of phases in the fluid system. More...
 
static constexpr int numComponents = 2
 Number of components in the fluid system. More...
 
static constexpr int liquidPhaseIdx = 0
 index of the liquid phase More...
 
static constexpr int phase0Idx = liquidPhaseIdx
 index of the only phase More...
 
static constexpr int comp0Idx = 0
 index of the frist component More...
 
static constexpr int comp1Idx = 1
 index of the second component More...
 
static constexpr int mainCompIdx = comp0Idx
 index of the main component More...
 
static constexpr int secondCompIdx = comp1Idx
 index of the secondary component More...
 

Member Typedef Documentation

◆ ParameterCache

template<class Scalar , class MainComponent , class SecondComponent >
using Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::ParameterCache = NullParameterCache

◆ Scalar

using Dumux::FluidSystems::Base< Scalar , LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent > >::Scalar = Scalar
inherited

export the scalar type

Member Function Documentation

◆ binaryDiffusionCoefficient() [1/3]

template<class Scalar , class MainComponent , class SecondComponent >
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 \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase.

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase
compIIdxIndex of the component i
compJIdxIndex of the component j

◆ binaryDiffusionCoefficient() [2/3]

template<class Scalar , class MainComponent , class SecondComponent >
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 \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase.

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase
compIIdxIndex of the component i
compJIdxIndex of the component j

◆ binaryDiffusionCoefficient() [3/3]

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

Given a phase's composition, temperature and pressure, return the binary diffusion coefficient \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase.

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

◆ componentEnthalpy()

template<class Scalar , class MainComponent , class SecondComponent >
template<class FluidState >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::componentEnthalpy ( const FluidState &  fluidState,
int  phaseIdx,
int  componentIdx 
)
inlinestatic

Returns the specific enthalpy \(\mathrm{[J/kg]}\) of a component in the specified phase.

Parameters
fluidStateThe fluid state
phaseIdxThe index of the phase
componentIdxThe index of the component

◆ componentName()

template<class Scalar , class MainComponent , class SecondComponent >
static std::string Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::componentName ( int  compIdx)
inlinestatic

A human readable name for the component.

Parameters
compIdxThe index of the component to consider

◆ criticalPressure()

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::criticalPressure ( )
inlinestatic

Returns the critical pressure \(\mathrm{[Pa]}\) of the main component.

◆ criticalTemperature()

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::criticalTemperature ( )
inlinestatic

Returns the critical temperature \(\mathrm{[K]}\) of the main component.

◆ density() [1/4]

template<class Scalar , class MainComponent , class SecondComponent >
template<class FluidState >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::density ( const FluidState &  fluidState,
const int  phaseIdx = 0 
)
inlinestatic

The density \(\mathrm{[kg/m^3]}\) of the phase at a given pressure and temperature.

◆ density() [2/4]

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

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

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ density() [3/4]

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

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

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ density() [4/4]

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::density ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

The density \(\mathrm{[kg/m^3]}\) of the phase at a given pressure and temperature.

◆ diffusionCoefficient() [1/3]

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

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

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase
compIdxIndex of the component Molecular diffusion of a component \(\mathrm{\kappa}\) is caused by a gradient of the chemical potential and follows the law

\[ J = - D \mathbf{grad} \mu_\kappa \]

where \(\mathrm{\mu_\kappa}\) is the component's chemical potential, \(\mathrm{D}\) is the diffusion coefficient and \(\mathrm{J}\) is the diffusive flux. \(\mathrm{\mu_\kappa}\) is connected to the component's fugacity \(\mathrm{f_\kappa}\) by the relation

\[ \mu_\kappa = R T_\alpha \mathrm{ln} \frac{f_\kappa}{p_\alpha} \]

where \(\mathrm{p_\alpha}\) and \(\mathrm{T_\alpha}\) are the fluid phase' pressure and temperature.

◆ diffusionCoefficient() [2/3]

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

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

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase
compIdxIndex of the component Molecular diffusion of a component \(\mathrm{\kappa}\) is caused by a gradient of the chemical potential and follows the law

\[ J = - D \mathbf{grad} \mu_\kappa \]

where \(\mathrm{\mu_\kappa}\) is the component's chemical potential, \(\mathrm{D}\) is the diffusion coefficient and \(\mathrm{J}\) is the diffusive flux. \(\mathrm{\mu_\kappa}\) is connected to the component's fugacity \(\mathrm{f_\kappa}\) by the relation

\[ \mu_\kappa = R T_\alpha \mathrm{ln} \frac{f_\kappa}{p_\alpha} \]

where \(\mathrm{p_\alpha}\) and \(\mathrm{T_\alpha}\) are the fluid phase' pressure and temperature.

◆ diffusionCoefficient() [3/3]

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

Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[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

◆ enthalpy() [1/4]

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

Specific enthalpy \(\mathrm{[J/kg]}\) the pure component as a liquid.

◆ enthalpy() [2/4]

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

Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ enthalpy() [3/4]

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

Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ enthalpy() [4/4]

template<class Scalar , class MainComponent , class SecondComponent >
static const Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::enthalpy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Specific enthalpy \(\mathrm{[J/kg]}\) the pure component as a liquid.

◆ fugacityCoefficient() [1/3]

template<class Scalar , class MainComponent , class SecondComponent >
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 \(\mathrm{[Pa]}\) of an individual component in a fluid phase.

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

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

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase
compIdxIndex of the component

◆ fugacityCoefficient() [2/3]

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

Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase.

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

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

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase
compIdxIndex of the component

◆ fugacityCoefficient() [3/3]

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

Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase.

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

◆ getMainComponent()

static constexpr int Dumux::FluidSystems::Base< Scalar , LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent > >::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/4]

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

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

◆ heatCapacity() [2/4]

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

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

Parameters
fluidStaterepresents all relevant thermodynamic quantities of a fluid system
paramCachemutable parameters
phaseIdxIndex of the fluid phase

Given a fluid state, an up-to-date parameter cache and a phase index, this method computes the isobaric heat capacity \(c_{p,\alpha}\) of the fluid phase. The isobaric heat capacity is defined as the partial derivative of the specific enthalpy \(h_\alpha\) to the fluid pressure \(p_\alpha\):

\( c_{p,\alpha} = \frac{\partial h_\alpha}{\partial p_\alpha} \)

◆ heatCapacity() [3/4]

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

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

Parameters
fluidStaterepresents all relevant thermodynamic quantities of a fluid system
phaseIdxIndex of the fluid phase

Given a fluid state, an up-to-date parameter cache and a phase index, this method computes the isobaric heat capacity \(c_{p,\alpha}\) of the fluid phase. The isobaric heat capacity is defined as the partial derivative of the specific enthalpy \(h_\alpha\) to the fluid pressure \(p_\alpha\):

\( c_{p,\alpha} = \frac{\partial h_\alpha}{\partial p_\alpha} \)

◆ heatCapacity() [4/4]

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::heatCapacity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

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

◆ init()

template<class Scalar , class MainComponent , class SecondComponent >
static void Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::init ( )
inlinestatic

Initialize the fluid system's static parameters generically.

◆ internalEnergy()

template<class Scalar , class MainComponent , class SecondComponent >
static const Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::internalEnergy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Specific internal energy \(\mathrm{[J/kg]}\) the pure component as a liquid.

◆ isCompressible()

template<class Scalar , class MainComponent , class SecondComponent >
static constexpr bool Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::isCompressible ( int  phaseIdx = 0)
inlinestaticconstexpr

Returns true if the fluid is assumed to be compressible.

◆ isGas()

template<class Scalar , class MainComponent , class SecondComponent >
static constexpr bool Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::isGas ( int  phaseIdx = 0)
inlinestaticconstexpr

Returns whether the fluid is gaseous.

◆ isIdealGas()

template<class Scalar , class MainComponent , class SecondComponent >
static bool Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::isIdealGas ( int  phaseIdx = 0)
inlinestatic

Returns true if the fluid is assumed to be an ideal gas.

◆ isIdealMixture()

template<class Scalar , class MainComponent , class SecondComponent >
static bool Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::isIdealMixture ( int  phaseIdx = 0)
inlinestatic

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 only a single component is involved. 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 MainComponent , class SecondComponent >
static constexpr bool Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::isMiscible ( )
inlinestaticconstexpr

Returns whether the fluids are miscible.

Note
There is only one phase, so miscibility makes no sense

◆ isTracerFluidSystem()

static constexpr bool Dumux::FluidSystems::Base< Scalar , LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent > >::isTracerFluidSystem ( )
inlinestaticconstexprinherited

Some properties of the fluid system.

If the fluid system only contains tracer components

◆ molarDensity() [1/3]

template<class Scalar , class MainComponent , class SecondComponent >
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 MainComponent , class SecondComponent >
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 MainComponent , class SecondComponent >
template<class FluidState >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::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 MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::molarMass ( int  compIdx)
inlinestatic

The mass in \(\mathrm{[kg]}\) of one mole of the component.

◆ name()

template<class Scalar , class MainComponent , class SecondComponent >
static std::string Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::name ( )
inlinestatic

A human readable name for the fluid system.

◆ phaseName()

template<class Scalar , class MainComponent , class SecondComponent >
static std::string Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::phaseName ( int  phaseIdx = 0)
inlinestatic

Return the human readable name of a fluid phase.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ pressure()

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::pressure ( Scalar  temperature,
Scalar  density 
)
inlinestatic

The pressure \(\mathrm{[Pa]}\) of the component at a given density and temperature.

◆ thermalConductivity() [1/4]

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

Thermal conductivity of the fluid \(\mathrm{[W/(m K)]}\).

◆ thermalConductivity() [2/4]

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

Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ thermalConductivity() [3/4]

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

Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ thermalConductivity() [4/4]

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::thermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Thermal conductivity of the fluid \(\mathrm{[W/(m K)]}\).

◆ triplePressure()

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::triplePressure ( )
inlinestatic

Returns the pressure \(\mathrm{[Pa]}\) at the main component's triple point.

◆ tripleTemperature()

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::tripleTemperature ( )
inlinestatic

Returns the temperature \(\mathrm{[K]}\) at the main component's triple point.

◆ vaporPressure()

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::vaporPressure ( Scalar  T)
inlinestatic

The vapor pressure in \(\mathrm{[Pa]}\) of the main component at a given temperature.

◆ viscosity() [1/4]

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

The dynamic liquid viscosity \(\mathrm{[N/m^3*s]}\) of the pure component.

◆ viscosity() [2/4]

template<class Scalar , class MainComponent , class SecondComponent >
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 \(\mathrm{[Pa*s]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ viscosity() [3/4]

template<class Scalar , class MainComponent , class SecondComponent >
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 \(\mathrm{[Pa*s]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ viscosity() [4/4]

template<class Scalar , class MainComponent , class SecondComponent >
static Scalar Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::viscosity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

The dynamic liquid viscosity \(\mathrm{[N/m^3*s]}\) of the pure component.

◆ viscosityIsConstant()

static constexpr bool Dumux::FluidSystems::Base< Scalar , LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent > >::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 MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::comp0Idx = 0
staticconstexpr

index of the frist component

◆ comp1Idx

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::comp1Idx = 1
staticconstexpr

index of the second component

◆ liquidPhaseIdx

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::liquidPhaseIdx = 0
staticconstexpr

index of the liquid phase

◆ mainCompIdx

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::mainCompIdx = comp0Idx
staticconstexpr

index of the main component

◆ numComponents

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::numComponents = 2
staticconstexpr

Number of components in the fluid system.

◆ numPhases

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::numPhases = 1
staticconstexpr

Number of phases in the fluid system.

◆ phase0Idx

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::phase0Idx = liquidPhaseIdx
staticconstexpr

index of the only phase

◆ secondCompIdx

template<class Scalar , class MainComponent , class SecondComponent >
constexpr int Dumux::FluidSystems::LiquidPhaseTwoC< Scalar, MainComponent, SecondComponent >::secondCompIdx = comp1Idx
staticconstexpr

index of the secondary component


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