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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Temperature | TIn | Inlet temperature | |
| Modelica.Units.SI.Temperature | TOut | Outlet temperature | |
| Modelica.Units.SI.Temperature | TFre | 273.15 | Freezing temperature of water or the latent energy storage material |
| Modelica.Units.SI.TemperatureDifference | dT_nominal | 10 | Nominal temperature difference |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | lmtd | Normalized LMTD |
Revisions
-
December 8, 2021, by Yangyang Fu:
First implementation.