IEA EBC Annex 60 EBC logo

Annex60.Fluid.Delays.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.Delays.

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

Package Content

Name Description
Annex60.Fluid.Delays.Examples.Delay Delay  

Annex60.Fluid.Delays.Examples.Delay Annex60.Fluid.Delays.Examples.Delay


Annex60.Fluid.Delays.Examples.Delay

Information

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

Modelica definition

model Delay extends Modelica.Icons.Example; // We set X_default to a small enough value to avoid saturation at the medium temperature // that is used in this model. package Medium = Annex60.Media.Air(X_default={0.001, 0.999}); Modelica.Blocks.Sources.Constant PAtm(k=101325); Modelica.Blocks.Sources.Ramp P( duration=1, height=20, offset=101315); Annex60.Fluid.FixedResistances.PressureDrop res1( from_dp=true, m_flow_nominal=5, dp_nominal=5, redeclare package Medium = Medium); Annex60.Fluid.Sources.Boundary_pT sou( T=293.15, redeclare package Medium = Medium, use_p_in=true, nPorts=1); Annex60.Fluid.Sources.Boundary_pT sin( T=283.15, redeclare package Medium = Medium, use_p_in=true, nPorts=1); Annex60.Fluid.FixedResistances.PressureDrop res2( from_dp=true, m_flow_nominal=5, dp_nominal=5, redeclare package Medium = Medium); Annex60.Fluid.Delays.DelayFirstOrder del( m_flow_nominal=5, redeclare package Medium = Medium, nPorts=2, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, T_start=283.15) "Fluid volume that is a first order approximation of the transport delay"; equation connect(P.y, sou.p_in); connect(PAtm.y, sin.p_in); connect(sou.ports[1], res1.port_a); connect(sin.ports[1], res2.port_b); connect(res1.port_b, del.ports[1]); connect(res2.port_a, del.ports[2]); end Delay;

http://iea-annex60.org