modelOnOffControl

Controlls if the minimal runtime, stoptime and max. runs per hour are inside given boundaries

Extends from AixLib.Obsolete.BaseClasses.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Information

Checks if the nSet value is legal by checking if the device can either be turned on or off, depending on which state it was in.

E.g. If it is turned on, and the new nSet value is 0, it will only turn off if current runtime is longer than the minimal runtime. Else it will keep the current rotating speed.

  • November 26, 2018  by Fabian Wüllhorst:
    First implementation (see issue #577)

Parameters

TypeNameDefaultDescription
Booleanuse_minRunTimeFalse if minimal runtime of HP is not considered
Modelica.Units.SI.TimeminRunTimeMimimum runtime of heat pump
Booleanuse_minLocTimeFalse if minimal locktime of HP is not considered
Modelica.Units.SI.TimeminLocTimeMinimum lock time of heat pump
Booleanuse_runPerHouFalse if maximal runs per hour of HP are not considered
IntegermaxRunPerHouMaximal number of on/off cycles in one hour
Booleanpre_n_starttrueStart value of pre(n) at initial time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputnSetSet value relative speed of compressor. Analog from 0 to 1
Modelica.Blocks.Interfaces.RealOutputnOutRelative speed of compressor. From 0 to 1
Interfaces.VapourCompressionMachineControlBussigBusHP

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.GreaterThresholdnSetGreaterZeroTrue if device is set on
Modelica.Blocks.Logical.AndandRun
Modelica.Blocks.Logical.Prepre1
BaseClasses.RunPerHouBoundaryrunPerHouBoundary
BaseClasses.TimeControllocTimControl
Modelica.Blocks.Logical.NotnotIsOn
BaseClasses.TimeControlrunTimControl
Modelica.Blocks.Logical.AndandLoc
Modelica.Blocks.Sources.BooleanConstantbooleanConstantRunPerHou
Modelica.Blocks.Sources.BooleanConstantbooleanConstantLocTim
Modelica.Blocks.Sources.BooleanConstantbooleanConstantRunTim
Modelica.Blocks.Logical.NotnotSetOn
Modelica.Blocks.Logical.AndandTurnOffCheck if HP is on and is set to be turned off
Modelica.Blocks.Logical.AndandTurnOnCheck if HP is Off and is set to be turned on
Modelica.Blocks.Logical.AndandIsOnCheck if both set and actual value are greater zero
Utilities.Logical.SmoothSwitchswinOutnSetIf any of the ornSet conditions is true, nSet will be passed. Else nOut will stay the same
Modelica.Blocks.MathBoolean.OrorSetNOutput is true if nSet value is correct
Modelica.Blocks.Logical.AndandIsOffCheck if both set and actual value are equal to zero
Modelica.Blocks.Logical.AndandLocOff