Air-source heat pump (ASHP — space conditioning)

ASHP conditions a building zone (heating + cooling) rather than charging a DHW tank. The refrigerant cycle and outdoor-coil source side are shared with the air-source boiler family; what differs is the demand side — a zone energy balance instead of a tank.

Overview

The class is tmhp.AirSourceHeatPump. Use it when the heat pump’s job is space conditioning rather than DHW production.

Base usage

from tmhp import AirSourceHeatPump

ashp = AirSourceHeatPump(ref="R32")

# See API reference below for the full constructor and
# analyze_steady / analyze_dynamic signatures.

Source-side mechanics

Outdoor coil with variable-speed fan and an ε-NTU air-side heat exchanger — the shared air-source environmental-side model.

Fan flows: the point of least power

The model has no fan controller. At each call it searches the two approach temperatures for the operating point of least total electrical input (compressor and both fans) that carries the duty; each coil’s air flow follows from its approach, inside the fan’s flow limits. The search stops within 0.1 W of that input. Where no point carries the duty it ranks by the shortfall instead, and on the minimum speed by the input per unit of heat with the cycling loss. A real unit runs the indoor fan at the step its user selects and the outdoor fan on its controller’s map, so the result is close to the best the fans can do in this model, not a prediction of a controller.

How much rides on it, for the default 4 kW unit (cooling at 35 °C outdoor and a 27 °C room, heating at 7 °C outdoor and a 20 °C room). The search runs the indoor fan at its largest flow, 0.232 m³/s, in three of the four cases. In heating at 2 kW it stops at 0.229 m³/s, where the total input is within 0.1 W of the input at the largest flow, inside the tolerance of the search:

System COP by fan flow

Fan flows

Cooling 2 kW

Heating 2 kW

Cooling 4 kW

Heating 4 kW

Least power (the model)

5.28

5.38

3.99

4.45

Indoor fan held at 70 % of its largest flow

5.00

5.16

3.35

3.95

Indoor fan held at 50 %

4.44

4.73

2.65

3.37

Both fans held at their largest flow

5.00

5.00

3.99

4.43

With the indoor flow at half, the COP is 16 % and 12 % lower at half load and 34 % and 24 % lower at nameplate load: the coil needs a larger temperature difference to carry the duty, and the compressor pays for it. Holding both fans at full flow costs 5 % and 7 % at half load — the outdoor fan draws more than the compressor saves — and at most 0.4 % at nameplate load. At half the indoor flow the unit no longer carries its nameplate either: its coil takes 3.90 kW in cooling and gives 3.98 kW in heating (refrigerant side), and the figures in that row are at those duties. A fan is held at one flow with equal limits:

from tmhp import AirSourceHeatPump

largest = AirSourceHeatPump().dV_iu_fan_a_max
low_fan = AirSourceHeatPump(dV_iu_fan_a_min=0.5 * largest, dV_iu_fan_a_max=0.5 * largest)

Rated conditions and use. A capacity table or a certified rating is measured at an indoor airflow the manufacturer declares, and the catalogue comparison of Validation gives the model that published airflow as the indoor fan’s largest flow. The indoor fan at its largest flow is therefore the condition the catalogues were measured at: that comparison is like with like. In use the indoor fan runs at the step its user selects, or at what an automatic setting picks, and the COP falls as the rows above show. The outdoor fan is the unit’s own to control in either case, and the search slows it with the load as a controller does (0.61 to 0.43 m³/s from nameplate to half load in cooling).

Fan power. Each fan draws its rated power at its rated (largest) flow and less along the fan curve below it. The rated power is the rated flow times dP_*_fan_rated over eta_*_fan_rated (60 Pa and 0.6 when not given), or, where a catalogue gives the fan’s power in watts, E_iu_fan_rated / E_ou_fan_rated as given. A power and a pressure or efficiency for the same fan are refused: the two would give two rated powers. A motor rating (“Fan Motor (W)”) is the most the motor draws, at the largest external static pressure it is rated for, so as a rated power it is an upper bound.

# LG KSSJB481A indoor unit: 1,765 CFM, "Fan Motor (W) 400 x 1"
AirSourceHeatPump(dV_iu_fan_a_rated=0.833, E_iu_fan_rated=400.0, ...)

For a seasonal figure of a unit whose fan setting is known, hold the fan there; where it is not, the model’s figure is the favourable end of what the fan setting leaves open. A building simulation that knows the room airflow of each hour cannot pass it per call yet: the flow limits are constructor arguments.

Air density

A fan moves a volume of air and a coil exchanges heat with a mass of it. Both coils take the density of the air they draw in — outdoor air at T0 for the outdoor coil, room air at T_a_room for the indoor coil — as dry air at one standard atmosphere (tmhp.air_properties.air_density()):

Inlet air [°C]

−25

−7

15

27

35

Density [kg/m³]

1.422

1.326

1.225

1.176

1.145

The airflows the model reports and accepts (dV_ou_a, dV_iu_a, the fan references and limits) are volumes at the coil inlet, so the air mass flow of a coil is air_density(T_in) * dV and its heat capacity rate c_a * air_density(T_in) * dV. That one mass flow carries the coil’s NTU, the outlet temperature and the fan heat, so within a row

c_a * rho(T_in) * dV * (T_out - T_in) = heat from the refrigerant + fan power

holds on each coil (Q_ref_ou, E_ou_fan on the outdoor side; Q_ref_iu, E_iu_fan on the indoor side; the refrigerant heat is negative where the coil is the evaporator). Q_a_iu_in / Q_a_iu_out and the air exergy flows use the same mass flow. On a wet indoor coil (Wet indoor coil (cooling)) the left-hand side is the sensible part only: the air’s temperature change carries the coil’s sensible heat and the fan power, -Q_room_sensible [W], and the refrigerant takes up the latent heat Q_iu_latent [W] besides (default 4 kW unit, 35/27 °C, 50 % room humidity: −3 217.9 W on the air, of which 23.1 W of fan heat, and 759.0 W latent for the 4 000 W the refrigerant takes up). A row averaged over on/off cycling or frost keeps the identity on the indoor side; on the outdoor side the fan power is averaged with the runtime fraction and the airflow with the capacity ratio, so the two sides differ by that share of the fan power.

At a fixed fan volume flow, cold outdoor air therefore carries more heat capacity than the 15 °C standard air earlier releases assumed at every temperature (1.225 kg/m³): 16 % more at −25 °C, 6.5 % less at 35 °C. Room air is 2 to 5 % lighter than that standard air (20 to 30 °C). For the default unit against the same model with that standard air on both coils (measured on the default compressor maps, ossorio-r290-te-2026-11-21):

  • Heating. The outdoor coil gains air mass in the cold (below 0 °C the evaporating temperature is 0.2 to 0.3 K higher at nameplate capacity, 0.15 K at half load) and the indoor coil loses 1.7 % at a 20 °C room (the condensing temperature is 0.2 to 0.25 K higher at nameplate capacity, about 0.1 K at half load). The two nearly cancel: the COP is 0.1 % lower at 7 °C / 20 °C at nameplate capacity and at most 0.4 % higher down to −15 °C, at nameplate capacity or half load.

  • Cooling. Both coils move warm, lighter air. At 35 °C outdoors and a 27 °C room the evaporating temperature at nameplate capacity is 0.5 K lower and the COP 2.7 % lower (1.7 % at half load); at a 30 °C room the COP at nameplate capacity is 3.0 % lower, 3.5 % at 45 °C outdoors.

  • Ceiling. The largest duty the indoor coil carries inside the approach bounds (dT_approach_bounds) falls with the room-air density, by 1.3 % at a 20 °C room. It is the heating ceiling of the default unit in mild weather: at 7 °C / 20 °C, 189 % of its nameplate (capacity_binding == "cycle").

The volume flows are the fan’s actual flows at the coil inlet. Rating airflows are commonly quoted as standard air (1.204 kg/m³, the mass flow divided by that density); at 20 °C the two are the same number, at a 27 °C room the actual flow is 2.4 % larger and at 35 °C outdoors 5 % larger. Pass the actual flow when the difference matters.

What stays on the volume flow: the coil conductance follows the fan’s volume flow (UA_rated * (dV / dV_ref) ** n), and the fan power follows its curve in the volume flow at the rated static pressure. The fan laws give a pressure rise, and so a fan power, proportional to the air density at a fixed volume flow; that is not applied. Applied, it would add 16 % to the outdoor fan’s power at −25 °C, which is 0.35 to 0.52 % of the total input, and take 0.34 to 0.42 % off the total input at 35 °C. Humidity is left out — per cubic metre moist air carries 0.2 to 0.4 % more sensible heat capacity than dry air at room and summer conditions — and so is altitude (one standard atmosphere; 18 % less density at 1 600 m).

Sink-side mechanics

A zone temperature / load proxy stands in for the building. The caller supplies indoor-unit load as Q_r_iu: positive values select cooling, negative values select heating, and zero values represent off operation. There is no tank energy balance.

Indoor airflow

The rated indoor airflow defaults to the largest airflow wall-mounted indoor units of that capacity publish: 0.0320 × kW + 0.1035 m³/s for a cooling-rated unit, 0.232 m³/s (209 m³/h per kW) at the default 4 kW (tmhp.default_inputs.estimate_max_airflow(); Where the defaults come from, Maximum fan airflow). indoor_unit_type="floor_standing" selects that class instead. Pass dV_iu_fan_a_rated when the unit’s own figure is known — a cassette or ducted unit has no catalogue class and needs it. The rated airflow is also the fan’s maximum.

The airflow decides the supply-air temperature and, through the indoor coil’s approach, most of the temperature lift. At the default a unit delivering its nameplate capacity supplies air about 14 K from the room: 34 °C in heating at a 20 °C room, 12 °C in cooling at a 27 °C room, with the refrigerant saturated 16 K from the room air. (Until November 2026 the default was 193 m³/h per kW, 400 cfm per ton — the airflow unitary equipment is rated at rather than its largest; before that, 720 m³/h per kW moved four times that air: supply air 5 K from the room, a condensing temperature near 30 °C, and a rated COP above what such equipment declares.) The indoor fan draws about 0.6 % of the nameplate capacity at rated flow, both fans together 1.5 to 2.1 %.

Because the fan power is small against the compressor’s, the least-power operating point keeps the indoor fan at its largest airflow, to the tolerance of the search, from nameplate down to half load (Fan flows: the point of least power). Below that, in heating, the compressor’s input is small enough for the fan’s to count, and the search turns the fan down: for the default unit at 7 °C outdoor and a 20 °C room, to 85 % of its largest airflow at 1.5 kW. The supply-air temperature therefore approaches the room temperature at part load. A unit that slows its fan for comfort is described with dV_iu_fan_a_max.

Note

The approach-temperature search domain (dT_approach_bounds) is 1 to 30 K. A default unit runs its indoor coil 12 to 24 K from the room air at nameplate capacity, depending on its size (2 to 30 kW), so at the rating points the box is not what limits it. In mild weather it is: at 7/20 °C the delivered heat of a default unit is capped by the indoor coil at its largest airflow and the widest approach (capacity_clamped == "max", capacity_binding == "cycle"), at 189 % of the nameplate at 4 kW, 155 % at 8 kW and 137 % at 15 kW; a larger unit moves less air per kW. Until November 2026 the default was 1 to 20 K, which capped the default 4 kW unit near 125 % of its nameplate and cut the rated capacity of units above 8 kW.

Wet indoor coil (cooling)

Without a room humidity the indoor coil is dry: all of the coil heat is sensible and the model removes no moisture. Give the room’s relative humidity and a cooling coil that runs below the room air’s dew point also condenses water:

from tmhp import AirSourceHeatPump

ashp = AirSourceHeatPump()
row = ashp.analyze_steady(Q_r_iu=4000, T0=35.0, T_a_room=27.0, RH_room=0.5)

row["Q_ref_iu [W]"]                # 4000: what the refrigerant takes up
row["Q_iu_sensible [W]"]           # 3241
row["Q_iu_latent [W]"]             # 759
row["SHR_iu [-]"]                  # 0.81
row["m_dot_iu_condensate [kg/s]"]  # 3.08e-4 (1.1 kg/h)
row["Q_room_sensible [W]"]         # 3218: sensible, less the indoor fan's 23 W
row["w_iu_a_out [kg/kg]"]          # 0.01007 (room air: 0.01120)

RH_room is a fraction (0–1) at T_a_room and one standard atmosphere; max_capacity() takes the same argument and analyze_dynamic a RH_room_schedule. Heating does not read it (the indoor coil is the condenser there), nor does an off point, and None — the default — is the dry coil, with every result as before. A schedule holds one entry per step (a list, an array or a Series). Only the cooling steps are read, each as RH_room is: a cooling step whose entry is not a number in 0–1 stops the run with a ValueError that names the step, and what a heating or an off step holds — a missing value, say — is not looked at.

The coil is the apparatus-dew-point / bypass-factor coil, the family EnergyPlus uses for DX cooling coils, written so that it reduces to the dry coil. It is also the classic wet-coil analysis — the heat driven by the difference between the air’s enthalpy and that of saturated air at the surface, with the coil-side resistance entering through the slope of the saturated-air enthalpy (Threlkeld, 1970; Braun, Klein & Mitchell, 1989) — with the refrigerant-side resistance set to zero, so that the surface is at the evaporating temperature.

With room air at \(T_{in}\), \(w_{in}\), the evaporating temperature \(T_e\), the air heat capacity rate \(C\) and the effectiveness \(\varepsilon = 1 - e^{-UA/C}\) of the dry coil,

\[Q_s = C\,\varepsilon\,(T_{in} - T_e), \qquad Q_l = C\,\varepsilon\,\frac{h_{fg}}{c_a}\,\max\bigl(0,\; w_{in} - w_{sat}(T_e)\bigr),\]

and the refrigerant takes up \(Q_s + Q_l\) (Q_ref_iu [W]). The air leaves the coil at \(T_{in} - \varepsilon\,(T_{in} - T_e)\) and \(w_{in} - \varepsilon\,\max(0,\, w_{in} - w_{sat}(T_e))\): on the straight line from the room state to saturated air at the coil, a fraction \(\varepsilon\) of the way. A wet coil is therefore the dry coil with its driving temperature difference enlarged by \((h_{fg}/c_a)\,\max(0,\, w_{in} - w_{sat}(T_e))\) (tmhp.heat_exchanger.wet_coil_latent_difference()); where the coil is at or above the room’s dew point that term is zero and the coil equation is the dry coil’s. The airflow that carries the duty, the two approach temperatures and the capacity ceiling are solved as before, with that driving difference.

That statement is about the coil equation, not about every result. The searches around it treat a request the fans’ smallest airflows refuse differently once a room humidity is given (the two ends of the operating range, below), also where no water condenses: the default 4 kW unit refuses analyze_steady(1150, 0, 27) (0 W, "cycle_invalid") and delivers it with RH_room=0.02 (1 150 W, by cycling at 1 153 W) — with no latent heat either way, the coil at −1.4 °C being far above that room’s dew point of −24 °C. Room air with no water vapour at all (RH_room=0) is solved as the dry coil is.

What the model assumes:

  • The surface is at the refrigerant saturation temperature. The dry coil already works that way through its overall UA; the wet coil keeps it, so condensation starts where the evaporating temperature — not a warmer fin surface — reaches the dew point. UA is therefore the coil’s effective air-side conductance: the refrigerant-side, tube and fin resistance that would put the surface above \(T_e\) is not modelled (co-author decision on #262). A catalogue cannot pin that resistance: the published sensible heat ratio fixes the air side only, and what the resistance does — a lower evaporating temperature — shows only in the COP, where it cannot be told apart from the compressor’s efficiency. Leaving it out runs the evaporating temperature slightly high and the COP slightly high by a nearly constant factor, which a compressor calibration to the same catalogue (#189) takes up in its efficiency multiplier. On the 180 Daikin cooling rows, a refrigerant side of a fifth of the coil’s resistance at the default UA lowers the evaporating temperature by 0.3–0.9 K (0.5 K on average) and the COP by 0.7–3.2 % (1.6 % at the median); one factor per unit leaves 0.2 % on average (1.3 % at most). With the UA solved instead from each row’s published ratio the same resistance lowers the COP by 1.5–12.9 % (5.3 % at the median) and one factor per unit leaves 0.8 % (3.3 % at most): the larger the resistance, the more that take-up is an approximation. (The factor here is one on the COP; the calibration’s multiplier acts on the compressor alone.)

  • The same ``UA`` wet and dry. No wet-surface enhancement and no change of fin efficiency; UA_iu_rated and its airflow law are those of the dry coil. The default (0.16 W/K per W of nameplate) is a provisional rule that was not derived for a wet coil.

  • Lewis number 1. Heat and water vapour are transferred with the same effectiveness, which is what puts the leaving air on the straight line.

  • Leaving air no wetter than saturated. The saturation curve is convex, so for a room close to saturation, or a coil far below the dew point, the straight line passes above it. The leaving air is then put on the curve at the same enthalpy — as the DX cooling coil of EnergyPlus corrects a supersaturated outlet (CalcDoe2DXCoil; the coil is the apparatus-dew-point / bypass-factor coil of its Engineering Reference): the total heat and the airflow are unchanged, the supply air is warmer and drier than on the line and more of the heat is latent (tmhp.heat_exchanger.saturated_leaving_state()). The default unit at 35/27 °C reaches it at its capacity ceiling from 80 % room humidity, and at the nameplate duty only above 95 %.

  • Condensate leaves at the coil temperature, and \(h_{fg}\) is the latent heat of water at \(T_e\) (CoolProp, IAPWS-95: 2 477 kJ/kg at 10 °C; the triple-point value below 0.01 °C). The sensible cooling of the vapour that condenses is left out (about 1 % of the latent heat).

  • Dry-air heat capacity and density for \(C\), as everywhere in the air-side models (Air density); \(w_{in}\) and \(w_{sat}\) are CoolProp humid-air values at 101 325 Pa.

  • No frost on the indoor coil. A coil below 0 °C keeps condensing, with \(w_{sat}\) over ice.

Default 4 kW unit, 35 °C outdoor, 27 °C room, 4 kW coil heat

RH_room

Dew point [°C]

\(T_e\) [°C]

Sensible / latent [W]

SHR_iu

Condensate [kg/h]

E_tot [W]

cop_sys

none, 0.3

– / 8.0

10.8

4000 / 0

1.00

0

997

3.99

0.4

12.3

11.7

3790 / 210

0.95

0.31

972

4.09

0.5

15.7

13.9

3241 / 759

0.81

1.11

909

4.37

0.6

18.6

16.0

2730 / 1270

0.68

1.86

854

4.66

0.7

21.1

17.9

2253 / 1747

0.56

2.56

805

4.94

0.8

23.3

19.7

1807 / 2193

0.45

3.22

760

5.23

At a fixed total duty a wetter room needs a smaller temperature difference at the coil, so the evaporating temperature rises — while less of the duty is sensible cooling. In this example the electrical input falls with it (997 W dry, 909 W at 50 %), as it does on 179 of the 180 Daikin catalogue rows (Validation, Cooling and latent load). That is what these conditions give, not a rule. Where the pressure ratio is on its floor a warmer evaporator lifts the condensing temperature with it, and the input can rise: a 2.5 kW unit delivering 2 kW at 15 °C outdoor and 35 °C room draws 249.0 W dry and 251.1 W at 90 % room humidity. The request stays what it was: Q_r_iu is the coil’s total heat, so a zone model that needs a given sensible cooling has to ask for more than that when the coil is wet (there is no request-on-room-load option), and takes Q_room_sensible [W] off its air node and m_dot_iu_condensate [kg/s] off its moisture balance.

The two ends of the operating range move with the humidity, because the coil carries more at a given evaporating temperature:

  • The ceiling. max_capacity(..., RH_room=...) is the ceiling of the wet coil, and a request above it runs there (capacity_clamped == "max", Q_unmet [W]). An indoor coil that sets the ceiling of the dry model sets a higher one wet: with UA_iu_rated=150 the default unit delivers 3 465 W dry at 35/27 °C, 5 835 W at 50 % room humidity (the coil at its largest airflow and widest approach in both) and 7 131 W at 80 %, where the compressor’s speed binds instead. The ceiling is found by the same search as the dry one, on the duty; where the least-lift point of a duty names no limit of the machine the search starts it again from other approaches and looks above it before it settles, so that a point it merely failed to find is not reported as the ceiling. A fan held at one flow, or with a narrow range, cannot leave its largest airflow the way the least-lift point assumes; where that point is refused by the fans’ smallest airflows the duty is solved by the ordinary search before it counts as refused (default unit with its outdoor fan held at its largest flow, 15 °C outdoor and a saturated 35 °C room: 13.68 kW, the outdoor coil at its widest approach). Where the search finds no duty at all, the duty the low-load search of the same condition ends on (next item) runs, and the ceiling is searched upwards from it. And where a unit with a fan held at one flow runs flat out on the pressure-ratio floor, the ceiling is what the ordinary search delivers there, 1 to 1.5 % above the least-lift point: the outdoor approach asked for no longer moves the condensing temperature but still sets the subcooling (10 kW unit with its indoor fan held, −10 °C outdoor and a saturated 35 °C room: 35.43 kW against 34.99 kW).

    A request equal to the ceiling is delivered the ceiling: Q_ref_iu [W] is the Q_max [W] that max_capacity reported with the same RH_room (to rounding) and Q_unmet [W] == 0. How the row is labelled depends on which search answered it. Where the search of the request itself delivers that duty the row is an ordinary one (capacity_clamped is None; 33 of the 180 conditions below). Where it does not, the row is the ceiling’s own state, re-solved, with capacity_clamped == "max" and capacity_binding naming the limit (default 10 kW unit at 46 °C outdoor and a 27 °C room at 30 %: 13 771.58 W, on the condensing-temperature limit). That second answer is also given to a request that is under the ceiling by no more than 0.1 % and that the search of the request does not deliver. That search starts from the request’s own least-lift point, solved to a looser tolerance than the ceiling’s, and close under the ceiling it reads the request as beyond the limit, or as short of it flat out, where the ceiling search has verified an operating point. On default units of 2 to 10 kW (180 conditions: 20 to 46 °C outdoor, 20 to 32 °C room, 30 to 80 %) the requests it does not deliver reach from 0.0007 % to 0.006 % of the ceiling under it, at 147 of the conditions; every request 0.01 % under is delivered as asked. The 0.1 % is the width the ceiling itself is searched to (rel_tol of max_capacity): the search does not tell duties that close apart, so the unit is run at the one it verified. Such a row delivers more than was asked, by at most that 0.1 % (0.006 % in those conditions). A request the search delivers is not touched, whatever its distance from the ceiling.

  • The smallest continuous duty in mild weather. At a low outdoor temperature the cycle sits on the pressure-ratio floor (1.5), which holds the condensing temperature well above the outdoor air, and each coil has to carry its duty at no less than its fan’s smallest airflow. The evaporating temperature that would make room for the outdoor coil makes a wet indoor coil carry more than a small duty, so below some duty no pair of approaches runs continuously: 1.54 kW for the default unit at 10 °C outdoor, 27 °C room and 80 % (the dry coil runs down to its minimum speed there, 1.15 kW). A smaller request is met by cycling at that duty, exactly as below the minimum speed (capacity_clamped == "min", Q_min [W]; 1 200 W: runtime fraction 0.823). Fans with a high smallest flow put that duty above twice the nameplate: with both at 65 % of the largest flow it is 8.44 kW at 15 °C outdoor and a saturated 35 °C room, and a 4 kW request cycles there (runtime fraction 0.546). The search for that duty is a bisection by which side refuses the trial, to 0.5 %; where it closes with nothing running it goes on to 0.1 %, because the duties that run can be a window narrower than the first width (next paragraph). Where it still finds no duty, the state the unit runs flat out at — the one the ceiling search starts with — is tried before the request is given up (2.5 kW unit with both fans held at their largest flow, 8 °C outdoor, 35 °C room at 90 %: a 2.5 kW request is met by cycling at the 9.63 kW the unit runs flat out at, runtime fraction 0.318). Where that state lies under the request the unit runs there, as for any request above the ceiling. Where no duty is found to run — fans with almost no flow range, in cold weather — the unit is off with failure_reason == "hx_not_converged": a coil cannot carry so little inside its fan’s flow range.

A fan held at one flow, and what the searches can miss. A coil whose fan runs at one flow (dV_*_fan_a_min equal to dV_*_fan_a_max) carries a duty at one approach temperature only. On the pressure-ratio floor the condensing temperature is held above the outdoor air whatever approach is asked for, so with both fans held the two coils balance in a narrow window of duties, or at none: the 4 kW unit at 8 °C outdoor and a saturated 35 °C room runs continuously between 14.31 and 14.34 kW only (2.5 kW unit, same conditions: at no duty — the outdoor coil at its one flow carries at least 1.9 % more than the cycle rejects, up to the compressor’s largest speed). The three searches — the operating point of a request, the smallest continuous duty, the ceiling — sample the duty: a ladder of duties and a bisection between two that differ, to 0.1 % for the ceiling and to 0.5 % for the smallest continuous duty (0.1 % where nothing ran at 0.5 %). They use each other’s verified points as candidates — the ceiling search starts from the duty the low-load search ends on where it found none itself, and a low-load request takes the flat-out state of the ceiling — but a window narrower than the spacing of the samples can be missed by all of them. The caller then sees Q_max [W] == 0 with binding == "infeasible" from max_capacity and an off row with failure_reason == "hx_not_converged" from analyze_steady, although a duty inside the window would run. A held fan can also leave a request under the ceiling short instead of off: the row then has capacity_clamped == "max" and an unmet duty although max_capacity reports more. On a grid of 2.5, 4 and 10 kW units with the outdoor fan held at its largest flow (162 wet conditions) no request does so at 25 or 35 °C outdoor; at 0, 8 and 15 °C outdoor, and at 46 °C with the room at 90 % relative humidity or more, requests up to 20 % under the ceiling are run up to 28 % short (4 kW unit, 46 °C outdoor, saturated 27 °C room: ceiling 7,325 W, a request 0.2 % under it runs at 5,270 W). Requests within 0.1 % of the ceiling run at it. Two ways out: leave the fan a flow range (the default smallest flow is 15 % of the largest; a held fan is an input, not a default), or request a duty inside the window. With fans that modulate the duties that run are a wide band and the samples fall inside it.

A result does not depend on what was solved before it. Inside one analyze_dynamic run the searches of a wet cooling condition are remembered — the ordinary search of a duty, the ceiling — but only as what solving them again would give, so a step’s row is the row of that step solved alone, in any order of the steps. (The dry model reuses the smallest continuous duty of a condition for the smaller requests of the same run, as before; that duty is found by bisection to 0.5 %, and a row can differ by that much from the same request solved alone.)

This is the wet coil’s behaviour only. Without RH_room the model is left as it was, result for result: a request the fans’ smallest airflows refuse on the pressure-ratio floor is answered there with the unit off and failure_reason == "cycle_invalid" (default unit, 27 °C room, 0 °C outdoor: 1 200 W, 30 % of the nameplate, runs and 1 150 W is refused), where the 1 150 W request with a room humidity of 20 % cycles at 1.24 kW. A dry request equal to the dry ceiling is likewise answered as before: by the dry searches, which run the unit up to 0.012 % under it at 42 of 60 conditions of the default units (none is answered with the unit off).

What it leaves out, beyond the assumptions above:

  • The catalogue comparison is not settled by it. With the default coil the model’s sensible heat ratio is above the published one on average and moves less with the size of the unit. The wet coil brings the cooling COP of the Daikin rows closer to the catalogue on average — the dry coil runs them low — but not evenly: above the catalogue on the rows with the most latent load, still well below it on those with the least (Validation, Cooling and latent load). The shipped validation results are those of the dry coil.

  • Re-evaporation while cycling. Below the minimum speed the row is the mean over an on/off period with the latent heat scaled like every other rate; the water that evaporates off a wet coil while the compressor is off (the latent degradation of EnergyPlus) is not modelled.

  • Exergy. X_a_iu_* are the thermal exergy of a dry air stream, with or without a wet coil. A moist-air exergy balance — a reference humidity for the dead state, the chemical exergy of the water vapour, the condensate — is not modelled. On a row whose coil removes water the refrigerant side of the indoor coil carries the latent heat and the air side only the temperature change, so their difference is not the coil’s destruction (a 2.5 kW unit at 2 kW, 15 °C outdoor, 35 °C room and 90 %: −2.6 W). Xc_iu_hx [W], X_eff_iu_hx [-] and X_eff_sys [-] are therefore NaN on those rows; rows that remove no water keep their values. (X_eff_sys [-] is the thermal exergy the room air gains over the electrical input, and is negative on the dry coil too wherever the outdoor air, the dead state, is colder than the room: cooling a room towards the dead state lowers its air’s exergy.)

  • Rating and defaults. The reference state, the default inputs and operating_range() are those of the dry coil.

  • Heating humidification and condensate on the outdoor coil above the frost range are not modelled.

Part load: cycling and unmet load

The compressor modulates between rps_min and rps_max. A request outside what the unit delivers over that range is still answered, and the row says how.

Below the minimum capacity the compressor cycles on and off, and the row is the mean over the cycling period (capacity_clamped == "min"):

  • Q_ref_iu [W] equals the request. Q_min [W] is what the unit delivers running continuously at its minimum speed, and capacity_ratio [-] is the request divided by it (the CR of EN 14825).

  • The electrical input carries the EN 14825 degradation for a unit delivering to air: COP = COP_min · (1 − Cd · (1 − CR)) with Cd = 0.25, the value the standard prescribes when a unit has not been tested for it. part_load_factor [-] is that bracket. It applies to the refrigeration machine — compressor and outdoor fan — so cop_ref [-] is the continuous value times it, and cop_sys [-] falls slightly less (about one percent) because the indoor fan is not degraded.

  • runtime_fraction [-] is the share of the time the compressor runs, CR / part_load_factor. Compressor and outdoor-fan power (E_cmp, E_ou_fan) are the running values times that fraction. Heat and flow rates (Q_ref_iu, Q_ref_ou, Q_a_iu_in, Q_a_iu_out, m_dot_ref, dV_iu_a, dV_ou_a) are the running values times CR, and so is the indoor fan’s power (E_iu_fan): it runs while heat is delivered. The refrigerant cycle and both air streams thus stay in balance with the delivered heat, and the room still receives the coil duty plus the indoor fan’s heat. Temperatures, pressures, compressor speed and efficiencies are those of the running machine.

  • E_cycling_loss [W] is the mean electrical power the compressor and the outdoor fan draw beyond CR times their continuous power — the cost of the starts.

EN 14825 degradation with Cd = 0.25

capacity_ratio

part_load_factor

runtime_fraction

Cycling loss / continuous power

0.1

0.775

0.129

0.029

0.2

0.800

0.250

0.050

0.4

0.850

0.471

0.071

0.6

0.900

0.667

0.067

0.8

0.950

0.842

0.042

1.0

1.000

1.000

0.000

A request of a tenth of the minimum capacity is thus met at 77.5 % of the continuous minimum-speed COP, with the compressor running 12.9 % of the time. Without this model every request below the floor was answered with the minimum capacity itself — about half the nameplate for the default unit in mild weather — whatever was asked for. Cd_cycling sets the coefficient: a number replaces 0.25, 0 is loss-free cycling, and None restores the earlier behaviour (continuous operation at the minimum speed, Q_ref_iu [W] above the request, runtime_fraction [-] of 1). The operating-point search weighs the degradation, so the minimum-speed point may sit a few watts from the one found with Cd_cycling=None.

The minimum speed is not always the lower end of continuous operation. At a large lift the compressor efficiency falls towards low speed, and the compressor envelope (Reference points and operating limits) can refuse the point before rps_min is reached, for the discharge temperature, which the falling efficiency drives above T_dis_max even with the discharge-temperature control used up. The default 4 kW unit does not reach that case at −15 to −25 °C outdoors and 20 to 27 °C indoors with R32, R410A, R290, R134a, R407C or R1234yf: it runs down to its minimum speed (Air-source heat pump boiler (ASHPB) names boiler cases that do). Where it happens, a request below that duty, refused while a larger one runs, is met the same way as one below the minimum speed: the unit cycles at the smallest duty the envelope admits. The row has capacity_clamped == "min", Q_min [W] is that duty (found by bisection on the duty, to 0.5 %), and the compressor speed of the row is above rps_min. failure_reason == "discharge_temp_above_max" remains where no duty runs at all.

Above the maximum capacity the unit runs flat out (capacity_clamped == "max"): Q_ref_iu [W] is the ceiling, Q_max [W] repeats it, capacity_binding names what set it and Q_unmet [W] is the part of the request that is not delivered. Q_request [W] (signed, as asked) and Q_unmet [W] are on every row, so a schedule’s unmet energy is the sum of Q_unmet [W] times the time step.

A request that is not delivered in full is also said in words: analyze_steady issues one tmhp.OperatingLimitWarning for a point that runs at its ceiling or does not run at all (the request, what is delivered, the limit and what removes it), and analyze_dynamic one at the end of a run with the steps stopped or limited and the unmet energy; the totals are in df.attrs["operating_limits"] (Being told: OperatingLimitWarning).

The ceiling is the unit running flat out: the compressor at rps_max and both fans at their largest airflow. A coil carries a duty with the smallest temperature difference at its largest airflow, so this is the least lift — the smallest pressure ratio and the coolest discharge — at which that speed’s duty is delivered; if this point is outside the compressor envelope, so is every other approach pair delivering the duty. It is solved directly (both approach temperatures as a fixed point, about twenty cycle evaluations), not searched for. Where it is outside the envelope, or beyond what a coil carries inside the approach bounds, a unit’s controller holds the compressor back, and the ceiling is the largest duty whose least-lift point is an operating point, bisected to 0.1 %.

What stops the unit is in capacity_binding, with the names the water-heating models use (failure_reason semantics):

capacity_binding

What the next larger duty runs into

"compressor"

The speed range: the compressor is at rps_max.

"discharge_temperature"

T_dis_max, with the suction already as wet as the discharge-temperature control allows.

"condensing_temperature"

T_cond_max, the highest condensing pressure of the compressor envelope (Reference points and operating limits).

"pressure_ratio"

PR_cycle_max.

"cycle"

A coil at its largest airflow and the widest approach the search admits (dT_approach_bounds). The compressor is clear of its own limits and the other fan still has a range, so the row is the least-power point at that duty.

The same holds below the ceiling. The envelope need not be monotone in the duty: where the compressor is less efficient and its discharge hotter at mid speed than flat out, a duty can be refused although a larger one runs (the 4 kW R32 unit as a bare constructor built it until November 2026 – 18.7 cm³/rev, 0.8 m³/s outdoors, the efficiency map of then – at −25 °C outdoor / 24 °C room: 2.3 kW had no operating point, 3.6 kW had; the present default unit runs at every duty up to its 3.4 kW ceiling there). Such a request runs at the largest duty below it that has one, again with capacity_clamped == "max" and the binding that names the limit, as the water-heating models do. A request is switched off (failure_reason) only when no smaller duty runs either, and the reason is then the limit its own least-lift point breaks — not the one an arbitrary probe of the search happened to break.

Note

The ceiling is not the largest heat any pair of approach temperatures delivers at rps_max. An adiabatic compressor turns its losses into delivered heat, so starving a coil of air (a higher pressure ratio, a lower overall efficiency) can raise the heating duty by up to a tenth while the COP falls by up to a quarter; no unit runs its fans that way. Earlier versions ranked capacity-limited candidates by delivered heat and returned such states — the default R290 unit at −15 °C / 18 °C with the outdoor fan at 18 % of its airflow and a COP of 1.9 against 2.8.

What the cycling model does not contain: the indoor fan is taken to run only while heat is delivered, no standby or crankcase power is added while the unit is off, and a start is not resolved in time — the degradation is the standard’s seasonal-average figure, not a transient simulation.

Frost and defrost

In heating the outdoor coil runs below the outdoor air. Below about 5 °C it is below freezing and colder than the air’s dew point, so frost begins to build on it, capacity and power fall, and the unit periodically stops heating to melt the frost. A catalogue figure at 2 °C or −7 °C is the mean over that; the frost-free cycle the model solves is not.

AirSourceHeatPump therefore applies the frost adjustment EnergyPlus uses for its DX heating coils (Coil:Heating:DX:SingleSpeed, on-demand reverse-cycle defrost; from DOE-2.1E), with its published constants unchanged (tmhp.defrost):

\[T_{coil} = 0.82\,T_{out} - 8.589, \qquad \Delta\omega = \max\left(10^{-6},\ \omega_{out} - \omega_{sat}(T_{coil})\right), \qquad t_{frac} = \frac{1}{1 + 0.01446/\Delta\omega}\]
\[\text{capacity multiplier} = 0.875\,(1 - t_{frac}), \qquad \text{power multiplier} = 0.954\,(1 - t_{frac})\]

and no correction above an outdoor temperature of 5 °C. EnergyPlus switches the whole correction on at that limit; here it grows from nothing at 5 °C to its full size at 2 °C, the frosting rating condition of EN 14511 (A2), as the share \(w\) of the runtime the coil frosts:

\[w = \min\left(1,\ \frac{5 - T_{out}}{3}\right), \qquad t_{frac} \leftarrow w\,t_{frac}, \qquad \text{multiplier} \leftarrow 1 - w\,(1 - \text{multiplier})\]

— the mean of a unit that frosts for that share and runs frost-free for the rest. Above 5 °C nothing differs from EnergyPlus, nor at and below 2 °C at the rated load in air as humid as a rating condition (dry air). A request Q has to be met by the mean, so the cycle is solved frost-free at (Q + Q_defrost) / capacity multiplier and the row is then averaged:

  • Q_ref_iu [W] is the mean delivered heat — the request, unless the larger frost-free duty runs into the capacity ceiling, in which case the shortfall is in Q_unmet [W]. The ceiling under frost is the frost-free ceiling times the capacity multiplier of the duty the unit runs there (part load), less Q_defrost.

  • defrost_fraction [-] is t_frac; frost_capacity_factor [-] and frost_power_factor [-] are the two multipliers.

  • E_cmp [W] is the frost-free compressor power times power multiplier + t_frac (heating, then defrosting); E_defrost [W] is the defrosting part. The outdoor fan follows the power multiplier, and the indoor fan’s power is averaged with the heat it delivers.

  • Q_defrost [W] is the heat a reverse-cycle defrost takes from the room (0.01 · t_frac · (7.222 − T_out) · hp_capacity / 1.01667).

  • Q_ref_iu_frost_free [W] and E_tot_frost_free [W] are the frost-free cycle the row was solved at; heat and flow rates of the row are that cycle’s times the delivered-heat factor, and state points are that cycle’s.

Frost adjustment at 84 % relative humidity

Outdoor [°C]

Coil [°C]

defrost_fraction

Capacity multiplier

Power multiplier

5

−4.5

0

1

1

3.5

−5.7

0.054

0.890

0.925

2

−6.9

0.098

0.789

0.860

−7

−14.3

0.044

0.836

0.912

−15

−20.9

0.018

0.859

0.936

Part load. The table is the unit running flat out, which is what the coil-temperature correlation describes. A unit that delivers less loads its coil less: the difference between the air and the coil surface is what drives the heat in, so at a load ratio \(r\) it is taken \(r\) times as large,

\[T_{coil} = T_{out} - r\,(0.18\,T_{out} + 8.589), \qquad r = \min\left(1,\ \frac{\text{frost-free duty}}{\text{hp\_capacity}\;(0.18\,T_{out} + 8.589)/(0.18 \cdot 7 + 8.589)}\right)\]

and the correction follows the frost drive that is left: the humidity ratio the air can leave on that coil as frost, as a share \(\varphi(r)\) of what it leaves on the rated-load coil. \(\Delta\omega\) and the two fixed losses (1 − 0.875, 1 − 0.954) are multiplied by \(\varphi\). At \(r = 1\) nothing differs from the table at any outdoor state; a coil that rises to the air’s frost point, or to 0 °C, has no frost. The denominator of \(r\) is the capacity of the unit the correlation describes at that outdoor temperature — the nameplate, declared at 7 °C (EN 14511 A7, ISO 5151 H1), reduced as the correlation’s own temperature difference shrinks (10.1 K at 8.3 °C, 5.9 K at −15 °C). A unit that delivers 0.6 of its nameplate at −15 °C because that is its capacity there is at \(r = 1\), not part-loaded. The default 4 kW unit against a 20 °C room:

System COP under frost, by load (84 % relative humidity)

Request

2 °C

0 °C

−7 °C

−15 °C

3 kW (\(r = 1\) at each)

3.33

3.23

2.92

2.53

2 kW

4.17

3.96

3.39

2.79

2 kW, load_weighted=False

3.74

3.62

3.23

2.78

1 kW (cycling at the minimum speed at 2 and 0 °C)

4.93

4.75

4.00

3.24

DefrostModel(load_weighted=False) is the rated-load correction at every load. A unit that cycles below its minimum capacity is loaded by what the running machine delivers, and so is one held at its capacity ceiling: the frost of a request the unit cannot meet is that of the ceiling duty, whatever was asked, so requests above what the ceiling delivers get the same row. (Without the frost-point band, or with one of zero, a request just under that keeps its own state: there the mean a duty delivers can fall with the duty, and a row does not report more than was asked.) What the load term assumes: the air flow over the coil does not follow the load — a unit that slows its outdoor fan with the compressor has a colder coil than this, so the part-load frost here is a lower bound.

The outdoor humidity is an optional input: analyze_steady(..., RH_out=0.7) and analyze_dynamic(..., RH_out_schedule=...) take a relative humidity as a fraction. Without it the model uses 84 %, the humidity of the EN 14511 rating condition A2 (dry bulb 2 °C, wet bulb 1 °C). Below 0 °C it is relative to saturation over ice (tmhp.defrost.humidity_ratio()), where a weather station’s relative humidity and dew point are usually over liquid water: 80 % over water at −20 °C is 97 % over ice (what that is worth). defrost=None switches the correction off, and a tmhp.DefrostModel sets the outdoor limit, the width of the transition below it and the default humidity.

Five things differ from EnergyPlus: the load term above, and four more. The transition above replaces a switch: in EnergyPlus the correction is in full at 5.0 °C and absent at 5.1 °C, where its cost is at its largest, so the COP of the default unit steps from 3.04 to 4.30 between 5.0 and 5.5 °C at nameplate capacity. The 5 °C limit is a setting of the defrost controller, not the temperature at which a coil frosts over, and a coil near freezing frosts on part of its surface and for part of the time. DefrostModel(transition_K=0) restores the switch. Air too dry to frost the coil is not corrected (next paragraph). The other two are there so that nothing has to be entered: EnergyPlus asks for a curve of defrost power, and here the compressor draws, while it defrosts, what it draws while it heats; and the coil temperature is EnergyPlus’ correlation rather than the evaporating temperature this model solves — the constants were fitted with that estimate.

Dry air. In the source model dry air is not frost-free: the frosted-coil multipliers 0.875 and 0.954 apply whenever the outdoor air is below the limit, whatever its humidity. They are what a coil loses, on average, to the frost it carries between two defrosts, and the rating conditions they describe are humid (EN 14511 puts the wet bulb 1 K below the dry bulb: 84 % at 2 °C, 75 % at −7 °C). At −5 °C and 50 % relative humidity the air cannot deposit on the coil of the correlation — its frost point, −12.9 °C, is below the coil at −12.7 °C — and EnergyPlus still multiplies the COP by 0.917, with a defrost time of 0.01 % of the runtime. In a cold, dry winter that is 8 to 9 % on the electricity of every sub-zero hour. Here the correction ends where the frost does. With the frost point of the air \(T_{fp}\) and its humidity ratio above saturation at the coil, \(\Delta\omega\) (positive exactly when the frost point is above the coil),

\[s = \min\left(1,\ \frac{\max(0,\ T_{fp} - T_{coil})}{\min(3\,\mathrm{K},\ -T_{coil})}\right), \qquad t_{frac} = \frac{\max(0, \Delta\omega)}{\max(0, \Delta\omega) + 0.01446}, \qquad \text{multipliers} = (1 - 0.125\,s)(1 - t_{frac}),\ (1 - 0.046\,s)(1 - t_{frac})\]

— nothing when the frost point of the air is at or below the coil temperature, the fixed losses in full when it is 3 K or more above it, and linearly in the frost point in between (a coil is not at one temperature, so near the onset part of it frosts). No measurement fixes the width of that band; 3 K is the width of the temperature transition above, and it leaves every rating condition that gives a wet bulb (EN 14511 A2 and A−7, AHRI 210/240 H2) and the default 84 % down to −20 °C at the full correction, so the table above and the catalogue comparison are EnergyPlus unchanged. The band ends at 0 °C whatever its width — air with a dew point at or above freezing leaves all the frost a coil can take — so any finite width is valid. DefrostModel(frost_point_band_K=0) switches the fixed losses at the frost point and frost_point_band_K=None is EnergyPlus.

COP multiplier of the frost adjustment at the rated load, by outdoor humidity

Outdoor

84 %

70 %

60 %

50 %

30 %

EnergyPlus, 30 %

2 °C

0.823

0.858

0.896

0.983

1

0.917

−5 °C

0.865

0.887

0.935

1

1

0.917

−10 °C

0.886

0.905

0.962

1

1

0.917

−15 °C

0.899

0.935

0.986

1

1

0.917

With the load term, air too dry to frost even the rated-load coil (below −18.4 °C at 60 % relative humidity, below −39.1 °C at 84 %) is not corrected at any load, and neither is a part-loaded coil at or above the frost point of the air. Without the band there is no frost drive in dry air for the load to scale and the fixed multipliers stay at every load — at half load and 60 % humidity the COP multiplier would fall from 0.997 at −15 °C to 0.917 at −18.4 °C. A coil at or above 0 °C is not corrected, as in EnergyPlus; the coil of the correlation is at −4.5 °C or colder below the 5 °C limit, so that step is reached only with a higher T_out_max or a given coil temperature.

How much the band matters. The width of the frost-point band is an input without a measurement behind it, so here is what depends on it (validation/frost_band_sensitivity/). At the rated load the band changes the multipliers only where the frost point of the air is within its width of the coil: air drier than a rating condition, and humid air colder than about −20 °C. In air as humid as a test room (85 % and more) down to −20 °C a band of 0 K and the default 3 K give the same figures and 6 K differs by at most 0.04 in the COP multiplier; on the whole grid, −30 to 5 °C and 30 to 100 %, the largest difference from the default is 0.08 (0 K at −18 °C and 60 %), where a band of zero switches the whole fixed loss on at the frost point.

COP multiplier at the rated load with a frost-point band of 0 / 3 / 6 K

Outdoor

60 %

70 %

85 %

100 %

2 °C

0.884 / 0.896 / 0.931

0.858 / 0.858 / 0.880

0.821 / 0.821 / 0.821

0.787 / 0.787 / 0.787

−5 °C

0.902 / 0.935 / 0.960

0.887 / 0.887 / 0.920

0.864 / 0.864 / 0.867

0.842 / 0.842 / 0.842

−10 °C

0.911 / 0.962 / 0.978

0.900 / 0.905 / 0.945

0.885 / 0.885 / 0.900

0.870 / 0.870 / 0.870

−15 °C

0.915 / 0.986 / 0.992

0.909 / 0.935 / 0.963

0.899 / 0.899 / 0.925

0.889 / 0.889 / 0.891

−20 °C

1.000 / 1.000 / 1.000

0.914 / 0.961 / 0.979

0.907 / 0.907 / 0.945

0.901 / 0.901 / 0.915

−25 °C

1.000 / 1.000 / 1.000

0.916 / 0.984 / 0.991

0.912 / 0.927 / 0.962

0.908 / 0.908 / 0.936

−30 °C

1.000 / 1.000 / 1.000

1.000 / 1.000 / 1.000

0.915 / 0.954 / 0.976

0.913 / 0.913 / 0.952

Capacity multiplier at the rated load with a frost-point band of 0 / 3 / 6 K

Outdoor

60 %

70 %

85 %

100 %

2 °C

0.845 / 0.862 / 0.914

0.821 / 0.821 / 0.852

0.787 / 0.787 / 0.787

0.756 / 0.756 / 0.756

−5 °C

0.861 / 0.909 / 0.947

0.847 / 0.847 / 0.896

0.826 / 0.826 / 0.830

0.807 / 0.807 / 0.807

−10 °C

0.869 / 0.945 / 0.969

0.860 / 0.866 / 0.924

0.846 / 0.846 / 0.866

0.832 / 0.832 / 0.832

−15 °C

0.873 / 0.979 / 0.988

0.867 / 0.905 / 0.948

0.858 / 0.858 / 0.896

0.849 / 0.849 / 0.852

−20 °C

1.000 / 1.000 / 1.000

0.872 / 0.941 / 0.969

0.866 / 0.866 / 0.922

0.860 / 0.860 / 0.881

−25 °C

1.000 / 1.000 / 1.000

0.874 / 0.975 / 0.987

0.871 / 0.892 / 0.944

0.867 / 0.867 / 0.906

−30 °C

1.000 / 1.000 / 1.000

1.000 / 1.000 / 1.000

0.873 / 0.930 / 0.964

0.871 / 0.871 / 0.929

COP and capacity multipliers of the frost adjustment against outdoor temperature at four humidities, for a frost-point band of 0, 3 and 6 K and without one

The multipliers of the tables against the outdoor dry bulb. Without a band the fixed losses stay in air that deposits nothing, which is EnergyPlus’ rule (the rest of the frost model is this one’s: the transition between 2 and 5 °C is kept); a band of zero switches them at the frost point; 3 K and 6 K spread that step over the band.

Over a heating season the band matters less than these tables suggest: a part-loaded coil is warmer than the correlation’s, and where the weather file’s dew point is taken at its word most cold hours are humid ones. The default 4 kW unit against a 20 °C room, in three cold climates of the United States: the load is a straight line from nothing at 16 °C outdoor to the nameplate capacity at the site’s 99.6 % heating design temperature, counted at the indoor coil; resistance heat makes up what the unit does not deliver; and each hour of the typical year (NREL TMY3) is taken at its own temperature and humidity, in bins of 1 K and 5 %. The humidity of such a file can be read in two ways that are far apart in cold air, and its two columns do not settle which is meant, so the season is computed for both: from the dew point, taken as one over liquid water (the meteorological convention) and converted to the model’s humidity over ice, and from the relative-humidity column as it is. Below −20 °C in Fairbanks 82 % of the hours are at 85 % or more under the first reading and 7 % under the second.

Electricity of a heating season against the default band of 3 K (humidity read from the dew point / from the relative-humidity column)

Site (ASHRAE 169 zone)

Heating hours (below −10 °C)

Seasonal COP, 3 K

No band

0 K

6 K

Denver, CO (5B, cool and dry)

5,509 (117)

4.02 / 4.07

+1.4 % / +2.0 %

+0.2 % / +0.3 %

−0.7 % / −1.0 %

Helena, MT (6B, cold and dry)

6,624 (459)

3.80 / 3.86

+0.5 % / +1.0 %

+0.1 % / +0.5 %

−0.9 % / −1.2 %

Fairbanks, AK (8, subarctic)

7,441 (2,926)

2.79 / 2.89

+1.4 % / +4.2 %

+0.6 % / +2.0 %

−2.2 % / −2.1 %

Within a site and a reading, a band of 0 or 6 K moves a season’s electricity by −2.2 to +2.0 % against the default, and dropping the band (the fixed losses in any air below 5 °C, with this model’s load term and transition) by 0.5 to 4.2 %. The reading of the weather file’s humidity moves it by as much: 1.2 % (Denver), 1.4 % (Helena) and 3.6 % (Fairbanks) at the default band.

What the literature says about it. No measurement of capacity or COP against the excess of the frost point over a known coil temperature was found, so 3 K stays an assumption; what was found bears on where frosting begins. The frosting map of Zhu et al. (2015, Applied Thermal Engineering 90, 782–791) draws its condensing line, above which frost can form below 6 °C, at a relative humidity of 40 to 57.8 % (as reported by Zhang et al. 2018, Energies 11, 2642); the frost point reaches the coil of the correlation at 48 % at 0 °C. The map grades the frosting region into mild, moderate and severe zones and gives no loss of capacity or COP across them. One variable-frequency vapour-injection unit in a severe cold region had a critical humidity of 80.60 % at 1 °C and 62.75 % at −26.5 °C, which its authors relate to the heating load (Wei et al. 2020, Renewable Energy 161, 184–199; abstract only). And a ductless unit monitored in Fairbanks spent 8 to 15 % of the heating run time defrosting in the temperature bins from −17.5 to −32.5 °C under its factory control, which also defrosts on a timer, while its authors saw it defrost before any significant frost had built up in their example below −20 °C (Munk et al. 2026, Energies 19, 733, Table 4 and Figure 1). The correction here is that of a demand defrost: a unit that defrosts on a timer loses more in dry air than this model says, with or without the band.

What it leaves out: the room is not cooled in time during a defrost — its effect is in the mean. max_capacity() reports the same mean ceiling, with the frost-free one as Q_max_frost_free [W]: what the unit delivers flat out.

A request on the room’s sensible load

A request (Q_r_iu) is the heat of the indoor coil. A building simulation hands over something else: the zone’s sensible load, the heat its air node has to lose or gain. The two differ by the indoor fan’s heat in both modes and, with a wet coil, by the latent heat. Asked for 4 kW as coil heat, the default unit takes 3 218 W of sensible heat out of a 27 °C / 50 % room — 782 W short of a zone that wanted 4 kW. request_basis="sensible" asks for the room’s net sensible heat instead:

from tmhp import AirSourceHeatPump

ashp = AirSourceHeatPump()
zone = dict(T0=35.0, T_a_room=27.0, RH_room=0.5)

coil = ashp.analyze_steady(Q_r_iu=4000, **zone)   # request_basis="total", the default
room = ashp.analyze_steady(Q_r_iu=4000, **zone, request_basis="sensible")

coil["Q_room_sensible [W]"]   # 3218
room["Q_room_sensible [W]"]   # 4000
room["Q_ref_iu [W]"]          # 5937: the coil heat that takes
room["SHR_iu [-]"]            # 0.68 (0.81 at a coil heat of 4000 W)
room["Q_iu_latent [W]"]       # 1914
room["E_tot [W]"]             # 1647 (909 W for a coil heat of 4000 W)
room["Q_request [W]"]         # 4000, on the basis the row names:
room["request_basis"]         # "sensible"
room["Q_unmet [W]"]           # 0.0

Use it wherever the load comes from a zone heat balance: with the zone’s air temperature as T_a_room, its relative humidity as RH_room and the sensible load as Q_r_iu (cooling positive, heating negative), the row delivers that load to the air node. analyze_dynamic takes the same argument for a whole run — a year of hourly zone loads from EnergyPlus, say:

df = ashp.analyze_dynamic(
    simulation_period_sec=8760 * 3600,
    dt_s=3600,
    Q_r_iu_schedule=zone_sensible_load,          # [W], cooling > 0, heating < 0
    T0_schedule=outdoor_air_temperature,         # [°C]
    T_a_room_schedule=zone_air_temperature,      # [°C]
    RH_out_schedule=outdoor_relative_humidity,   # 0-1, for the frost model
    RH_room_schedule=zone_relative_humidity,     # 0-1, for the wet coil
    request_basis="sensible",
)

Keep the default, "total", where the number is the coil’s heat: a catalogue’s capacity before the fan’s heat, a rating point, a coil load an air-loop model has already worked out.

What the model does. It finds the coil duty at which the row’s Q_room_sensible [W] equals the request and returns the row of that duty — the row request_basis="total" gives for it, key for key. Only Q_request [W] and Q_unmet [W] are on the requested basis, and request_basis says which it is; Q_ref_iu [W], Q_max [W] and Q_min [W] stay coil heat. One key is added after them, request_solves [-]: the number of total-basis solves the search took. In cooling the coil carries more than the request: the fan’s heat (4 023 W for 4 kW with a dry coil at 35/27 °C) and, below the room’s dew point, the latent heat that comes with the sensible cooling. In heating it carries less: the fan’s heat is part of what the room receives (3 977 W for 4 kW at 7/20 °C). The latent heat is not a request: a zone’s moisture balance takes m_dot_iu_condensate [kg/s] (or Q_iu_latent [W]) from the row.

Cycling and frost are matched in the mean. Q_room_sensible [W] is read as the row reports it. Below the smallest continuous duty the row is the mean over the cycling period, and the mean net sensible heat equals the request (300 W at 30/26 °C: a coil heat of 303.2 W in the mean, the unit running 22 % of the time). The indoor fan is off whenever the compressor is: the cycling mean carries the fan’s power and its heat times the capacity ratio, like the coil heat, and nothing for a fan that keeps circulating air between the compressor’s runs. A zone model with a continuously running fan has to add that fan’s heat to the load itself. In heating with frost the row is the mean over frosting and defrost, and that mean equals the request (3 kW at 0 °C and 85 %: a coil heat of 2 982 W in the mean).

At the ceiling the row is the ceiling’s — the largest coil duty the unit delivers (capacity_clamped == "max") — and Q_unmet [W] is what the room is short of: 5.5 kW of sensible cooling in the room above returns 4 951 W with 549 W unmet, at a coil heat of 8 035 W. max_capacity() reports the net sensible heat of that row next to Q_max [W], as Q_room_sensible_at_Q_max [W]. It is the net sensible heat at the largest coil duty, not a maximum searched over the coil duties. On the default units that is also the largest net sensible heat the unit has: over 444 conditions of three default units (2.5 to 10 kW; cooling at 20–46 °C outdoor with the room at 22–30 °C, dry and at 30–100 % humidity; heating at −15 to 7 °C), 39 coil duties each, no duty under the ceiling moved more sensible heat than the ceiling’s row. Under the ceiling the net sensible heat does not rise with the coil duty everywhere. Where condensation sets in, the next larger duty can take less sensible heat (2.5 kW unit, 46 °C outdoor, room 27 °C at 65 %: 1 079 W at a coil heat of 1 094 W, 1 059 W at 1 216 W; the one such condition of the 444), and where a wet coil cycles on the pressure-ratio floor the running state changes with the request (the same unit, 20 °C outdoor, room 30 °C at 50 %: 119.8 W at a coil heat of 135.5 W, 118.3 W at 158.2 W, rising again above 160 W). A request in such a stretch is met at one of the duties that have it; where the trials all fall short the search goes on towards larger duties. Where such a stretch ends the net sensible heat has a kink along the coil duty: in that room at 29.9 °C the running state of the cycling unit changes with the request below a coil heat of 205.2 W and not above it, and the room loses 0.22 W of sensible heat per W of coil heat below, 0.61 W above. A search that five solves have not ended takes its steps from the trials on each side of the request — the line through the two nearest trials of a side, which lies along the stretch the request is on — and that closes on a duty just beyond a kink: the request for 125.25 W there, 0.2 W of coil heat above the kink, is met in eight solves.

How close. Q_room_sensible [W] equals the request to 1e-6 of it where the first three solves reach that, which they do on a row whose coil is dry (no RH_room, a coil above the room’s dew point, heating) of a unit whose fans modulate. Otherwise the match is to 1e-4: the operating point of a wet coil is the optimiser’s, located to 0.001 K of approach and 0.1 W of input, and the sensible share of neighbouring wet duties scatters by up to that much; a fan held at one flow scatters a dry row by about 1e-5. A row inside the tolerance is met, with Q_unmet [W] zero. On 2 646 requests of the three default units (the conditions above, from 5 % to 250 % of the nameplate) every request under the ceiling was met: 1 093 of the 1 102 dry-coil and heating rows to 1e-6 (the other nine to 9e-6), all 848 wet rows to 1e-4 (half of them to 8e-6); the other 696 are rows at the ceiling.

What it costs. Every trial is a total-basis solve, and the row says how many it took (request_solves [-]; a run on this basis has the column). A dry-coil or heating request takes three (the request, a first guess from it, one secant step), a wet one four on average, a request above the ceiling one or two; twelve is the most a request may take, and eight the most one of these requests took (ten among 528 requests around the kink above). Over the same 2 646 requests the run took 3.0 times the wall time of those requests on the total basis: 2.9 times on the dry-coil and heating rows, 5.0 times on the wet ones (their trials are at larger duties than the request), 1.8 times at the ceiling. A dynamic run solves each step as analyze_steady does, in either basis, and a row does not depend on the steps before it — with the exception the total basis has: a dry request the compressor envelope refuses from below is cycled at a smallest continuous duty that a run searches once per condition, to 0.5 % (Wet indoor coil (cooling), the two ends of the operating range).

What it does not do.

  • A request the model answers with the unit off stays off. Where the coil duty the search tries has no operating point (failure_reason other than "none"), the row is that off row with the whole request unmet; and a coil duty delivered short under the ceiling is reported as it is. A unit with a fan held at one flow has such duties (A fan held at one flow, and what the searches can miss, above); the search does not look around them.

  • A fan held at one flow can leave a request without a duty. With the outdoor fan held, the operating point of neighbouring coil duties can pass from one indoor airflow to another, and the net sensible heat with it (4 kW unit, 35 °C outdoor, room 35 °C at 60 %: 1 665 W at a coil heat of 3 571 W, 2 490 W at 3 586 W). A request between the two is answered with the lower row and the difference as Q_unmet [W] (7 of 2 268 requests of six fan-constrained 4 kW units, six of them with the outdoor fan held). On such a unit the ceiling’s row need not have the largest net sensible heat either (outdoor fan held, 15 °C outdoor, saturated 35 °C room: 2 705 W at the 13.7 kW ceiling, 2 773 W at 13.0 kW; one of 312 conditions): a request above the ceiling’s is then met where the search finds a duty that has it, and otherwise answered with the ceiling’s row. Q_room_sensible_at_Q_max [W] is the ceiling row’s figure there too: do not size such a unit’s largest sensible load by it.

  • A step of the wet operating point can leave a request without a duty. The operating point of a wet duty is the optimiser’s, and between two neighbouring duties the net sensible heat can step by more than the tolerance (2 kW unit, 20 °C outdoor, room 32 °C at 80 %: 286.949 W at a coil heat of 848.7111 W, 287.056 W at 848.7114 W). A request inside the step is answered with the lower row and the difference — 0.05 W of 287 W there — as Q_unmet [W], with request_solves [-] at twelve (3 of 251 requests from 100 to 350 W at that condition; none of the 2 646 above).

  • Without the cycling model (Cd_cycling=None) a request below the smallest continuous duty is over-delivered, as on the total basis, with nothing unmet.

COP boundary

With the default request_basis, Q_r_iu is the coil requirement before fan heat, not net room delivery (A request on the room’s sensible load asks for the latter). It retains its sign convention and governs compressor speed, rated capacity, part-load ratio and the operating-point search. cop_ref [-] remains Q_ref_iu [W] / E_cmp [W]. Q_request [W] and Q_unmet [W] are on the same basis: refrigerant-side coil heat. What the room receives is reported under its own names — Q_room_sensible [W], the coil’s sensible heat with the indoor fan’s heat counted (3 977 W of a 4 000 W dry-coil request at 35/27 °C), and, with a wet coil, Q_iu_latent [W].

The space-conditioning system metric is abs(Q_a_iu_out [W] - Q_a_iu_in [W]) / E_tot [W] — with a wet coil that sensible difference plus Q_iu_latent [W], over E_tot [W]. Both air energy flows use the actual indoor airflow and the same outdoor reference temperature. The final outlet already includes indoor fan heat: net cooling equals coil duty minus indoor fan power, while net heating equals coil duty plus that power. Do not add or subtract it a second time. The denominator includes compressor, indoor fan and outdoor fan electricity.

indoor_heat_direction_valid identifies delivery in the requested mode. Opposite-direction transfer or zero airflow during active operation gives NaN system COP; off operation has zero air energy flows and NaN COP. This reporting diagnostic does not alter the coil-load solver.

Without RH_room the coil is dry and the model reports sensible cooling, not total latent-plus-sensible cooling or a certified rating. With it (Wet indoor coil (cooling)) the numerator of cop_sys [-] is what the room air gives up in total: Q_room_sensible [W] + Q_iu_latent [W], that is, the coil’s sensible and latent heat less the indoor fan’s heat. Catalogue comparisons must use the catalogue’s own capacity and electrical-input boundary. Earlier results through commit c5d673e used Q_ref_iu / E_tot and must be labelled as coil-duty COP. For a seasonal performance factor, sum actual mode-specific air delivery times timestep duration and divide by summed system electricity times duration; an arithmetic mean of hourly COP is a different statistic.

References

Braun, J. E., Klein, S. A., & Mitchell, J. W. (1989). Effectiveness models for cooling towers and cooling coils. ASHRAE Transactions, 95(2), 164-174.

Threlkeld, J. L. (1970). Thermal Environmental Engineering (2nd ed.). Prentice-Hall.

API reference

Air source heat pump — physics-based cycle model with indoor unit.

Resolves a vapour-compression refrigerant cycle coupled to an outdoor-air heat exchanger and an indoor-air heat exchanger. Supports both cooling (Q_r_iu > 0) and heating (Q_r_iu < 0) modes. The indoor load Q_r_iu is imposed externally each timestep.

At each time step the model finds the minimum-power operating point (compressor + indoor fan + outdoor fan) via bounded 2-D optimisation over the evaporator and condenser approach temperature differences.

Architecture mirrors AirSourceHeatPumpBoiler — uses the same shared utility functions (calc_ref_state, calc_HX_perf_for_target_heat, calc_fan_power_from_dV_fan) and the same postprocess_exergy() pattern, but replaces the tank energy balance with direct air-side heat exchange at the indoor unit.

tmhp.air_source_heat_pump.OBJ_CAPACITY_LIMITED = 1000000000.0

Objective floor for a capacity-limited operating point (valid operation).

tmhp.air_source_heat_pump.OBJ_INFEASIBLE = 1000000000000.0

Objective value for an operating point the cycle cannot reach (invalid).

tmhp.air_source_heat_pump.NARROW_FAN_FLOW_RATIO = 2.0

A fan whose largest flow is at most this multiple of its smallest is searched by _NarrowFanSearch. At a fixed approach temperature a coil’s capacity grows roughly as flow^0.7, so a flow ratio of 2 leaves a band of approach temperatures about +/-25 % wide – at a 3 K approach that is narrower than the spacing of the finest lattice the grid search falls back on (1.3 K), and a constant-speed fan leaves a single point.

tmhp.air_source_heat_pump.INDOOR_UNIT_TYPES: tuple[str, ...] = ('wall_mounted', 'floor_standing')

Indoor-unit classes with a catalogue airflow law (tmhp.default_inputs.estimate_max_airflow()). Cassette and ducted units are not covered: give their dV_iu_fan_a_rated.

tmhp.air_source_heat_pump.INDOOR_UA_PER_CAPACITY = 0.16

the earlier rule, kept (provisional).

Type:

Default indoor-coil conductance per watt of nameplate [W/K per W]

tmhp.air_source_heat_pump.INDOOR_UA_KEPT_REASON = "kept at the previous rule. The archive's wall-mounted indoor-coil rows come from one manufacturer (Mitsubishi Electric, 6 product lines): their leaving approach is 6.8 K on the declared duty but 3.6 K on the printed discharge-air temperature, and a second manufacturer's pipe temperatures suggest about 3.3 K, so the evidence does not settle the value and no estimate is issued (shipping gate: 2 manufacturers)."

Why the indoor coil keeps that rule instead of an approach-temperature estimate (recorded in default_input_estimates["UA_iu_rated"]; archive validation/default_inputs/hx_approach).

tmhp.air_source_heat_pump.REQUEST_BASIS_TOTAL = 'total'

the request is the refrigerant-side heat of the indoor coil (Q_ref_iu [W]; in cooling its total heat, before the fan’s heat).

Type:

request_basis

tmhp.air_source_heat_pump.REQUEST_BASIS_SENSIBLE = 'sensible'

the request is the net sensible heat the room air gives up or receives (Q_room_sensible [W]), a zone’s sensible load.

Type:

request_basis

tmhp.air_source_heat_pump.REQUEST_BASIS_KEY = 'request_basis'

Result key naming the basis of Q_request [W] and Q_unmet [W].

tmhp.air_source_heat_pump.REQUEST_SOLVES_KEY = 'request_solves [-]'

Result key of a row asked on the room’s net sensible heat, and of no other: the total-basis solves the search of the request took.

class tmhp.air_source_heat_pump.AirSourceHeatPump(ref='R32', V_cmp_ref=None, dT_superheat=3.0, dT_subcool=3.0, UA_ou_rated=None, UA_iu_rated=None, n_ou=0.65, n_iu=0.65, dV_ou_fan_a_rated=None, dP_ou_fan_rated=None, A_cross_ou=None, eta_ou_fan_rated=None, dV_iu_fan_a_rated=None, dP_iu_fan_rated=None, A_cross_iu=None, eta_iu_fan_rated=None, hp_capacity=4000.0, T_a_room=27.0, dT_hx_min=0.5, PR_cycle_min=1.5, PR_cycle_max=11.0, rps_min=15.0, rps_max=None, dT_approach_bounds=(1.0, 30.0), vsd_coeffs_ou=None, vsd_coeffs_iu=None, V_disp_cmp=None, UA_cond_rated=None, UA_evap_rated=None, n_cond=None, n_evap=None, UA_cond_design=None, UA_evap_design=None, dV_ou_fan_a_design=None, dP_ou_fan_design=None, eta_ou_fan_design=None, dV_iu_fan_a_design=None, dP_iu_fan_design=None, eta_iu_fan_design=None, *, compressor_scale=None, rps_rated=None, m_dot_ref_rated=None, rated_condition=None, UA_ou_evap_rated=None, dV_ou_fan_a_ref=None, dV_ou_fan_a_min=None, dV_ou_fan_a_max=None, dV_iu_fan_a_ref=None, dV_iu_fan_a_min=None, dV_iu_fan_a_max=None, E_ou_fan_rated=None, E_iu_fan_rated=None, Cd_cycling=0.25, defrost=True, T_dis_max='auto', x_suction_min='auto', T_cond_max='auto', indoor_unit_type='wall_mounted')[source]

Bases: ReferenceStateMixin, CompressorMapPlotMixin

Air source heat pump with indoor-unit air heat exchange.

The refrigerant cycle is resolved via CoolProp with user-specified superheat / subcool margins. A bounded 2-D optimiser minimises total electrical input (E_cmp + E_iu_fan + E_ou_fan) over the evaporator and condenser approach temperatures.

When the requested duty has no operating point – the compressor runs out of speed, or the compressor envelope or a coil binds first – the unit runs at its ceiling: flat out (rps_max, both fans at their largest airflow), or at the largest duty the envelope admits (max_capacity()). Such an hour is reported with capacity_clamped == "max", a Q_ref_iu [W] below the request and capacity_binding naming the limit; the difference is unmet load (Q_unmet [W]), not a solver failure.

When the request is below what the unit delivers at its minimum compressor speed, the compressor cycles on and off. Such an hour is reported with capacity_clamped == "min" as the mean over the cycling period: the delivered heat equals the request, the electrical input carries the EN 14825 degradation (Cd_cycling), and runtime_fraction [-] is the share of the time the compressor runs (tmhp.cycling). The same holds where the envelope ends continuous operation above the minimum speed: at a large lift the overall efficiency falls towards low speed, the discharge runs above its limit there (discharge_temp_above_max), and a request below the smallest duty that stays inside is met by cycling at that duty (Q_min [W]), not answered with the unit switched off.

The indoor coil is dry unless the room humidity is given. With RH_room (analyze_steady, max_capacity; RH_room_schedule in analyze_dynamic) a cooling coil whose surface – taken at the evaporating temperature – is below the room air’s dew point also condenses water: Q_ref_iu [W] is then sensible plus latent heat (Q_iu_sensible [W], Q_iu_latent [W], SHR_iu [-], m_dot_iu_condensate [kg/s]), by the apparatus-dew-point / bypass-factor model of tmhp.heat_exchanger.calc_HX_perf_for_target_heat(). Above the dew point, in heating and without RH_room the coil is the dry one. The rated state and the default inputs are those of the dry coil.

A request is the heat of the indoor coil unless request_basis says otherwise. With request_basis="sensible" (analyze_steady, analyze_dynamic) it is the net sensible heat the room air gives up or receives – a zone’s sensible load – and the model finds the coil duty whose Q_room_sensible [W] equals it: more than the request in cooling (the indoor fan’s heat, and the latent heat of a wet coil), less in heating. Q_request [W] and Q_unmet [W] are then on that basis, and every row names its basis (request_basis). Such a row also says how many total-basis solves its search took (request_solves [-]).

Parameters:
  • ref (str)

  • V_cmp_ref (float | None)

  • dT_superheat (float)

  • dT_subcool (float)

  • UA_ou_rated (float | None)

  • UA_iu_rated (float | None)

  • n_ou (float)

  • n_iu (float)

  • dV_ou_fan_a_rated (float | None)

  • dP_ou_fan_rated (float | None)

  • A_cross_ou (float | None)

  • eta_ou_fan_rated (float | None)

  • dV_iu_fan_a_rated (float | None)

  • dP_iu_fan_rated (float | None)

  • A_cross_iu (float | None)

  • eta_iu_fan_rated (float | None)

  • hp_capacity (float)

  • T_a_room (float)

  • dT_hx_min (float)

  • PR_cycle_min (float)

  • PR_cycle_max (float)

  • rps_min (float)

  • rps_max (float | None)

  • dT_approach_bounds (tuple[float, float])

  • vsd_coeffs_ou (dict | None)

  • vsd_coeffs_iu (dict | None)

  • V_disp_cmp (float | None)

  • UA_cond_rated (float | None)

  • UA_evap_rated (float | None)

  • n_cond (float | None)

  • n_evap (float | None)

  • UA_cond_design (float | None)

  • UA_evap_design (float | None)

  • dV_ou_fan_a_design (float | None)

  • dP_ou_fan_design (float | None)

  • eta_ou_fan_design (float | None)

  • dV_iu_fan_a_design (float | None)

  • dP_iu_fan_design (float | None)

  • eta_iu_fan_design (float | None)

  • compressor_scale (CompressorMapScale | None)

  • rps_rated (float | None)

  • m_dot_ref_rated (float | None)

  • rated_condition (Mapping[str, Any] | RatingCondition | None)

  • UA_ou_evap_rated (float | None)

  • dV_ou_fan_a_ref (float | None)

  • dV_ou_fan_a_min (float | None)

  • dV_ou_fan_a_max (float | None)

  • dV_iu_fan_a_ref (float | None)

  • dV_iu_fan_a_min (float | None)

  • dV_iu_fan_a_max (float | None)

  • E_ou_fan_rated (float | None)

  • E_iu_fan_rated (float | None)

  • Cd_cycling (CyclingDegradation | float | None)

  • defrost (DefrostModel | bool | None)

  • T_dis_max (Union[float, Literal['auto'], None])

  • x_suction_min (Union[float, Literal['auto'], None])

  • T_cond_max (Union[float, Literal['auto'], None])

  • indoor_unit_type (str)

__init__(ref='R32', V_cmp_ref=None, dT_superheat=3.0, dT_subcool=3.0, UA_ou_rated=None, UA_iu_rated=None, n_ou=0.65, n_iu=0.65, dV_ou_fan_a_rated=None, dP_ou_fan_rated=None, A_cross_ou=None, eta_ou_fan_rated=None, dV_iu_fan_a_rated=None, dP_iu_fan_rated=None, A_cross_iu=None, eta_iu_fan_rated=None, hp_capacity=4000.0, T_a_room=27.0, dT_hx_min=0.5, PR_cycle_min=1.5, PR_cycle_max=11.0, rps_min=15.0, rps_max=None, dT_approach_bounds=(1.0, 30.0), vsd_coeffs_ou=None, vsd_coeffs_iu=None, V_disp_cmp=None, UA_cond_rated=None, UA_evap_rated=None, n_cond=None, n_evap=None, UA_cond_design=None, UA_evap_design=None, dV_ou_fan_a_design=None, dP_ou_fan_design=None, eta_ou_fan_design=None, dV_iu_fan_a_design=None, dP_iu_fan_design=None, eta_iu_fan_design=None, *, compressor_scale=None, rps_rated=None, m_dot_ref_rated=None, rated_condition=None, UA_ou_evap_rated=None, dV_ou_fan_a_ref=None, dV_ou_fan_a_min=None, dV_ou_fan_a_max=None, dV_iu_fan_a_ref=None, dV_iu_fan_a_min=None, dV_iu_fan_a_max=None, E_ou_fan_rated=None, E_iu_fan_rated=None, Cd_cycling=0.25, defrost=True, T_dis_max='auto', x_suction_min='auto', T_cond_max='auto', indoor_unit_type='wall_mounted')[source]
Parameters:
  • ref (str)

  • V_cmp_ref (float | None)

  • dT_superheat (float)

  • dT_subcool (float)

  • UA_ou_rated (float | None)

  • UA_iu_rated (float | None)

  • n_ou (float)

  • n_iu (float)

  • dV_ou_fan_a_rated (float | None)

  • dP_ou_fan_rated (float | None)

  • A_cross_ou (float | None)

  • eta_ou_fan_rated (float | None)

  • dV_iu_fan_a_rated (float | None)

  • dP_iu_fan_rated (float | None)

  • A_cross_iu (float | None)

  • eta_iu_fan_rated (float | None)

  • hp_capacity (float)

  • T_a_room (float)

  • dT_hx_min (float)

  • PR_cycle_min (float)

  • PR_cycle_max (float)

  • rps_min (float)

  • rps_max (float | None)

  • dT_approach_bounds (tuple[float, float])

  • vsd_coeffs_ou (dict | None)

  • vsd_coeffs_iu (dict | None)

  • V_disp_cmp (float | None)

  • UA_cond_rated (float | None)

  • UA_evap_rated (float | None)

  • n_cond (float | None)

  • n_evap (float | None)

  • UA_cond_design (float | None)

  • UA_evap_design (float | None)

  • dV_ou_fan_a_design (float | None)

  • dP_ou_fan_design (float | None)

  • eta_ou_fan_design (float | None)

  • dV_iu_fan_a_design (float | None)

  • dP_iu_fan_design (float | None)

  • eta_iu_fan_design (float | None)

  • compressor_scale (CompressorMapScale | None)

  • rps_rated (float | None)

  • m_dot_ref_rated (float | None)

  • rated_condition (Mapping[str, Any] | RatingCondition | None)

  • UA_ou_evap_rated (float | None)

  • dV_ou_fan_a_ref (float | None)

  • dV_ou_fan_a_min (float | None)

  • dV_ou_fan_a_max (float | None)

  • dV_iu_fan_a_ref (float | None)

  • dV_iu_fan_a_min (float | None)

  • dV_iu_fan_a_max (float | None)

  • E_ou_fan_rated (float | None)

  • E_iu_fan_rated (float | None)

  • Cd_cycling (CyclingDegradation | float | None)

  • defrost (DefrostModel | bool | None)

  • T_dis_max (Union[float, Literal['auto'], None])

  • x_suction_min (Union[float, Literal['auto'], None])

  • T_cond_max (Union[float, Literal['auto'], None])

  • indoor_unit_type (str)

ref: str
V_cmp_ref: float
dT_superheat: float
dT_subcool: float
dT_hx_min: float
PR_cycle_min: float
PR_cycle_max: float
rps_min: float
rps_max: float

The rated-speed search bound until _initialize_reference_state() replaces it with default_rps_max(rps_rated) (when _rps_max_derived).

T_dis_max: float | None
T_cond_max: float | None
x_suction_min: float | None
dT_approach_bounds: tuple[float, float]
hp_capacity: float
n_ou: float
n_iu: float
E_ou_fan_rated: float
dP_ou_fan_rated: float | None
eta_ou_fan_rated: float | None
vsd_coeffs_ou: dict
fan_params_ou: dict
indoor_unit_type: str
E_iu_fan_rated: float
dP_iu_fan_rated: float | None
eta_iu_fan_rated: float | None
vsd_coeffs_iu: dict
fan_params_iu: dict
T_a_room: float
cycling: CyclingDegradation | None

continuous at minimum speed).

Type:

EN 14825 cycling degradation (None

defrost: DefrostModel | None = None

frost-free steady state). Set by the constructor.

Type:

EnergyPlus / DOE-2.1E frost adjustment in heating (None

max_capacity(T0, T_a_room=None, *, mode='heating', grid_points=None, rel_tol=0.001, RH_out=None, RH_room=None)[source]

Largest duty the unit can actually deliver at this condition.

Nameplate capacity is a label attached to one rating point, not a ceiling. A real unit delivers more than nameplate when the outdoor air is mild and less when it is severe, because the limit is set by whichever of the compressor speed range, the compressor envelope and the air-side heat exchangers binds first. Clipping a load schedule at nameplate therefore errs in both directions at once. This returns the ceiling the model itself implies, so a schedule can be clipped against the machine rather than against its label and the shortfall reported as a result.

The ceiling is the unit running flat out: the compressor at rps_max and both fans at their largest airflow, which is the least lift at which that speed’s duty is delivered (_largest_airflow_point()). Where that point is outside the compressor envelope (pressure ratio, discharge temperature even under its control, condensing temperature) or beyond what a coil carries inside the approach bounds, the ceiling is the largest duty whose least-lift point is an operating point – a unit’s controller holds the compressor back to it – found by bisection on the duty.

The ceiling is not the largest heat any approach pair delivers at rps_max. An adiabatic compressor turns its losses into delivered heat, so starving the outdoor coil of air (a lower evaporating pressure, a higher pressure ratio, a lower overall efficiency) can raise the heating duty a little while the COP collapses; no unit runs its fans that way.

Warning

The answer is only as trustworthy as the compressor correlations at the speeds it reaches. Those correlations are fits, and a validation carried out at part load does not cover the top of the speed range. Check that the returned cop_sys [-] is credible before using the ceiling, and consider lowering rps_max to the highest speed the validation actually reached.

Parameters:
  • T0 (float) – Outdoor air temperature [°C].

  • T_a_room (float | None) – Room air temperature [°C]. Uses the constructor default if None.

  • mode (str) – "heating" or "cooling".

  • grid_points (int | None) – Unused. The ceiling was once swept on a grid of approach temperatures of this resolution; it is solved now. Accepted so that existing calls keep running.

  • rel_tol (float) – Relative width at which the bisection on the duty stops when the unit cannot run flat out. A flat-out ceiling and one set by the indoor coil are exact.

  • RH_out (float | None) – Outdoor relative humidity as a fraction (0-1) for the frost correction in heating. None: the frost model’s default.

  • RH_room (float | None) – Room relative humidity as a fraction (0-1), for the wet indoor coil in cooling (see analyze_steady()). None: the dry coil. Not read in heating, whatever is given.

Returns:

Q_max [W] (0.0 when the unit cannot run at all here), the approach temperatures there, the electrical input and system COP at that point, and binding naming what stopped it: "compressor" (the speed range), "pressure_ratio", "discharge_temperature" or "condensing_temperature" (the compressor envelope: the next larger duty exceeds PR_cycle_max, T_dis_max under its control, or T_cond_max), "cycle" (a coil at its largest airflow and the widest approach the search admits), "cycle_invalid" (the next larger duty has no cycle the model can represent – a condensing temperature at the critical point; analyze_steady() does not settle on that edge) and "infeasible" when no duty has an operating point.

In heating with a frosting outdoor coil the ceiling, the input and the COP are the mean over frosting and defrost – the heat is what analyze_steady() delivers there (where a coil sets the ceiling it goes on to pick the point of least input at that duty, a little below the input reported here), with the frost of the coil at the ceiling duty: a ceiling below what the coil-temperature correlation’s unit delivers at T0 (an envelope limit, a small speed range) is a part-loaded coil, with less frost than the rated-load correction or none – and Q_max_frost_free [W] is the frost-free ceiling they come from (defrost_fraction [-] > 0). Otherwise the two are equal.

Q_max [W] is the refrigerant-side coil heat, as Q_ref_iu [W] is: with RH_room in cooling it is sensible plus latent, and SHR_iu [-] is the sensible share of it there (1 for a dry coil and in heating, NaN when the unit cannot run).

Q_room_sensible_at_Q_max [W] is the room’s net sensible heat at that ceiling: Q_room_sensible [W] of the state the unit runs at there – the coil’s sensible heat less the indoor fan’s heat in cooling, plus it in heating, under frost the mean over frosting and defrost – and 0.0 when the unit cannot run. It is what a request made with request_basis="sensible" gets when the search arrives at the ceiling (analyze_steady()). It is the net sensible heat at the largest coil duty, not a maximum over the coil duties: the two are the same wherever the net sensible heat rises with the coil duty up to the ceiling, which it did at every one of 444 conditions of default units of 2.5 to 10 kW (dry and wet cooling, heating). A unit with a fan held at one flow can take more sensible heat at a smaller coil duty (4 kW unit, outdoor fan held, 15 degC outdoor, saturated 35 degC room: 2,705 W at the 13.7 kW ceiling, 2,773 W at 13.0 kW; one of 312 conditions of six fan-constrained units), so it is not to be read as the largest sensible load such a unit can meet.

Return type:

dict

Notes

With RH_room in cooling the ceiling is searched together with the other two searches of the condition, and each takes the others’ verified operating points for candidates: where the search on the duty finds none, the duty the low-load search ends on (the one analyze_steady() cycles a small request at) runs, and the ceiling is searched upwards from it; and a flat-out ceiling of a unit with a fan held at one flow, on the pressure-ratio floor, is what the ordinary search delivers there. The answer is the same whatever was solved before. A request for the Q_max [W] returned, with the same RH_room, is delivered that duty with nothing unmet (analyze_steady()): by the search of the request where it arrives there, else at this state (capacity_clamped == "max").

A fan held at one flow (dV_*_fan_a_min == dV_*_fan_a_max) leaves its coil one approach temperature per duty. On the pressure-ratio floor, with both fans held, the duties that run in continuous operation can then be a window a fraction of a percent wide (4 kW unit, 8 degC outdoor, room 35 degC saturated: 14.31 to 14.35 kW), or none. The searches sample the duty – a ladder and a bisection, to rel_tol here – and can miss a window narrower than the spacing of their samples. The result is then Q_max [W] == 0 with binding == "infeasible" (and analyze_steady() answers a request with the unit off, failure_reason == "hx_not_converged") although a duty inside the window would run. Give the fan a flow range, or request a duty inside the window.

analyze_steady(Q_r_iu, T0, T_a_room=None, *, return_dict=True, postprocess=True, verbose=True, RH_out=None, RH_room=None, request_basis='total')[source]

Run a steady-state performance snapshot.

Parameters:
  • Q_r_iu (float) – Indoor thermal load [W]. >0 cooling, <0 heating, 0 off. With the default request_basis it is the heat the refrigerant exchanges with the room air at the indoor coil (Q_ref_iu [W]): in cooling the coil’s total heat, sensible plus latent, before the indoor fan’s heat. What the room receives is reported as Q_room_sensible [W] and Q_iu_latent [W] (below). With request_basis="sensible" it is the net sensible heat the room air gives up (cooling) or receives (heating).

  • T0 (float) – Dead-state / outdoor-air temperature [°C].

  • T_a_room (float | None) – Room air temperature [°C]. Uses constructor default if None.

  • return_dict (bool) – If True return dict; else single-row DataFrame.

  • postprocess (bool) – If True, apply postprocess_exergy to the output.

  • verbose (bool) – If False, the OperatingLimitWarning of this call is not issued (the row is the same).

  • RH_out (float | None) – Outdoor relative humidity as a fraction (0-1), used by the frost correction in heating. None: the frost model’s default (0.84).

  • RH_room (float | None) – Room relative humidity as a fraction (0-1) at T_a_room and one standard atmosphere. With it, a cooling coil whose surface – taken at the evaporating temperature – is below the room air’s dew point condenses water (the wet coil of tmhp.heat_exchanger.calc_HX_perf_for_target_heat()), and the request Q_r_iu is met by sensible plus latent heat. None (default): the dry coil, all of the coil heat sensible. Not read on a heating request, where the indoor coil is the condenser, nor on an off one (Q_r_iu <= 0): anything may be given there. On a cooling request a value that is not a number in 0-1 raises ValueError.

  • request_basis (str) – What Q_r_iu is a request for. "total" (default): the refrigerant-side heat of the indoor coil, Q_ref_iu [W]. "sensible": the net sensible heat of the room air, Q_room_sensible [W] – the sensible load a zone of a building simulation hands over. The coil then has to carry more than the request in cooling (the indoor fan’s heat, and with RH_room the latent heat of the water it condenses) and less in heating (the fan’s heat is part of what the room receives), and the model finds the coil duty at which Q_room_sensible [W] of the row equals the request (see Notes). Any other value raises ValueError.

Returns:

Cycle state plus diagnostic flags.

Two keys are useful for branching:

  • "converged" (bool) — True only when the inner HX optimisation and the SciPy optimiser both succeeded.

  • "failure_reason" (str) — one of "none", "cycle_invalid" (the refrigerant cycle itself was infeasible), "pr_above_max", "discharge_temp_above_max", "condensing_temp_above_max" (the compressor envelope refuses the request where it is easiest to meet – at its least-lift point – and no smaller duty runs either; a request that a smaller duty meets returns that duty with capacity_clamped="max" and capacity_binding naming the limit: "discharge_temperature", "condensing_temperature" for T_cond_max), "hx_not_converged" (cycle OK but a coil cannot carry the duty inside the approach bounds), or "optimizer_failed" (SciPy reported success=False).

ASHP triggers an off-mode fallback for any of the non-"none" reasons — E_cmp [W] will be 0 and the COP keys will be NaN in that case. Treat failure_reason != "none" as “do not trust the numbers”.

Part load is reported on every row: Q_request [W] (signed, as asked), Q_unmet [W] (request not delivered, >= 0), runtime_fraction [-], capacity_ratio [-], part_load_factor [-], Q_min [W] and E_cycling_loss [W]. A request below the minimum continuous capacity (capacity_clamped == "min") is the mean over an on/off cycling period: Q_ref_iu [W] equals the request, heat and flow rates are the running values times capacity_ratio [-] (the indoor fan’s power with them), compressor and outdoor-fan power the running values times runtime_fraction [-], and the COP keys carry the EN 14825 degradation; temperatures, pressures and speed are those of the running machine (tmhp.cycling). A request above the ceiling (capacity_clamped == "max") adds Q_max [W] and capacity_binding ("compressor", "discharge_temperature", "condensing_temperature", "pressure_ratio" or "cycle"; see max_capacity()).

Heating below the frost model’s outdoor limit (5 degC; the correction grows to its full size at 2 degC) is the mean over frosting and defrost (tmhp.defrost): defrost_fraction [-] is the share of the runtime spent defrosting, frost_capacity_factor [-] and frost_power_factor [-] the multipliers of the frosted coil, E_defrost [W] and Q_defrost [W] the mean power and room heat the defrost takes, and Q_ref_iu_frost_free [W] / E_tot_frost_free [W] the frost-free cycle the row was solved at. Without frost those two repeat Q_ref_iu [W] and E_tot [W].

The indoor coil’s heat is split on every row: Q_iu_sensible [W] and Q_iu_latent [W] (air side, before the fan; their sum is Q_ref_iu [W] within the coil solver’s tolerance), SHR_iu [-] their sensible share, m_dot_iu_condensate [kg/s] the water condensed, and w_iu_a_in [kg/kg] / w_iu_a_out [kg/kg] the humidity ratio of the air entering and leaving the unit, with RH_room [-] the room humidity used (the three NaN without one). Latent heat is zero for a dry coil. Q_room_sensible [W] is the net sensible heat the room air gives up (cooling: Q_iu_sensible - E_iu_fan) or receives (heating: Q_iu_sensible + E_iu_fan), the indoor fan’s heat counted.

With RH_room in cooling both ends of the range are the wet coil’s. A request above its ceiling runs there (capacity_clamped == "max"; max_capacity() with the same RH_room). A request equal to the ceiling is delivered it, with Q_unmet [W] zero: as an ordinary row (capacity_clamped None) where the search of the request delivers that duty, and otherwise as the ceiling’s own state (capacity_clamped == "max", Q_ref_iu [W] the Q_max [W] max_capacity() reports, to rounding). The ceiling’s state also answers a request the search does not deliver that is under the ceiling by no more than the 0.1 % the ceiling is searched to, which is up to that 0.1 % more than was asked (measured on default units: 0.006 %). A request the search delivers is an ordinary row at any distance from the ceiling. In mild weather, on the pressure-ratio floor, the fans’ smallest airflows leave no continuous operation below some duty; a smaller request is met by cycling at that duty (capacity_clamped == "min", Q_min [W]). Where the search above the request finds no such duty, the state the unit runs flat out at is taken – the one the ceiling search of max_capacity() starts with – which the request is met by cycling at when it lies above the request and where the unit runs when it lies under it; and where no duty is found to run the row is off with failure_reason == "hx_not_converged" (a fan held at one flow can leave a window of duties too narrow for the searches to hit: see the notes of max_capacity()). Without RH_room such a request is answered as before, with the unit off and "cycle_invalid". On a row whose coil removes water (Q_iu_latent [W] > 0) the exergy columns Xc_iu_hx [W], X_eff_iu_hx [-] and X_eff_sys [-] are NaN (postprocess_exergy()).

Q_request [W] and Q_unmet [W] are on the basis of Q_r_iu, which request_basis names on every row. With "total": refrigerant-side coil heat, total (sensible plus latent) and before the fan heat – not the room-side Q_room_sensible [W]. With "sensible": that room-side heat, Q_unmet [W] being what Q_room_sensible [W] is short of the request. Every other key means the same on either basis: Q_ref_iu [W], Q_max [W] and Q_min [W] are coil heat. cop_sys [-] is on the room side: Q_room_sensible [W] plus Q_iu_latent [W] over E_tot [W].

A row asked with "sensible" has one key more, after the others: request_solves [-] (int), the number of total-basis solves the search of the request took – what the row cost, in solves of request_basis="total". It is 0 for a zero request, which is not searched, and never above _ROOM_SENSIBLE_MAX_SOLVES; a row short of its request that took them all is one the search did not finish (Notes). A total-basis row does not have the key.

Return type:

dict | DataFrame

Warns:

OperatingLimitWarning – Once, when the compressor was asked to run and the result is the off state (failure_reason other than "none") or a running point that delivers less than the request (capacity_clamped == "max"): the request, what is delivered, the limit in words and what removes it. Issued once per model and limit unless the "always" filter is set (tmhp.operating_limits).

Notes

A request on the room’s net sensible heat (request_basis="sensible") is answered with the row of a coil duty – the row request_basis="total" returns for that duty, key for key, with Q_request [W], Q_unmet [W] and request_basis written over, and request_solves [-] added. The duty is searched: the request itself first, then that duty scaled by the request over the net sensible heat it gave, then by the secant through the last two duties; a search that five solves have not ended, with trials on both sides of the request, takes its steps from the trials of each side, which is what closes on a duty just beyond a kink of the net sensible heat (_solve_room_sensible()). Q_room_sensible [W] is read from the row as it is reported, so a request the unit meets by cycling, and a heating request with frost on the outdoor coil, are matched in their means. While the compressor is off the indoor fan is off with it: a cycling row carries the running coil heat, the fan’s power and so the net sensible heat all times capacity_ratio [-] (tmhp.cycling), and nothing for a fan that circulates air between the compressor’s runs.

The match is to 1e-6 of the request where the first three solves reach it, which they do on a row whose coil is dry (no RH_room, a coil above the room’s dew point, heating) of a unit whose fans modulate: such a row is smooth along the duty. Otherwise it is to 1e-4. On a row that condenses water the operating point of a duty is the optimiser’s, located to 1e-3 K of approach and 0.1 W of input, and the sensible share of neighbouring wet duties scatters by up to that much; a fan held at one flow scatters a dry row by about 1e-5 (_ROOM_SENSIBLE_LOOSE_RTOL). A row inside the tolerance is met, Q_unmet [W] zero. The Q_ref_iu [W] the row reports is the coil duty that was solved, to rounding: asked again for it as request_basis="total", a unit whose fans modulate repeats the row (every numeric key to 1e-12 on 2,646 requests of default units, wet rows included). A unit with a fan held at one flow repeats it to the scatter of its own rows: its search can end on either of two operating points for duties one rounding apart (4 kW unit with the indoor fan held, 25/35 degC, 4,023.127 W: 568.58 W of input with 60.9 W at the outdoor fan, or 568.14 W with 54.6 W).

The search ends without a match on

  • a row at a limit: the coil duty asked for is delivered short (capacity_clamped == "max") with less net sensible heat than the request. Above the ceiling of the condition that is the ceiling’s row, the largest coil duty the unit delivers (max_capacity(), Q_room_sensible_at_Q_max [W]); the rest is Q_unmet [W]. Where an earlier trial delivered more net sensible heat (an indoor fan whose heat grows faster than the coil’s sensible heat), that trial is the answer;

  • an off row (failure_reason other than "none"): the model answers the coil duty tried with the unit off. A unit with a fan held at one flow can have such duties below its ceiling, and duties delivered short (see max_capacity()); the duties around the first one tried are not searched. The answer is the trial that comes closest to the request from below, the off row (nothing delivered) among them. Where the off row is the first trial it is the answer, with the whole request unmet; after a trial that delivered some net sensible heat, that trial is;

  • a row that delivers more than the request where no duty tried delivers less (a unit without the cycling model, below its smallest continuous duty), with nothing unmet, as on the coil basis;

  • after _ROOM_SENSIBLE_MAX_SOLVES solves, the row that comes closest to the request from below, with what is missing in Q_unmet [W]. A unit with its outdoor fan held at one flow can pass from one indoor airflow to another between two neighbouring coil duties, and its net sensible heat with it (4 kW unit, 35 degC outdoor, room 35 degC at 60 %: 1,665 W at a coil duty of 3,571 W, 2,490 W at 3,586 W); a request between the two is answered with the lower row.

analyze_dynamic(simulation_period_sec, dt_s, Q_r_iu_schedule, T0_schedule, T_a_room_schedule=None, result_save_csv_path=None, RH_out_schedule=None, *, RH_room_schedule=None, request_basis='total')[source]

Run a time-stepping dynamic simulation.

Parameters:
  • simulation_period_sec (int) – Total simulation duration [s].

  • dt_s (int) – Time step size [s].

  • Q_r_iu_schedule (array-like) – Indoor thermal load per step [W].

  • T0_schedule (array-like) – Outdoor temperature per step [°C].

  • T_a_room_schedule (array-like | None) – Room air temperature per step [°C]. If None, uses constructor default.

  • result_save_csv_path (str | None) – Optional CSV output path.

  • RH_out_schedule (array-like | None) – Outdoor relative humidity per step, as a fraction (0-1), for the frost correction in heating. If None, the frost model’s default.

  • RH_room_schedule (array-like | None) – Room relative humidity per step, as a fraction (0-1), for the wet indoor coil in cooling (RH_room of analyze_steady()). If None, the dry coil on every step. One entry per step (a list, an array or a Series). Only the cooling steps are read, each as RH_room of analyze_steady() is: a cooling step whose entry is not a number in 0-1 raises ValueError naming the step; what a heating or an off step holds (a missing value) is not looked at.

  • request_basis (str) – What the entries of Q_r_iu_schedule are requests for, on every step: "total" (default), the refrigerant-side heat of the indoor coil, or "sensible", the net sensible heat of the room air – the zone sensible loads of a building simulation, with its room temperatures and humidities as T_a_room_schedule and RH_room_schedule (request_basis of analyze_steady(), which solves each step). Any other value raises ValueError. The argument is handed to analyze_steady() only where it is not "total": a subclass that overrides analyze_steady() without it runs a total-basis schedule as before, and has to accept it to run another (Python’s TypeError otherwise). A run on "sensible" has one column more, request_solves [-]: the total-basis solves of each step.

Returns:

Per-timestep result DataFrame.

Return type:

DataFrame

Warns:

OperatingLimitWarning – Once, at the end of a run in which the compressor was called but did not run on some step, or ran below the request: the steps by limit and what they left unserved. The totals are in df.attrs["operating_limits"] (tmhp.operating_limits.summarize_operating_limits()).

postprocess_exergy(df)[source]

Compute ASHP-specific exergy variables.

Mirrors AirSourceHeatPumpBoiler.postprocess_exergy() with adaptations for indoor-unit air exchange.

Pipeline:

  1. Refrigerant state-point exergy (CoolProp)

  2. Electricity = exergy (compressor, IU fan, OU fan)

  3. Air exergy (outdoor unit + indoor unit)

  4. HX Carnot exergy (condenser, evaporator)

  5. Component-level exergy destruction

  6. Exergetic efficiency metrics

The air columns (X_a_iu_*, X_a_ou_*) are the thermal exergy of a dry air stream: heat capacity rate times (T - T0) - T0 ln(T / T0). A moist-air exergy balance – a reference humidity for the dead state, the chemical exergy of the water vapour, the condensate leaving the coil – is not modelled. On a row whose indoor coil removes water (Q_iu_latent [W] > 0) the refrigerant side of that coil carries the latent heat while the air side counts the temperature change only, so their difference is not the coil’s exergy destruction (it comes out negative at a low sensible heat ratio). There Xc_iu_hx [W], X_eff_iu_hx [-] and X_eff_sys [-] are NaN; every other column, the thermal exergy of the air streams included, is reported as on a dry row. Rows that remove no water are not touched.

Parameters:

df (DataFrame)

Return type:

DataFrame

operating_range(conditions=None)[source]

Solve standard rating conditions and tabulate whether the heat pump runs at each.

A check to call before a simulation; it is not made at construction because it solves the cycle at every condition. One row per condition: whether the compressor runs, delivers the request or a reduced duty, or cycles on and off, its failure_reason, cop_sys [-], and the limit in words. No OperatingLimitWarning is issued and the model is not changed.

Parameters:

conditions (Iterable[StandardCondition] | None) – Conditions to solve; tmhp.standard_conditions.AIR_TO_AIR (A7/20 … A-15/20 and A35/27 at the nameplate duty) when omitted.

Returns:

Columns tmhp.standard_conditions.COLUMNS; see tmhp.standard_conditions.operating_range().

Return type:

DataFrame