flow "HeatPump" v1.0
# ---------- IDENTITY ----------
identity:
entity_id: "thermal_engineering.heat_pump"
entity_name: "Heat Pump"
entity_type: "ThermalEngineeringEntity"
category: "Thermal Engineering Entities"
language: "en-GB"
# ---------- AUTHORS ----------
authors:
- "Mark Anthony Higgins"
- "Sky — Recursive AI"
# ---------- SOURCE ----------
source:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/thermal-engineering-entities/heat-pump-ontology.html"
ontology_title: "Heat Pump Ontology"
source_revised: "2026-08-04"
generated: "2026-11-16"
provenance: "New Flow Algebra interpretation; page's embedded ontology code was not accessible in retrieved text."
citation_required: true
# ---------- PURPOSE ----------
purpose:
describe: "Represent a heat pump as a thermodynamic system that moves heat from a lower-temperature source to a higher-temperature sink using work input."
reason: "Enable entity classification, component mapping, operational reasoning, performance assessment and fault detection."
scope: ["vapour-compression heat pumps", "air-source heat pumps", "ground-source heat pumps", "water-source heat pumps", "reversible heating and cooling"]
# ---------- STATE_MODEL ----------
state_model:
S = (I, R, B, K)
I = {mode, source_temperature, sink_temperature, evaporating_pressure, condensing_pressure, refrigerant_mass_flow, compressor_power, delivered_heat, absorbed_heat, sensor_quality}
R = {thermodynamic_balance, refrigerant_cycle, component_dependencies, control_logic, diagnostic_rules}
B = {equipment_ratings, pressure_limits, temperature_limits, refrigerant_constraints, environmental_conditions, safety_interlocks}
K = {refrigerant_properties, component_specifications, installation_context, operating_history, verified_measurements}
operational_states: ["OFF", "STANDBY", "STARTING", "HEATING", "COOLING", "DEFROST", "FAULT", "LOCKOUT", "MAINTENANCE"]
transitions:
OFF -> STANDBY when power_available and controller_ready
STANDBY -> STARTING when demand_present and safety_permissive
STARTING -> HEATING when heating_selected and cycle_stable
STARTING -> COOLING when cooling_selected and reversible_equipment
HEATING -> DEFROST when frost_detected and defrost_required
DEFROST -> HEATING when defrost_complete and heating_demand
any_operational_state -> FAULT when monitored_anomaly
FAULT -> LOCKOUT when critical_safety_trip
FAULT -> STANDBY when fault_cleared and reset_authorised
# ---------- ENTITIES ----------
entities:
HeatPump: thermal_system
HeatSource: thermal_reservoir
HeatSink: thermal_reservoir
Refrigerant: working_fluid
Compressor: pressure_raising_component
Evaporator: heat_absorbing_exchanger
Condenser: heat_rejecting_exchanger
ExpansionDevice: pressure_reducing_component
ReversingValve: optional_mode_selection_component
Controller: supervisory_control_entity
Sensor: measurement_entity
SafetyInterlock: protective_control_entity
ElectricalSupply: work_input_entity
HeatDistribution: load_interface
relationships:
HeatPump -> contains -> Compressor
HeatPump -> contains -> Evaporator
HeatPump -> contains -> Condenser
HeatPump -> contains -> ExpansionDevice
HeatPump -> uses -> Refrigerant
HeatPump -> extracts_heat_from -> HeatSource
HeatPump -> delivers_heat_to -> HeatSink
Controller -> monitors -> Sensor
SafetyInterlock -> constrains -> Compressor
HeatDistribution -> receives_heat_from -> HeatPump
ReversingValve -> changes_mode_of -> HeatPump when installed
# ---------- PATHWAYS ----------
pathways:
heating_cycle:
1: "Evaporator absorbs heat from the source into the refrigerant."
2: "Compressor raises refrigerant pressure and temperature using work input."
3: "Condenser transfers refrigerant heat to the sink."
4: "Expansion device lowers refrigerant pressure before the evaporator."
5: "Cycle repeats subject to controls and protection limits."
heating_energy_balance:
Q_sink = Q_source + W_input - losses_external
note: "Define all quantities over the same time interval and system boundary."
heating_performance:
COP_heating = Q_sink / W_input when W_input > 0
note: "COP depends on the measurement boundary and operating conditions."
cooling_performance:
COP_cooling = Q_cooling / W_input when W_input > 0
thermal_demand:
demand -> validate_sensors -> validate_interlocks -> select_mode -> regulate_compressor -> assess_delivery
fault_diagnosis:
anomaly -> validate_measurement -> compare_limits -> identify_possible_causes -> protect_equipment -> request_review
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine:
E_t = expand(I_t, R)
V_t = filter(E_t, B)
x_star = argmax_x P(x | I_t, R, B, K)
I_next = update(I_t, x_star, observed_state)
repeat_until: "stable_state or safety_stop or insufficient_evidence"
recursion_guard:
max_depth: 5
reject: ["unsupported_component_assumptions", "unsafe_setpoint_changes", "unverified_fault_clearance"]
stop_on: ["critical_trip", "missing_safety_data", "inconsistent_measurements"]
# ---------- INFERENCE_RULES ----------
inference_rules:
R01: if delivered_heat > 0 and compressor_power > 0 then classify "active_heating"
R02: if Q_sink > 0 and W_input > 0 then calculate COP_heating
R03: if source_temperature_decreases and sink_temperature_constant then infer "heating_COP_may_decline" with context_required
R04: if sink_temperature_increases and source_temperature_constant then infer "compressor_lift_may_increase"
R05: if source_air_cold_and_humid and evaporator_surface_below_freezing then infer "frost_risk"
R06: if frost_risk and capacity_degraded then inspect "defrost_requirement"
R07: if refrigerant_pressure_outside_approved_limits then transition "protective_fault"
R08: if flow_below_minimum_required then infer "heat_exchange_risk" and apply_protection
R09: if sensor_data_invalid then reduce_confidence and prohibit_automatic_diagnosis
R10: if compressor_running and thermal_delivery_low then inspect ["load", "flow", "fouling", "refrigerant_circuit", "controls"]
R11: if critical_safety_interlock_open then inhibit_compressor_start
R12: if reversible_equipment and cooling_demand then select "cooling_cycle" subject_to permissives
# ---------- CONFIDENCE ----------
confidence:
direct_component_identification: 0.95
energy_balance_with_valid_measurements: 0.95
performance_inference_with_complete_boundary: 0.90
fault_hypothesis_without_service_measurements: 0.55
source_alignment: "General engineering model; detailed page ontology not independently extracted."
interpretation: "Values are illustrative rule weights, not calibrated probabilities."
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
"heat pump" <-> "thermodynamic heat-transfer machine"
"air-source heat pump" <-> "ASHP"
"ground-source heat pump" <-> "GSHP"
"coefficient of performance" <-> "COP"
"heat source" <-> "low-temperature reservoir in heating mode"
"heat sink" <-> "high-temperature reservoir in heating mode"
disambiguation:
"heat pump" != "resistance heater"
"heat pump" != "refrigerant compressor alone"
"COP" != "electrical efficiency percentage"
# ---------- SAFETY_CONSTRAINTS ----------
safety_constraints:
- "Do not override pressure, temperature, electrical or refrigerant safety protections."
- "Refrigerant work must follow applicable legislation and competent-person requirements."
- "Manufacturer ratings and site-specific design limits take precedence over generic inferences."
- "Automated recommendations must not authorise hazardous interventions."
- "Record uncertainty where measurements, refrigerant identity or system boundary are missing."
# ---------- FLOW_HASH ----------
flow_hash:
method: "SHA-256"
value: "UNSET"
policy: "Calculate digest over the final canonical UTF-8 content after publication; do not invent a hash."
# ---------- UPDATE_MODEL ----------
update_model:
version: "1.0"
update_trigger: ["ontology_revision", "component_model_change", "verified_new_evidence", "safety_rule_revision"]
preserve: ["source_attribution", "version_history", "safety_constraints", "semantic_identity"]
validation: ["syntax_review", "relationship_consistency", "energy_balance_check", "safety_review"]
# ---------- END FLOW ----------
Download Code
Copy to Clipboard