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

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

Package Content

NameDescription
BoilerPolynomial Test model


Buildings.Fluid.Boilers.Examples.BoilerPolynomial

Test model

Buildings.Fluid.Boilers.Examples.BoilerPolynomial

Parameters

TypeNameDefaultDescription
PowerQ_flow_nominal3000Nominal power [W]
TemperaturedT_nominal20Nominal temperature difference [K]
MassFlowRatem_flow_nominalQ_flow_nominal/dT_nominal/4200Nominal mass flow rate [kg/s]
Pressuredp_nominal3000Pressure drop at m_flow_nominal [Pa]

Modelica definition

model BoilerPolynomial "Test model"
 package Medium = Buildings.Media.ConstantPropertyLiquidWater "Medium model";
 parameter Modelica.SIunits.Power Q_flow_nominal = 3000 "Nominal power";
 parameter Modelica.SIunits.Temperature dT_nominal = 20 
    "Nominal temperature difference";
 parameter Modelica.SIunits.MassFlowRate m_flow_nominal = Q_flow_nominal/dT_nominal/4200 
    "Nominal mass flow rate";
 parameter Modelica.SIunits.Pressure dp_nominal = 3000 
    "Pressure drop at m_flow_nominal";
  inner Modelica.Fluid.System system;

  Buildings.Fluid.Sources.Boundary_pT sin(
    redeclare package Medium = Medium,
    nPorts=2,
    p(displayUnit="Pa") = 300000,
    T=333.15) "Sink";
  Buildings.Fluid.Sources.Boundary_pT sou(
    nPorts=2,
    redeclare package Medium = Medium,
    p=300000 + dp_nominal,
    T=303.15);
  Modelica.Blocks.Sources.TimeTable y(table=[0,0; 1800,1; 1800,0; 2400,0; 2400,
        1; 3600,1]);
  Buildings.Fluid.Boilers.BoilerPolynomial fur1(
    a={0.9},
    effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
    Q_flow_nominal=Q_flow_nominal,
    dT_nominal=dT_nominal,
    redeclare package Medium = Medium,
    dp_nominal=dp_nominal,
    T_start=293.15) "Boiler";
  Modelica.Thermal.HeatTransfer.Sources.FixedTemperature TAmb1(
                                                              T=288.15) 
    "Ambient temperature in boiler room";
  Buildings.Fluid.Boilers.BoilerPolynomial fur2(
    a={0.9},
    effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
    Q_flow_nominal=Q_flow_nominal,
    dT_nominal=dT_nominal,
    redeclare package Medium = Medium,
    energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState,
    massDynamics=Modelica.Fluid.Types.Dynamics.SteadyState,
    dp_nominal=dp_nominal,
    T_start=293.15) "Boiler";
  Modelica.Thermal.HeatTransfer.Sources.FixedTemperature TAmb2(
                                                              T=288.15) 
    "Ambient temperature in boiler room";
  Modelica.Blocks.Continuous.FirstOrder firstOrder(T=0.1);
equation 
  connect(TAmb1.port, fur1.heatPort);
  connect(TAmb2.port, fur2.heatPort);
  connect(sou.ports[1], fur1.port_a);
  connect(sou.ports[2], fur2.port_a);
  connect(y.y, firstOrder.u);
  connect(firstOrder.y, fur1.y);
  connect(firstOrder.y, fur2.y);
  connect(fur2.port_b, sin.ports[2]);
  connect(fur1.port_b, sin.ports[1]);
end BoilerPolynomial;

HTML-documentation generated by Dymola Thu Jun 24 16:54:09 2010.