This is the base class for the compressor model.
The model evaluates the evaporating pressure of the refrigerant peva,
the specific enthalpy of the evaporating saturated refrigerant vapor heva,
the condensing pressure of the refrigerant pcon
and the specific enthalpy of the condensing saturated liquid refrigerant hcond
at the evaporating temperature Teva = port_a.T
and condensing temperature Tcon = port_b.T
.
Thermodynamic properties are evaluated from functions contained in the specified refrigerant package.
The model assumes isothermal condensation and evaporation, therefore refrigerant mass flow is not accounted for and heat ports are used instead of fluid ports.
Name | Description |
---|---|
ref | Refrigerant in the component |
pressure_error
as
this is replaced by
Buildings.Fluid.HeatPumps.Compressors.BaseClasses.TemperatureProtection.
See #769.
isOn
to use the same construct as the hysteresis block,
and to work around a JModelica limitation.when
conditions and moved common assignments
to this base class.