Buildings.Fluids.Movers.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.Fluids.Movers.

Extends from Buildings.BaseClasses.BaseIconExamples (Icon for Examples packages).

Package Content

NameDescription
FlowMachine  


Buildings.Fluids.Movers.Examples.FlowMachine

Buildings.Fluids.Movers.Examples.FlowMachine

Modelica definition

model FlowMachine
  import Buildings;

   package Medium = Buildings.Media.IdealGases.SimpleAir;
  //  package Medium =  Buildings.Media.PerfectGases.MoistAir;
  //package Medium = Modelica.Media.Air.SimpleAir;
    Modelica.Blocks.Sources.Ramp P(
    height=-1500,
    offset=101325,
    duration=1.5);
  Buildings.Fluids.Movers.FlowMachinePolynomial fan(
    D=0.6858,
    a={4.2904,-1.387,4.2293,-3.92920,0.8534},
    b={0.1162,1.5404,-1.4825,0.7664,-0.1971},
    mNorMin_flow=1,
    mNorMax_flow=2,
    redeclare package Medium = Medium,
    m0_flow=10);
  Modelica.Blocks.Sources.Constant N(k=22.3333);
  Modelica_Fluid.Sources.Boundary_pT sou(             redeclare package Medium
      = Medium,
    use_p_in=true,
    nPorts=1,
    T=293.15);
  Modelica_Fluid.Sources.Boundary_pT sin(             redeclare package Medium
      = Medium,
    use_p_in=true,
    nPorts=1,
    T=293.15);
    Modelica.Blocks.Sources.Constant PAtm(k=101325);
  Buildings.Utilities.Reports.Printer printer(
    nin=6,
    header="time dp dpNorm mNorm m_flow power");
  Modelica.Blocks.Sources.RealExpression fan_mFlow(y=fan.m_flow);
  Modelica.Blocks.Sources.RealExpression simTim2(y=time);
  Modelica.Blocks.Sources.RealExpression fan_dp(y=fan.dp);
  Modelica.Blocks.Sources.RealExpression fan_dpNor(y=fan.pNor);
  Modelica.Blocks.Sources.RealExpression fan_mNor(y=fan.mNor_flow);
  Modelica.Blocks.Sources.RealExpression fan_PSha(y=fan.PSha);
  inner Modelica_Fluid.System system;
  Modelica_Fluid.Sensors.Temperature TIn(redeclare package Medium = Medium);
  Modelica_Fluid.Sensors.Temperature TOut(redeclare package Medium = Medium);
  Buildings.Utilities.Diagnostics.AssertInequality assertInequality;
equation 

  connect(simTim2.y, printer.x[1]);
  connect(fan_dp.y, printer.x[2]);
  connect(fan_dpNor.y, printer.x[3]);
  connect(fan_mNor.y, printer.x[4]);
  connect(fan_PSha.y, printer.x[6]);
  connect(fan_mFlow.y, printer.x[5]);
  connect(N.y, fan.N_in);
  connect(P.y, sou.p_in);
  connect(PAtm.y, sin.p_in);
  connect(sou.ports[1], fan.port_a);
  connect(fan.port_b, sin.ports[1]);
  connect(fan.port_a, TIn.port);
  connect(fan.port_b, TOut.port);
  connect(TOut.T, assertInequality.u1);
  connect(TIn.T, assertInequality.u2);
end FlowMachine;

HTML-documentation generated by Dymola Thu Feb 19 16:52:48 2009.