Buildings.HeatExchangers.BaseClasses.Examples

Collection of models that illustrate model use and test models

Package Content

NameDescription
Manifold  


Buildings.HeatExchangers.BaseClasses.Examples.Manifold

Buildings.HeatExchangers.BaseClasses.Examples.Manifold

Parameters

TypeNameDefaultDescription
replaceable package MediumModelica.Media.Water.Constan... 
IntegernPipPar3Number of parallel pipes
IntegernPipSeg4Number of pipe segments

Connectors

TypeNameDescription
replaceable package Medium 

Modelica definition

model Manifold 
  import Buildings;
 package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater;
 parameter Integer nPipPar = 3 "Number of parallel pipes";
 parameter Integer nPipSeg = 4 "Number of pipe segments";
    Modelica.Blocks.Sources.Constant POut(k=101325);
  Modelica_Fluid.Sources.PrescribedBoundary_pTX sin_1(T=283.15, redeclare 
      package Medium = Medium);
  Modelica_Fluid.Sources.PrescribedBoundary_pTX sou_1(
    T=293.15,
    redeclare package Medium = Medium,
    p=101335);
    Fluids.FixedResistances.FixedResistanceDpM res_1(
    m0_flow=5,
    redeclare package Medium = Medium,
    dp0=10,
    use_dh=true,
    from_dp=false);
  Modelica_Fluid.Sensors.MassFlowRate[nPipPar] mfr_1(redeclare each package 
      Medium = Medium);
  Modelica.Blocks.Sources.Ramp TDb(
    height=1,
    duration=1,
    offset=293.15);
  Modelica.Blocks.Sources.Ramp P(
    duration=1,
    height=10,
    offset=101320);
  Buildings.HeatExchangers.BaseClasses.PipeManifoldFixedResistance pipFixRes_1(
    redeclare package Medium = Medium,
    nPipPar=nPipPar,
    m0_flow=5,
    dp0=10);
  Buildings.HeatExchangers.BaseClasses.PipeManifoldNoResistance pipNoRes_1(
      redeclare package Medium = Medium, nPipPar=nPipPar);
    Modelica.Blocks.Sources.Constant POut1(
                                          k=101325);
  Modelica_Fluid.Sources.PrescribedBoundary_pTX sin_2(T=283.15, redeclare 
      package Medium = Medium);
  Modelica_Fluid.Sources.PrescribedBoundary_pTX sou_2(
    T=293.15,
    redeclare package Medium = Medium,
    p=101335);
    Fluids.FixedResistances.FixedResistanceDpM res_2(
    m0_flow=5,
    redeclare package Medium = Medium,
    dp0=10,
    use_dh=true,
    from_dp=false);
  Modelica_Fluid.Sensors.MassFlowRate[nPipPar, nPipSeg] mfr_2(redeclare each 
      package Medium = 
               Medium);
  Modelica.Blocks.Sources.Ramp TDb1(
    height=1,
    duration=1,
    offset=293.15);
  Modelica.Blocks.Sources.Ramp P1(
    duration=1,
    height=10,
    offset=101320);
  Buildings.HeatExchangers.BaseClasses.DuctManifoldFixedResistance ducFixRes_2(
    redeclare package Medium = Medium,
    nPipPar=nPipPar,
    nPipSeg=nPipSeg,
    m0_flow=5,
    dp0=10);
  Buildings.HeatExchangers.BaseClasses.DuctManifoldNoResistance ducNoRes_2(
      redeclare package Medium = Medium,
      nPipPar=nPipPar,
      nPipSeg=nPipSeg);
  Buildings.HeatExchangers.BaseClasses.RegisterHeader hea1(
      redeclare package Medium = Medium,
      nPipPar=nPipPar) "Header for water-side heat exchanger register";
  Buildings.HeatExchangers.BaseClasses.RegisterHeader hea2(
      redeclare package Medium = Medium,
      nPipPar=nPipPar) "Header for water-side heat exchanger register";
equation 
  connect(POut.y, sin_1.p_in);
  connect(sin_1.port, res_1.port_b);
  connect(TDb.y, sou_1.T_in);
  connect(P.y, sou_1.p_in);
  connect(sou_1.port, pipFixRes_1.port_a);
  connect(res_1.port_a, pipNoRes_1.port_a);
  connect(POut1.y, sin_2.p_in);
  connect(sin_2.port,res_2. port_b);
  connect(TDb1.y, sou_2.T_in);
  connect(P1.y, sou_2.p_in);
  connect(sou_2.port,ducFixRes_2. port_a);
  connect(res_2.port_a,ducNoRes_2. port_a);
  connect(pipFixRes_1.port_b, hea1.port_a);
  connect(hea1.port_b, mfr_1.port_a);
  connect(mfr_1.port_b, hea2.port_a);
  connect(hea2.port_b, pipNoRes_1.port_b);
  connect(ducFixRes_2.port_b, mfr_2.port_a);
  connect(mfr_2.port_b, ducNoRes_2.port_b);
end Manifold;

HTML-documentation generated by Dymola Fri Jun 20 09:58:35 2008.