Water-source heat pump boiler (WSHPB)

Source side is a water loop with a prescribed inlet temperature; sink side is the shared DHW tank demand model used by the boiler families.

Overview

The class is tmhp.WaterSourceHeatPumpBoiler. Unlike GSHPB, WSHPB takes the source-side inlet temperature as a schedule input rather than computing it from a borehole field — useful when the water loop is driven by an external simulation or measurement.

Base usage

from tmhp import WaterSourceHeatPumpBoiler

wshpb = WaterSourceHeatPumpBoiler(ref="R134a")

result = wshpb.analyze_steady(
    T_tank_w=55.0,
    T_source=15.0,     # water-loop inlet [°C]
    Q_ref_tank=8_000,
)

Default sizing

As for Ground-source heat pump boiler (GSHPB), hp_capacity (default 8 kW) and the refrigerant are enough: a plate condenser with circulating water at m_dot_w_rated = hp_capacity / (c_w · 5 K) whose UA_tank_hx reproduces a 2.01 K leaving-end approach, a source exchanger UA_water that reproduces the 3.47 K leaving-end approach of coaxial evaporators at the rated source flow (Where the defaults come from, Heat-exchanger conductance), source-loop flow dV_b_f_lpm = 0.75 × hp_capacity / (ρ c · 3 K) (3.58 L/min per kW) and E_pmp = 75 W/ton × hp_capacity (21.3 W per kW). The rated cycle is then the same at every capacity (W10/W35: COP of the cycle 5.24 with the default refrigerant, R290, and the default compressor maps). The submerged source-water coil is H_b metres long: with none of N_1, N_2, H_b given it is 200 m, or as long as the rated source-side heat (0.75 × hp_capacity) needs at 50 W/m. Values you pass are used as given; the constructor warns (UserWarning) for a coil above 80 W/m, a laminar default flow, and a T_tank_w_upper_bound whose condensing temperature (set point + hp_capacity / K_tank_hx) is at or above the refrigerant’s critical temperature. The condensing limit of the compressor envelope (T_cond_max) acts as in Ground-source heat pump boiler (GSHPB): an upper set point above the tank temperature it allows at the nameplate duty is capped there with a UserWarning, and analyze_steady against a hotter tank returns a reduced duty (capacity_binding == "condensing_temperature") or the off state with failure_reason == "condensing_temp_above_max". condensing_limit_control="reduce_duty" (default "stop") lets a dynamic run charge on past that cut-out at the duty the limit leaves, as an inverter unit does, down to the smallest continuous duty; the set points are then capped where that duty meets the limit, evaluated with the source water at Ts (operating-limits reference). That applies where the condensing limit governs the stretch from the cut-out to that stop, which is checked once per source-water temperature with three cycles (the default unit qualifies from 6 to 30 °C, the warmest tried). The three cycles sample the stretch – its two ends and its middle. A step also checks its own cycle, at the mean of its own stretch, so where another limit acts only between the three sampled tank temperatures some steps are withheld (reduced_duty_withheld == "cycle") and others are not, by where their cycle lands, and the charge depends on the step size: a unit built for the purpose (T_dis_max = 92.408 °C and an efficiency that dips around 35 rev/s, source water 16 °C, one hour from 68.95 °C) delivers 0.4835 kWh with 60 s steps, 34 of them withheld, and 0.4605 kWh with 600 s and 3600 s steps (reference). With colder source water the freezing limit leaves less than the condensing limit at the cut-out (3.1 against 8 kW at 4 °C), and reduced-duty charging is withheld: the step is solved exactly as "stop" solves it – the compressor stops at the cut-out of 68.0 °C and stays off above it while the call stands – with reduced_duty_fraction [-] 0 and reduced_duty_withheld == "source_fluid_freezing" on the rows in which the cut-out acted.

The cycle closures are those of Ground-source heat pump boiler (GSHPB): the suction superheat is capped at the evaporator approach less dT_hx_min, and on a compressor speed bound the tank heat exchanger is solved against the heat actually delivered (dT_ref_tank [K], tank_hx_residual [W]).

analyze_steady reports a request below the minimum-speed duty as the mean of on/off cycling, exactly as Ground-source heat pump boiler (GSHPB) does (Steady state below the minimum capacity): Q_ref_tank [W] equals the request, runtime_fraction [-] is the share of the time the compressor runs, and E_cmp, E_pmp and E_tot carry the EN 14825 degradation for a unit delivering to water (Cd_cycling, the standard’s Cc, 0.9 by default; None returns the continuous minimum-speed point). The default machine at 10 °C source water and a 35 °C tank delivers 2.1 kW at its minimum speed; a 400 W request returns 400 W at 151 W of input (system COP 2.64 against 3.76 for the running machine). Dynamic runs are not affected.

Loop liquid and its freezing limit

source_fluid is the liquid circulating between the heat pump and the coil in the source water: "water" (default) or an antifreeze mixture such as "MPG-25%". The rule is that of Ground-loop liquid and its freezing limit on the GSHPB page: the loop liquid is never colder than its freezing point plus 3 K, i.e. 3 °C for water. With the default 3 K loop temperature difference a water loop therefore delivers its full duty down to about 6 °C entering the heat pump; below that the duty is reduced to keep the leaving water at 3 °C (capacity_binding == "source_fluid_freezing"), and a loop entering below 3 °C does not run (failure_reason == "source_fluid_freezing"). The W10/W35 rating point (leaving at 7 °C) is unaffected. For winter surface water near 0 °C fill the coil with a mixture:

wshpb = WaterSourceHeatPumpBoiler(source_fluid="MPG-25%")   # limit -6.8 °C
wshpb.analyze_steady(T_tank_w=45, T_source=1.0, Q_ref_tank=8_000)

Dynamic operation

analyze_dynamic follows the tank thermostat (T_tank_w_lower_bound / T_tank_w_upper_bound, 55 / 65 °C) inside each step: a step reports the fraction of it the compressor ran (runtime_fraction [-]), its starts (hp_starts [-]), and heat, power and source-water heat averaged over the step. min_on_time_s / min_off_time_s (default 0) hold the compressor to a minimum run and rest time. See Time step and the thermostat.

T_source_w_schedule is the source-water temperature of each step (default: the constructor’s Ts at every step); the row reports it as Ts [°C] and T_bhe [°C]. The cycle of a step is solved against the fluid the coil returns while it carries that step’s own extraction from that step’s water, so in every running row T_ref_evap_sat < T_bhe_f_out_running < Ts. (Earlier releases fed the evaporator the previous step’s fluid, and the first step the constructor’s Ts.) An off row has no refrigerant state: the cycle state-point columns are NaN.

Source-side mechanics

A single ε-NTU heat exchanger between the refrigerant evaporator and the source-side water loop. No borehole transient — in analyze_steady the loop inlet temperature is whatever the user supplies (T_source).

In analyze_dynamic the loop runs through a coil submerged in the source water. A pipe of length H_b and per-length resistance R_b in water of uniform temperature is a single-stream heat exchanger, Q = ε ṁc (T_water − T_in) with ε = 1 − exp(−H_b / (R_b ṁc)), so the fluid returns at T_in + Q / ṁc and never warmer than the water it takes heat from (0.4 K below it for the default 8 kW machine, NTU 2.2).

Sink-side mechanics

Shared DHW tank sink with an implicit per-step energy balance.

Every step reports the hot-water service: Q_dhw_request [W] is the scheduled draw at the set point T_mix_w_out counted from the mains temperature, Q_dhw_unmet [W] the part not delivered because the water left the mixing valve below the set point (the tank was colder than it) or a level-varying tank cut the draw. analyze_dynamic warns once (tmhp.dhw.DHWUnmetWarning) when a run leaves demand unmet; see Was the hot water delivered? for the run totals.

A step on which the thermostat called but the compressor could not run (an off row with a failure_reason), or ran below the nameplate duty (capacity_clamped == "max"), is not reported while the run goes on. analyze_dynamic ends with one tmhp.OperatingLimitWarning that counts such steps by limit and says what they did to the tank, and the same totals are in df.attrs["operating_limits"]; analyze_steady warns once about a point that does not run or runs reduced (Being told: OperatingLimitWarning).

A tank whose level varies (tank_always_full=False or prevent_simultaneous_flow) follows the rules of the air-source boiler (Air-source heat pump boiler (ASHPB), Sink-side mechanics): the draw stops at TANK_LEVEL_MIN, the make-up at full, the reported level and tank flows are the ones the step’s energy balance was solved with, and the demand the tank could not supply is dV_mix_w_out_unmet [m3/s]. Such a run starts with tank_level_init of at least TANK_LEVEL_MIN.

API reference

Water source heat pump boiler — physics-based cycle model.

Resolves a vapour-compression refrigerant cycle coupled to a surface-water source (e.g. river) on the evaporator side and a lumped-capacitance hot-water tank on the condenser side. At each time step the model finds the minimum-power operating point via 1D Brent optimization over the evaporator approach temperature difference, while the condenser temperature is solved analytically.

The water source is treated as an infinite-capacity thermal boundary: the evaporator draws heat from the source-water stream through an NTU-based heat exchanger without depleting it, so no long-term source temperature drift is tracked. (This distinguishes the model from the ground source variant, which resolves borehole g-functions.)

class tmhp.water_source_heat_pump_boiler.WaterSourceHeatPumpBoiler(ref='R290', V_cmp_ref=None, UA_tank_hx=None, UA_water=None, T0=0.0, Ts=16.0, T_tank_w_upper_bound=65.0, T_tank_w_lower_bound=55.0, T_mix_w_out=40.0, T_tank_w_in=15.0, hp_capacity=8000.0, dV_mix_w_out_max=0.0001, r0=0.2, H=0.8, x_shell=0.01, x_ins=0.05, k_shell=25, k_ins=0.03, h_o=15, N_1=None, N_2=None, B=6.0, D_b=0, H_b=None, r_b=0.08, R_b=None, k_g=1.5, k_p=0.4, r_out=0.016, r_in=0.013, D_s=0.025, dV_b_f_lpm=None, k_s=2.0, c_s=800, rho_s=2000, E_pmp=None, v_river=0.5, dT_superheat=5.0, dT_subcool=5.0, tank_always_full=True, prevent_simultaneous_flow=False, tank_level_lower_bound=0.5, tank_level_upper_bound=1.0, dV_tank_w_in_refill=0.001, hp_on_schedule=None, min_on_time_s=0.0, min_off_time_s=0.0, stc=None, pv=None, uv=None, t_max_s=31536000, dt_s=3600, T_sur=20.0, dT_hx_min=0.5, PR_cycle_min=1.5, PR_cycle_max=11.0, rps_min=15.0, rps_max=None, *, compressor_scale=None, rps_rated=None, T_dis_max='auto', x_suction_min='auto', T_cond_max='auto', m_dot_ref_rated=None, rated_condition=None, dT_w_rated=5.0, m_dot_w_rated=None, refrigerant=None, V_disp_cmp=None, UA_tank=None, UA_cond_design=None, UA_evap_design=None, Cd_cycling=0.9, source_fluid=None, condensing_limit_control='stop')[source]

Bases: ReferenceStateMixin, CompressorMapPlotMixin

Water source heat pump boiler with surface-water source and lumped-tank model.

The refrigerant cycle is resolved via CoolProp with user-specified superheat / subcool margins. An optimizer minimises total cycle electrical input subject to NTU-based evaporator constraints against the source-water temperature and analytical condenser temperature relations.

hp_capacity and ref are enough to build a machine; the sizes left as None follow the capacity (tmhp._source_boiler), so the rated cycle is the same at every capacity: UA_tank_hx a plate condenser at the rated circulation flow m_dot_w_rated = hp_capacity / (c_w dT_w_rated) (5 K rise; the tank water enters it) and UA_water the source evaporator at the rated source flow, both sized to the leaving-end approach of real exchangers (tmhp.default_inputs.estimate_hx_UA(), recorded in default_input_estimates), source-loop flow dV_b_f_lpm = 0.75 * hp_capacity / (rho c * 3 K) (3.58 L/min per kW), E_pmp = 75 W/ton * hp_capacity (21.3 W per kW), and a submerged coil H_b of 200 m or as long as the rated source-side heat needs at 50 W/m. A value the caller gives is used as given. UserWarning is raised for a caller’s coil above 80 W/m, for a laminar default flow, and for an upper tank set point whose condensing temperature is at or above the refrigerant’s critical temperature.

In every running result the suction superheat is at most the evaporator approach less dT_hx_min; on a compressor speed bound the tank heat exchanger is closed on the heat actually delivered (dT_ref_tank [K], tank_hx_residual [W]). In analyze_dynamic the cycle of a step is solved against the fluid the coil returns from that step’s source water (T_source_w_schedule) while it carries that step’s own extraction.

source_fluid names the liquid circulating in the coil (tmhp.source_fluid): "water" (default) or an antifreeze mixture such as "MPG-25%". The loop liquid is never colder than its operating limit, the freezing point plus 3 K (3 °C for water): a duty that would chill it further is reduced to the largest one that does not (capacity_binding == "source_fluid_freezing"), and when no duty does the compressor stays off with failure_reason == "source_fluid_freezing". Source water colder than about 6 °C at full duty therefore needs an antifreeze mixture in the coil.

Below the minimum capacity. analyze_steady reports a request below what the compressor delivers at rps_min as the mean of on/off cycling (capacity_clamped == "min", tmhp.cycling): Q_ref_tank [W] equals the request, runtime_fraction [-] is the share of the time the compressor runs, and the electrical input carries the EN 14825 degradation of a unit delivering to water – Cd_cycling is its coefficient Cc (0.9: while the compressor is off the unit draws a tenth of its running input; 1.0: nothing; a tested unit has Cc = 1 - P_off / P_on). Cd_cycling=None returns the continuous minimum-speed point, which delivers more than the request. Dynamic runs are not affected: there the tank thermostat switches the compressor, which runs at hp_capacity for runtime_fraction [-] of a step.

Charging at the condensing limit. condensing_limit_control says what a dynamic run does where the nameplate duty condenses on T_cond_max (the tank at T_cond_max less hp_capacity / K_tank_hx). "stop", the default, ends the charge there and caps the set points at it: a fixed-speed unit, or a controller that stops on its high-pressure protection. "reduce_duty" is an inverter unit: the compressor slows down and keeps charging at the largest duty inside the limit, K_tank_hx (T_reach - T), which is the duty analyze_steady reports there, down to the smallest duty it runs at continuously. The tank’s first-order approach to the limit is solved inside each step (tmhp.dynamic_context.resolve_step_operation(), which also says how far the result is independent of the step); rows carry reduced_duty_fraction [-]. That covers the source-water temperatures at which the condensing limit governs the whole stretch down to that duty, checked once per temperature with three cycles (tmhp.compressor_envelope.condensing_stretch()). Where another limit governs on it (the source water’s freezing limit), reduced-duty charging is withheld: the step is solved exactly as "stop" solves it, and reduced_duty_withheld names what withheld it. The set points are then capped where the smallest continuous duty meets the limit, evaluated with the source water at Ts (charge_limit_reference_C); each step applies the limit of its own source. analyze_steady is the same with either value.

Parameters:
  • ref (str)

  • V_cmp_ref (float | None)

  • UA_tank_hx (float | None)

  • UA_water (float | None)

  • T0 (float)

  • Ts (float)

  • T_tank_w_upper_bound (float)

  • T_tank_w_lower_bound (float)

  • T_mix_w_out (float)

  • T_tank_w_in (float)

  • hp_capacity (float)

  • dV_mix_w_out_max (float)

  • r0 (float)

  • H (float)

  • x_shell (float)

  • x_ins (float)

  • k_shell (float)

  • k_ins (float)

  • h_o (float)

  • N_1 (int | None)

  • N_2 (int | None)

  • B (float)

  • D_b (float)

  • H_b (float | None)

  • r_b (float)

  • R_b (float | None)

  • k_g (float)

  • k_p (float)

  • r_out (float)

  • r_in (float)

  • D_s (float)

  • dV_b_f_lpm (float | None)

  • k_s (float)

  • c_s (float)

  • rho_s (float)

  • E_pmp (float | None)

  • v_river (float)

  • dT_superheat (float)

  • dT_subcool (float)

  • tank_always_full (bool)

  • prevent_simultaneous_flow (bool)

  • tank_level_lower_bound (float)

  • tank_level_upper_bound (float)

  • dV_tank_w_in_refill (float)

  • hp_on_schedule (list[tuple[float, float]] | None)

  • min_on_time_s (float)

  • min_off_time_s (float)

  • stc (SolarThermalCollector | None)

  • t_max_s (float)

  • dt_s (float)

  • T_sur (float)

  • dT_hx_min (float)

  • PR_cycle_min (float)

  • PR_cycle_max (float)

  • rps_min (float)

  • rps_max (float | None)

  • compressor_scale (CompressorMapScale | None)

  • rps_rated (float | 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])

  • m_dot_ref_rated (float | None)

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

  • dT_w_rated (float)

  • m_dot_w_rated (float | None)

  • refrigerant (str | None)

  • V_disp_cmp (float | None)

  • UA_tank (float | None)

  • UA_cond_design (float | None)

  • UA_evap_design (float | None)

  • Cd_cycling (CyclingDegradation | float | None)

  • source_fluid (str | SourceFluid | None)

  • condensing_limit_control (str)

__init__(ref='R290', V_cmp_ref=None, UA_tank_hx=None, UA_water=None, T0=0.0, Ts=16.0, T_tank_w_upper_bound=65.0, T_tank_w_lower_bound=55.0, T_mix_w_out=40.0, T_tank_w_in=15.0, hp_capacity=8000.0, dV_mix_w_out_max=0.0001, r0=0.2, H=0.8, x_shell=0.01, x_ins=0.05, k_shell=25, k_ins=0.03, h_o=15, N_1=None, N_2=None, B=6.0, D_b=0, H_b=None, r_b=0.08, R_b=None, k_g=1.5, k_p=0.4, r_out=0.016, r_in=0.013, D_s=0.025, dV_b_f_lpm=None, k_s=2.0, c_s=800, rho_s=2000, E_pmp=None, v_river=0.5, dT_superheat=5.0, dT_subcool=5.0, tank_always_full=True, prevent_simultaneous_flow=False, tank_level_lower_bound=0.5, tank_level_upper_bound=1.0, dV_tank_w_in_refill=0.001, hp_on_schedule=None, min_on_time_s=0.0, min_off_time_s=0.0, stc=None, pv=None, uv=None, t_max_s=31536000, dt_s=3600, T_sur=20.0, dT_hx_min=0.5, PR_cycle_min=1.5, PR_cycle_max=11.0, rps_min=15.0, rps_max=None, *, compressor_scale=None, rps_rated=None, T_dis_max='auto', x_suction_min='auto', T_cond_max='auto', m_dot_ref_rated=None, rated_condition=None, dT_w_rated=5.0, m_dot_w_rated=None, refrigerant=None, V_disp_cmp=None, UA_tank=None, UA_cond_design=None, UA_evap_design=None, Cd_cycling=0.9, source_fluid=None, condensing_limit_control='stop')[source]
Parameters:
  • ref (str)

  • V_cmp_ref (float | None)

  • UA_tank_hx (float | None)

  • UA_water (float | None)

  • T0 (float)

  • Ts (float)

  • T_tank_w_upper_bound (float)

  • T_tank_w_lower_bound (float)

  • T_mix_w_out (float)

  • T_tank_w_in (float)

  • hp_capacity (float)

  • dV_mix_w_out_max (float)

  • r0 (float)

  • H (float)

  • x_shell (float)

  • x_ins (float)

  • k_shell (float)

  • k_ins (float)

  • h_o (float)

  • N_1 (int | None)

  • N_2 (int | None)

  • B (float)

  • D_b (float)

  • H_b (float | None)

  • r_b (float)

  • R_b (float | None)

  • k_g (float)

  • k_p (float)

  • r_out (float)

  • r_in (float)

  • D_s (float)

  • dV_b_f_lpm (float | None)

  • k_s (float)

  • c_s (float)

  • rho_s (float)

  • E_pmp (float | None)

  • v_river (float)

  • dT_superheat (float)

  • dT_subcool (float)

  • tank_always_full (bool)

  • prevent_simultaneous_flow (bool)

  • tank_level_lower_bound (float)

  • tank_level_upper_bound (float)

  • dV_tank_w_in_refill (float)

  • hp_on_schedule (list[tuple[float, float]] | None)

  • min_on_time_s (float)

  • min_off_time_s (float)

  • stc (SolarThermalCollector | None)

  • t_max_s (float)

  • dt_s (float)

  • T_sur (float)

  • dT_hx_min (float)

  • PR_cycle_min (float)

  • PR_cycle_max (float)

  • rps_min (float)

  • rps_max (float | None)

  • compressor_scale (CompressorMapScale | None)

  • rps_rated (float | 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])

  • m_dot_ref_rated (float | None)

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

  • dT_w_rated (float)

  • m_dot_w_rated (float | None)

  • refrigerant (str | None)

  • V_disp_cmp (float | None)

  • UA_tank (float | None)

  • UA_cond_design (float | None)

  • UA_evap_design (float | None)

  • Cd_cycling (CyclingDegradation | float | None)

  • source_fluid (str | SourceFluid | None)

  • condensing_limit_control (str)

cycling: CyclingDegradation | None

continuous at minimum speed).

Type:

EN 14825 cycling degradation of analyze_steady (None

mu_bhe_f_design: float

Loop-liquid viscosity of the source-side Reynolds number [Pa s], at the design liquid temperature (heating rating inlet, 10 °C; see tmhp.source_fluid).

charge_limit_reference_C: float

Source temperature the thermostat’s cap was evaluated at [degC].

property K_tank_hx: float

Heat the tank heat exchanger carries per kelvin of condensing temperature above the tank water [W/K].

C_w (1 - exp(-UA_tank_hx / C_w)) with C_w = m_dot_w_rated c_w (the plate condenser at its rated circulation flow, the tank water entering it), or UA_tank_hx without circulating water (m_dot_w_rated = 0).

analyze_dynamic(simulation_period_sec, dt_s, T_tank_w_init_C, dhw_usage_schedule, T0_schedule, I_DN_schedule=None, I_dH_schedule=None, T_sup_w_schedule=None, T_source_w_schedule=None, tank_level_init=1.0, result_save_csv_path=None, T_sur_schedule=None)[source]
Parameters:
  • simulation_period_sec (float)

  • dt_s (float)

  • T_tank_w_init_C (float)

  • tank_level_init (float)

Return type:

DataFrame

analyze_steady(T_tank_w, T_source, Q_ref_tank, T0=0.0, *, return_dict=True)[source]

Run a steady-state performance snapshot.

Evaluates the refrigerant cycle at a given operating point (T_tank_w, T_source, Q_ref_tank) without solving the tank energy balance or tracking dynamic flows.

Parameters:
  • T_tank_w (float) – Tank water temperature [°C] — treated as a given input.

  • T_source (float) – Source fluid temperature entering the heat pump [°C].

  • Q_ref_tank (float) – Target condenser heat rate [W].

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

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

Returns:

Cycle state plus diagnostic flags. Notable keys:

  • "converged" (bool) — True only when the evaporator approach closed the source-water heat exchanger and the cycle is an operating point.

  • "failure_reason" (str) — "none" for a solved point; otherwise "cycle_invalid" (no cycle, or a cycle that is not an operating point, see tmhp.dynamic_context.unphysical_cycle_detail()), "pr_above_max" (pressure-ratio ceiling), "discharge_temp_above_max" (every duty tried exceeds T_dis_max; a request above the limit that a smaller duty meets returns that duty with capacity_clamped="max" and capacity_binding="discharge_temperature", and one refused only at low speed while a larger duty runs is met by on/off cycling at the smallest duty that runs, capacity_clamped="min"), "condensing_temp_above_max" (the same for the condensing limit T_cond_max: the tank is too hot for any duty; a reduced duty reports capacity_binding="condensing_temperature"), "hx_not_converged" (the source-water heat exchanger cannot carry the duty at any approach), "optimizer_failed" or "source_fluid_freezing" (the loop liquid would run below its operating limit, 3 °C for water, at every duty; a request that a smaller duty keeps on the limit returns that duty with capacity_clamped="max" and capacity_binding="source_fluid_freezing"; see tmhp.source_fluid).

  • "failure_detail" (str, failures only) — which check rejected a "cycle_invalid" point.

  • "capacity_clamped", "capacity_binding", "Q_max [W]" and "Q_request [W]" are on every row (None or NaN where they do not apply; "Q_request [W]" is the Q_ref_tank asked for), and an off or failed row carries every key of a running one (NaN where it has no value): the keys do not depend on the point. "T_ref_cond_sat_v [°C]" is the dew point of the condensing pressure, above "T_ref_cond_sat_l [°C]" by the glide for a zeotropic blend.

  • "runtime_fraction [-]", "capacity_ratio [-]", "part_load_factor [-]", "Q_min [W]" and "E_cycling_loss [W]" — on every row. A request below the duty at rps_min (capacity_clamped == "min") is reported as the mean of on/off cycling: Q_ref_tank [W] equals the request (Q_min [W] is the continuous duty), heat and refrigerant rates are the running machine’s times capacity_ratio [-] – the compressor runs that share of the time, runtime_fraction [-] – and the electrical inputs (compressor and source pump) carry the EN 14825 degradation for a unit delivering to water (Cd_cycling: the running values times capacity_ratio / part_load_factor), so both COPs are the continuous ones times the part-load factor. Q_bhe [W] is the mean source-side heat less that pump power. Temperatures, pressures and speed are those of the running machine. With Cd_cycling=None the row is the continuous minimum-speed point and Q_ref_tank [W] exceeds the request.

Every reason other than "none" comes with an off-mode state: Q_ref_tank [W] = E_cmp [W] = 0 and NaN COP. No unsolved point is returned with cycle numbers.

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).

postprocess_exergy(df)[source]

Compute GSHPB-specific exergy variables.

Parameters:

df (DataFrame)

Return type:

DataFrame

operating_range(conditions=None, *, sink_offset_K=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.WATER_TO_WATER (W10/W35, W10/W55 at the nameplate duty) when omitted. A condition names the water leaving the heat pump; it is solved with the water entering the condenser below it by the temperature rise of the rating (tmhp.standard_conditions), the table’s T_tank_w [°C].

  • sink_offset_K (float | None) – The water enters this far below each condition’s leaving water [K], at the rated circulation flow, instead (0: the tank water at the named temperature, a stricter point). None: the EN 14511 rise.

Returns:

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

Return type:

DataFrame