modelCriticalPointEoS

critical point of the EoS: (dp/dd)@T = (d2p/dd2)@T = 0

Information

The critical constants in fluidConstants must be the critical point of the EoS itself, where (dp/dd)@T = (d2p/dd2)@T = 0, because they are used for all region checks (two-phase or not). They can differ from published critical values and from the reducing parameters of the EoS (helmholtzCoefficients.T_reducing, d_reducing) and of the ancillary equations (ancillaryCoefficients.T_crit, p_crit, d_crit).

This model determines the critical point of the EoS by two nested bisections: for a given temperature, the inflection density with (d2p/dd2)@T = 0, and the temperature at which (dp/dd)@T at the inflection density is zero. The results are written to criticalpoint.txt, and an assert checks that they agree with the critical constants (relative tolerance 1e-9 for temperature and pressure, 1e-7 for density).

Components

TypeNameDefaultDescription
Medium.TemperatureT_ccritical temperature of the EoS
Medium.Densityd_ccritical density of the EoS
Medium.AbsolutePressurep_ccritical pressure of the EoS

Contents

NameDescription
Medium
inflectionDensityprotecteddensity where (d2p/dd2)@T = 0, by bisection
criticalPointprotectedtemperature where the minimum of (dp/dd)@T, at the inflection density, is zero