failure_reason semantics¶
Every analyze_steady result carries a failure_reason key. It
is a diagnostic report — independent of whether the result dict
contains usable cycle numbers — that lets callers branch on why a
step looks the way it does without having to inspect the cycle
internals. This page is the reference for what each value means and
when to branch on it.
Invalid input versus an unsolvable point¶
The two are kept apart. An input outside its physical range — NaN or infinity,
a negative capacity, UA, flow or load, an efficiency outside (0, 1], a
temperature that cannot be °C (a kelvin value such as Ts=300), a lower tank
set point above the upper one, a schedule whose length is not the step count, or
a simulation_period_sec that dt_s does not divide — raises
ValueError before anything is computed, with the message
"<name> must be …, got <value>". Valid inputs for which no cycle closes are
not errors: they return a result whose failure_reason says why. A zero boiler
load (Q_ref_tank = 0) is valid and returns the off result with
failure_reason == "none"; a negative or NaN one is invalid.
The values¶
analyze_steady can return the values in the tables below. The first seven
are common to every released family (ASHPB, GSHPB, WSHPB, ASHP, GSHP); the
remaining ones are specific to one family or to the ground-coupled solve path.
Common to all families¶
Value |
Means |
Result dict carries cycle numbers? |
|---|---|---|
|
Cycle closed and the SciPy optimiser converged. |
Yes — trust |
|
HX residual exceeded tolerance, but the cycle itself produced a state. |
Depends on the family. ASHPB, GSHPB, WSHPB, ASHP and every
|
|
SciPy couldn’t satisfy its own success criteria, even though the cycle returned a state. |
Depends on the family. ASHPB, GSHPB, WSHPB, ASHP and every
|
|
The cycle itself was infeasible at the requested
operating point, or the solved cycle is not an operating
point ( |
No — only off-mode placeholders. |
|
The compressor pressure ratio exceeded |
No — only off-mode placeholders ( |
|
The compressor discharge temperature exceeds |
No — only off-mode placeholders ( |
|
The condensing pressure exceeds the dew pressure at |
No — only off-mode placeholders ( |
Liquid-source families (GSHP, GSHPB, WSHPB)¶
Value |
Means |
Result dict carries cycle numbers? |
|---|---|---|
|
The source-loop liquid would run below its
operating limit – its freezing point plus 3 K: -8.0 °C for the
default 25 % ethylene glycol of GSHP and GSHPB, 3 °C for the default
water of WSHPB – at every duty the model tried: it already reaches
the heat pump below the limit ( |
No — only off-mode placeholders. |
ASHPB only¶
Value |
Means |
Result dict carries cycle numbers? |
|---|---|---|
|
The condensing temperature was at or below the tank/loop inlet
water temperature, so heat cannot flow to the water at that
operating point. Takes precedence over |
No — only off-mode placeholders. |
Ground-coupled solve path (GSHP and GSHPB with an active ground loop)¶
When the ground loop is solved jointly with the cycle (the ground-flow and
approach solvers in ground_flow_control), a point that cannot be met is
returned as a failed requested point: converged == False,
hp_is_on == False, heat and power columns set to 0.0 and COP columns
NaN. The reason is one of the following (the common values above can
also appear).
Value |
Means |
|---|---|
|
The cycle was invalid and the last pressure-ratio check hit
|
|
The requested duty is below what the compressor delivers at
|
|
The requested duty is above what the compressor delivers at
|
|
The delivered duty differs from the request for another reason than the min/max speed clamp. |
|
The compressor-speed solve did not converge and the row carried no more specific reason. |
|
The load-side heat exchanger (indoor coil or tank condenser) could not transfer the required duty. |
|
The ground heat exchanger could not supply the required evaporator duty at any approach temperature in the search band. |
A request above a limit (boilers)¶
An inverter unit asked for more than an
operating limit allows does not stop: its controller lowers the compressor
frequency until the limit holds. This applies to the boilers (asked for a
fixed duty) and to AirSourceHeatPump, which reports the same
capacity_binding names plus "cycle" for a coil at its largest airflow
and the widest approach the search admits. So when the requested duty has no operating
point for one of the reasons below and a smaller duty has one,
analyze_steady and each dynamic step return the largest duty that runs
(found to 1 % of the request), not a failure:
The request fails with |
|
Why a smaller duty helps |
|---|---|---|
|
|
A smaller condenser approach lowers the condensing pressure. The duty that condenses on the limit is found by a secant on the condensing temperature (three cycle solves), not by the ladder. |
|
|
A smaller condenser approach lowers the condensing pressure and with it the discharge temperature. |
|
|
The condenser and the source heat exchanger both need a smaller approach, so the pressure ratio falls. |
|
|
The source heat exchanger has less heat to absorb. Not tried when
|
The result is a running point with capacity_clamped == "max",
Q_max [W] (the duty delivered) and Q_request [W] (the duty asked for);
capacity_binding names the limit that is active at the point returned –
what bounds its delivered duty, not where the duty search stopped – so every
request that lands on the same operating point reports the same limit. When
more than one is active, the first of these names it:
"pressure_ratio"– the point sits onPR_cycle_max(the source heat exchanger then asks for a larger approach than the ceiling leaves it);"compressor"– the point’s own solve already runs at the speed ceilingrps_max. Every larger duty asked for delivers this same point, so a refusal further up the search belongs to the request, not to the point (an 8 kW R290 ASHPB at W55/A-12 delivers 8,998 W atrps_maxfor a request of 12, 20 or 40 kW alike, and reports"compressor"for all three, although the 40 kW search was refused by the outdoor coil above about 33 kW of gross duty);the limit the next larger duty tried ran into – the search closed on that limit’s boundary.
"compressor" is also the value for a request met at the speed ceiling
without any reduction. When no smaller duty runs, the result is the off state
with the request’s own failure_reason.
Not reduced: cycle_invalid for any other cause, t_cond_below_t_in and
optimizer_failed. A request with no cycle at all is, with the boilers, a
condensing temperature – the tank temperature plus the condenser approach
the duty needs – at or above the critical point. With the condensing limit
it is treated as beyond that limit: reduced onto it when a smaller duty runs
and the duties that run end on the limit, reported as
condensing_temp_above_max when a tenth of the request is still above the
limit, and otherwise left as it is. With T_cond_max=None it stays a
failure: the largest smaller duty would sit on the critical point itself, a
state no machine runs at.
failure_detail¶
Two kinds of failure carry one more key, failure_detail, that says which
check failed.
A boiler (ASHPB, GSHPB, WSHPB) analyze_steady result whose cycle the
solver accepted but which is not an operating point is reported as
cycle_invalid; failure_detail names the check
(tmhp.dynamic_context.unphysical_cycle_detail). An ASHPB
analyze_steady result reported as hx_not_converged because no outdoor
approach lets the outdoor coil carry the evaporator duty within the fan’s flow
limits names the limit it fails at (the off-mode row carries it; the request
is first retried at smaller duties as described above). The outdoor-approach search solves the band
of approaches the fan can serve from the coil’s capacity margins at its largest
and smallest airflow; these values say why that band is empty.
|
With |
Means |
|---|---|---|
|
|
Delivered heat or compressor power is non-finite or not positive. |
|
|
The compressor discharge temperature or enthalpy is non-finite — typically a low overall efficiency at a high pressure ratio, which puts the discharge enthalpy outside the refrigerant’s equation-of-state range. |
|
|
The compressor sits on its speed floor ( |
|
|
At every outdoor approach the cycle reaches (up to the
pressure-ratio ceiling or the 20 K search bound), the outdoor coil
absorbs less than the evaporator duty even at the fan’s largest
flow. A larger |
|
|
At every outdoor approach, down to 1 K, the outdoor coil absorbs more
than the evaporator duty even at the fan’s smallest flow: the fan
cannot turn down far enough. A smaller |
|
|
The coil is short at the largest flow at some approaches and in excess at the smallest flow at others, with no approach in between at which the fan can carry the duty. |
The key is present only on those results, and only on analyze_steady
dicts; it is not a dynamic-frame column (an analyze_dynamic row that could
not be solved carries failure_reason alone).
pr_below_min is not a failure_reason value. A pressure ratio
below PR_cycle_min is held on the floor and the cycle is still
solved: a control action of a running machine, not a limit, so nothing is
warned or printed. GSHP and ASHPB rows say so with pr_floor_active; on
every family pr_cmp [-] then equals PR_cycle_min.
How to branch on it¶
The safest pattern depends on which question you’re asking.
“Is this step physically meaningful?” Use the cycle output
directly. Off-mode rows have E_cmp [W] == 0:
ok = df["E_cmp [W]"] > 0
This is robust across all failure_reason values and is
also the recommended check inside analyze_dynamic, where
failure_reason is per-step.
The analyze_dynamic frames of ASHPB, GSHPB and WSHPB carry a
failure_reason column. A step on which the thermostat did not call
for heat, or on which the compressor ran, is none. A step that was
called but whose cycle could not be solved carries the reason and is an
off-mode row: hp_is_on == False, converged == False, zero heat and
power, NaN COP, and no heat into the tank or out of the ground. The call
for heat persists, so the next step tries again.
“Which steps were stopped, and why?” Look at
failure_reason directly (df.attrs["operating_limits"] has the counts
of a dynamic run; Being told: OperatingLimitWarning):
from collections import Counter
print(Counter(df["failure_reason"]))
# e.g. Counter({'none': 1392, 'hx_not_converged': 47, 'cycle_invalid': 1})
“Is this row trustworthy for a metric I care about?” Combine the converged flag with the failure reason:
trustworthy = (df["converged"]) & (df["failure_reason"] == "none")
Being told: OperatingLimitWarning¶
A reason in a result key is easy to miss, so the models also say it. Every
notice that the machine did not do what it was asked is one warning category,
tmhp.OperatingLimitWarning (a UserWarning):
Where |
What is reported |
|---|---|
|
One warning for the final result of a call whose compressor was
asked to run and does not ( |
|
Nothing per step. One warning at the end of a run in which a step was
stopped or limited: the steps on which the compressor was called but
did not run (by reason, with the first time), the steps on which it
ran below the requested duty, and what that left unserved – the
lowest tank temperature, the time below the lower set point and the
hot water not delivered for a boiler, the unmet load for ASHP and
GSHP. The same totals are in |
Construction |
A boiler whose upper set point is above what its compressor envelope
reaches says so once (the set points are capped; see
|
Hot water |
|
import warnings
import tmhp
warnings.simplefilter("error", tmhp.OperatingLimitWarning) # stop at the first
warnings.simplefilter("always", tmhp.OperatingLimitWarning) # report every point
warnings.simplefilter("ignore", tmhp.OperatingLimitWarning) # none
Without a filter a steady warning is issued once per model and limit: the
first point a model is stopped by discharge_temp_above_max is reported in
full and says that later ones are not, so a sweep of thousands of points
prints a handful of lines. The rows are not affected – every point carries
its failure_reason, capacity_clamped and capacity_binding – and
"always" reports each one. tmhp.operating_limits.reset_notices(model)
starts over for a model.
The totals of a dynamic result, also for rows collected from step() (which
does not warn):
limits = tmhp.summarize_operating_limits(df, dt_s) # == df.attrs["operating_limits"]
limits["off_steps [-]"], limits["off_reasons"] # called but did not run
limits["limited_steps [-]"], limits["limited_bindings"]
tmhp.simulation_summary.print_operating_limit_summary(df, dt_s) prints
them, and tmhp.operating_limits.warn_if_operating_limited(df, dt_s, who,
model) gives a frame of step() rows the report analyze_dynamic gives.
Each limit in words, and what to do¶
The warnings take their wording from this table
(tmhp.operating_limits.LIMITS). A limit that stops a point is named by
failure_reason; the same limit on a point that runs at a reduced duty is
named by capacity_binding (the quoted values marked binding).
|
In words |
What to do |
|---|---|---|
|
The compressor discharge temperature is above its protection limit T_dis_max, even with the suction superheat taken to 0 K and wet suction. |
Reduce the temperature lift (a lower tank or supply temperature, or a warmer source), or use a refrigerant that discharges cooler (R290, R134a) or the efficiency map of the actual compressor. T_dis_max=<°C> sets the limit of another compressor. |
|
The condensing temperature is above T_cond_max, the top of the compressor envelope. |
Lower the temperature the heat is delivered at (the tank set points of a boiler), or use a refrigerant with a higher limit (R290, R134a). T_cond_max=<°C> sets the limit of another compressor. |
|
The compressor pressure ratio is above PR_cycle_max, the single-stage limit. |
Reduce the temperature lift (a lower tank or supply temperature, or a warmer source). PR_cycle_max=<ratio> sets the limit of another compressor. |
|
The source-loop liquid would run below its operating limit, its freezing point plus 3 K. |
Fill the loop with an antifreeze mixture, or a stronger one (source_fluid=’MEG-30%’), or take less heat from the source. |
|
A heat exchanger cannot carry the duty inside its flow range and the approach temperatures the search admits. |
Reduce the request, or enlarge the heat exchanger that is short (its UA or its largest flow); failure_detail names the fan limit on the air-source boiler. |
|
The outdoor coil is short of the evaporator duty at the fan’s largest airflow. |
Reduce the request, or give the outdoor coil and fan of the actual unit (UA_ou_rated, dV_fan_a_max). |
|
The source heat exchanger cannot absorb the evaporator duty at the approach temperatures the search admits. |
Reduce the request, raise the source temperature or flow, or enlarge the source heat exchanger. |
|
A coil is at its largest airflow and the widest approach temperature the search admits. |
Reduce the request, or size the machine for it (hp_capacity scales the coils and the compressor). |
|
The compressor is at its maximum speed (rps_max). |
Size the machine for the load (hp_capacity), or reduce the request. |
|
No refrigerant cycle closes at this condition (for example a condensing temperature at or above the critical point), or the solved cycle is not an operating point. |
Check the temperatures against the refrigerant’s range and reduce the lift or the request; failure_detail names the check where there is one. |
|
The condensing temperature is at or below the water entering the condenser, so no heat can flow to the water. |
Check the tank and water-loop temperatures given for this point. |
|
The operating-point search did not settle: a numerical failure, not a limit of the machine. |
Treat the point as unsolved (a neighbouring condition usually solves), and report a condition that fails repeatedly. |
|
The cycle is invalid and its pressure ratio is at PR_cycle_min or PR_cycle_max (ground-coupled solve). |
Reduce the temperature lift (a lower tank or supply temperature, or a warmer source). |
|
The request is below what the compressor delivers at its minimum speed, and on/off cycling is switched off (Cd_cycling=None). |
Leave on/off cycling on (the default Cd_cycling), or lower rps_min. |
|
The delivered duty differs from the request for another reason than the compressor’s speed limits (ground-coupled solve). |
Reduce the request, or check the compressor’s speed range against it. |
|
The compressor-speed solve did not converge (ground-coupled solve). |
Treat the point as unsolved (a neighbouring condition usually solves), and report a condition that fails repeatedly. |
|
The load-side heat exchanger (indoor coil or tank condenser) cannot transfer the duty. |
Reduce the request, or enlarge the load-side heat exchanger. |
|
The ground heat exchanger cannot supply the evaporator duty at any approach temperature the search admits. |
Reduce the request, or enlarge the borefield or its flow. |
Checking the standard conditions first: operating_range()¶
Before a simulation is set up, operating_range() asks a machine the
standard test conditions of its kind and returns one row per condition:
whether the compressor runs (runs), whether it delivers the nameplate
duty (meets_request) or a reduced one (capacity_clamped == "max" with
its capacity_binding), whether it cycles on and off
(runtime_fraction [-] below 1), the failure_reason of a point it does
not run, its cop_sys [-], and the limit in the words of the
warnings (limit). Every family has the
method and the table has the same columns for all of them
(tmhp.standard_conditions.COLUMNS).
import tmhp
hp = tmhp.AirSourceHeatPumpBoiler(ref="R32")
table = hp.operating_range()
print(table[["condition", "T_tank_w [°C]", "runs", "meets_request", "capacity_binding", "failure_reason"]])
for line in table["limit"].dropna():
print(line)
The default conditions follow the names and temperatures of EN 14511-2 (rating
conditions) and EN 14825 (part-load conditions); the ground-loop cooling point
follows ISO 13256-1. The source side comes first: A outdoor air (dry bulb),
B brine and W water entering the heat pump; then the water leaving it
(boilers) or the indoor air (space heat pumps). Each is requested at the
nameplate duty hp_capacity.
Family |
Conditions |
Basis |
|---|---|---|
ASHPB |
A7/W35, A2/W35, A-7/W35, A7/W55, A2/W55, A-7/W55, A-10/W55, A-15/W55 |
EN 14511-2 standard rating (A7/W35, A7/W55) and application rating
conditions; A-7 is EN 14825 condition A, A-10 the operation limit of
the average climate ( |
ASHP |
A7/20, A2/20, A-7/20, A-15/20 (heating); A35/27 (cooling) |
EN 14511-2 standard rating (A7/20, A35/27) and application rating
conditions ( |
GSHPB |
B0/W35, B0/W55, B-5/W45 |
EN 14511-2 brine-to-water conditions ( |
WSHPB |
W10/W35, W10/W55 |
EN 14511-2 water-to-water conditions ( |
GSHP |
B0/20 (heating), B25/27 (cooling) |
EN 14511-2 brine-to-air heating; ISO 13256-1 ground-loop cooling
( |
Which model input a standard temperature is. The outdoor air is T0
and its standard wet bulb, where one is given, the outdoor humidity
RH_out (the frost correction). The brine or source water entering the heat
pump is T_source of GSHPB and WSHPB; GSHP has no such argument (its source
is the fluid leaving the borefield, the state T_bhe_f_out), so its
conditions are solved with T_bhe_f_out at the brine temperature. A GSHP
with ground-flow control solves its source from the borehole wall instead, so
no brine temperature can be imposed and operating_range() refuses it
(ValueError) rather than report a condition it did not solve. The indoor
air is T_a_room.
The W55 of a boiler condition is the water leaving the heat pump, which
is not an input of the boiler models: their sink is the tank water
T_tank_w entering the plate condenser. The table hands a boiler the water
EN 14511 enters with — the leaving water less the standard’s rise, 5 K up to
45 °C, 8 K at 55 °C, 10 K at 65 °C
(tmhp.standard_conditions.en14511_water_rise()) — and, for
AirSourceHeatPumpBoiler, the flow that carries the duty at that rise; the
liquid-source boilers run at their rated circulation flow. It prints both
temperatures (T_load_side [°C] and T_tank_w [°C]). Near a limit the
rise can decide whether a point runs. sink_offset_K replaces it: the
water enters that much below the leaving water at the rated circulation flow,
and sink_offset_K=0 solves the tank water at the named temperature, the
stricter case of a tank held at 55 °C:
import tmhp
hp = tmhp.AirSourceHeatPumpBoiler(ref="R32")
leaving = hp.operating_range() # EN 14511: water enters the rise below the leaving water
tank = hp.operating_range(sink_offset_K=0.0) # tank water at the named temperature
print(leaving[["condition", "T_tank_w [°C]", "runs", "failure_reason"]])
print(tank[["condition", "T_tank_w [°C]", "runs", "failure_reason"]])
Part load and other conditions. A condition is a
tmhp.StandardCondition; at_part_load asks it at a share of the
nameplate duty, and a list of one’s own replaces the defaults. The inputs
column holds the keyword arguments each row was solved with, so a row can be
reproduced with hp.analyze_steady(**row["inputs"]).
import tmhp
from tmhp.standard_conditions import AIR_TO_WATER
hp = tmhp.AirSourceHeatPumpBoiler()
mine = tmhp.StandardCondition("A-2/W45", "heating", -2.0, 45.0, outdoor_wet_bulb_C=-3.0)
table = hp.operating_range([AIR_TO_WATER[0].at_part_load(0.3), mine])
row = table.iloc[0]
print(row["Q_request [W]"], row["runtime_fraction [-]"], row["cop_sys [-]"])
Quiet, and the model is unchanged. The solves issue no
OperatingLimitWarning (the limit column is the text a warning would
carry) and they do not use up the once-per-model notice of a later
analyze_steady call. Each condition is solved on a shallow copy of the
model, so what a solve writes on the model stays on the copy.
Why it is a method and not part of construction. It solves the cycle at every condition, which costs far more than building an air-source model. Measured on an Apple-silicon Mac, each in a fresh process, median of three (2026-11-15; other jobs shared the machine, so read them as orders of magnitude):
Model (default constructor) |
Conditions |
Construction |
|
Ratio |
|---|---|---|---|---|
ASHPB (R290) |
8 |
5.6 ms |
0.036 s |
6 × |
ASHPB, |
8 |
5.9 ms |
0.41 s |
69 × |
ASHP |
5 |
3.9 ms |
0.12 s |
30 × |
GSHPB |
3 |
207 ms |
0.007 s |
0.03 × |
WSHPB |
2 |
6.5 ms |
0.006 s |
0.9 × |
GSHP |
2 |
219 ms |
0.015 s |
0.07 × |
The air-source models would be built 6 to 70 times more slowly, and a sweep that builds a model per point would pay that every time, for a check most callers make once.
What triggers each value¶
These are implementation details and may shift between releases — treat the values themselves as the stable contract, not the mechanism. Expand the cards below for the trigger conditions and the recommended lever to pull when you hit each one.
none — everything converged
Both the inner HX loop and the outer SciPy optimiser hit
their success criteria. The result dict is fully populated
and converged is True.
No action needed. This is the common path on a well-sized system at moderate ambient.
hx_not_converged — HX residual exceeded tolerance
The HX residual didn’t drop below tolerance inside the inner
iteration, but the cycle still produced a state. Only GSHP’s
analyze_steady returns that state, as an approximation; ASHPB,
GSHPB, WSHPB, ASHP and every analyze_dynamic row report an
off-mode row with zero heat and power. converged is False so
you can filter rows downstream. A boiler reports it only when no
smaller duty runs: otherwise it runs at the largest duty its source
heat exchanger carries (capacity_clamped == "max").
What to do. Treat converged as the source of truth
for “trust this row?” decisions. If the rate of
hx_not_converged is uncomfortably high, oversize the
affected HX (design ε-NTU or area) so the iteration has
more headroom near phase boundaries. On ASHPB, failure_detail
says which fan limit the outdoor coil fails at (see above).
optimizer_failed — SciPy didn’t satisfy its own criteria
The outer SciPy optimiser exited with success == False.
The cycle still has a state at the optimiser’s best
dT_ref_evap, just not a provably optimal one. GSHP
analyze_steady returns that state; ASHPB, GSHPB, WSHPB, ASHP and
every analyze_dynamic row report an off-mode row instead.
What to do. Where numbers are returned they are reasonable but not
optimisation-grade — fine for most aggregations, suspect for
point-comparison work. Wider initial bounds on
dT_ref_evap usually clears this.
cycle_invalid — cycle was infeasible at this point
_calc_state raised, or returned a non-dict, at the
requested T_tank_w / T0 / Q_ref_tank — or, for the
boilers, returned a state that is not an operating point (see
failure_detail above). The model falls back to off-mode
placeholders (E_cmp = 0, Q_ref_tank = 0).
What to do. Usually the requested duty is unreachable for the given geometry. Consider increasing the design ε-NTU, fan flow, or condenser area; or accept that the operating point is genuinely off-limits and let the off-mode row stand.
pr_above_max — pressure ratio above the envelope
The final operating point needs a compressor pressure ratio
above PR_cycle_max (checked by
tmhp.compressor_envelope.check_pr_envelope()). The model
falls back to off-mode placeholders and says so in its
OperatingLimitWarning (the ratio it reached, where the solve left
one, next to PR_cycle_max). Nothing is printed to standard output.
What to do. Reduce the lift (lower T_tank_w or raise the
source temperature), or raise PR_cycle_max if a higher
single-stage ratio is acceptable for your compressor.
discharge_temp_above_max — discharge temperature above the limit
The solved operating point (boilers) or every candidate the search
tried (ASHP, GSHP) discharges above T_dis_max even with the suction
superheat at 0 K and the suction quality at x_suction_min, and no
smaller duty brings it inside – nor a larger one (ASHP and the boilers’
analyze_steady: a request refused only at low speed is met by cycling
at the smallest duty that runs). A point the control does hold runs with
discharge_control == True; its dT_ref_superheat [K] and
x_ref_cmp_in [-] say how. The defaults are compressor protection settings
(tmhp.compressor_envelope). The share of the compressor input that
leaves the shell instead of reaching the gas is that of the one compressor
the default maps were measured on (Where the defaults come from). With the
default maps the default 15 kW R32 boiler runs at pressure ratios 8.3 and
10.9 at A−7/W65 and A−15/W65, and it discharges at
172 and 196 °C uncontrolled there; the control holds 150 °C with a suction
quality of 0.97 and 0.93. At low speed the efficiency falls and the
discharge runs hotter: the same boiler at −20 °C against a 60 °C tank
holds the limit at suction quality 0.9 down to 2.2 kW (16 rev/s) and not
below, and at
−25 °C against 55 °C a small request is refused for the discharge
temperature while larger ones are refused for the pressure ratio. Real
units at such conditions use injection (liquid or vapour) or two-stage
compression, which the single-stage cycle does not describe.
What to do. Treat the point as outside the single-stage envelope.
For a sensitivity study, T_dis_max=None removes the discharge limit;
a different protection setting is T_dis_max=<°C>, a wetter
allowed suction x_suction_min=<x> (None switches the control off).
condensing_temp_above_max — condensing pressure above the envelope
The compressor would have to discharge at a pressure above the top of
its envelope (T_cond_max, stated as the saturation temperature of
that pressure). For a boiler this is a tank too hot for the refrigerant:
the cycle condenses at the tank temperature plus the tank heat
exchanger’s approach, and the unit reduces its duty as the tank
approaches the limit (capacity_binding == "condensing_temperature")
until even the minimum-speed duty condenses above it. In a dynamic run
the thermostat normally stops the heat pump before that: an upper set
point above the tank temperature the envelope allows at the nameplate
duty is capped there at construction (UserWarning,
T_tank_w_setpoints_requested). A called step past that cut-out – a
stratified tank whose coil-side water is hotter than the sensor, a
minimum run time – runs at the reduced duty or is an off row with this
reason.
What to do. Choose an upper set point the refrigerant reaches
(T_cond_max less the condenser approach at the nameplate duty,
hp_capacity / K_tank_hx), or a refrigerant with a higher limit (R290, R134a). For a
compressor with a different high-pressure rating give its own
T_cond_max=<°C>; None removes the limit for a sensitivity
study. A zeotropic blend is judged at its dew point: R407C reaches the
65 °C limit when the cycle’s own (bubble-point) condensing temperature
is 61.2 °C.
t_cond_below_t_in — condensing below the water inlet (ASHPB)
Inside _calc_state the condensing temperature
T_cond_K <= T_tank_w_K, so the condenser cannot heat the water.
The cycle returns no state and the model falls back to off-mode
placeholders.
What to do. Usually the optimiser probed an evaporating temperature that is too low for the tank temperature. Move the operating point away from the tank temperature or check the tank-loop inputs.
Ground-coupled reasons
pressure_ratio_limit, compressor_min_speed,
compressor_max_speed, compressor_capacity_limit,
compressor_speed_limit, load_hx_capacity_insufficient and
ground_hx_capacity_insufficient come from the ground-coupled
solve (see the table above). In all of them the requested duty is
reported as not met: heat and power are zero and COP is NaN.
What to do. Check the compressor speed band against the request
(*_min_speed/*_max_speed), or enlarge the heat exchanger that
the name points at (load_hx_* or ground_hx_*).
Off-mode fallback¶
When failure_reason is "cycle_invalid", "pr_above_max",
"discharge_temp_above_max", "condensing_temp_above_max" or
"t_cond_below_t_in" — and, for WSHPB and for GSHPB outside the
ground-coupled path, for every reason other than "none" — the
steady-state path
substitutes an off-mode result and reports it in one
tmhp.OperatingLimitWarning (Being told: OperatingLimitWarning):
hp_is_on = False, all power and duty fields zeroed. In
analyze_dynamic every called-but-unsolved step of ASHPB, GSHPB and
WSHPB becomes the same kind of off-mode row. This keeps
analyze_dynamic rows aligned (one row per step, regardless of
feasibility) so the resulting DataFrame is safe to vectorise over.
Where this is defined in the code¶
The diagnostic flag is set inside analyze_steady for the five
core models, and per step inside analyze_dynamic for ASHPB, GSHPB
and WSHPB. See the docstrings under: