Saturation properties
Caulculations of saturation properties is done with model SatPhaseEquilibriumProperties. Dew and bubble properties for a vapor-liquid equilibrium can be calculated by setting the phase fraction to 1 for the vapor or liquid phase:
Example: calculation of bubble density using SatPhaseEquilibriumProperties model
If a model is assumed to always be in the multiphase zone. Then MultiPhaseProperties can be used instead of SatPhaseEquilibriumProperties. This decrease the number of models and thereby gives better simulation performance. To get the properties of a specific phase:
final parameter Integer LIQUID_INDEX=Medium.getPhaseIndex("Liquid") "Index of phase LIQUID" annotation(Evaluate=true); // Note index for Liquid and vapor is also precalculated and available as Medium.PhaseLabelLiquid and Medium.PhaseLabelVapor
initial equation
assert
(LIQUID_INDEX>0,"Liquid is not an available phase");
Reference the one-phase property of interest. Example: d_liq=multiPhaseProperties.d_1ph[LIQUID_INDEX];