.ThermofluidStream.Media.XRGMedia.R1234yf_ph.setState_phX

Set state for pressure and specific enthalpy (X not used since single substance)

Information

This function should be used by default in order to calculate the thermodynamic state record used as input by many functions.

Example:

  parameter Medium.AbsolutePressure p = 3e5;
  parameter Medium.SpecificEnthalpy h = 4.2e5;

  Medium.Density rho;

equation

  rho = Medium.density(setState_phX(p, h, fill(0, Medium.nX)));

Generated at 2025-03-08T19:24:39Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos