modelSafety

Example for usage of all safety controls

Extends from BaseClasses.PartialSafety, Modelica.Icons.Example (Icon for runnable examples).

Information

This example shows the usage and effect of all safety controls aggregates into the model Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Safety.

Connectors

TypeNameDefaultDescription
Buildings.Fluid.HeatPumps.ModularReversible.BaseClasses.RefrigerantMachineControlBussigBus (from PartialSafety)Bus-connector for the heat pump
Modelica.Blocks.Interfaces.RealOutputySet (from PartialSafety)Relative speed of compressor from 0 to 1
Modelica.Blocks.Interfaces.RealOutputyOut (from PartialSafety)Relative speed of compressor applied after safety control

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.Hysteresishys (from PartialSafety)Check if onOffMea in heat pump model would be true
Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.SafetysafCtrSafety control
Modelica.Blocks.Sources.PulseySetPulPulse signal for ySet
Modelica.Blocks.Sources.PulseTConInEmuEmulator for condenser inlet temperature
Modelica.Blocks.Sources.PulseTEvaOutEmuEmulator for evaporator outlet temperature
Modelica.Blocks.Sources.PulseTConOutEmuEmulator for condenser outlet temperature
Modelica.Blocks.Sources.PulseTEvaInEmuEmulator for evaporator inlet temperature
Modelica.Blocks.Sources.PulsemConEmu_flowEmulator for condenser mass flow rate
Modelica.Blocks.Sources.PulsemEvaEmu_flowEmulator for evaporator mass flow rate
Modelica.Blocks.Sources.BooleanConstantconHeaConstant heating mode

Revisions

  • September 11, 2025, by Michael Wetter:
    Changed periodicity of source to avoid simultaneous events.
    This is for Buildings, issue 4339.
  • October 2, 2022 by Fabian Wuellhorst:
    First implementation (see issue #1576)