modelDelayedOnOffController

CHP On/Off controller

Information

Overview

This is model is the decision maker in the CHP model. According to different conditions and timings it decides if the CHP can be turned on or off.

Concept

The following control decisions are implemented:

  • Switch On when the flow temperature is lower than a setpoint.
  • Switch Off when the CHP should work in a range lower than its minimum allowable capacity.
  • Allow the CHP to be switched On only if it was Off for more than a certain amount of time (delay) or it was On beforehand.
  • Allow the CHP to be switched Off only if it was On for more than a certain amount of time (delay) or it was Off beforehand.
  • Emergency measures such as maximum allowable flow and return temperatures are implemented.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TemperaturemaxTReturnMaximum return temperature
Modelica.Units.SI.ThermodynamicTemperatureminDeltaTMinimum flow and return temperature difference
Modelica.Units.SI.ThermodynamicTemperatureTFlowRangeRange of the flow temperature
Modelica.Units.SI.TimedelayTimeOn/Off delay time
BooleaninitialOutputfalseInitial output
RealdelayUnitDelay unit
RealminCapacityMinimum allowable working capacity in percent

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputflowTempFlow temperature
Modelica.Blocks.Interfaces.RealInputreturnTempReturn temperature
Modelica.Blocks.Interfaces.BooleanOutputySignal if controller is on or off
Modelica.Blocks.Interfaces.RealInputcontrollerOutputController output
Modelica.Blocks.Interfaces.RealInputminCapacity_inMinimal capacity
Modelica.Blocks.Interfaces.BooleanInputexternalOnFalse for shut down
Modelica.Blocks.Interfaces.RealInputflowTemp_setpointFlow temperature setpoint
Modelica.Blocks.Logical.Andand1
Modelica.Blocks.Logical.Prepre2
Modelica.Blocks.Logical.OnOffControlleronOffControllerOnOff controller
Modelica.Blocks.Logical.LessThresholdlessThresholdMaximum allowable flow temperature variation
Modelica.Blocks.Logical.Oror1
Modelica.Blocks.Logical.GreaterThresholdgreaterThresholdMax return temperature limit
Modelica.Blocks.Discrete.UnitDelayunitDelayLast value
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Blocks.Logical.Notnot1
Modelica.Blocks.Logical.Notnot2
Modelica.Blocks.Logical.LogicalSwitchlogicalSwitch
Modelica.Blocks.Logical.Notnot3
Modelica.Blocks.Logical.Oror3
Modelica.Blocks.Logical.LessThresholdlessThreshold1
Modelica.Blocks.Logical.GreaterEqualThresholdgreaterEqualThresholdEmergency measure
Modelica.Blocks.Logical.Oror4
Modelica.Blocks.MathBoolean.OnDelayonDelayOn delay
Modelica.Blocks.MathBoolean.OnDelayonDelay1On delay
Modelica.Blocks.Nonlinear.FixedDelayfixedDelayFixed delay

Revisions

  • December 08, 2016  by Moritz Lauster:
    Adapted to AixLib conventions
  • October 11, 2016  by Pooyan Jahangiri:
    Variable names updated and merged with AixLib
  • January 23, 2014  by Pooyan Jahangiri:
    Formatted documentation appropriately
  • January 31, 2011 by Pooyan Jahangiri:
    Implemented