Buildings.Fluid.MassExchangers.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 Buildings.Fluid.MassExchangers.

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

Package Content

Name Description
Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness ConstantEffectiveness  

Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness


Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness

Information

Note: This problem fails to translate in Dymola 2012 due to an error in Dymola's support of stream connector. This bug will be corrected in future versions of Dymola.

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

Modelica definition

model ConstantEffectiveness extends Modelica.Icons.Example; package Medium1 = Buildings.Media.Air; package Medium2 = Buildings.Media.Air; Buildings.Fluid.Sources.Boundary_pT sin_2( redeclare package Medium = Medium2, T=273.15 + 10, use_p_in=true, nPorts=1); Modelica.Blocks.Sources.Ramp PIn( height=200, duration=60, offset=101330); Buildings.Fluid.Sources.Boundary_pT sou_2( redeclare package Medium = Medium2, T=273.15 + 5, use_p_in=true, use_T_in=true, nPorts=1); Modelica.Blocks.Sources.Ramp TWat( height=10, duration=60, offset=273.15 + 30, startTime=60) "Water temperature"; Modelica.Blocks.Sources.Constant TDb(k=293.15) "Drybulb temperature"; Modelica.Blocks.Sources.Constant POut(k=101325); Buildings.Fluid.Sources.Boundary_pT sin_1( redeclare package Medium = Medium1, T=273.15 + 30, X={0.012,1 - 0.012}, use_p_in=true, p=300000, nPorts=1); Buildings.Fluid.Sources.Boundary_pT sou_1( redeclare package Medium = Medium1, T=273.15 + 50, X={0.012,1 - 0.012}, use_T_in=true, p=100000, nPorts=1); Modelica.Blocks.Sources.Ramp PSin_1( duration=60, startTime=240, height=100, offset=1E5 - 110); Buildings.Fluid.MassExchangers.ConstantEffectiveness hex( redeclare package Medium1 = Medium1, redeclare package Medium2 = Medium2, m1_flow(start=5), m2_flow(start=5), m1_flow_nominal=5, m2_flow_nominal=5, dp1_nominal=100, dp2_nominal=100, show_T=true); equation connect(PIn.y, sou_2.p_in); connect(TDb.y, sou_2.T_in); connect(TWat.y, sou_1.T_in); connect(PSin_1.y, sin_1.p_in); connect(sou_1.ports[1], hex.port_a1); connect(hex.port_a2, sou_2.ports[1]); connect(POut.y, sin_2.p_in); connect(hex.port_b1, sin_1.ports[1]); connect(hex.port_b2, sin_2.ports[1]); end ConstantEffectiveness;