functioncalculateLMTDStar

This function calculates the log mean temperature difference for the ice storage unit

Extends from Modelica.Icons.Function (Icon for functions).

Information

This subroutine calculates the log mean temperature difference for the detailed ice storage unit. The temperature difference is non-dimensionalized using a nominal temperature difference of 10 Kelvin. This value must be used when obtaining the curve fit coefficients.

The log mean temperature difference is calculated using

Tlmtd* = Tlmtd/Tnom

Tlmtd = (Tin - Tout)/ln((Tin - Tfre)/(Tout - Tfre))

where Tin is the inlet temperature, Tout is the outlet temperature, Tfre is the freezing temperature and Tnom is a nominal temperature difference of 10 Kelvin.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureTInInlet temperature
Modelica.Units.SI.TemperatureTOutOutlet temperature
Modelica.Units.SI.TemperatureTFre273.15Freezing temperature of water or the latent energy storage material
Modelica.Units.SI.TemperatureDifferencedT_nominal10Nominal temperature difference

Outputs

TypeNameDefaultDescription
ReallmtdNormalized LMTD

Revisions

  • December 8, 2021, by Yangyang Fu:
    First implementation.