modelHeaterControl

Extends from Icons.Control.

Information

HeaterControl models a heater control system for maintaining a specific temperature at the heater's outlet. It adjusts the mass flow rate of the pump connected to the heater based on tank levels and temperature setpoints. The model includes a PI controller to regulate the heater's mass flow rate to achieve the desired outlet temperature. The model can turn on/off the PI by using a switch that sets the mass flow rate to a user-specified minimum.

The model features the following connectors:

  • A RealInput connector for the measured ambient temperature (in K).
  • A RealInput connector for the fluid temperature at the heater outlet (in K).
  • A RealOutput connector for the mass flow rate pumped to the heater (in kg/s).
  • A BooleanInput connector for the on/off signal from the heater power supply.
  • A RealInput connector for the scheduled discharge mass flow rate (in kg/s).
  • A RealInput connector for the mass flow rate of the pump charging the tank (in kg/s).
  • A RealInput connector for the instantaneous tank level (in meters).

The model includes the following parameters:

  • T_heater_set: Setpoint of temperature (in K). Default: 565 Celsius.
  • m_flow_max: Maximum discharge mass flow rate (in kg/s). Default: 1400 kg/s.
  • m_flow_min: Mass flow rate when control is off (in kg/s). Default: 0 kg/s.
  • level_on: Level of start discharge (in meters). Default: 30 %.
  • level_off: Level of stop discharge (in meters). Default: 10 %.
  • level_curtailment_on: Level of start curtailment (in meters). Default: 99 %.
  • level_curtailment_off: Level of stop curtailment (in meters). Default: 96 %.
  • y_start: Initial value of output for the PI controller (in kg/s). Default: 300 kg/s.
  • Ti: Integer constant for the PI controller. Default: 1 s.
  • Kp: Proportional constant for the PI controller. Default: -10 Hz.

The model is equipped with a PI controller, logic blocks for discharge and curtailment control, and feedback mechanisms to adjust the heater's operation.

Parameters

TypeNameDefaultDescription
SI.TemperatureT_heater_setfrom_degC(565)Heater setpoint of temperature
SI.MassFlowRatem_flow_max1400Maximum discharge mass flow rate
SI.MassFlowRatem_flow_min0Mass flow rate when control off
Reallevel_on30Level of start discharge
Reallevel_off10Level of stop discharge
Reallevel_curtailment_on99Level of start curtailment
Reallevel_curtailment_off96Level of stop curtailment
Realy_start300Initial value of output
RealTi1Integer constant
RealKp-10Proportional constant

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputtank_levelLevel of the tank connected to the heater
Modelica.Blocks.Interfaces.RealOutputm_flow_heaterMass flow rate pumped to the heater
Modelica.Blocks.Interfaces.BooleanInputon_input_signalOn/off signal from heater power supply
Modelica.Blocks.Interfaces.RealInputT_heater_measuredFluid temperature at the heater outlet
Modelica.Blocks.Interfaces.BooleanOutputcurtailment

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.SwitchswitchPI controller on/off switch
Modelica.Blocks.Sources.RealExpressionm_flow_heater_offMass flow rate when heater is off
Modelica.Blocks.Math.Feedbackfeedback
SolarTherm.Models.Control.PID_AW_reset3PIPI Controller to adjust heater mass flow rate to meet the temperature set point
Modelica.Blocks.Sources.RealExpressionT_heater_set_connectorReal connector to feedback
SolarTherm.Models.Control.Level2Logictank_discharge_logicAlgorithm to start/stop discharge of tank based on tank level
Modelica.Blocks.Logical.Andand1
SolarTherm.Models.Control.Level2Logiccurtailment_logicAlgorithm to curtail the heater power supply
Modelica.Blocks.Logical.Notnot1

Revisions