FLOW ALGEBRA v1.0 — RECIPROCATING COMPRESSOR ONTOLOGY
======================================================
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/pump-and-compressor-entities/reciprocating-compressor-ontology.html
SOURCE_REVISED: 2026-08-04
GENERATED: 2026-11-16
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/pump-and-compressor-entities/reciprocating-compressor-ontology.html
STATUS: Newly generated semantic interpretation; not a verbatim extraction of embedded source code.
PURPOSE:
Represent a reciprocating compressor as a positive-displacement gas compressor
whose piston-cylinder motion produces cyclic suction, compression and discharge.
Enable structural, operational, diagnostic and safety-aware inference.
ENTITY:
id: engineering.pump_and_compressor.reciprocating_compressor
label: Reciprocating Compressor
parent: Compressor
mechanism: PositiveDisplacement
medium: CompressibleFluid
ENTITIES:
Compressor; ReciprocatingCompressor; Cylinder; Piston; PistonRing;
ConnectingRod; Crankshaft; Crankcase; SuctionValve; DischargeValve;
ClearanceVolume; SweptVolume; CompressionChamber; Seal; Bearing;
LubricationSystem; CoolingSystem; Drive; Inlet; Outlet; GasStream;
PressureSensor; TemperatureSensor; ReliefDevice; Controller.
RELATIONSHIPS:
ReciprocatingCompressor IS_A Compressor
ReciprocatingCompressor USES PositiveDisplacement
ReciprocatingCompressor HAS_PART Cylinder, Piston, Crankshaft
Piston MOVES_WITHIN Cylinder
Crankshaft DRIVES Piston VIA ConnectingRod
SuctionValve CONNECTS Inlet TO CompressionChamber
DischargeValve CONNECTS CompressionChamber TO Outlet
CompressionChamber CONTAINS GasStream
CoolingSystem REMOVES_HEAT_FROM Compressor
ReliefDevice PROTECTS Compressor
STATE_MODEL:
S(t) = (I(t), R(t), B(t), K(t))
I = component identities, geometry, gas composition, sensor observations
R = component relationships and permitted process transitions
B = mechanical, thermodynamic, operating and safety boundaries
K = verified design knowledge, operating limits and diagnostic history
dynamic_state:
crank_angle: rad
piston_position: m
cylinder_pressure: Pa
cylinder_temperature: K
suction_pressure: Pa
discharge_pressure: Pa
shaft_speed: rev/s
mass_flow_rate: kg/s
valve_states: [open, closed, transitional, fault]
operating_phase: [idle, suction, compression, discharge, shutdown, fault]
PATHWAYS:
START -> CHECK_PRECONDITIONS -> INTAKE -> COMPRESSION -> DISCHARGE
-> CHECK_LIMITS -> NEXT_CYCLE | CONTROLLED_SHUTDOWN
FAILURE -> ISOLATE -> DEPRESSURISE_SAFELY -> INSPECT -> VERIFY -> RESTART
PHYSICAL_CONSTRAINTS:
V_swept = A_piston * stroke
V_clearance > 0 for conventional reciprocating compressor designs
compression_ratio = absolute_discharge_pressure / absolute_suction_pressure
compression_ratio >= 1 during normal compression service
mass_balance: d(m_chamber)/dt = mass_in_rate - mass_out_rate
idealised_cycle_capacity = V_swept * cycles_per_second * active_ends
actual_inlet_volume_rate = idealised_cycle_capacity * volumetric_efficiency
volumetric_efficiency depends on clearance, valve losses, gas conditions and leakage
ideal_gas_reference: p*V = m*R_specific*T (only where ideal-gas approximation is valid)
first_law: change_internal_energy = heat_in - work_out + net_enthalpy_flow_in
pressure, temperature, speed, rod load and vibration must remain within verified limits
relief protection and isolation must satisfy applicable design and safety requirements
INFERENCE_RULES:
IF piston_retracts AND chamber_pressure < inlet_pressure AND suction_valve_functional
THEN phase = suction
IF piston_advances AND valves_closed AND chamber_volume_decreases
THEN phase = compression
IF chamber_pressure > discharge_header_pressure AND discharge_valve_functional
THEN phase = discharge
IF discharge_temperature > approved_limit
THEN flag = high_temperature; action = controlled_protective_response
IF discharge_pressure > approved_limit
THEN flag = overpressure; action = initiate_protection
IF measured_flow < expected_flow AND speed_stable
THEN investigate = [valve_leakage, ring_wear, inlet_restriction, clearance, instrumentation]
IF abnormal_vibration OR lubrication_failure
THEN flag = mechanical_fault; action = protective_shutdown_as_required
IF safety_device_unverified
THEN readiness = not_confirmed
MINI_RECURSION_ENGINE:
E(t) = expand(I(t), R(t))
V(t) = {x in E(t) | satisfies(x, B(t))}
candidate(t) = argmax_x P(x | I(t), R(t), B(t), K(t))
I(t+1) = update(I(t), candidate(t), observations(t+1))
stop_when: no_new_supported_inference OR safety_boundary_reached OR iteration_limit
uncertainty: retain unresolved alternatives; never promote hypotheses to facts
SEMANTIC_EQUIVALENCE:
reciprocating_compressor ~= piston_compressor [context_dependent]
reciprocating_compressor IS_NOT_EQUIVALENT_TO centrifugal_compressor
single_acting_compressor SUBTYPE_OF reciprocating_compressor
double_acting_compressor SUBTYPE_OF reciprocating_compressor
multi_stage_reciprocating_compressor SUBTYPE_OF reciprocating_compressor
VALIDATION:
require component_identity and pressure_units and temperature_units
require suction_pressure > 0 absolute
require discharge_pressure > 0 absolute
require swept_volume > 0 and speed >= 0
require rated_limits supplied by authoritative equipment data
reject unverified claims of safe operation
distinguish measured, calculated, assumed and inferred values
log source, timestamp, rule and confidence for each inference
CONFIDENCE:
observed: direct instrument reading with calibration status
calculated: equation with explicit assumptions and input provenance
inferred: rule-supported conclusion with uncertainty attached
unknown: insufficient evidence
UPDATE_MODEL:
version: 1.0
trigger: design_change | new_measurement | inspection | fault | source_revision
preserve_history: true
require_review_for_safety_critical_changes: true
FLOW_HASH:
method: SHA-256 over canonicalised final content when deployed
value: NOT_COMPUTED
NOTE:
This ontology supports semantic classification and reasoning, not equipment
design certification, operating procedures or independent safety approval.
Download Code
Copy to Clipboard