modelSafety

Model including all safety levels

Extends from BaseClasses.PartialSafety (Safety control with I/O).

Information

Aggregation of the four main safety controls of a refrigerant machine (heat pump or chiller).

The order is based on the relevance to a real system. Antifreeze control and mininmum flow rate control are put last because of the relevance for the simulation. If the medium temperature falls below or rises above the critical values, the simulation will fail.

All used functions are optional. See the used models for more information on each safety function:

Parameters

TypeNameDefaultDescription
RealySet_smallThreshold for relative speed for the device to be considered on
Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Data.GenericsafCtrPar
Mass flow rates
Modelica.Units.SI.MassFlowRatemEva_flow_nominalNominal mass flow rate in evaporator medium
Modelica.Units.SI.MassFlowRatemCon_flow_nominalNominal mass flow rate in condenser medium

Connectors

TypeNameDefaultDescription
Buildings.Fluid.HeatPumps.ModularReversible.BaseClasses.RefrigerantMachineControlBussigBus (from PartialSafety)Bus-connector for the heat pump
Modelica.Blocks.Interfaces.IntegerOutputopeEnvErrNumber of errors from violating the operational envelope
Modelica.Blocks.Interfaces.IntegerOutputantFreErrNumber of errors from antifreeze control
Modelica.Blocks.Interfaces.IntegerOutputminFlowErrNumber of errors from violating minimum flow rates
Modelica.Blocks.Interfaces.RealInputySetInput for relative compressor speed from 0 to 1
Modelica.Blocks.Interfaces.RealOutputyOutOutput for relative compressor speed from 0 to 1

Components

TypeNameDefaultDescription
Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.OperationalEnvelopeopeEnv
Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.OnOffonOffCtrOn off control block
Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.AntiFreezeantFreAntifreeze control
Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.MinimalFlowRateminVolFloRatSafBlock to ensure minimal flow rates
Modelica.Blocks.Routing.RealPassThroughreaPasThrOnOffNo on off control
Modelica.Blocks.Logical.HysteresisySetOn=true if device is set on after on off control
Modelica.Blocks.Logical.SwitchswiErrSwitches to zero when an error occurs
Modelica.Blocks.Sources.ConstantconZerConstant zero
Modelica.Blocks.MathBoolean.AndandCanOpeCan operate
Modelica.Blocks.Sources.BooleanConstantconCanOpeAntFreConstant can operate
Modelica.Blocks.Sources.BooleanConstantconCanOpeMinFloConstant can operate
Modelica.Blocks.Sources.BooleanConstantconCanOpeOpeEnvConstant can operate

Revisions

  • May 27, 2025 by Fabian Wuellhorst:
    Make safety checks parallel (see issue IBPSA #2015)
  • May 26, 2025 by Fabian Wuellhorst and Michael Wetter:
    Increase error counter only when device should turn on (see issue IBPSA #2011)
  • October 2, 2022 by Fabian Wuellhorst:
    Adjusted based on the discussion in this issue #1576)
  • November 26, 2018 by Fabian Wuellhorst:
    First implementation (see issue AixLib #577)