modelMaxwellLoop

show Maxwell Loops
Diagram of MaxwellLoop

Information

This model is used to compare the curvatures of two sub-critical isotherms in the two-phase region of a p,d-plot.
One isotherm is calcualted directly from the EoS (showing some loops in the two-phase region),
one isotherm is calculated taking into account the VLE conditions (straight line in the two-phase region).
How to use:
  1. Simulate with T<T_crit
  2. Plot p and state.p
  3. Make d the independent variable of the plot
  4. Rescale the range for p to something like -100 to +100
  5. Look at the loops
Further reading:
Lemmon, E. W. and Jacobsen, R. T.:
A New Functional Form and New Fitting Techniques for Equations of State with Application to Pentafluoroethane (HFC-125).
Journal of Physical and Chemical Reference Data 34 (1) , 69-108 (2005)
DOI: 10.1063/1.1797813

Parameters

TypeNameDefaultDescription
Medium.TemperatureT0.9*Tcrit

Components

TypeNameDefaultDescription
Medium.Densityd
Modelica.Units.SI.SpecificVolumev1/d
Medium.ThermodynamicStatestateMedium.setState_dTX(d = d, T = T)
Medium.EoS.HelmholtzDerivsfMedium.EoS.setHelmholtzDerivsThird(d = d, T = T, phase = 1)
Medium.AbsolutePressurepMedium.EoS.p(f)
Modelica.Blocks.Sources.RampRamp_dvap
Modelica.Blocks.Sources.RampRamp_dliq

Contents

NameDescription
Medium