This is a fluid state which allows to set the fluid pressures and takes all other quantities from an other fluid state.
|
| PressureOverlayFluidState (const FluidState &fs) |
| Constructor.
|
|
| PressureOverlayFluidState (const PressureOverlayFluidState &fs)=default |
|
| PressureOverlayFluidState (PressureOverlayFluidState &&fs)=default |
|
PressureOverlayFluidState & | operator= (const PressureOverlayFluidState &fs)=default |
|
PressureOverlayFluidState & | operator= (PressureOverlayFluidState &&fs)=default |
|
Scalar | saturation (int phaseIdx) const |
| Returns the saturation \(S_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[-]}\).
|
|
Scalar | moleFraction (int phaseIdx, int compIdx) const |
| Returns the molar fraction \(x^\kappa_\alpha\) of the component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\).
|
|
Scalar | massFraction (int phaseIdx, int compIdx) const |
| Returns the mass fraction \(X^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\).
|
|
Scalar | averageMolarMass (int phaseIdx) const |
| The average molar mass \(\overline M_\alpha\) of phase \(\alpha\) in \(\mathrm{[kg/mol]}\).
|
|
Scalar | molarity (int phaseIdx, int compIdx) const |
| The molar concentration \(c^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\).
|
|
Scalar | fugacity (int phaseIdx, int compIdx) const |
| The fugacity \(f^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[Pa]}\).
|
|
Scalar | fugacityCoefficient (int phaseIdx, int compIdx) const |
| The fugacity coefficient \(\Phi^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\).
|
|
Scalar | molarVolume (int phaseIdx) const |
| The molar volume \(v_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[m^3/mol]}\).
|
|
Scalar | density (int phaseIdx) const |
| The mass density \(\rho_\alpha\) of the fluid phase \(\alpha\) in \(\mathrm{[kg/m^3]}\).
|
|
Scalar | molarDensity (int phaseIdx) const |
| The molar density \(\rho_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\).
|
|
Scalar | temperature (int phaseIdx) const |
| The absolute temperature \(T_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[K]}\).
|
|
Scalar | pressure (int phaseIdx) const |
| The pressure \(p_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[Pa]}\).
|
|
Scalar | enthalpy (int phaseIdx) const |
| The specific enthalpy \(h_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\).
|
|
Scalar | internalEnergy (int phaseIdx) const |
| The specific internal energy \(u_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\).
|
|
Scalar | viscosity (int phaseIdx) const |
| The dynamic viscosity \(\mu_\alpha\) of fluid phase \(\alpha\) in \(\mathrm{[Pa s]}\).
|
|
void | setPressure (int phaseIdx, Scalar value) |
| Set the pressure \(\mathrm{[Pa]}\) of a fluid phase.
|
|
template<class FluidState >
The fugacity is defined as: \(f_\alpha^\kappa := \Phi^\kappa_\alpha x^\kappa_\alpha p_\alpha \;,\) where \(\Phi^\kappa_\alpha\) is the fugacity coefficient [reid1987] . The physical meaning of fugacity becomes clear from the equation:
\[f_\alpha^\kappa = p_\alpha \exp\left\{\frac{\zeta^\kappa_\alpha}{R T_\alpha} \right\} \;,\]
where \(\zeta^\kappa_\alpha\) represents the \(\kappa\)'s chemical potential in phase \(\alpha\), \(R\) stands for the ideal gas constant, and \(T_\alpha\) for the absolute temperature of phase \(\alpha\). Assuming thermal equilibrium, there is a one-to-one mapping between a component's chemical potential \(\zeta^\kappa_\alpha\) and its fugacity \(f^\kappa_\alpha\). In this case chemical equilibrium can thus be expressed by:
\[f^\kappa := f^\kappa_\alpha = f^\kappa_\beta\quad\forall \alpha, \beta\]
template<class FluidState >
The mass fraction \(X^\kappa_\alpha\) is defined as the weight of all molecules of a component divided by the total mass of the fluid phase. It is related with the component's mole fraction by means of the relation
\[X^\kappa_\alpha = x^\kappa_\alpha \frac{M^\kappa}{\overline M_\alpha}\;,\]
where \(M^\kappa\) is the molar mass of component \(\kappa\) and \(\overline M_\alpha\) is the mean molar mass of a molecule of phase \(\alpha\).
- Parameters
-
phaseIdx | the index of the phase |
compIdx | the index of the component |