functiontemperature_u

Computes the temperature of a phase change material for a given specific internal energy

Information

This function computes for a given specific internal energy u the temperature T(u), using a cubic hermite spline approximation to the temperature vs. specific internal energy relation. Input to the function are the derivatives dT/du at the support points. These derivatives can be computed using Buildings.HeatTransfer.Conduction.BaseClasses.der_temperature_u.

Implementation

The derivatives dT/du are an input to this function because they typically only need to be computed once, whereas T(u) must be evaluated at each time step.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.SpecificInternalEnergy[Buildings.HeatTransfer.Conduction.nSupPCM]udSupport points for derivatives
Modelica.Units.SI.Temperature[Buildings.HeatTransfer.Conduction.nSupPCM]TdSupport points for derivatives
Real[:]dT_duDerivatives dT/du at the support points
Modelica.Units.SI.SpecificInternalEnergyuSpecific internal energy

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureTResulting temperature

Revisions

  • March 9, 2013, by Michael Wetter:
    Revised implementation to use new data record.
  • January 19, 2013, by Armin Teskeredzic:
    First implementations.