modelStorageSimpleExample

Example model with simple storage

Extends from Modelica.Icons.Example (Icon for runnable examples).

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

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flow_nominal_genheatingRod.Q_flow_nominal/(dT_gen*Medium.cp_const)Nominal mass flow rate in generation cycle
Modelica.Units.SI.PressureDifferencedp_nominal_hr1000Pressure difference in heating rod
Modelica.Units.SI.TemperatureDifferencedT_gen8Temperature difference in generation cycle
Realbandwidth5Bandwidth around reference signal

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputPelHRElectrical power used to provide current heat flow

Components

TypeNameDefaultDescription
StorageSimplestorageSimple300 l storage
HeatExchangers.HeatingRodheatingRod
AixLib.Systems.HydraulicModules.SimpleConsumersimpleConsumer
AixLib.Fluid.Sources.Boundary_pTpressureBoundary
AixLib.Fluid.Movers.SpeedControlled_ypumpGen
AixLib.Fluid.Movers.SpeedControlled_ypumpConConsumer pump
AixLib.Fluid.Sources.Boundary_pTpressureBoundary1
Modelica.Blocks.Logical.OnOffControllerstorageHysteresis
AixLib.Controls.Continuous.LimPIDPIDHRPID controller for heating rod
Modelica.Blocks.Logical.SwitchHROffOrPI
Modelica.Blocks.Sources.ConstantTUpperHysteresis
Modelica.Blocks.Sources.CosinedailyHeatDemand
Modelica.Blocks.Sources.ConstantOff
Modelica.Thermal.HeatTransfer.Celsius.FixedTemperaturefixedTemperature
Modelica.Blocks.Logical.LessThresholdgreaterZero
AixLib.Fluid.Sensors.MassFlowRatesenMasFlo_genMass flow rate sensor at generation side
Controls.Continuous.LimPIDPIDPumpGenPID controller for generation system pump
AixLib.Fluid.Sensors.MassFlowRatesenMasFlo_conMass fow rate sensor at consumer side
Modelica.Blocks.Sources.Constantm_flow_setSet mass flow rate
Controls.Continuous.LimPIDPIDPumpConPID controller for consumer pump
Modelica.Blocks.Logical.SwitchPumpOnOffCon
Modelica.Blocks.Sources.ConstantOffpump
Modelica.Blocks.Logical.SwitchPumpOnOffGen
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Sources.ConstantaddToSetTemp
FixedResistances.PressureDropres
FixedResistances.PressureDropres1

Contents

NameDescription
Medium

Revisions

  • November 14 2022 by Laura Maier:
    First implementation