flow "Boiler" v1.0
# ---------- IDENTITY ----------
identity.id: "thermal_engineering.boiler"
identity.label: "Boiler"
identity.domain: "Thermal Engineering Entities"
identity.type: "ThermalEnergyConversionSystem"
identity.locale: "en-GB"
# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"
authors.licence: "Kireth Research Open Research Licence; citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/thermal-engineering-entities/boiler-ontology.html"
source.title: "Boiler Ontology"
source.revised: "2026-08-04"
source.derivation: "New Flow Algebra interpretation of the named ontology; not verbatim page code"
# ---------- PURPOSE ----------
purpose: "Represent boiler components, thermal conversion, operating states, control, fault detection and safety constraints as a semantic reasoning flow."
# ---------- STATE_MODEL ----------
state.variables:
- operating_mode: [offline, standby, precheck, ignition, heating, modulating, shutdown, fault_lockout]
- heat_input_rate_kw: number?
- useful_heat_output_kw: number?
- fuel_flow_rate: number?
- water_inlet_temperature_c: number?
- water_outlet_temperature_c: number?
- water_pressure_bar: number?
- steam_pressure_bar: number?
- water_level: number?
- flue_gas_temperature_c: number?
- flow_rate_kg_s: number?
- demand_signal: number?
- flame_proven: boolean?
- circulation_proven: boolean?
- high_limit_trip: boolean
- pressure_limit_trip: boolean
- low_water_trip: boolean
- sensor_valid: boolean
- fault_active: boolean
state.initial:
operating_mode: offline
high_limit_trip: false
pressure_limit_trip: false
low_water_trip: false
fault_active: false
state.constraints:
- "Operating limits must come from the actual boiler specification and applicable regulations."
- "Unknown safety sensor values must not be interpreted as safe readings."
- "A safety trip overrides ordinary heating demand."
# ---------- ENTITIES ----------
entities:
Boiler: "System that transfers energy to a working fluid for heating or steam generation."
HeatSource: "Fuel burner, electrical heater or other energy input."
Burner: "Controlled combustion subsystem where applicable."
HeatExchanger: "Surface or assembly transferring heat to the working fluid."
WorkingFluid: "Water, steam or another specified thermal medium."
CirculationPump: "Moves fluid through a hydronic boiler circuit where fitted."
FeedwaterSystem: "Supplies water to a steam boiler where fitted."
TemperatureSensor: "Measures thermal state."
PressureSensor: "Measures circuit or vessel pressure."
WaterLevelSensor: "Detects water level where required."
Controller: "Coordinates demand, modulation and protective logic."
SafetyInterlock: "Prevents or terminates unsafe operation."
ReliefDevice: "Independent overpressure protection as required by design."
FlueSystem: "Routes combustion products where combustion is used."
HeatDemand: "Requested thermal output from a connected load."
relations:
- Boiler contains HeatSource
- Boiler contains HeatExchanger
- Boiler heats WorkingFluid
- HeatSource transfers_energy_to HeatExchanger
- HeatExchanger transfers_energy_to WorkingFluid
- TemperatureSensor reports_to Controller
- PressureSensor reports_to Controller
- WaterLevelSensor reports_to SafetyInterlock
- SafetyInterlock overrides Controller
- Controller responds_to HeatDemand
- ReliefDevice protects Boiler
- Burner exhausts_via FlueSystem
# ---------- PATHWAYS ----------
pathway "RequestHeat":
when operating_mode in [standby, offline] and demand_signal > 0
require sensor_valid == true
require fault_active == false
require high_limit_trip == false
require pressure_limit_trip == false
require low_water_trip == false
then operating_mode := precheck
pathway "AuthoriseHeating":
when operating_mode == precheck
require safety_interlocks_satisfied == true
require required_flow_or_water_level_proven == true
then operating_mode := ignition if combustion_boiler else heating
pathway "ProveFlame":
when operating_mode == ignition and flame_proven == true
then operating_mode := heating
pathway "ModulateOutput":
when operating_mode in [heating, modulating]
require fault_active == false
then heat_input_rate_kw := bounded_control(demand_signal, rated_input_limits)
then operating_mode := modulating
pathway "DemandSatisfied":
when demand_signal <= 0 and operating_mode in [heating, modulating]
then operating_mode := shutdown
then heat_input_rate_kw := 0
pathway "ProtectiveShutdown":
when high_limit_trip or pressure_limit_trip or low_water_trip or fault_active or sensor_valid == false
then heat_input_rate_kw := 0
then operating_mode := fault_lockout
then emit "BOILER_SAFETY_EVENT"
pathway "ReturnToStandby":
when operating_mode == shutdown and shutdown_sequence_complete == true
then operating_mode := standby
# ---------- THERMAL RELATIONSHIPS ----------
thermal.sensible_heat:
expression: "Q_dot = m_dot * cp * (T_out - T_in)"
applicability: "Single-phase flow, with consistent units and suitable cp approximation."
thermal.efficiency:
expression: "eta = useful_heat_output / supplied_energy_input"
applicability: "Defined over the same measurement period and energy basis."
thermal.energy_balance:
expression: "energy_in = useful_energy_out + losses + change_in_stored_energy"
applicability: "Control-volume energy balance; account for work and mass enthalpy where relevant."
thermal.steam_generation:
expression: "Q_dot_steam = m_dot * (h_out - h_in)"
applicability: "Steam/water enthalpy model; requires validated state and property data."
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine.goal: "Classify operating condition and select safe reasoning pathway."
mini_recursion_engine.max_depth: 5
mini_recursion_engine.steps:
- "Observe validated sensor readings and equipment configuration."
- "Resolve boiler type: hydronic, steam, combustion or electric."
- "Check protective constraints before heat-demand rules."
- "Infer active pathway and update state only if preconditions hold."
- "Compare predicted thermal behaviour with observed output."
- "If disagreement persists, flag uncertainty and request inspection."
mini_recursion_engine.stop_when:
- "Safety interlock active"
- "Input evidence insufficient"
- "State converged"
- "Maximum depth reached"
# ---------- INFERENCE_RULES ----------
rule "LowHeatTransfer":
if demand_signal > 0 and heat_input_rate_kw > 0 and useful_heat_output_kw << expected_output
then infer "Possible fouling, circulation deficiency, control limitation or measurement error"
confidence: conditional
rule "PossibleOvertemperature":
if measured_temperature > manufacturer_high_limit
then infer "Overtemperature condition"
then invoke "ProtectiveShutdown"
confidence: high_if_sensor_valid
rule "PossibleOverpressure":
if measured_pressure > manufacturer_pressure_limit
then infer "Overpressure condition"
then invoke "ProtectiveShutdown"
confidence: high_if_sensor_valid
rule "FlameFailure":
if combustion_boiler and operating_mode == ignition and flame_proven == false after permitted_trial
then infer "Ignition or flame-proving failure"
then invoke "ProtectiveShutdown"
confidence: high_if_flame_detection_valid
rule "InsufficientEvidence":
if sensor_valid == false or required_measurements_missing
then infer "Operational state uncertain"
then inhibit "AuthoriseHeating"
confidence: high
# ---------- CONFIDENCE ----------
confidence.policy: "Confidence is evidence-dependent, not a guarantee of physical safety."
confidence.high: "Independent validated measurements and applicable device limits agree."
confidence.medium: "Measurements support the conclusion but relevant context is incomplete."
confidence.low: "Indirect indicators, conflicting data or unverified assumptions."
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
- "boiler" ~= "thermal fluid heating generator"
- "hydronic boiler" ~= "hot-water heating boiler"
- "steam boiler" ~= "steam-generating pressure system"
- "boiler heat input" ~= "energy supplied to boiler"
- "boiler lockout" ~= "protective shutdown state requiring authorised reset"
semantic_distinctions:
- "A heat exchanger is a component; a boiler is the wider heat-generating system."
- "A hot-water boiler and a steam boiler have different operating and safety requirements."
- "A relief device does not replace primary control and safety interlocks."
# ---------- SAFETY ----------
safety:
- "Never bypass safety interlocks or pressure relief devices."
- "Do not infer safe pressure or temperature thresholds without equipment-specific data."
- "Combustion, pressure-vessel and electrical work requires competent authorised personnel."
- "This ontology is descriptive reasoning, not a certified boiler control programme."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "sha256"
flow_hash.scope: "canonicalised_flow_content"
flow_hash.value: "UNCOMPUTED_CANONICAL_HASH"
# ---------- UPDATE_MODEL ----------
update_model.version: "1.0"
update_model.date: "2026-11-16"
update_model.triggers:
- "Source ontology revision"
- "New validated boiler type or component relationship"
- "Changed applicable engineering or safety standard"
- "Correction of a thermal or inference rule"
update_model.validation:
- "Review semantic consistency"
- "Check unit dimensions and operating-state transitions"
- "Check protective shutdown priority"
- "Regenerate canonical hash after final approval"
end flow
Download Code
Copy to Clipboard