modelBoiler

Boiler with internal and external control

Extends from AixLib.Fluid.BoilerCHP.BaseClasses.PartialHeatGenerator (Partial model for heat generators).

Information

Overview

A boiler model consisting of the internal boiler controller and a replaceable outer controller. This controller can be chosen to provide the boiler temperature setpoint based on the chosen conditions such as ambient air temperature, etc.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Nominal condition
Modelica.Units.SI.MassFlowRatem_flow_nominal (from PartialTwoPortInterface)Nominal mass flow rate
Modelica.Units.SI.PressureDifferencedp_nominal (from PartialHeatGenerator)a*(m_flow_nominal/rho_default)^nPressure drop at nominal mass flow rate
Advanced
Modelica.Units.SI.MassFlowRatem_flow_small (from PartialTwoPortInterface)1E-4*abs(m_flow_nominal)Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_T (from PartialTwoPortInterface)false= true, if actual temperature at port is computed
Advanced › Sensor Properties
Modelica.Units.SI.Timetau (from PartialHeatGenerator)1Time constant of the temperature sensors at nominal flow rate
Modelica.Blocks.Types.InitinitType (from PartialHeatGenerator)Modelica.Blocks.Types.Init.InitialStateType of initialization (InitialState and InitialOutput are identical)
BooleantransferHeat (from PartialHeatGenerator)falseIf true, temperature T converges towards TAmb when no flow
Modelica.Units.SI.TemperatureTAmb (from PartialHeatGenerator)Medium.T_defaultFixed ambient temperature for heat transfer
Modelica.Units.SI.TimetauHeaTra (from PartialHeatGenerator)1200Time constant for heat transfer, default 20 minutes
Initialization
Modelica.Units.SI.TemperatureT_start (from PartialHeatGenerator)Medium.T_defaultInitial or guess value of output (= state)
Modelica.Units.SI.AbsolutePressuredp_start (from PartialHeatGenerator)0Guess value of dp = port_a.p - port_b.p
Modelica.Units.SI.MassFlowRatem_flow_start (from PartialHeatGenerator)0Guess value of m_flow = port_a.m_flow
Modelica.Units.SI.AbsolutePressurep_start (from PartialHeatGenerator)Medium.p_defaultStart value of pressure
Advanced › Pressure drop
Booleanfrom_dp (from PartialHeatGenerator)false= true, use m_flow = f(dp) else dp = f(m_flow)
Booleanlinearized (from PartialHeatGenerator)false= true, use linear relation between m_flow and dp for any flow rate
RealdeltaM (from PartialHeatGenerator)0.3Fraction of nominal mass flow rate where transition to turbulent occurs
Reala (from PartialHeatGenerator)Coefficient of volume flow rate dependent nominal pressure drop, dp_nominal=a*V_flow_nominal^n.
Realn (from PartialHeatGenerator)2Exponent of volume flow rate dependent nominal pressure drop, dp_nominal=a*V_flow_nominal^n.
Modelica.Units.SI.Densityrho_default (from PartialHeatGenerator)Medium.density_pTX(Medium.p_default, Medium.T_default, Medium.X_default)Density used for parameterization of pressure curve
Dynamics
Modelica.Fluid.Types.DynamicsenergyDynamics (from PartialHeatGenerator)Modelica.Fluid.Types.Dynamics.DynamicFreeInitialType of energy balance: dynamic (3 initialization options) or steady state
General › Boiler type
AixLib.DataBase.Boiler.General.BoilerTwoPointBaseDataDefinitionparamBoilerParameters for Boiler
RealKR1Gain of Boiler heater
Modelica.Units.SI.TimeTN0.1Time Constant of boiler heater (T>0 required)
Modelica.Units.SI.TimeriseTime30Rise/Fall time for step input(T>0 required)
Heating curves
AixLib.DataBase.Boiler.DayNightMode.HeatingCurvesDayNightBaseDataDefinitionparamHCParameters for heating curve
External Control
Realdeclination1.1Declination
Modelica.Units.SI.TemperatureDifferenceTdelta_Max2Difference from set flow temperature over which boiler stops
Modelica.Units.SI.TemperatureDifferenceTdelta_Min2Difference from set flow temperature under which boiler starts
Modelica.Units.SI.TimeFb3600Period of time for increased set temperature
RealFA0.2Increment for increased set temperature

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)
Modelica.Blocks.Interfaces.BooleanInputisOnSwitches Controler on and off
Modelica.Blocks.Interfaces.RealInputTAmbientAmbient air temperature
Modelica.Blocks.Interfaces.BooleanInputswitchToNightModeConnector of Boolean input signal

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flow (from PartialTwoPortInterface)port_a.m_flowMass flow rate from port_a to port_b (m_flow > 0 is design flow direction)
Modelica.Units.SI.PressureDifferencedp (from PartialTwoPortInterface)port_a.p - port_b.pPressure difference between port_a and port_b
Medium.ThermodynamicStatesta_a (from PartialTwoPortInterface)if allowFlowReversal then Medium.setState_phX(port_a.p, noEvent(actualStream(port_a.h_outflow)), noEvent(actualStream(port_a.Xi_outflow))) else Medium.setState_phX(port_a.p, noEvent(inStream(port_a.h_outflow)), noEvent(inStream(port_a.Xi_outflow)))Medium properties in port_a
Medium.ThermodynamicStatesta_b (from PartialTwoPortInterface)if allowFlowReversal then Medium.setState_phX(port_b.p, noEvent(actualStream(port_b.h_outflow)), noEvent(actualStream(port_b.Xi_outflow))) else Medium.setState_phX(port_b.p, noEvent(port_b.h_outflow), noEvent(port_b.Xi_outflow))Medium properties in port_b
AixLib.Fluid.Sensors.TemperatureTwoPortsenTRet (from PartialHeatGenerator)Temperature sensor of cold side of heat generator (return)
AixLib.Fluid.Sensors.TemperatureTwoPortsenTSup (from PartialHeatGenerator)Temperature sensor of hot side of heat generator (supply)
AixLib.Fluid.Sensors.MassFlowRatesenMasFlo (from PartialHeatGenerator)Sensor for mass flwo rate
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowheater (from PartialHeatGenerator)Prescribed heat flow
AixLib.Fluid.MixingVolumes.MixingVolumevol (from PartialHeatGenerator)Fluid volume
AixLib.Fluid.FixedResistances.PressureDroppreDro (from PartialHeatGenerator)Pressure drop
BaseClasses.Controllers.InternalControlinternalControlInternal control
ExtControlmyExternalControlExternal control

Contents

NameDescription
ExtControl

Revisions

  • May 5, 2021 by Fabian Wüllhorst:
    Add energyDynamics as parameter (see issue #1093)
  • December 08, 2016  by Moritz Lauster:
    Adapted to AixLib conventions
  • October 11, 2016  by Pooyan Jahangiri:
    Merged with AixLib
  • January 09, 2006  by Peter Matthes:
    V0.1: Initial configuration.
  • December 4, 2014  by Ana Constantin:
    Removed cardinality equations for boolean inputs
  • November 28, 2014  by Roozbeh Sangi:
    Output for heat flow added.
  • October 7, 2013  by Ole Odendahl:
    Formatted documentation appropriately
  • April 20, 2012  by Ana Constantin:
    Implemented