Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility and thermodynamic equilibrium.
More...
template<class ScalarType, class FluidSystem>
class Dumux::IsothermalImmiscibleFluidState< ScalarType, FluidSystem >
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility and thermodynamic equilibrium.
|
| IsothermalImmiscibleFluidState ()=default |
| default constructor More...
|
|
template<class FluidState , typename std::enable_if_t<!std::is_same< FluidState, IsothermalImmiscibleFluidState >::value, int > = 0> |
| IsothermalImmiscibleFluidState (const FluidState &fs) |
| copy constructor from arbitrary fluid state More...
|
|
| IsothermalImmiscibleFluidState (const IsothermalImmiscibleFluidState &fs)=default |
|
| IsothermalImmiscibleFluidState (IsothermalImmiscibleFluidState &&fs)=default |
|
IsothermalImmiscibleFluidState & | operator= (const IsothermalImmiscibleFluidState &fs)=default |
|
IsothermalImmiscibleFluidState & | operator= (IsothermalImmiscibleFluidState &&fs)=default |
|
int | wettingPhase () const |
| Returns the index of the most wetting phase in the fluid-solid configuration (for porous medium systems). More...
|
|
Scalar | saturation (int phaseIdx) const |
| Returns the saturation \(S_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[-]}\). More...
|
|
Scalar | moleFraction (int phaseIdx, int compIdx) const |
| Returns the molar fraction \(x^\kappa_\alpha\) of the component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). More...
|
|
Scalar | massFraction (int phaseIdx, int compIdx) const |
| Returns the mass fraction \(X^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). More...
|
|
Scalar | averageMolarMass (int phaseIdx) const |
| The average molar mass \(\overline M_\alpha\) of phase \(\alpha\) in \(\mathrm{[kg/mol]}\). More...
|
|
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]}\). More...
|
|
Scalar | fugacity (int phaseIdx, int compIdx) const |
| The fugacity \(f^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[Pa]}\). More...
|
|
Scalar | fugacityCoefficient (int phaseIdx, int compIdx) const |
| The fugacity coefficient \(\Phi^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). More...
|
|
Scalar | molarVolume (int phaseIdx) const |
| The molar volume \(v_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[m^3/mol]}\). More...
|
|
Scalar | density (int phaseIdx) const |
| The mass density \(\rho_\alpha\) of the fluid phase \(\alpha\) in \(\mathrm{[kg/m^3]}\). More...
|
|
Scalar | molarDensity (int phaseIdx) const |
| The molar density \(\rho_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\). More...
|
|
Scalar | temperature (int phaseIdx) const |
| The temperature of a fluid phase \(\mathrm{[K]}\). More...
|
|
Scalar | temperature () const |
| The temperature within the domain \(\mathrm{[K]}\). More...
|
|
Scalar | pressure (int phaseIdx) const |
| The pressure \(p_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[Pa]}\). More...
|
|
Scalar | enthalpy (int phaseIdx) const |
| The specific enthalpy \(h_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\) This is not defined for an isothermal fluidstate. More...
|
|
Scalar | internalEnergy (int phaseIdx) const |
| The specific internal energy \(u_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\). More...
|
|
Scalar | viscosity (int phaseIdx) const |
| The dynamic viscosity \(\mu_\alpha\) of fluid phase \(\alpha\) in \(\mathrm{[Pa s]}\). More...
|
|
template<class FluidState > |
void | assign (const FluidState &fs) |
| Retrieve all parameters from an arbitrary fluid state. More...
|
|
void | setTemperature (Scalar value) |
| Set the temperature \(\mathrm{[K]]}\) of a fluid phase. More...
|
|
void | setPressure (int phaseIdx, Scalar value) |
| Set the fluid pressure of a phase \(\mathrm{[Pa]}\). More...
|
|
void | setSaturation (int phaseIdx, Scalar value) |
| Set the saturation of a phase \(\mathrm{[-]}\). More...
|
|
void | setDensity (int phaseIdx, Scalar value) |
| Set the density of a phase \(\mathrm{[kg/m^3]}\). More...
|
|
void | setMolarDensity (int phaseIdx, Scalar value) |
| Set the molar density of a phase \(\mathrm{[kg/m^3]}\). More...
|
|
void | setViscosity (int phaseIdx, Scalar value) |
| Set the dynamic viscosity of a phase \(\mathrm{[Pa s]}\). More...
|
|
void | setWettingPhase (int phaseIdx) |
| Set the index of the most wetting phase. More...
|
|
template<class ScalarType , class FluidSystem >
The fugacity \(f^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[Pa]}\).
The fugacity \(f^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[Pa]}\).
The fugacity is defined as: \(f_\alpha^\kappa := \Phi^\kappa_\alpha x^\kappa_\alpha p_\alpha \;,\) where \(\Phi^\kappa_\alpha\) is the fugacity coefficient [59] . 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\]
To avoid numerical issues with code that assumes miscibility, we return a fugacity of 0 for components which do not mix with the specified phase. (Actually it is undefined, but for finite fugacity coefficients, the only way to get components completely out of a phase is 0 to feed it zero fugacity.) To avoid numerical issues with code that assumes miscibility, we return a fugacity of 0 for components which do not mix with the specified phase. (Actually it is undefined, but for finite fugacity coefficients, the only way to get components completely out of a phase is 0 to feed it zero fugacity.)