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

TypeNameDefaultDescription
Modelica.Units.SI.SpecificHeatCapacitycSpecific heat capacity
Modelica.Units.SI.TemperatureTSolSolidus temperature, used only for PCM.
Modelica.Units.SI.TemperatureTLiqLiquidus temperature, used only for PCM
Modelica.Units.SI.SpecificInternalEnergyLHeaLatent heat of phase change
BooleanensureMonotonicityfalseSet to true to force derivatives dT/du to be monotone

Outputs

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[Buildings.HeatTransfer.Conduction.nSupPCM]dT_duDerivatives 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 wrong parameter declaration 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 type Buildings.HeatTransfer.Data.BaseClasses.Material to 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 of Buildings.HeatTransfer.Data.BaseClasses.Material rather than Buildings.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.