.ThermofluidStream.Media.XRGMedia.R245fa_ph.setState_dTX

Set state for density and temperature (X not used since single substance)

Information

Although the medium package is explicit for pressure and specific enthalpy, this function may be used in order to calculate the thermodynamic state record used as input by many functions. It will calculate the missing states:

Example:

  parameter Medium.Density d = 4;
  parameter Medium.Temperature T = 298;

  Medium.SpecficEntropy s;

equation

  s = Medium.specificEntropy(setState_dTX(d, T, fill(0, Medium.nX)));

Revisions

2019-12-17 Stefan Wischhusen: Two-phase calculation corrected.


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