modelStorageSimpleExample
Example model with simple storage
Extends from Modelica.Icons.Example.
Information
This is an example of the simple storage model with two hydronic
circuits.
A heating rod indirectly supplies heat to the thermal energy
storage.
A simplified consumer extracts heat from the consumer water
circuit
based on a daily load profile.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate | m_flow_nominal_gen | heatingRod.Q_flow_nominal/(dT_gen*Medium.cp_const) | Nominal mass flow rate in generation cycle |
| Modelica.Units.SI.PressureDifference | dp_nominal_hr | 1000 | Pressure difference in heating rod |
| Modelica.Units.SI.TemperatureDifference | dT_gen | 8 | Temperature difference in generation cycle |
| Real | bandwidth | 5 | Bandwidth around reference signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| StorageSimple | storageSimple | 300 l storage | |
| HeatExchangers.HeatingRod | heatingRod | ||
| AixLib.Systems.HydraulicModules.SimpleConsumer | simpleConsumer | ||
| AixLib.Fluid.Sources.Boundary_pT | pressureBoundary | ||
| AixLib.Fluid.Movers.SpeedControlled_y | pumpGen | ||
| AixLib.Fluid.Movers.SpeedControlled_y | pumpCon | Consumer pump | |
| AixLib.Fluid.Sources.Boundary_pT | pressureBoundary1 | ||
| Modelica.Blocks.Logical.OnOffController | storageHysteresis | ||
| AixLib.Controls.Continuous.LimPID | PIDHR | PID controller for heating rod | |
| Modelica.Blocks.Logical.Switch | HROffOrPI | ||
| Modelica.Blocks.Sources.Constant | TUpperHysteresis | ||
| Modelica.Blocks.Interfaces.RealOutput | PelHR | Electrical power used to provide current heat flow | |
| Modelica.Blocks.Sources.Cosine | dailyHeatDemand | ||
| Modelica.Blocks.Sources.Constant | Off | ||
| Modelica.Thermal.HeatTransfer.Celsius.FixedTemperature | fixedTemperature | ||
| Modelica.Blocks.Logical.LessThreshold | greaterZero | ||
| AixLib.Fluid.Sensors.MassFlowRate | senMasFlo_gen | Mass flow rate sensor at generation side | |
| Controls.Continuous.LimPID | PIDPumpGen | PID controller for generation system pump | |
| AixLib.Fluid.Sensors.MassFlowRate | senMasFlo_con | Mass fow rate sensor at consumer side | |
| Modelica.Blocks.Sources.Constant | m_flow_set | Set mass flow rate | |
| Controls.Continuous.LimPID | PIDPumpCon | PID controller for consumer pump | |
| Modelica.Blocks.Logical.Switch | PumpOnOffCon | ||
| Modelica.Blocks.Sources.Constant | Offpump | ||
| Modelica.Blocks.Logical.Switch | PumpOnOffGen | ||
| Modelica.Blocks.Math.Add | add | ||
| Modelica.Blocks.Sources.Constant | addToSetTemp | ||
| FixedResistances.PressureDrop | res | ||
| FixedResistances.PressureDrop | res1 |
Contents
| Name | Description |
|---|---|
| Medium |
Revisions
-
November 14 2022 by Laura Maier:
First implementation