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

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

Package Content

NameDescription
BoilerPolynomial Test model


Buildings.Fluids.Boilers.Examples.BoilerPolynomial

Test model

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

  Modelica_Fluid.Sources.Boundary_pT sin(
    redeclare package Medium = Medium,
    nPorts=2,
    p(displayUnit="Pa") = 300000,
    T=333.15) "Sink";
  Modelica_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.Fluids.Boilers.BoilerPolynomial fur1(
    a={0.9},
    effCur=Buildings.Fluids.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.Fluids.Boilers.BoilerPolynomial fur2(
    a={0.9},
    effCur=Buildings.Fluids.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 Fri May 15 10:14:20 2009.