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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_minRunTime | False if minimal runtime of HP is not considered | |
| Modelica.Units.SI.Time | minRunTime | Mimimum runtime of heat pump | |
| Boolean | use_minLocTime | False if minimal locktime of HP is not considered | |
| Modelica.Units.SI.Time | minLocTime | Minimum lock time of heat pump | |
| Boolean | use_runPerHou | False if maximal runs per hour of HP are not considered | |
| Integer | maxRunPerHou | Maximal number of on/off cycles in one hour | |
| Boolean | pre_n_start | true | Start value of pre(n) at initial time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | nSet | Set value relative speed of compressor. Analog from 0 to 1 | |
| Modelica.Blocks.Interfaces.RealOutput | nOut | Relative speed of compressor. From 0 to 1 | |
| Interfaces.VapourCompressionMachineControlBus | sigBusHP |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.GreaterThreshold | nSetGreaterZero | True if device is set on | |
| Modelica.Blocks.Logical.And | andRun | ||
| Modelica.Blocks.Logical.Pre | pre1 | ||
| BaseClasses.RunPerHouBoundary | runPerHouBoundary | ||
| BaseClasses.TimeControl | locTimControl | ||
| Modelica.Blocks.Logical.Not | notIsOn | ||
| BaseClasses.TimeControl | runTimControl | ||
| Modelica.Blocks.Logical.And | andLoc | ||
| Modelica.Blocks.Sources.BooleanConstant | booleanConstantRunPerHou | ||
| Modelica.Blocks.Sources.BooleanConstant | booleanConstantLocTim | ||
| Modelica.Blocks.Sources.BooleanConstant | booleanConstantRunTim | ||
| Modelica.Blocks.Logical.Not | notSetOn | ||
| Modelica.Blocks.Logical.And | andTurnOff | Check if HP is on and is set to be turned off | |
| Modelica.Blocks.Logical.And | andTurnOn | Check if HP is Off and is set to be turned on | |
| Modelica.Blocks.Logical.And | andIsOn | Check if both set and actual value are greater zero | |
| Utilities.Logical.SmoothSwitch | swinOutnSet | If any of the ornSet conditions is true, nSet will be passed. Else nOut will stay the same | |
| Modelica.Blocks.MathBoolean.Or | orSetN | Output is true if nSet value is correct | |
| Modelica.Blocks.Logical.And | andIsOff | Check if both set and actual value are equal to zero | |
| Modelica.Blocks.Logical.And | andLocOff |