modelQStar

Calculator for q* under charging mode

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

This block calculates the normalized heat transfer rate q* between the chilled water and the ice in the thermal storage tank using

q* Δt = C1 + C2x + C3 x2 + [C4 + C5x + C6 x2]ΔTlmtd*

where Δt is the time step of the data samples used for the curve fitting, C1-6 are the curve fit coefficients, x is the fraction of charging, also known as the state-of-charge, and Tlmtd* is the normalized LMTD calculated using Buildings.Fluid.Storage.Ice.BaseClasses.calculateLMTDStar.

Parameters

TypeNameDefaultDescription
Real[6]coeffCoefficients for qstar curve
RealdtTime step of curve fitting data

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputactiveSet to true if this tank mode can be active
Modelica.Blocks.Interfaces.RealInputxSOC for charging, or 1-SOC for discharging
Modelica.Blocks.Interfaces.RealInputlmtdStaNormalized LMTD
Modelica.Blocks.Interfaces.RealOutputqNorNormalized heat transfer rate

Revisions

  • January 26, 2022, by Michael Wetter:
    Refactored model to new architecture.
  • December 8, 2021, by Yangyang Fu:
    First implementation.