modelAntiFreeze
Model to prevent source from freezing
Extends from BaseClasses.PartialSafetyWithCounter (Safety control which adds an error counter to the I/O).
Information
This model is used to prevent freezing of the condenser or evaporator side. A real device would shut off as well.
This models takes the minimum of the two temperatures evaporator outlet and condenser inlet. If this minimal temperature falls below the given lower boundary, the hystereses will trigger an error and cause the device to switch off.
Assumptions
This block does not check the evaporator inlet or condenser outlet temperatures because they are assumed to be always higher than the other side.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.ThermodynamicTemperature | TAntFre | 276.15 | Limit temperature for anti freeze control |
| Real | dTHys | 2 | Hysteresis interval width |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | ySet (from PartialSafety) | Input for relative compressor speed from 0 to 1 | |
| Modelica.Blocks.Interfaces.RealOutput | yOut (from PartialSafety) | Output for relative compressor speed from 0 to 1 | |
| BuildingSystems.Fluid.HeatPumps.ModularReversible.BaseClasses.RefrigerantMachineControlBus | sigBus (from PartialSafety) | Bus-connector for the heat pump | |
| Modelica.Blocks.Interfaces.IntegerOutput | err (from PartialSafetyWithCounter) | Integer for displaying number of errors during simulation |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.Switch | swiErr (from PartialSafetyWithCounter) | Switches to zero when an error occurs | |
| Modelica.Blocks.Sources.Constant | conZer (from PartialSafetyWithCounter) | Constant zero | |
| Modelica.Blocks.MathInteger.TriggeredAdd | disErr (from PartialSafetyWithCounter) | Used to show if the error was triggered | |
| Modelica.Blocks.Logical.Not | notVal (from PartialSafetyWithCounter) | =true indicates a error | |
| Modelica.Blocks.Sources.IntegerConstant | intConOne (from PartialSafetyWithCounter) | Used for display of current error | |
| Modelica.Blocks.Routing.BooleanPassThrough | booPasThr (from PartialSafetyWithCounter) | Used to keep the connection to the counter | |
| Modelica.Blocks.Logical.Hysteresis | hys | Hysteresis to indicate if freezing occurs | |
| Modelica.Blocks.Math.Min | min | Minimum of evaporator outlet and condenser inlet temperatures |
Revisions
-
October 2, 2022 by Fabian Wuellhorst:
Adapted based on BuildingSystems implementation (see issue #1576) -
November 26, 2018 by Fabian Wuellhorst:
First implementation (see issue AixLib #577)