modelFlatPlateWithTank
Extends from Modelica.Icons.Example.
Information
This example shows how several different models can be combined to create an entire solar water heating system. The AixLib.Fluid.Storage.StratifiedEnhancedInternalHex (tan) model is used to represent the tank filled with hot water. A loop, powered by a pump ( AixLib.Fluid.Movers.FlowControlled_m_flow, pum), passes the water through an expansion tank ( AixLib.Fluid.Storage.ExpansionVessel, exp), a temperature sensor ( AixLib.Fluid.Sensors.TemperatureTwoPort, TIn), the solar collector ( AixLib.Fluid.SolarCollectors.ASHRAE93, solCol), and a second temperature sensor ( AixLib.Fluid.Sensors.TemperatureTwoPort, TOut) before re-entering the tank.
The solar collector is connected to the weather model ( AixLib.BoundaryConditions.WeatherData.ReaderTMY3, weaDat) which passes information for the San Francisco, CA, USA climate. This information is used to identify both the heat gain in the water from the sun and the heat loss to the ambient conditions.
The flow rate through the pump is controlled by a solar pump controller model ( AixLib.Fluid.SolarCollectors.Controls.CollectorPump, pumCon) and a gain model. The controller outputs a binary on (1) / off (0) signal. The on/off signal is passed through a boolean to real signal converter to set the pump mass flow rate.
The heat ports for the tank are connected to an ambient temperature of 20 degrees C representing the temperature of the room the tank is stored in.
bou1 ( AixLib.Fluid.Sources.MassFlowSource_T) provides a constant mass flow rate for a hot water draw while bou ( AixLib.Fluid.Sources.Boundary_pT) provides a boundary condition for the outlet of the draw.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Angle | azi | 0.3 | Surface azimuth (0 for south-facing; -90 degree for east-facing; +90 degree for west facing |
| Modelica.Units.SI.Angle | til | 0.78539816339745 | Surface tilt (0 for horizontally mounted collector) |
| Real | rho | 0.2 | Ground reflectance |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | solCol.m_flow_nominal | Nominal mass flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| AixLib.Fluid.SolarCollectors.ASHRAE93 | solCol | Flat plate solar collector model | |
| AixLib.BoundaryConditions.WeatherData.ReaderTMY3 | weaDat | Weather data file reader | |
| AixLib.Fluid.Sensors.TemperatureTwoPort | TOut | Temperature sensor | |
| AixLib.Fluid.Sensors.TemperatureTwoPort | TIn | Temperature sensor | |
| AixLib.Fluid.Storage.StratifiedEnhancedInternalHex | tan | Storage tank model | |
| AixLib.Fluid.SolarCollectors.Controls.CollectorPump | pumCon | Pump controller | |
| Modelica.Thermal.HeatTransfer.Sources.FixedTemperature | rooT | Room temperature | |
| AixLib.Fluid.Sources.Boundary_pT | bou | Outlet for hot water draw | |
| AixLib.Fluid.Sources.MassFlowSource_T | bou1 | Inlet and flow rate for hot water draw | |
| AixLib.Fluid.Movers.FlowControlled_m_flow | pum | Pump forcing circulation through the system | |
| AixLib.Fluid.Storage.ExpansionVessel | exp | Expansion tank | |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | TTan | Temperature in the tank water that surrounds the heat exchanger | |
| Modelica.Blocks.Math.BooleanToReal | booToRea | Conversion of control signal to real-valued signal |
Contents
| Name | Description |
|---|---|
| Medium | Fluid in the storage tank |
| Medium_2 | Fluid flowing through the collector |
Revisions
-
February 15, 2024, by Jelger Jansen:
Refactor model.
This is for Buildings, #3604. -
November 7, 2022, by Michael Wetter:
Revised example to provide values for new parameters and to integrate the revised solar pump controller.
This is for issue 3074. -
September 16, 2021, by Michael Wetter:
Removed parameter assignment forlat.
This is for IBPSA, #1477. -
December 22, 2014 by Michael Wetter:
RemovedModelica.Fluid.Systemto address issue #311. -
April 18, 2014, by Michael Wetter:
Updated model to use the revised tank and increased the tank height. -
March 25, 2014, by Michael Wetter:
Updated model with new expansion vessel. -
March 27, 2013 by Peter Grant:
First implementation