A compositional two-phase fluid system with a liquid and a gaseous phase and
#include <dumux/material/fluidsystems/brineair.hh>
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 | |
template<class FluidState > | |
static Scalar | vaporPressure (const FluidState &fluidState, int compIdx) |
Vapor pressure of a component | |
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 | |
template<class FluidState > | |
static Scalar | molarDensity (const FluidState &fluidState, int phaseIdx) |
Calculate the molar density | |
template<class FluidState > | |
static Scalar | viscosity (const FluidState &fluidState, int phaseIdx) |
Calculate the dynamic viscosity of a fluid phase | |
template<class FluidState > | |
static Scalar | fugacityCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx) |
Returns the fugacity coefficient | |
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 | |
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 | |
template<class FluidState > | |
static Scalar | enthalpy (const FluidState &fluidState, int phaseIdx) |
Given a phase's composition, temperature and pressure, return its specific enthalpy | |
template<class FluidState > | |
static Scalar | componentEnthalpy (const FluidState &fluidState, int phaseIdx, int componentIdx) |
Returns the specific enthalpy | |
template<class FluidState > | |
static Scalar | thermalConductivity (const FluidState &fluidState, int phaseIdx) |
Thermal conductivity of a fluid phase | |
template<class FluidState > | |
static Scalar | heatCapacity (const FluidState &fluidState, int phaseIdx) |
Specific isobaric heat capacity of a fluid phase. | |
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 |
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::Air = Components::Air<Scalar> |
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::Brine = Dumux::FluidSystems::Brine<Scalar, H2Otype> |
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::H2O = H2Otype |
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::H2O_Air = BinaryCoeff::H2O_Air |
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::NaCl = Components::NaCl<Scalar> |
using Dumux::FluidSystems::BrineAir< Scalar, H2Otype, Policy >::ParameterCache = NullParameterCache |
|
inlinestatic |
fluidState | The fluid state |
phaseIdx | Index of the fluid phase |
compIIdx | Index of the component i |
compJIdx | Index of the component j |
|
inlinestatic |
fluidState | The fluid state |
phaseIdx | The index of the phase |
componentIdx | The index of the component |
|
inlinestatic |
compIdx | The index of the component to consider |
|
inlinestatic |
|
inlinestatic |
Molecular diffusion of a component
where
where
fluidState | The fluid state |
phaseIdx | Index of the fluid phase |
compIdx | Index of the component |
|
inlinestatic |
fluidState | The fluid state |
phaseIdx | The 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 [23]
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)
|
inlinestatic |
fluidState | The fluid state |
phaseIdx | Index of the phase |
compIdx | Index of the component |
The fugacity coefficient
where
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.
|
inlinestaticconstexpr |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
If a tabulated H2O component is used, we do our best to create tables that always work.
|
inlinestatic |
tempMin | The minimum temperature used for tabulation of water |
tempMax | The maximum temperature used for tabulation of water |
nTemp | The number of ticks on the temperature axis of the table of water |
pressMin | The minimum pressure used for tabulation of water |
pressMax | The maximum pressure used for tabulation of water |
nPress | The number of ticks on the pressure axis of the table of water |
|
inlinestaticconstexpr |
Compressible means that the partial derivative of the density to the fluid pressure is always larger than zero.
phaseIdx | The index of the fluid phase to consider |
|
inlinestaticconstexpr |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
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.
phaseIdx | The index of the fluid phase to consider |
|
inlinestaticconstexpr |
|
inlinestatic |
fluidState | The fluid state |
phaseIdx | Index of the fluid phase |
|
inlinestatic |
compIdx | The index of the component to consider |
|
inlinestatic |
phaseIdx | index of the phase |
|
inlinestatic |
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
fluidState | The fluid state |
compIdx | The index of the component to consider |
|
inlinestatic |
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |