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

A compositional two-phase fluid system with a liquid and a gaseous phase and \(H_2O\), \(Air\) and \(S\) (dissolved minerals) as components. More...

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

Inheritance diagram for Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >:
Inheritance graph

Description

template<class Scalar, class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
class Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >

A compositional two-phase fluid system with a liquid and a gaseous phase and \(H_2O\), \(Air\) and \(S\) (dissolved minerals) as components.

Note
This fluidsystem is applied by default with the tabulated version of water of the IAPWS-formulation.

Public Types

using H2O = H2Otype
 export the involved components More...
 
using Air = Components::Air< Scalar >
 
using NaCl = Components::NaCl< Scalar >
 
using Brine = Dumux::FluidSystems::Brine< Scalar, H2Otype >
 export the underlying brine fluid system for the liquid phase More...
 
using H2O_Air = BinaryCoeff::H2O_Air
 export the binary coefficients between air and water 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 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 constexpr int getMainComponent (int phaseIdx)
 Get the main component of a given phase if possible. 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 \(\mathrm{[kg/mol]}\). More...
 
template<class FluidState >
static Scalar vaporPressure (const FluidState &fluidState, int compIdx)
 Vapor pressure of a component \(\mathrm{[Pa]}\). 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)
 Given a phase's composition, temperature, pressure, and the partial pressures of all components, return its density \(\mathrm{[kg/m^3]}\). 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)
 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)
 Returns the fugacity coefficient \(\mathrm{[-]}\) of a component in a phase. More...
 
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)
 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 and pressure, return its specific enthalpy \(\mathrm{[J/kg]}\). 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 a specific phase. More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, int phaseIdx)
 Thermal conductivity of a fluid phase \(\mathrm{[W/(m K)]}\). More...
 
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 \(\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 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 Public Attributes

static constexpr int numPhases = 2
 
static constexpr int numComponents = 3
 
static constexpr int liquidPhaseIdx = 0
 
static constexpr int gasPhaseIdx = 1
 
static constexpr int phase0Idx = liquidPhaseIdx
 
static constexpr int phase1Idx = gasPhaseIdx
 
static constexpr int H2OIdx = 0
 
static constexpr int AirIdx = 1
 
static constexpr int NaClIdx = 2
 
static constexpr int comp0Idx = H2OIdx
 
static constexpr int comp1Idx = AirIdx
 
static constexpr int comp2Idx = NaClIdx
 

Member Typedef Documentation

◆ Air

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::Air = Components::Air<Scalar>

◆ Brine

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::Brine = Dumux::FluidSystems::Brine<Scalar, H2Otype>

export the underlying brine fluid system for the liquid phase

◆ H2O

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::H2O = H2Otype

export the involved components

◆ H2O_Air

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::H2O_Air = BinaryCoeff::H2O_Air

export the binary coefficients between air and water

◆ NaCl

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::NaCl = Components::NaCl<Scalar>

◆ ParameterCache

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::ParameterCache = NullParameterCache

the type of parameter cache objects

Member Function Documentation

◆ binaryDiffusionCoefficient() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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 first component to consider
compJIdxThe index of the second component to consider

◆ componentEnthalpy()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::componentEnthalpy ( const FluidState &  fluidState,
int  phaseIdx,
int  componentIdx 
)
inlinestatic

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

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

◆ componentName()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static std::string Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::componentName ( int  compIdx)
inlinestatic

Return the human readable name of a component.

Parameters
compIdxThe index of the component to consider

◆ density() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::density ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Given a phase's composition, temperature, pressure, and the partial pressures of all components, return its density \(\mathrm{[kg/m^3]}\).

Parameters
fluidStatethe fluid state
phaseIdxindex of the phase

Equation given in:

  • Batzle & Wang (1992) [8]
  • cited by: Bachu & Adams (2002) "Equations of State for basin geofluids" [3]

◆ diffusionCoefficient() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::diffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

◆ enthalpy() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::enthalpy ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

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

Parameters
fluidStateThe fluid state
phaseIdxThe index of the phase

See: Class 2000 Theorie und numerische Modellierung nichtisothermer Mehrphasenprozesse in NAPL-kontaminierten porösen Medien Chapter 2.1.13 Innere Energie, Wäremekapazität, Enthalpie [14]

Formula (2.42): the specific enthalpy of a gas phase result from the sum of (enthalpies*mass fraction) of the components For the calculation of enthalpy of brine we refer to (Michaelides 1981)

Note
For the phase enthalpy the contribution of gas-molecules in the liquid phase is neglected. This contribution is probably not big. Somebody would have to find out the enthalpy of solution for this system. ...

◆ fugacityCoefficient() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::fugacityCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Returns the fugacity coefficient \(\mathrm{[-]}\) of a component in a phase.

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

The fugacity coefficient \(\mathrm{\phi^\kappa_\alpha}\) of component \(\mathrm{\kappa}\) in phase \(\mathrm{\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 \]

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

For liquids with very low miscibility this boils down to the Henry constant for the solutes and the saturated vapor pressure both divided by phase pressure.

◆ getMainComponent()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::getMainComponent ( int  phaseIdx)
inlinestaticconstexpr

Get the main component of a given phase if possible.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ heatCapacity() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 abitrary fluid state
phaseIdxThe index of the fluid phase to consider
Todo:
TODO: The calculation of the isobaric heat capacity is preliminary. A better description of the influence of the composition on the air phase property has to be found.

◆ heatCapacity() [2/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 abitrary fluid state
phaseIdxThe index of the fluid phase to consider
Todo:
TODO: The calculation of the isobaric heat capacity is preliminary. A better description of the influence of the composition on the air phase property has to be found.

◆ heatCapacity() [3/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::heatCapacity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

◆ init() [1/2]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static void Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static void Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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 \(\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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static constexpr bool Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static constexpr bool Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::isGas ( int  phaseIdx)
inlinestaticconstexpr

Return whether a phase is gaseous.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isIdealGas()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static bool Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static bool Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static constexpr bool Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::isMiscible ( )
inlinestaticconstexpr

Returns whether the fluids are miscible.

◆ molarDensity() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::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 for the complex relation is defined by the mass density \(\rho_\alpha\) and the mean molar mass \(\overline M_\alpha\):

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

◆ molarMass()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::molarMass ( int  compIdx)
inlinestatic

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

Parameters
compIdxThe index of the component to consider

◆ phaseName()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
static std::string Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::phaseName ( int  phaseIdx)
inlinestatic

Return the human readable name of a fluid phase.

Parameters
phaseIdxindex of the phase

◆ thermalConductivity() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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() [2/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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() [3/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::thermalConductivity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

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

Parameters
fluidStateAn abitrary fluid state
phaseIdxThe index of the fluid phase to consider
Todo:
TODO: For the thermal conductivity of the air phase the contribution of the minor components is neglected. This contribution is probably not big, but somebody would have to find out its influence.

◆ vaporPressure()

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::vaporPressure ( const FluidState &  fluidState,
int  compIdx 
)
inlinestatic

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

Parameters
fluidStateThe fluid state
compIdxThe index of the component to consider

◆ viscosity() [1/3]

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
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 , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::viscosity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

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

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
Note
For the viscosity of the phases the contribution of the minor component is neglected. This contribution is probably not big, but somebody would have to find out its influence.

Member Data Documentation

◆ AirIdx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::AirIdx = 1
staticconstexpr

◆ comp0Idx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::comp0Idx = H2OIdx
staticconstexpr

◆ comp1Idx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::comp1Idx = AirIdx
staticconstexpr

◆ comp2Idx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::comp2Idx = NaClIdx
staticconstexpr

◆ gasPhaseIdx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::gasPhaseIdx = 1
staticconstexpr

◆ H2OIdx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::H2OIdx = 0
staticconstexpr

◆ liquidPhaseIdx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::liquidPhaseIdx = 0
staticconstexpr

◆ NaClIdx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::NaClIdx = 2
staticconstexpr

◆ numComponents

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::numComponents = 3
staticconstexpr

◆ numPhases

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::numPhases = 2
staticconstexpr

◆ phase0Idx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::phase0Idx = liquidPhaseIdx
staticconstexpr

◆ phase1Idx

template<class Scalar , class H2Otype = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineAirDefaultPolicy<>>
constexpr int Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::phase1Idx = gasPhaseIdx
staticconstexpr

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