A compositional fluid with brine (H2O & NaCl) and carbon dioxide as components in both the liquid and the gas (supercritical) phase. More...
#include <dumux/material/fluidsystems/brineco2.hh>
Public Types | |
using | ParameterCache = NullParameterCache |
using | H2O = H2OType |
using | Brine = BrineType |
using | CO2 = CO2Component |
Static Public Member Functions | |
static std::string | phaseName (int phaseIdx) |
Return the human readable name of a fluid phase. More... | |
static constexpr bool | isMiscible () |
Returns whether the fluids are miscible. More... | |
static constexpr bool | isGas (int phaseIdx) |
Return whether a phase is gaseous. More... | |
static constexpr bool | isIdealGas (int phaseIdx) |
Returns true if and only if a fluid phase is assumed to be an ideal gas. 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 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 | |
static void | init () |
static void | init (Scalar startTemp, Scalar endTemp, int tempSteps, Scalar startPressure, Scalar endPressure, int pressureSteps) |
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) |
Calculate the fugacity coefficient | |
template<class FluidState > | |
static Scalar | equilibriumMoleFraction (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
Returns the equilibrium mole fraction of the dissolved component in a phase. More... | |
template<class FluidState > | |
static Scalar | diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx) |
Calculate the molecular diffusion coefficient for a component in a fluid phase | |
template<class FluidState > | |
static Scalar | binaryDiffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIIdx, int compJIdx) |
template<class FluidState > | |
static Scalar | enthalpy (const FluidState &fluidState, int phaseIdx) |
template<class FluidState > | |
static Scalar | 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 | |
Static Public Attributes | |
static constexpr int | numComponents = useConstantSalinity ? 2 : 3 |
static constexpr int | numPhases = 2 |
static constexpr int | liquidPhaseIdx = 0 |
index of the liquid phase More... | |
static constexpr int | gasPhaseIdx = 1 |
index of the gas phase More... | |
static constexpr int | phase0Idx = liquidPhaseIdx |
index of the first phase More... | |
static constexpr int | phase1Idx = gasPhaseIdx |
index of the second phase More... | |
static constexpr int | comp0Idx = 0 |
static constexpr int | comp1Idx = 1 |
static constexpr int | CO2Idx = comp1Idx |
using Dumux::FluidSystems::BrineCO2< Scalar, CO2Component, H2OType, Policy >::Brine = BrineType |
using Dumux::FluidSystems::BrineCO2< Scalar, CO2Component, H2OType, Policy >::CO2 = CO2Component |
using Dumux::FluidSystems::BrineCO2< Scalar, CO2Component, H2OType, Policy >::H2O = H2OType |
using Dumux::FluidSystems::BrineCO2< Scalar, CO2Component, H2OType, Policy >::ParameterCache = NullParameterCache |
|
inlinestatic |
|
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 |
fluidState | The fluid state |
phaseIdx | The index of the phase |
|
inlinestatic |
Molecular diffusion of a component
where
where
Maybe see http://www.ddbst.de/en/EED/PCP/DIF_C1050.php
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
compIdx | The index of the component to consider |
|
inlinestatic |
|
inlinestatic |
fluidState | An arbitrary fluid state |
paramCache | Parameter cache |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
The fugacity coefficient
fluidState | The fluid state |
phaseIdx | Index of the fluid phase |
compIdx | Index of the component |
|
inlinestatic |
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
|
inlinestatic |
|
inlinestatic |
|
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 |
|
inlinestaticconstexpr |
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 | The index of the fluid phase to consider |
|
inlinestatic |
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase 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 |