This is a model of a stratified storage tank for thermal energy storage with built-in heat exchanger.
See the Buildings.Fluid.Storage.UsersGuide for more information.
The model requires at least 4 fluid segments. Hence, set
nSeg to 4 or higher.
| Name | Description |
|---|---|
|
|
Medium in the heat exchanger |
massDynamics and
massDynamicsHex.hHex_a < hHex_b, e.g., the port a of the
heat exchanger is below the port b. This closes issue
531.energyDynamicsHexSolid=energyDynamicsHex rather than
energyDynamicsHexSolid=Modelica.Fluid.Types.Dynamics.DynamicFreeInitial
as users are not likely to want different settings.energyDynamicsHexSolid. This is for
#434.allowFlowReversal and
m_flow_small.abs() function in the assignment of the
parameter nSegHexTan as the return value of
abs() is a Real which causes a type error
during model check.botHexSeg. Without this function, this parameter can
take on zero, which is wrong because the Modelica uses one-based
arrays. Revised the model as the old version required the
porta of the heat exchanger to be located higher than
portb. This makes sense if the heat exchanger is used to
heat up the tank, but not if it is used to cool down a tank, such
as in a cooling plant. The following parameters were changed:
hexTopHeight to hHex_a.hexBotHeight to hHex_b.topHexSeg to segHex_a, and
made it protected as this is deduced from hHex_a.botHexSeg to segHex_b, and
made it protected as this is deduced from hHex_b.port_a1 to portHex_a.port_b1 to portHex_b.m_flow_nominal_tank which was not used.