IEA EBC Annex 60 EBC logo

Annex60.Fluid.Storage.Examples

Collection of models that illustrate model use and test models

Information

This package contains examples for the use of models that can be found in Annex60.Fluid.Storage.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Annex60.Fluid.Storage.Examples.ExpansionVessel ExpansionVessel Test model for expansion vessel

Annex60.Fluid.Storage.Examples.ExpansionVessel Annex60.Fluid.Storage.Examples.ExpansionVessel

Test model for expansion vessel

Annex60.Fluid.Storage.Examples.ExpansionVessel

Information

This model tests a pressure expansion vessel. The medium model that is used in this example changes its density as a function of temperature. To see the effect of the expansion vessel, delete the connecting line between the volume and the expansion vessel and check how much more the pressure increases as the fluid is heated.

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

Modelica definition

model ExpansionVessel "Test model for expansion vessel" extends Modelica.Icons.Example; // package Medium = Modelica.Media.Water.WaterIF97OnePhase_ph "Medium model"; package Medium = Annex60.Media.Water "Medium model"; Annex60.Fluid.Storage.ExpansionVessel expVes( redeclare package Medium = Medium, V_start=1) "Expansion vessel"; Annex60.Fluid.MixingVolumes.MixingVolume vol( redeclare package Medium = Medium, V=1, nPorts=1, m_flow_nominal=0.001, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Volume of water"; Modelica.Blocks.Sources.Pulse pulse( amplitude=20, period=3600, offset=293.15); Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperature preTem; Modelica.Thermal.HeatTransfer.Components.ThermalConductor theCon(G=10000); equation connect(pulse.y, preTem.T); connect(preTem.port, theCon.port_a); connect(theCon.port_b, vol.heatPort); connect(vol.ports[1], expVes.port_a); end ExpansionVessel;

http://iea-annex60.org