modelStratifiedTank
Stratified buffer tank model
Information
This is a four-port tank model based on
Buildings.Fluid.Storage.Stratified
which includes the following features.
-
The two fluid ports suffixed with
Top are connected
to the fluid volume at the top of the tank.
-
The two fluid ports suffixed with
Bot are connected
to the fluid volume at the bottom of the tank.
-
A unique heat port is exposed as an external connector. It is
meant to provide a uniform temperature boundary condition at
the external surface of the tank (outside insulation).
-
The model outputs the temperature of the fluid volumes at the top
and at the bottom of the tank.
Parameters
| Type | Name | Default | Description |
| Modelica.Units.SI.Volume | VTan | | Tank volume |
| Modelica.Units.SI.Length | hTan | | Height of tank (without insulation) |
| Modelica.Units.SI.Length | dIns | | Thickness of insulation |
| Modelica.Units.SI.ThermalConductivity | kIns | 0.04 | Specific heat conductivity of insulation |
| Integer | nSeg | 3 | Number of volume segments |
| Assumptions |
| Boolean | allowFlowReversal | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Nominal condition |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | | Nominal mass flow rate |
Components
| Type | Name | Default | Description |
| Modelica.Fluid.Interfaces.FluidPort_a | port_aTop | | Inlet fluid port at tank top |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bBot | | Outlet fluid port at tank bottom |
| Modelica.Fluid.Interfaces.FluidPort_a | port_aBot | | Inlet fluid port at tank bottom |
| Modelica.Fluid.Interfaces.FluidPort_b | port_bTop | | Outlet fluid port at tank top |
| Modelica.Blocks.Interfaces.RealOutput | Ql_flow | | Heat loss of tank (positive if heat flows from tank to ambient) |
| Modelica.Blocks.Interfaces.RealOutput | TTop | | Fluid temperature at tank top |
| Modelica.Blocks.Interfaces.RealOutput | TBot | | Fluid temperature at tank bottom |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heaPorAmb | | Heat port at interface with ambient (outside insulation) |
| Fluid.Storage.Stratified | tan | | Stratified tank |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | senTBot | | Tank bottom temperature |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | senTTop | | Tank top temperature |
Contents
| Name | Description |
| Medium | Medium model |
Revisions
-
July 31, 2020, by Antoine Gautier:
First implementation.