Changeset 1174

Show
Ignore:
Timestamp:
10/08/08 08:11:28 (2 months ago)
Author:
otter
Message:

Improved MoistAir.T_phX:
This function computes T by inverting function h_pTX. The temperature range of the inversion
was previously set to 200 ... 6000 K. This was changed to 240 .. 400 K.
Since the range is much smaller, the numeric solution of the scalar non-linear equation
system will be faster.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Modelica/trunk/Modelica/Media/Air.mo

    r1103 r1174  
    612612 
    613613  algorithm 
    614     T := Internal.solve(h, 200, 6000, p, X[1:nXi], steam); 
     614    T := Internal.solve(h, 240, 400, p, X[1:nXi], steam); 
    615615      annotation (Documentation(info="<html> 
    616616Temperature is computed from pressure, specific enthalpy and composition via numerical inversion of function <a href=Modelica:Modelica.Media.Air.MoistAir.h_pTX>h_pTX</a>.