The basic idea of a preconditioner is to use an extremely simple model in order to obtain good initial values for the solver used for the cycle in ACHP.
(Source code, png, hires.png, pdf)
The following assumptions are employed in the preconditioner employed for the conventional heat pump and air conditioning models:
. [This further assumes that there is no subcooled section, but this is ok, because there is also a pinch point at the saturated liquid point, so the basic analysis still works. In the end, the preconditioner is only used to get an approximate solution anyway, so inaccuracy is acceptable, as long as it is reasonable.]Essentially the preconditioner operates with the same independent variables as ACHP, which are the dew temperatures of the refrigerant in the evaporator and condenser, given by the variables
and
respectively.
For a given set of
,
, and known superheat
, the inlet state and outlet pressure for the compressor is known. Therefore, the compressor map can be used to predict the refrigerant mass flow rate as well as the compressor power. This yields the values

The heat transfer rate in the condenser can therefore be given by the value

The condenser heat transfer rate based on the imposed subcooling can also be given by

Theoretically these two heat transfer rate terms should match, and consistency is imposed by the numerical solver that is employed.
As usual, the evaporator is the most complicated component due to the possibility of the evaporator coil being fully wet, fully dry, or partially wet and partially dry. As in the full evaporator model, the evaporator is first considered to be fully dry, yielding the heat transfer rate of

Then using the dry evaporator heat transfer analysis it is possible to determine the surface temperature. The
values can be obtained from

The outlet temperature of the air can be given from

which yields the air inlet surface temperature of

and the air outlet surface temperature of

If both
and
are above the dewpoint temperature of the entering air (
), the rate of heat transfer in the evaporator is equal to the dry-analysis heat transfer rate. If both
and
are below the dewpoint of the entering air, the coil is entirely wet, for which the heat transfer rate can be obtained from

where
is the saturated air enthalpy at
and
is the enthalpy of the inlet air to the evaporator.
If the dewpoint of the inlet air is somewhere between
and
, the heat transfer rate in the evaporator is given by a simple weighting. This yields the following solution for the evaporator:

The residuals to driven to zero are therefore an overall energy balance over the system, as well as matching
and
. So the residual vector as a function of
and
can be expressed as
![\vec{\Delta}(T_{evap},T_{cond})=\left[ \begin{array}{c} \dot Q_{evap}+\dot W_{comp}+\dot Q_{cond} \\ \dot Q_{cond}-\dot Q_{cond,\Delta h} \end{array} \right]](../_images/math/717766268df35f1546238536ea0fe79c7b15f656.png)
and a two-dimensional solver can be used to drive the norm of
to sufficiently close to zero by altering
and
.
In heating mode, the system schematic remains exactly the same, and the same analysis is used, but the physical geometry of the evaporator and condenser are swapped.
(Source code, png, hires.png, pdf)
The same basic structure is employed for the preconditioner for the secondary loop systems, except that one more variable must be determined by the preconditioner. The preconditioner for the secondary loop system is used to determine the saturation temperatures
and
, as well as the cooling coil inlet temperature
.
The same exact analysis as for the DX preconditioner is employed for the compressor and condenser, and a very similar analysis is used for the cooling coil. The cooling coil analysis mirrors that of the evaporator, as described here.
The cooling coil is first considered to be fully dry, yielding the heat transfer rate of

Then using the dry cooling coil heat transfer analysis it is possible to determine the surface temperature. The
values can be obtained from

The outlet temperature of the air can be given from

which yields the air inlet surface temperature of

and the air outlet surface temperature of

If both
and
are above the dewpoint temperature of the entering air (
), the rate of heat transfer in the evaporator is equal to the dry-analysis heat transfer rate. If both
and
are below the dewpoint of the entering air, the coil is entirely wet, for which the heat transfer rate can be obtained from

where
is the saturated air enthalpy at
and
is the enthalpy of the inlet air to the cooling coil.
If the dewpoint of the inlet air is somewhere between
and
, the heat transfer rate in the cooling coil is given by a simple weighting. This yields the following solution for the cooling coil:

Once the cooling coil code has been run, the glycol outlet temperature of the cooling coil can be obtained from

The heat transfer rate in the internal heat exchanger is then given by

because the glycol is the limiting capacitance rate in the two-phase portion of the IHX.
The residuals to driven to zero are therefore an overall energy balance over the refrigerant loop, matching
and
, and an energy balance over the secondary loop. So the residual vector as a function of
,
, and
can be expressed as
![\vec{\Delta}(T_{evap},T_{cond},T_{g,i,cc})=\left[ \begin{array}{c} \dot Q_{IHX}+\dot W_{comp}+\dot Q_{cond} \\ \dot Q_{cond}-\dot Q_{cond,\Delta h} \\ \dot Q_{cc}- \dot Q_{IHX} \end{array} \right]](../_images/math/3524b933dfe89b9e8fa552823b3b7dd20c6d5568.png)
and a three-dimensional solver can be used to drive the norm of
to sufficiently close to zero by altering
,
, and
.
The code for the preconditioners can be found in Preconditioners.py
Nomenclature
| Variable | Description |
|---|---|
![]() |
Mean glycol heat transfer coefficient [W/ /K] |
![]() |
Mean refrigerant heat transfer coefficient [W/ /K] |
![]() |
Mean air heat transfer coefficient [W/ /K] |
![]() |
Residual vector [W] |
![]() |
Overall air-side surface efficiency [-] |
![]() |
Effectiveness of heat exchangers [-] |
![]() |
Density of humid air [kgda/m3] |
![]() |
Total air-side surface area of evaporator (fins+tubes) [ ] |
![]() |
Total refrigerant-side surface area of evaporator [ ] |
![]() |
Specific heat of humid air [J/kgda/K] |
![]() |
Enthalpy of air saturated at [J/kgda] |
![]() |
Enthalpy of air saturated at [J/kgda] |
![]() |
Enthalpy of air inlet to evaporator [J/kgda] |
![]() |
Compressor outlet enthalpy [J/kg] |
![]() |
Condenser air inlet dry-bulb temperature [K] |
![]() |
Cooling coil air inlet dry-bulb temperature [K] |
![]() |
Cooling coil outlet dry-bulb temperature [K] |
![]() |
Evaporator air inlet dry-bulb temperature [K] |
![]() |
Evaporator air outlet dry-bulb temperature [K] |
![]() |
Cooling coil glycol inlet temperature [K] |
![]() |
Cooling coil glycol outlet temperature [K] |
![]() |
Dewpoint temperature of humid air [K] |
![]() |
Evaporator dew temperature [K] |
![]() |
Condenser dew temperature [K] |
![]() |
Surface temperature of air at air inlet [K] |
![]() |
Surface temperature of air at air outlet [K] |
![]() |
Compressor suction superheat [K] |
![]() |
Condenser outlet subcooling [K] |
![]() |
Condenser pressure [kPa (abs)] |
![]() |
Mass flow rate of glycol [kg/s] |
![]() |
Mass flow rate of refrigerant [kg/s] |
![]() |
Mass flow rate of dry air through evaporator [kgda/s] |
![]() |
Evaporator heat transfer rate [W] |
![]() |
Evaporator fully-dry heat transfer rate [W] |
![]() |
Evaporator fully-wet heat transfer rate [W] |
![]() |
Cooling Coil heat transfer rate [W] |
![]() |
Cooling Coil fully-dry heat transfer rate [W] |
![]() |
Cooling coil fully-wet heat transfer rate [W] |
![]() |
Condenser heat transfer rate [W] |
![]() |
Condenser heat transfer rate from change in enthalpy [W] |
![]() |
Internal Heat Exchanger heat transfer rate [W] |
![]() |
Air-side value [W/K] |
![]() |
Glycol-side value [W/K] |
![]() |
Refrigerant-side value [W/K] |
![]() |
Volumetric flow rate of humid air in condenser [m3/kgda] |
![]() |
Volumetric flow rate of humid air in evaporator [m3/kgda] |
![]() |
Volumetric flow rate of humid air in cooling coil [m3/kgda] |
![]() |
Electrical power of compressor [W] |