FLOW ALGEBRA — HYDRAULIC VALVE ONTOLOGY
Version: 1.1
Date: 2026-11-16
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/hydraulic-entities/hydraulic-valve-ontology.html
Citation: Kireth Research, Hydraulic Valve Ontology (original page revised 04 August 2026)
Status: Newly constructed interpretation; not a verbatim extraction of embedded source code.
flow "HydraulicValveOntology" v1.1
# ---------- PURPOSE ----------
PURPOSE := classify and reason about hydraulic valves that direct, isolate,
regulate or protect pressurised hydraulic-fluid circuits.
# ---------- ENTITY ----------
ENTITY HydraulicValve <: HydraulicComponent
ENTITY HydraulicPort <: FluidInterface
ENTITY ValveBody <: PressureContainingComponent
ENTITY ValveElement <: MovingComponent
ENTITY ValveActuator <: ControlComponent
ENTITY HydraulicCircuit <: FluidNetwork
ENTITY HydraulicFluid <: WorkingFluid
ENTITY PressureSensor <: MeasurementDevice
RELATIONS:
HydraulicValve --contains--> ValveBody
HydraulicValve --contains--> ValveElement
HydraulicValve --has_port--> HydraulicPort
HydraulicValve --may_use--> ValveActuator
HydraulicValve --installed_in--> HydraulicCircuit
HydraulicValve --controls--> HydraulicFluid
PressureSensor --observes--> HydraulicCircuit
SUBTYPES:
DirectionalControlValve
PressureControlValve
FlowControlValve
CheckValve
ReliefValve
ProportionalValve
ServoValve
# ---------- STATE MODEL ----------
STATE S(t) := (position, command, port_pressures, port_flows,
temperature, leakage, health, fault)
position ∈ {closed, open, intermediate, switching, unknown}
health ∈ {nominal, degraded, failed, unknown}
fault ∈ {none, sticking, internal_leakage, external_leakage,
actuation_failure, overpressure, contamination, unknown}
TRANSITION:
S(t+1) = UPDATE(S(t), command(t), feedback(t), constraints)
position(t+1) = ACTUATE(position(t), command(t), actuator_state(t))
port_flows(t+1) = ROUTE(position(t+1), port_pressures(t+1), fluid_properties)
# ---------- INPUTS AND OUTPUTS ----------
INPUTS := {command, inlet_pressure, outlet_pressure, fluid_temperature,
viscosity, valve_configuration, actuator_power, feedback}
OUTPUTS := {valve_position, flow_direction, volumetric_flow,
pressure_drop, diagnostic_state, confidence}
# ---------- PATHWAYS ----------
PATHWAY DirectionControl:
command -> actuator -> valve_element_position
-> port_connectivity -> flow_direction
PATHWAY PressureControl:
sensed_pressure -> compare_with_setpoint -> control_action
-> valve_opening -> pressure_response
PATHWAY FlowControl:
target_flow -> opening_adjustment -> hydraulic_resistance
-> measured_flow -> correction
PATHWAY Protection:
pressure_exceeds_limit -> protective_valve_response
-> relief_path -> pressure_reduction
# ---------- PHYSICAL CONSTRAINTS ----------
CONSTRAINT MassConservation:
Σ(mass_flow_into_valve) - Σ(mass_flow_out_of_valve)
= d(stored_mass)/dt
# For a steady, non-accumulating valve: Σ(mass_flow_in) = Σ(mass_flow_out).
CONSTRAINT PressureDifference:
Δp = p_upstream - p_downstream
# Pressure drop depends on flow, valve geometry, fluid and opening.
CONSTRAINT HydraulicPower:
P_hydraulic = Δp × Q
# Q is volumetric flow; SI units give watts.
CONSTRAINT OperatingEnvelope:
pressure ≤ rated_pressure
temperature ∈ approved_temperature_range
fluid_compatibility = verified
# Ratings must be supplied from the actual valve specification.
CONSTRAINT Actuation:
commanded_transition_requires available_actuation_energy
feedback_position may differ from commanded_position
# ---------- INFERENCE RULES ----------
RULE R1:
IF valve_type = CheckValve AND reverse_pressure_gradient = true
THEN infer expected_state = closed
UNLESS reverse_leakage_or_fault_is_present
RULE R2:
IF commanded_open = true AND measured_flow ≈ 0
THEN consider {blocked_path, insufficient_pressure_difference,
stuck_valve, actuator_failure, sensor_fault}
AND request further evidence
RULE R3:
IF actual_pressure > approved_pressure_limit
THEN flag overpressure_risk
AND require protective_action_assessment
RULE R4:
IF commanded_position != measured_position
THEN infer position_tracking_error
AND inspect actuator, sensor and mechanical condition
RULE R5:
IF flow_rate_decreases AND pressure_drop_increases
THEN consider restriction_or_contamination
# Not a unique diagnosis without operating-context evidence.
# ---------- MINI RECURSION ENGINE ----------
RECURSE Observe -> Classify -> Evaluate -> Infer -> Validate -> Update
STEP Observe:
acquire pressure, flow, temperature, command and position observations
STEP Classify:
identify valve subtype, operating mode and circuit topology
STEP Evaluate:
apply mass balance, pressure, thermal and equipment-rating constraints
STEP Infer:
generate candidate normal or abnormal operating states
STEP Validate:
compare candidates with independent feedback and known specifications
STEP Update:
revise state and confidence; repeat while evidence changes
STOP WHEN state_consistent AND constraints_satisfied
OR insufficient_evidence
OR safety_limit_exceeded
# ---------- SEMANTIC EQUIVALENCE ----------
EQUIVALENCE:
hydraulic directional valve ~ directional control valve
non-return hydraulic valve ~ hydraulic check valve
pressure relief valve ~ hydraulic overpressure protection valve
proportional hydraulic valve != necessarily servo valve
flow-control valve != necessarily pressure-control valve
# ---------- VALIDATION ----------
VALIDATE V1: each port has a defined role and compatible connection
VALIDATE V2: port connectivity matches selected spool/element position
VALIDATE V3: pressure and temperature remain within specified ratings
VALIDATE V4: reported flow satisfies applicable conservation laws
VALIDATE V5: control feedback is time-aligned and sensor quality checked
VALIDATE V6: unknown specifications are not replaced with invented values
VALIDATE V7: inferred faults retain uncertainty until corroborated
# ---------- CONFIDENCE ----------
CONFIDENCE := evidence_quality × model_fit × sensor_reliability
CONFIDENCE ∈ [0, 1]
IF missing_critical_measurements THEN confidence := reduced
# ---------- UPDATE MODEL ----------
UPDATE_MODEL:
source_version -> compare -> revalidate_entities -> revalidate_rules
-> record_change -> publish_revised_flow
# ---------- FLOW HASH ----------
FLOW_HASH := compute_from_canonical_file_bytes_at_publication
# Placeholder; no hash is asserted before canonical publication.
END FLOW
Download Code
Copy to Clipboard