flow "RefrigerationSystem" v1.0
# ---------- IDENTITY ----------
identity.id: "engineering.thermal.refrigeration_system"
identity.name: "Refrigeration System"
identity.domain: "Thermal Engineering Entities"
identity.type: "engineered_thermal_system"
identity.language: "en-GB"
# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"
authors.citation_required: true
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/thermal-engineering-entities/refrigeration-system-ontology.html"
source.title: "Refrigeration System Ontology"
source.revised: "2026-08-04"
source.representation: "Newly constructed Flow Algebra interpretation; not verbatim source code"
# ---------- PURPOSE ----------
purpose: "Represent the components, energy transfers, operating states, controls, diagnostics and safety boundaries of a refrigeration system."
# ---------- STATE_MODEL ----------
state.variables:
- operating_mode: enum[off, standby, cooling, defrost, fault, locked_out]
- compressor_state: enum[off, running, tripped]
- evaporator_temperature: quantity[kelvin]
- condenser_temperature: quantity[kelvin]
- suction_pressure: quantity[pascal]
- discharge_pressure: quantity[pascal]
- refrigerant_mass_flow: quantity[kg_per_second]
- cooling_demand: boolean
- refrigerant_charge_status: enum[unknown, adequate, low, excessive]
- airflow_status: enum[normal, restricted, failed]
- protective_interlock: boolean
state.initial: operating_mode = off
state.invariant: "Operating pressures and temperatures remain within manufacturer-approved limits."
# ---------- ENTITIES ----------
entities:
refrigeration_system: thermal_system
compressor: pressure_raising_component
condenser: heat_rejection_component
expansion_device: pressure_reducing_metering_component
evaporator: heat_absorption_component
refrigerant: working_fluid
thermostat: demand_sensor
pressure_sensor: protective_measurement_device
controller: control_entity
cooled_space: thermal_load
ambient_environment: heat_sink
service_technician: authorised_maintenance_actor
# ---------- RELATIONSHIPS ----------
relations:
- refrigeration_system contains compressor
- refrigeration_system contains condenser
- refrigeration_system contains expansion_device
- refrigeration_system contains evaporator
- compressor discharges_to condenser
- condenser supplies_liquid_to expansion_device
- expansion_device feeds evaporator
- evaporator returns_vapour_to compressor
- evaporator absorbs_heat_from cooled_space
- condenser rejects_heat_to ambient_environment
- controller receives_signal_from thermostat
- controller monitors pressure_sensor
# ---------- PATHWAYS ----------
pathway "CoolingDemand":
when cooling_demand = true
and protective_interlock = false
and operating_mode in [off, standby]
then operating_mode := cooling
and compressor_state := running
pathway "VapourCompressionCycle":
when operating_mode = cooling
then compressor raises refrigerant_pressure
and condenser rejects_heat
and refrigerant condenses_where_conditions_permit
and expansion_device meters_refrigerant
and evaporator absorbs_heat
and refrigerant returns_to compressor
pathway "DemandSatisfied":
when cooling_demand = false
and operating_mode = cooling
then controller requests_compressor_stop
and operating_mode := standby
pathway "ProtectionTrip":
when protective_interlock = true
then compressor_state := tripped
and operating_mode := locked_out
and controller records_fault
pathway "Defrost":
when evaporator_frost_impairs_performance
and defrost_supported = true
then operating_mode := defrost
and controller executes_manufacturer_approved_defrost_sequence
# ---------- THERMODYNAMIC_RELATIONSHIPS ----------
thermal.first_law: "Q_condenser = Q_evaporator + W_compressor (steady state; neglecting other losses and gains)"
thermal.cooling_capacity: "Q_evaporator = m_dot_refrigerant * (h_evaporator_out - h_evaporator_in)"
thermal.compressor_power: "W_compressor = m_dot_refrigerant * (h_compressor_out - h_compressor_in)"
thermal.cop_cooling: "COP_R = Q_evaporator / W_input, for W_input > 0"
thermal.note: "Use consistent units, defined control volumes and measured or validated refrigerant properties."
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine.goal: "Maintain cooling performance while preserving equipment safety."
mini_recursion_engine.observe: [cooling_demand, suction_pressure, discharge_pressure, evaporator_temperature, condenser_temperature, airflow_status]
mini_recursion_engine.evaluate: [thermal_performance, component_state, operating_limits, sensor_consistency]
mini_recursion_engine.recurse:
- observe current_state
- compare current_state with validated_operating_envelope
- infer candidate_causes_for_deviation
- select permitted_control_action
- verify response_and_log_outcome
mini_recursion_engine.stop_when: "Demand satisfied, protection active, or no safe authorised action remains."
# ---------- INFERENCE_RULES ----------
rule "RestrictedCondenserAirflow":
if airflow_status = restricted and condenser_temperature rises
then infer reduced_heat_rejection as possible_cause
confidence: conditional
rule "InsufficientCooling":
if cooling_demand = true and cooled_space_temperature_not_decreasing
then infer performance_fault_candidate
investigate: [airflow, refrigerant_circuit, controls, load, sensors]
rule "HighDischargePressure":
if discharge_pressure exceeds approved_limit
then trigger protective_interlock
action: "Stop and investigate; do not bypass protections."
rule "LowSuctionPressure":
if suction_pressure below approved_limit
then infer possible_restriction_or_low_load_or_charge_issue
action: "Require qualified diagnosis; pressure alone does not establish charge condition."
rule "SensorConflict":
if independent_measurements inconsistent
then reduce diagnostic_confidence
action: "Check sensor calibration and measurement context."
# ---------- SAFETY_CONSTRAINTS ----------
safety:
- "Never bypass high-pressure, low-pressure, temperature or electrical protective devices."
- "Refrigerant handling, recovery, charging and leak repair require suitably qualified personnel and applicable legal compliance."
- "Assess refrigerant-specific toxicity, flammability, asphyxiation and environmental hazards."
- "Isolate energy sources and follow manufacturer instructions before servicing."
- "Do not infer safe set-points or refrigerant compatibility without equipment-specific documentation."
# ---------- CONFIDENCE ----------
confidence.entity_classification: high
confidence.generic_cycle_model: high
confidence.fault_diagnosis: conditional_on_valid_measurements
confidence.equipment_specific_parameters: unknown_until_verified
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
- "refrigeration system" ~= "cooling system" where vapour_compression_context_applies
- "evaporator" ~= "heat absorption heat exchanger" in cooling_cycle_context
- "condenser" ~= "heat rejection heat exchanger" in cooling_cycle_context
- "COP_R" ~= "refrigeration coefficient of performance"
semantic_non_equivalence:
- "refrigeration system" != "air conditioning system" in every context
- "low suction pressure" != "confirmed low refrigerant charge"
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "Canonical UTF-8 representation excluding computed hash value"
flow_hash.value: "compute_on_publication"
# ---------- UPDATE_MODEL ----------
update_model.version: "1.0"
update_model.review_triggers: [ontology_revision, refrigerant_standard_change, component_model_change, validated_new_evidence]
update_model.policy: "Retain provenance, increment version and revalidate inferences following changes."
# ---------- END FLOW ----------
Download Code
Copy to Clipboard