3.1-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::CombustionFluidsystem< Scalar > Class Template Reference

A two-phase fluid system with water as sole component. More...

#include <test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/combustionfluidsystem.hh>

Inheritance diagram for Dumux::FluidSystems::CombustionFluidsystem< Scalar >:
Inheritance graph

Description

template<class Scalar>
class Dumux::FluidSystems::CombustionFluidsystem< Scalar >

A two-phase fluid system with water as sole component.

Values are taken from Shi and Wang, 2011 [62].

Public Types

using H2O = SimpleH2O
 The components for pure water. More...
 
using N2 = SimpleN2
 The components for pure nitrogen. More...
 
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)
 Returns the human readable name of a fluid phase. More...
 
static constexpr bool isGas (int phaseIdx)
 Returns whether a phase is gaseous. More...
 
static 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 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)
 Returns the human readable name of a component. More...
 
static Scalar molarMass (int compIdx)
 Returns the molar mass of a component in \(\mathrm{[kg/mol]}\). More...
 
static Scalar criticalTemperature (int compIdx)
 Critical temperature of a component \(\mathrm{[K]}\). More...
 
static Scalar criticalPressure (int compIdx)
 Critical pressure of a component \(\mathrm{[Pa]}\). More...
 
static Scalar criticalMolarVolume (int compIdx)
 Molar volume of a component at the critical point \(\mathrm{[m^3/mol]}\). More...
 
static Scalar acentricFactor (int compIdx)
 The acentric factor of a component \(\mathrm{[-]}\). More...
 
static void init ()
 Initializes the fluid system's static parameters generically. More...
 
static void init (Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress)
 Initializes 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)
 Calculates the density \(\mathrm{[kg/m^3]}\) of a fluid phase. 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...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, int phaseIdx)
 Calculates the dynamic viscosity of a fluid phase \(\mathrm{[Pa*s]}\). More...
 
template<class FluidState >
static Scalar vaporTemperature (const FluidState &fluidState, const unsigned int phaseIdx)
 Calculates the temperature \(\mathrm{[K]}\) 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)
 Calculates the fugacity coefficient \(\mathrm{[-]}\) of an individual component in a fluid phase. More...
 
template<class FluidState >
static Scalar diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx)
 Calculates the 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, returns the binary diffusion coefficient \(\mathrm{[m^2/s]}\) for components \(i\) and \(j\) in this phase. More...
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, int phaseIdx)
 Calculates specific enthalpy \(\mathrm{[J/kg]}\). More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, const int phaseIdx)
 Thermal conductivity of a fluid phase \(\mathrm{[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 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 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 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 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 isMiscible ()
 Returns whether the fluids are miscible. 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 wPhaseIdx = 0
 
static constexpr int nPhaseIdx = 1
 
static constexpr int phase0Idx = 0
 
static constexpr int phase1Idx = 1
 
static constexpr int wCompIdx = wPhaseIdx
 
static constexpr int nCompIdx = nPhaseIdx
 
static constexpr int comp0Idx = 0
 
static constexpr int comp1Idx = 1
 
static constexpr int numComponents = 2
 Number of components in the fluid system. More...
 
static constexpr int H2OIdx = wCompIdx
 
static constexpr int N2Idx = nCompIdx
 

Member Typedef Documentation

◆ H2O

The components for pure water.

◆ N2

The components for pure nitrogen.

◆ ParameterCache

The type of parameter cache objects.

◆ Scalar

export the scalar type

Member Function Documentation

◆ acentricFactor()

template<class Scalar >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::acentricFactor ( int  compIdx)
inlinestatic

The acentric factor of a component \(\mathrm{[-]}\).

Parameters
compIdxThe index of the component to consider

◆ binaryDiffusionCoefficient() [1/3]

template<class Scalar >
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 >
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 >
template<class FluidState >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

Given a phase's composition, temperature and pressure, returns the binary diffusion coefficient \(\mathrm{[m^2/s]}\) 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

◆ componentName()

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

Returns the human readable name of a component.

Parameters
compIdxThe index of the component to consider

◆ criticalMolarVolume()

template<class Scalar >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::criticalMolarVolume ( int  compIdx)
inlinestatic

Molar volume of a component at the critical point \(\mathrm{[m^3/mol]}\).

Parameters
compIdxThe index of the component to consider

◆ criticalPressure()

template<class Scalar >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::criticalPressure ( int  compIdx)
inlinestatic

Critical pressure of a component \(\mathrm{[Pa]}\).

Parameters
compIdxThe index of the component to consider

◆ criticalTemperature()

template<class Scalar >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::criticalTemperature ( int  compIdx)
inlinestatic

Critical temperature of a component \(\mathrm{[K]}\).

Parameters
compIdxThe index of the component to consider

◆ density() [1/3]

template<class Scalar >
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() [2/3]

template<class Scalar >
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() [3/3]

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

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

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

◆ diffusionCoefficient() [1/3]

template<class Scalar >
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 >
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 >
template<class FluidState >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::diffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculates the 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/3]

template<class Scalar >
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() [2/3]

template<class Scalar >
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() [3/3]

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

Calculates specific enthalpy \(\mathrm{[J/kg]}\).

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

◆ fugacityCoefficient() [1/3]

template<class Scalar >
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 >
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 >
template<class FluidState >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::fugacityCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculates the fugacity coefficient \(\mathrm{[-]}\) 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

◆ getMainComponent()

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

Get the main component of a given phase if possible.

Parameters
phaseIdxThe index of the fluid phase to consider
Note
This method has to can assert at compile time if the fluid system doesn't assume a main phase. Then using e.g. Fick's law will fail compiling.
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.

◆ heatCapacity() [1/3]

template<class Scalar >
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() [2/3]

template<class Scalar >
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() [3/3]

template<class Scalar >
template<class FluidState >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::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

◆ init() [1/2]

template<class Scalar >
static void Dumux::FluidSystems::CombustionFluidsystem< Scalar >::init ( )
inlinestatic

Initializes 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 >
static void Dumux::FluidSystems::CombustionFluidsystem< Scalar >::init ( Scalar  tempMin,
Scalar  tempMax,
unsigned  nTemp,
Scalar  pressMin,
Scalar  pressMax,
unsigned  nPress 
)
inlinestatic

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

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

◆ isCompressible()

template<class Scalar >
static constexpr bool Dumux::FluidSystems::CombustionFluidsystem< Scalar >::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 >
static constexpr bool Dumux::FluidSystems::CombustionFluidsystem< Scalar >::isGas ( int  phaseIdx)
inlinestaticconstexpr

Returns whether a phase is gaseous.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isIdealGas()

template<class Scalar >
static bool Dumux::FluidSystems::CombustionFluidsystem< Scalar >::isIdealGas ( int  phaseIdx)
inlinestatic

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 >
static bool Dumux::FluidSystems::CombustionFluidsystem< Scalar >::isIdealMixture ( int  phaseIdx)
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 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()

static constexpr bool Dumux::FluidSystems::Base< Scalar , CombustionFluidsystem< Scalar > >::isMiscible ( )
inlinestaticconstexprinherited

Returns whether the fluids are miscible.

◆ isTracerFluidSystem()

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

Some properties of the fluid system.

If the fluid system only contains tracer components

◆ molarDensity() [1/3]

template<class Scalar >
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 >
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 >
template<class FluidState >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::molarDensity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

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

This is a specific molar density for the combustion test

◆ molarMass()

template<class Scalar >
static Scalar Dumux::FluidSystems::CombustionFluidsystem< Scalar >::molarMass ( int  compIdx)
inlinestatic

Returns the molar mass of a component in \(\mathrm{[kg/mol]}\).

Parameters
compIdxThe index of the component to consider

◆ phaseName()

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

Returns the human readable name of a fluid phase.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ thermalConductivity() [1/3]

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

Thermal conductivity of a fluid phase \(\mathrm{[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() [2/3]

template<class Scalar >
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/3]

template<class Scalar >
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

◆ vaporTemperature()

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

Calculates the temperature \(\mathrm{[K]}\) 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 >
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() [2/3]

template<class Scalar >
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() [3/3]

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

Calculates the dynamic viscosity of a fluid phase \(\mathrm{[Pa*s]}\).

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

◆ viscosityIsConstant()

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

◆ comp1Idx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::comp1Idx = 1
staticconstexpr

◆ H2OIdx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::H2OIdx = wCompIdx
staticconstexpr

◆ N2Idx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::N2Idx = nCompIdx
staticconstexpr

◆ nCompIdx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::nCompIdx = nPhaseIdx
staticconstexpr

◆ nPhaseIdx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::nPhaseIdx = 1
staticconstexpr

◆ numComponents

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::numComponents = 2
staticconstexpr

Number of components in the fluid system.

◆ numPhases

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::numPhases = 2
staticconstexpr

Number of phases in the fluid system.

◆ phase0Idx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::phase0Idx = 0
staticconstexpr

◆ phase1Idx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::phase1Idx = 1
staticconstexpr

◆ wCompIdx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::wCompIdx = wPhaseIdx
staticconstexpr

◆ wPhaseIdx

template<class Scalar >
constexpr int Dumux::FluidSystems::CombustionFluidsystem< Scalar >::wPhaseIdx = 0
staticconstexpr

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