.MultiPhaseMixture.PreDefined.Mixtures.NativeModelica.DryAir.EquationsOfState.AirFastIdealGas.T_psX

Information

Compute temperature from pressure, specific entropy and mass fraction

Interface

function T_psX
  input Modelica.SIunits.AbsolutePressure p "pressure";
  input Modelica.SIunits.SpecificEntropy s "specific entropy";
  input Modelica.SIunits.MassFraction[nS] X "mass fractions of composition";
  output Modelica.SIunits.Temperature T "temperature";

  package Internal "Solve s(data,T) for T with given s (use only indirectly via temperature_psX)"
    extends Modelica.Media.Common.OneNonLinearEquation;

    redeclare record extends f_nonlinear_Data "Data to be passed to non-linear function"
        extends Modelica.Media.IdealGases.Common.DataRecord;
    end f_nonlinear_Data;

    redeclare function extends f_nonlinear "note that this function always sees the complete mass fraction vector"
      algorithm
        y := s_pTX(p = p, T = x, X = X);
    end f_nonlinear;

    // Dummy definition has to be added for current Dymola

    redeclare function extends solve
    end solve;
  end Internal;
end T_psX;

Contents

NameDescription
 InternalSolve s(data,T) for T with given s (use only indirectly via temperature_psX)

Generated at 2024-09-18T18:25:49Z by OpenModelicaOpenModelica 1.23.1 using GenerateDoc.mos