functionder_temperature_u
Computes the derivative of the temperature of a phase change material with respect to specific internal energy
Information
This function computes at the support points Td the derivatives dT/du of the cubic hermite spline approximation to the temperature vs. specific internal energy relation. These derivatives are then used by the function Buildings.HeatTransfer.Conduction.BaseClasses.temperature_u to compute for a given specific internal energy the temperature.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.SpecificHeatCapacity | c | Specific heat capacity | |
| Modelica.Units.SI.Temperature | TSol | Solidus temperature, used only for PCM. | |
| Modelica.Units.SI.Temperature | TLiq | Liquidus temperature, used only for PCM | |
| Modelica.Units.SI.SpecificInternalEnergy | LHea | Latent heat of phase change | |
| Boolean | ensureMonotonicity | false | Set to true to force derivatives dT/du to be monotone |
Outputs
| 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[Buildings.HeatTransfer.Conduction.nSupPCM] | dT_du | Derivatives dT/du at the support points |
Revisions
-
May 1, 2025, by Michael Wetter:
Reformulated model to avoid warning about binding equation not being a parameter expression.
This is for #4215. -
August 30, 2024, by Michael Wetter:
Removed wrongparameterdeclaration on a protected variable which causes an error in Dymola 2025x beta1.
This is for #3978. -
October 17, 2014, by Michael Wetter:
Changed the input argument from typeBuildings.HeatTransfer.Data.BaseClasses.Materialto the elements of this type as OpenModelica fails to translate the model if the input to this function is a record. -
October 13, 2014, by Michael Wetter:
Corrected the input argument to be an instance ofBuildings.HeatTransfer.Data.BaseClasses.Materialrather thanBuildings.HeatTransfer.Data.Solids.Generic. -
March 9, 2013, by Michael Wetter:
Revised implementation to use new data record. -
January 19, 2013, by Armin Teskeredzic:
First implementations.