flow "ThermalReservoir" v1.0
# ---------- IDENTITY ----------
identity.id: "engineering.thermal.thermal_reservoir"
identity.label: "Thermal Reservoir"
identity.domain: "Thermal Engineering Entities"
identity.type: "Thermodynamic Boundary Entity"
identity.language: "en-GB"
# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"
authors.project: "Kireth Research Semantic Library"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/thermal-engineering-entities/thermal-reservoir-ontology.html"
source.title: "Thermal Reservoir Ontology"
source.page_revised: "2026-08-04"
source.derivation: "New Flow Algebra interpretation of the named ontology; not a verbatim extraction of hidden page code"
# ---------- PURPOSE ----------
purpose.primary: "Represent a thermal reservoir as a system exchanging heat while maintaining approximately constant temperature over the modelled interaction."
purpose.secondary: "Support energy accounting, temperature-gradient reasoning, boundary classification and safety evaluation."
purpose.scope: ["ideal reservoir", "finite-capacity approximation", "heat-source reservoir", "heat-sink reservoir"]
purpose.exclusions: ["unqualified perpetual energy supply", "assumed constant temperature for finite bodies", "automatic validation of physical equipment"]
# ---------- STATE_MODEL ----------
state.symbol: "S_t"
state.definition: "S_t = (I_t, R_t, B_t, K_t)"
state.I_t: "Observed temperature, heat-transfer rate, duration, environment and energy exchange"
state.R_t: "Thermodynamic relations and reservoir interaction rules"
state.B_t: "System boundary, operating envelope, time horizon and assumptions"
state.K_t: "Known material properties, measurement provenance and uncertainty"
state.variables:
temperature_K: "Absolute reservoir temperature; Kelvin"
heat_into_reservoir_J: "Signed heat transfer into reservoir; joules"
heat_rate_into_reservoir_W: "Signed heat transfer rate into reservoir; watts"
thermal_capacity_J_per_K: "Finite-body effective heat capacity; joules per kelvin"
interaction_duration_s: "Observation interval; seconds"
boundary_mode: ["ideal_isothermal", "finite_capacity", "controlled_isothermal", "unknown"]
operating_state: ["available", "exchanging_heat", "outside_envelope", "isolated", "unknown"]
state.sign_convention: "Heat entering the reservoir is positive; heat leaving is negative."
state.initial: "unknown"
state.transition: "S_(t+1) = update(S_t, verified_observations, accepted_inferences)"
# ---------- ENTITIES ----------
entity.ThermalReservoir:
isa: "ThermalEngineeringEntity"
role: "Heat-exchange boundary with approximately stable temperature over a defined interval"
properties: ["temperature", "boundary_mode", "capacity_assumption", "heat_exchange", "operating_limits"]
entity.HotReservoir:
isa: "ThermalReservoir"
role: "Higher-temperature reservoir relative to a coupled system"
entity.ColdReservoir:
isa: "ThermalReservoir"
role: "Lower-temperature reservoir relative to a coupled system"
entity.ThermalSystem:
role: "System exchanging heat with reservoir"
entity.ThermalBoundary:
role: "Defined interface for energy transfer"
entity.HeatTransferPath:
role: "Conduction, convection, radiation or combined transfer"
entity.TemperatureSensor:
role: "Measurement source for temperature observations"
entity.ThermalController:
role: "Optional active regulation of reservoir temperature"
# ---------- RELATIONSHIPS ----------
relation.thermal_reservoir -> is_a -> thermal_engineering_entity
relation.hot_reservoir -> is_a -> thermal_reservoir
relation.cold_reservoir -> is_a -> thermal_reservoir
relation.thermal_reservoir -> exchanges_heat_with -> thermal_system
relation.thermal_reservoir -> bounded_by -> thermal_boundary
relation.thermal_boundary -> supports -> heat_transfer_path
relation.temperature_sensor -> measures -> thermal_reservoir.temperature
relation.thermal_controller -> may_regulate -> thermal_reservoir.temperature
relation.thermal_reservoir -> may_behave_as -> heat_source
relation.thermal_reservoir -> may_behave_as -> heat_sink
# ---------- PATHWAYS ----------
pathway "IdentifyReservoir":
input: ["candidate_body", "system_boundary", "time_horizon", "temperature_observations"]
require: "candidate_body is defined and time_horizon > 0"
evaluate: "temperature variation relative to declared tolerance over interaction"
if: "variation <= tolerance and assumptions supported"
then: "classify candidate as approximate thermal reservoir for this interval"
else: "classify as finite thermal body or unresolved candidate"
output: ["classification", "validity_interval", "assumptions", "confidence"]
pathway "HeatExchange":
input: ["reservoir_temperature_K", "system_temperature_K", "coupling", "time_interval"]
require: "temperatures > 0 K and physical coupling exists"
evaluate: "temperature difference, transfer mechanism and sign convention"
if: "reservoir_temperature_K > system_temperature_K"
then: "passive net heat tends from reservoir to system, subject to coupling and other work inputs"
else_if: "reservoir_temperature_K < system_temperature_K"
then: "passive net heat tends from system to reservoir, subject to coupling and other work inputs"
else: "no temperature-driven net transfer is implied by this temperature difference alone"
output: ["heat_flow_direction", "rate_if_model_available", "uncertainty"]
pathway "EnergyBalance":
input: ["heat_rate_into_reservoir_W", "interaction_duration_s", "capacity_model"]
compute: "Q_into = integral(heat_rate_into_reservoir_W, time)"
if: "boundary_mode == ideal_isothermal"
then: "temperature remains fixed by idealisation; energy exchange still counted"
else_if: "boundary_mode == finite_capacity and thermal_capacity_J_per_K > 0"
then: "estimate delta_T = Q_into / thermal_capacity_J_per_K when capacity is approximately constant and no phase change occurs"
else: "request further capacity and boundary information"
output: ["energy_balance", "temperature_change_estimate", "assumption_status"]
pathway "OperatingEnvelope":
input: ["measured_temperature", "temperature_limits", "heat_transfer_limits", "sensor_status"]
if: "sensor_status != verified"
then: "flag unverified measurement and withhold definitive safety classification"
else_if: "measured_temperature outside temperature_limits"
then: "set operating_state = outside_envelope; request authorised engineering review"
else: "set operating_state = available within assessed limits"
output: ["operating_state", "required_review", "evidence"]
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine.goal: "Refine reservoir classification and heat-exchange inference as evidence arrives"
mini_recursion_engine.expand: "E_t = expand(I_t, R_t)"
mini_recursion_engine.filter: "V_t = {x in E_t | consistent(x, B_t, K_t)}"
mini_recursion_engine.select: "x_star = argmax_x P(x | I_t, R_t, B_t, K_t), x in V_t"
mini_recursion_engine.update: "I_(t+1) = I_t union verified(x_star)"
mini_recursion_engine.stop_when: ["stable_classification", "insufficient_evidence", "iteration_limit", "safety_boundary_reached"]
mini_recursion_engine.max_iterations: 8
mini_recursion_engine.guard: "Never convert a model assumption into a measured fact."
# ---------- INFERENCE_RULES ----------
rule R01:
when: "body temperature is approximately constant across a specified heat exchange interval"
infer: "reservoir approximation may be valid within that interval"
confidence: "conditional"
rule R02:
when: "reservoir temperature exceeds coupled system temperature and transfer is passive"
infer: "net spontaneous heat transfer tends towards the system"
confidence: "high under stated conditions"
rule R03:
when: "reservoir temperature is below coupled system temperature and transfer is passive"
infer: "net spontaneous heat transfer tends towards the reservoir"
confidence: "high under stated conditions"
rule R04:
when: "finite thermal capacity and nonzero net heat exchange are established"
infer: "temperature may change; ideal isothermal assumption requires justification"
confidence: "high"
rule R05:
when: "active control maintains temperature"
infer: "account for controller energy and external heat exchange in extended system boundary"
confidence: "high"
rule R06:
when: "thermal measurements or limits are absent"
infer: "operating suitability is unresolved"
confidence: "high"
rule R07:
when: "reservoir exchanges heat with an engine or refrigerator"
infer: "evaluate full cycle energy balance and second-law constraints"
confidence: "high"
# ---------- CONFIDENCE ----------
confidence.scale: "0.0 to 1.0"
confidence.evidence_priority: ["calibrated_measurement", "validated_model", "documented_specification", "engineering_assumption"]
confidence.policy: "Assign numerical confidence only with a documented calibration or scoring method."
confidence.unknown: "unscored"
confidence.degrade_when: ["unverified_sensor", "unknown_capacity", "undefined_boundary", "out_of_range_extrapolation"]
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence.canonical: "thermal reservoir"
semantic_equivalence.contextual: ["heat reservoir", "constant-temperature reservoir", "thermal bath", "temperature reservoir"]
semantic_equivalence.related_not_identical: ["heat source", "heat sink", "thermal storage", "heat exchanger", "finite thermal mass"]
semantic_equivalence.disambiguation: "Reservoir denotes approximately constant-temperature boundary behaviour; heat storage may undergo substantial temperature change."
# ---------- SAFETY_AND_LIMITATIONS ----------
safety.rule_1: "Use absolute temperature in thermodynamic ratios and entropy calculations."
safety.rule_2: "Do not infer safe operation from an idealised thermal model."
safety.rule_3: "Check pressure, material, temperature, phase-change and thermal-expansion constraints where relevant."
safety.rule_4: "Flag missing evidence rather than inventing equipment ratings."
limitations.model: "Qualitative rules do not replace thermal design calculations or site-specific safety assessment."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "Canonical UTF-8 file content excluding a mutable digest value"
flow_hash.value: "not_computed"
flow_hash.note: "Compute on publication; do not claim an unverified hash."
# ---------- UPDATE_MODEL ----------
update_model.version: "1.0"
update_model.created: "2026-11-16"
update_model.trigger: ["source_ontology_revision", "new_verified_measurement", "model_correction", "terminology_update"]
update_model.policy: "Retain provenance, review assumptions, re-evaluate dependent inferences, increment version and regenerate hash."
update_model.citation: "Kireth Research — Thermal Reservoir Ontology; Mark Anthony Higgins and Sky — Recursive AI."
end flow
Download Code
Copy to Clipboard