.MultiPhaseMixture.Information.UsersGuide.SaturationProperties

Information

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

Efficient calculations

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:

  1. Find the index of the specified phase. This is defined by Medium.phases. Example: 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
  2. Check so this phase is available in the used Medium. Example:
  3. initial equation 

       assert(LIQUID_INDEX>0,"Liquid is not an available phase");

  4. Reference the one-phase property of interest. Example: d_liq=multiPhaseProperties.d_1ph[LIQUID_INDEX];

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos