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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.SpecificInternalEnergy[Buildings.HeatTransfer.Conduction.nSupPCM] | ud | Support points for derivatives | |
| Modelica.Units.SI.Temperature[Buildings.HeatTransfer.Conduction.nSupPCM] | Td | Support points for derivatives | |
| Real[:] | dT_du | Derivatives dT/du at the support points | |
| Modelica.Units.SI.SpecificInternalEnergy | u | Specific internal energy |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Temperature | T | Resulting temperature |
Revisions
-
March 9, 2013, by Michael Wetter:
Revised implementation to use new data record. -
January 19, 2013, by Armin Teskeredzic:
First implementations.