A compositional fluid with brine (H2O & NaCl) and carbon dioxide as components in both the liquid and the gas (supercritical) phase.
More...
template<class Scalar, class CO2Component, class H2OType = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineCO2DefaultPolicy<true>>
class Dumux::FluidSystems::BrineCO2< Scalar, CO2Component, H2OType, Policy >
- Note
- Depending on the chosen policy, the salinity is assumed to be constant (in which case Brine is used as a pseudo component) or salt (here NaCl) is considered as an individual component.
-
This implementation always assumes NaCl stays in the liquid phase.
|
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 \(\mathrm{[kg/mol]}\). More...
|
|
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 \(\mathrm{[kg/m^3]}\). 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 | 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) |
| Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase. More...
|
|
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 \(\mathrm{[mol^2 * s / (kg*m^3)]}\). More...
|
|
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 \(\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) |
| Specific isobaric heat capacity \(c_{p,\alpha}\) of a fluid phase \(\mathrm{[J/(kg*K)]}\). More...
|
|
template<class Scalar , class CO2Component , class H2OType = Components::TabulatedComponent<Components::H2O<Scalar>>, class Policy = BrineCO2DefaultPolicy<true>>
template<class FluidState >
static Scalar Dumux::FluidSystems::BrineCO2< Scalar, CO2Component, H2OType, Policy >::diffusionCoefficient |
( |
const FluidState & |
fluidState, |
|
|
int |
phaseIdx, |
|
|
int |
compIdx |
|
) |
| |
|
inlinestatic |
Molecular diffusion of a component \(\mathrm{\kappa}\) is caused by a gradient of the chemical potential and follows the law
\[ J = - D \nabla mu_\kappa \]
where \(\mathrm{\mu_\kappa}\) is the component's chemical potential, \(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.
Maybe see http://www.ddbst.de/en/EED/PCP/DIF_C1050.php
- Parameters
-
fluidState | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
compIdx | The index of the component to consider |