.Buildings.HeatTransfer.Conduction.BaseClasses.temperature_u

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.

Interface

function temperature_u
  input Modelica.Units.SI.SpecificInternalEnergy ud[Buildings.HeatTransfer.Conduction.nSupPCM] "Support points for derivatives";
  input Modelica.Units.SI.Temperature Td[Buildings.HeatTransfer.Conduction.nSupPCM] "Support points for derivatives";
  input Real dT_du[:](each fixed = false, each unit = "kg.K2/J") "Derivatives dT/du at the support points";
  input Modelica.Units.SI.SpecificInternalEnergy u "Specific internal energy";
  output Modelica.Units.SI.Temperature T "Resulting temperature";
end temperature_u;

Revisions


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos