.ThermofluidStream.Media.myMedia.Air.MoistAir.T_psX

Return temperature as a function of pressure p, specific entropy s and composition X

Information

Temperature is computed from pressure, specific entropy and composition via numerical inversion of function s_pTX.

Interface

function T_psX
  extends Modelica.Icons.Function;
  input AbsolutePressure p "Pressure";
  input SpecificEntropy s "Specific entropy";
  input MassFraction[:] X "Mass fractions of composition";
  output Temperature T "Temperature";
end T_psX;

Revisions

2012-01-12 Stefan Wischhusen: Initial Release.

2026-04-08 Corentin Lepais: Correct algorithm to add X[Air] to the vector X if size(X,1) is different from nX.


Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos