Minimal input¶
TMHP is meant to run from a nameplate, not from a component datasheet. For every released family three statements describe a machine:
which family — the class says what the heat comes from and where it goes (and, for a ground loop, that it is filled with antifreeze);
the capacity —
hp_capacity[W], the nameplate duty at the family’s rating point;the refrigerant —
ref, a CoolProp fluid name.
Everything else has a default, and the defaults that describe the size of the machine follow the capacity, so a 3 kW and a 30 kW unit of one family are the same machine at two scales. This page says what each family needs from you, what it fills in, and where each rule comes from.
What you give¶
Family |
Class (defaults) |
|
An operating point needs |
|---|---|---|---|
ASHP — air to air, heating and cooling |
|
ISO 5151 T1 cooling: outdoor 35 °C, indoor 27 °C |
|
GSHP — ground to air, heating and cooling |
|
ISO 13256-1 ground-loop cooling: liquid entering 25 °C, indoor 27 °C |
|
ASHPB — air to hot-water tank |
|
EN 14511 A7/W55 |
|
GSHPB — ground to hot-water tank |
|
EN 14511 B0/W55 |
|
WSHPB — water loop to hot-water tank |
|
EN 14511 W10/W55 |
|
The rating points are those of Compressor reference state: at
construction the compressor’s rated speed is solved so that the machine
delivers exactly hp_capacity there, whatever the refrigerant.
from tmhp import (
AirSourceHeatPump,
AirSourceHeatPumpBoiler,
GroundSourceHeatPump,
GroundSourceHeatPumpBoiler,
WaterSourceHeatPumpBoiler,
)
# Space conditioning: the load is signed (negative = heating).
ashp = AirSourceHeatPump(hp_capacity=5_000, ref="R32")
a2a = ashp.analyze_steady(Q_r_iu=-5_000, T0=7.0, T_a_room=20.0)
gshp = GroundSourceHeatPump(hp_capacity=5_000, ref="R32")
g2a = gshp.analyze_steady(Q_r_iu=-5_000, T0=0.0, T_a_room=20.0)
# Water heating: the load is the heat the tank receives.
ashpb = AirSourceHeatPumpBoiler(hp_capacity=9_000, ref="R290")
a2w = ashpb.analyze_steady(T_tank_w=50.0, T0=7.0, Q_ref_tank=9_000)
gshpb = GroundSourceHeatPumpBoiler(hp_capacity=9_000, ref="R290")
g2w = gshpb.analyze_steady(T_tank_w=50.0, T_source=10.0, Q_ref_tank=9_000)
wshpb = WaterSourceHeatPumpBoiler(hp_capacity=9_000, ref="R290")
w2w = wshpb.analyze_steady(T_tank_w=50.0, T_source=10.0, Q_ref_tank=9_000)
for name, row in [("ASHP", a2a), ("GSHP", g2a), ("ASHPB", a2w), ("GSHPB", g2w), ("WSHPB", w2w)]:
print(f"{name:6s} {row['failure_reason']:5s} COP {row['cop_sys [-]']:.2f}")
Each call returns a running point (failure_reason == "none") with a system
COP of 4.33, 5.59, 3.00, 3.14 and 3.20 respectively. The keys of the result
are listed in Result keys. A time series needs the same
quantities as schedules; see Your first dynamic simulation.
What follows the capacity¶
Leave these out and they scale with hp_capacity; pass a value and it is
used as given. The constructed model carries the result under the same name
(ashp.UA_ou_rated, gshp.ground_flow_ref_lpm, …), so a default can
always be read back.
Quantity |
Default rule |
Families |
Where it comes from |
|---|---|---|---|
Compressor displacement |
|
all |
Where the defaults come from, Compressor displacement |
Compressor speed range |
|
all |
Compressor reference state, Reference points and operating limits |
Outdoor-coil conductance |
The effective |
ASHP, ASHPB |
Where the defaults come from, Heat-exchanger conductance |
Indoor-coil conductance |
ASHP: |
ASHP, GSHP |
Where the defaults come from; Ground-source heat pump (GSHP — space conditioning) |
Tank heat exchanger |
A plate condenser with circulating water at
|
ASHPB, GSHPB, WSHPB |
Where the defaults come from; Ground-source heat pump boiler (GSHPB), Default sizing |
Source-side heat exchanger (liquid to refrigerant) |
Leaving-end approach at the rated loop flow: 3.47 K as an evaporator
(GSHP |
GSHP, GSHPB, WSHPB |
Ground-source heat pump (GSHP — space conditioning), Ground-source heat pump boiler (GSHPB), Water-source heat pump boiler (WSHPB) |
Rated outdoor airflow |
ASHP: the largest airflow single-split outdoor units of that capacity
publish, |
ASHP, ASHPB |
Where the defaults come from, Maximum fan airflow |
Rated indoor airflow |
ASHP: the largest airflow wall-mounted indoor units publish,
|
ASHP, GSHP |
Where the defaults come from, Maximum fan airflow |
Fan power |
From the airflow at 60 Pa and 60 % fan efficiency: at rated flow the ASHP outdoor fan draws 1.6 % of the nameplate at 3.5 kW and 1.2 % at 15 kW, its indoor fan 0.6 % and 0.4 %; the ASHPB outdoor fan 1.5 % |
ASHP, GSHP, ASHPB |
Air-source heat pump (ASHP — space conditioning), Indoor airflow |
Source-loop flow |
|
GSHP, GSHPB, WSHPB |
Ground-source heat pump (GSHP — space conditioning), Defaults that follow the capacity |
Source-loop pump |
21.3 W per kW (75 W per ton, ASHRAE pumping grade B) |
GSHP, GSHPB, WSHPB |
Ground-source heat pump (GSHP — space conditioning); Ground-source heat pump boiler (GSHPB), Default sizing |
Borefield |
Smallest near-square field that keeps the rated source-side heat
( |
GSHP, GSHPB |
Ground-source heat pump (GSHP — space conditioning); Ground-source heat pump boiler (GSHPB), Default sizing |
Source-water coil length |
200 m, or as long as 50 W per metre needs |
WSHPB |
Water-source heat pump boiler (WSHPB), Default sizing |
The size that the rules give for a machine can be checked in one line:
from tmhp import GroundSourceHeatPump
gshp = GroundSourceHeatPump(hp_capacity=30_000)
print(gshp.N_1, gshp.N_2, gshp.H_b) # 3 2 100.0 -> six 100 m boreholes
print(gshp.ground_flow_ref_lpm) # 115.3 L/min of 25 % ethylene glycol
print(gshp.E_pmp) # 640 W
print(gshp.UA_ground_rated) # 5845 W/K (condensing; 4927 W/K evaporating)
The constructor warns (UserWarning) when a size you give contradicts the
rest — a borefield above 80 W/m, a loop flow that is laminar in the U-tubes, a
tank set point the refrigerant cannot reach — instead of solving it silently.
What follows the refrigerant¶
Quantity |
Default rule |
Where it comes from |
|---|---|---|
Rated compressor speed |
Solved for the fluid at the rating point, so the nameplate capacity is kept when the refrigerant is swapped. The displacement follows the refrigerant in every family, so the rated speed moves little with the fluid: over R32, R290, R410A, R134a, R600a, R1234yf and R1234ze(E) 36–38 rev/s for the default GSHP, 46–47 ASHP, 49–53 WSHPB, 55–62 ASHPB and 63–74 GSHPB (its rating point is B0/W55) |
|
Discharge-temperature limit |
150 °C for R32, 135 °C for every other refrigerant |
|
Condensing limit |
R410A, R32, R407C 65 °C; R290, R1234yf 75 °C; R134a 80 °C; R717 70 °C; otherwise the dew point at 0.9 of the critical pressure |
Reference points and operating limits, Condensing limit |
Highest tank set point (boilers) |
|
Ground-source heat pump boiler (GSHPB), Default sizing |
The default refrigerants are chosen so the default machine runs inside these limits: R32 for the space-conditioning families and R290 for the three water-heating families (ASHPB with a 60–65 °C tank band, GSHPB and WSHPB with 55–65 °C). ASHPB was R134a until the 6th round (2026-11): a fluid being phased out, and the one whose default machine was rated above the fitted speed range.
What is on by default¶
These defaults describe how a real unit behaves at the edges of its range. Each can be switched off to see the bare cycle.
Behaviour |
Default |
Switch |
|---|---|---|
Compressor envelope |
A point outside it is not returned as running: pressure ratio above
11, discharge above |
|
On/off operation below the minimum speed |
|
|
Frost and defrost |
ASHP heating and ASHPB below 5 °C outdoor carry the EnergyPlus frost adjustment at 84 % relative humidity |
|
Dynamic borehole |
GSHP and GSHPB resolve the heat capacity of fluid, pipe and grout and the fluid transit |
|
Source-loop liquid and its freezing limit |
GSHP and GSHPB run on 25 % ethylene glycol ( |
|
Tank thermostat (boilers, dynamic) |
Heats between |
|
What does not follow the capacity¶
A few defaults describe an installation rather than a machine and stay where
they are when hp_capacity changes. Check them when your case is far from
the default size.
Quantity |
Default |
Families |
|---|---|---|
Tank volume ( |
151 L (ASHPB), 101 L (GSHPB, WSHPB) |
boilers |
Thermostat band |
60–65 °C (ASHPB), 55–65 °C (GSHPB, WSHPB) |
boilers |
Hot-water set point and mains temperature |
40 °C at the tap, 15 °C mains |
boilers |
Ground |
16 °C undisturbed, conductivity 2.0 W/(m K), 6 m borehole spacing, single U-tube in a 160 mm borehole |
GSHP, GSHPB |
Superheat and subcooling |
3 K / 3 K (ASHP, GSHPB), 5 K / 5 K (GSHP, ASHPB, WSHPB) |
all |
Room temperature when none is given |
27 °C (the cooling rating condition) — pass |
ASHP, GSHP |
When you know more¶
Any default can be replaced one at a time: a measured UA, a catalogue
airflow, a tested Cd_cycling, scale factors on the compressor maps as
compressor_scale. The
validation harness does exactly that with what manufacturers publish
(Validation), and Adding a catalogue shows
the pattern. What the models leave out altogether is listed in
Scope and limits.