Extends from Buildings.BaseClasses.BaseIconExamples (Icon for Examples packages).
Name | Description |
---|---|
BoilerPolynomial | Test model |
Type | Name | Default | Description |
---|---|---|---|
Power | Q_flow_nominal | 3000 | Nominal power [W] |
Temperature | dT_nominal | 20 | Nominal temperature difference [K] |
MassFlowRate | m_flow_nominal | Q_flow_nominal/dT_nominal/4200 | Nominal mass flow rate [kg/s] |
Pressure | dp_nominal | 3000 | Pressure drop at m_flow_nominal [Pa] |
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;