flow "RailVehicle" v1.0
# Kireth Research Semantic Library — original semantic Flow Algebra
# Domain: Transportation Engineering / Rail Vehicle
IDENTITY:
name: "Rail Vehicle"
canonical_id: "engineering.transportation.rail_vehicle"
class: "TransportationEngineeringEntity > Vehicle > RailVehicle"
definition: "A guided vehicle intended to operate on railway track or another defined rail guidance system, carrying passengers, freight, equipment or traction capability."
scope: [rolling_stock, locomotive, passenger_vehicle, freight_wagon, tram, metro_train, maintenance_vehicle]
excludes: [track_infrastructure, signalling_infrastructure, platform_structure]
AUTHORS:
primary: "Mark Higgins — Kireth Research"
collaborator: "Sky — Recursive AI"
licence: "Kireth Open Research Licence; free reuse with citation required"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/transportation-engineering-entities/rail-vehicle-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/transportation-engineering-entities/rail-vehicle-ontology.html"
provenance: "Original topic-specific Flow Algebra authored from the supplied ontology title; source page not independently verified."
PURPOSE:
objective: "Represent rail vehicle composition, physical state, operating constraints, interactions and lifecycle evidence as an auditable semantic graph."
uses: [ontology_alignment, asset_management, engineering_reasoning, diagnostics, safety_review, maintenance_planning]
non_goal: "Not a substitute for certified rolling-stock design, route acceptance or operational safety approval."
STATE_MODEL:
S: "(I, R, B, K)"
I: "Observed and declared vehicle identity, configuration, location, speed, loading, condition and operational status"
R: "Relations between components, infrastructure, operations, environmental conditions and hazards"
B: "Physical, regulatory, operational, compatibility and safety boundaries"
K: "Validated engineering specifications, maintenance history, inspections, test records and timestamped measurements"
dynamic_state:
position: "s(t) along a referenced track coordinate"
speed: "v(t) in m/s"
acceleration: "a(t) in m/s^2"
mass: "m(t) in kg including passengers, cargo and fuel where relevant"
traction_force: "F_t(t) in N"
braking_force: "F_b(t) in N"
wheel_rail_adhesion: "mu(t), dimensionless and uncertain"
energy_state: "fuel level, battery state of charge, or available supply status"
fault_state: [healthy, degraded, failed, unknown]
operating_mode: [stabled, preparing, moving, braking, stopped, isolated, under_maintenance]
ENTITIES:
RailVehicle:
properties: [vehicle_id, type, manufacturer, model, mass, length, width, height, axle_load, gauge_compatibility, maximum_authorised_speed, service_status]
relationships: [has_component, operates_on, is_part_of_train, maintained_by, governed_by, constrained_by]
Locomotive:
is_a: RailVehicle
function: "Provides traction for itself and potentially coupled rolling stock."
MultipleUnitVehicle:
is_a: RailVehicle
function: "Vehicle within a distributed-traction or non-powered multiple-unit formation."
PassengerCoach:
is_a: RailVehicle
function: "Carries passengers and associated service equipment."
FreightWagon:
is_a: RailVehicle
function: "Carries goods within permitted load and securing limits."
TramVehicle:
is_a: RailVehicle
function: "Urban or light-rail vehicle with infrastructure-specific interface constraints."
Bogie:
properties: [wheelbase, suspension_type, bearing_condition, steering_characteristics]
relations: [supports_vehicle_body, contains_wheelsets, transmits_load]
Wheelset:
properties: [wheel_diameter, flange_profile, axle_condition, wheel_wear]
relations: [contacts_rail, transmits_traction, transmits_braking]
Suspension:
types: [primary, secondary]
functions: [load_support, vibration_isolation, ride_stability]
Coupler:
properties: [coupling_type, mechanical_rating, pneumatic_interfaces, electrical_interfaces]
relations: [connects_vehicles, transmits_longitudinal_force]
TractionSystem:
variants: [electric, diesel_electric, diesel_mechanical, diesel_hydraulic, battery_electric, hydrogen_fuel_cell]
components: [prime_mover_or_supply, power_converter, traction_motor, gearbox]
BrakeSystem:
variants: [friction, regenerative, dynamic, magnetic_track, parking]
components: [actuator, controller, pressure_or_power_supply, monitoring]
VehicleControlSystem:
functions: [traction_command, brake_command, diagnostics, interlocks, event_logging]
OnboardSafetySystem:
functions: [overspeed_protection, train_protection_interface, vigilance_monitoring, emergency_braking]
DoorSystem:
properties: [door_state, interlock_state, obstruction_detection, emergency_release]
PassengerSubsystem:
components: [seating, accessibility_features, lighting, ventilation, information_system]
TrainFormation:
properties: [ordered_vehicle_ids, total_length, total_mass, brake_performance, coupling_compatibility]
TrackInterface:
properties: [track_gauge, loading_gauge, axle_load_limit, curvature, gradient, electrification, platform_interface]
MaintenanceRecord:
properties: [vehicle_id, inspection_date, finding, action, sign_off, evidence_reference]
PATHWAYS:
- "power_source -> traction_converter -> traction_motor -> wheelset -> rail_contact -> longitudinal_motion"
- "driver_or_automatic_command -> control_system -> validated_traction_request -> propulsion"
- "brake_command -> brake_controller -> brake_actuator -> wheel_rail_contact -> deceleration"
- "regenerative_braking -> traction_converter -> receptive_supply_or_storage"
- "track_irregularity -> wheelset -> suspension -> vehicle_body -> passenger_ride_response"
- "vehicle_mass -> wheelset -> axle_load -> rail_and_structure_demand"
- "coupler_force -> connected_vehicles -> train_longitudinal_dynamics"
- "wheel_profile_and_track_geometry -> contact_forces -> stability_and_wear"
- "sensor_reading -> validation -> diagnostics -> maintenance_decision"
- "route_characteristics -> compatibility_check -> permitted_vehicle_operation"
- "door_interlock -> departure_permission -> traction_enable_or_inhibit"
- "detected_hazard -> safety_controller -> protective_response -> recorded_event"
PHYSICAL_RELATIONS:
longitudinal_motion: "m_eff * a = F_traction - F_braking - F_resistance - m*g*sin(theta); signs and effective mass convention must be declared"
kinetic_energy: "E_k = 0.5 * m * v^2 (translational approximation)"
power_at_wheel: "P = F_traction * v, subject to conversion losses and limits"
axle_load: "axle_load_i = supported_weight_i / g, expressed as mass equivalent where specified"
adhesion_bound: "abs(F_contact) <= mu * N for simplified local adhesion model; mu is condition-dependent"
stopping_distance: "d ~= v0^2 / (2 * abs(a)) only for constant deceleration and excluding reaction, gradient and build-up effects"
braking_energy: "Delta_E_k = 0.5 * m * (v_initial^2 - v_final^2), before losses and energy recovery"
curvature: "lateral_acceleration ~= v^2 / R for a simplified planar curve"
caveat: "These are modelling relations, not operational stopping-distance or acceptance calculations."
BOUNDARIES:
- "Never infer route compatibility from track gauge alone; check loading gauge, axle loads, structure clearances, power supply, train protection and platform interface."
- "Maximum operating speed is bounded by vehicle authorisation, route limits, condition and operational restrictions."
- "Adhesion, gradient, brake response, train length and brake mode affect stopping performance."
- "Door interlocks and other protective systems must not be bypassed by semantic inference."
- "Vehicle mass and axle loads must reflect the actual loading configuration."
- "A degraded safety-critical component requires an approved restricted operating mode or withdrawal from service."
- "Inspection and maintenance intervals depend on applicable rules and manufacturer requirements."
- "Data without timestamps, calibration status or source provenance is not sufficient for safety-critical decisions."
- "Distinguish vehicle equipment from trackside infrastructure and control authority."
MINI_RECURSION_ENGINE:
state: "S_t = (I_t, R_t, B_t, K_t)"
expand: "E_t = expand(I_t, R_t)"
validate: "V_t = {x in E_t | satisfies(x, B_t) and supported_by(x, K_t)}"
select: "x_star = argmax_x P(x | I_t, R_t, B_t, K_t), x in V_t"
update: "I_(t+1) = incorporate(I_t, x_star, observations, provenance)"
stop: "Stop on missing critical evidence, incompatible route, unsafe operating condition or unresolved high-consequence uncertainty."
loop:
- "Observe vehicle condition, location, configuration and applicable operating context."
- "Resolve vehicle-to-component and vehicle-to-infrastructure relations."
- "Generate compatible operating, diagnostic or maintenance interpretations."
- "Reject candidates violating physical, regulatory or safety boundaries."
- "Rank remaining interpretations by evidence quality, recency and consistency."
- "Record decision, uncertainty, provenance and required human authorisation."
INFERENCE_RULES:
R01: "IF entity has guided wheel-rail operation THEN classify as RailVehicle candidate, subject to domain validation."
R02: "IF a vehicle supplies tractive effort to a coupled formation THEN infer traction-provider role, not necessarily locomotive class."
R03: "IF actual axle_load exceeds route_limit THEN route_compatibility = false."
R04: "IF loading_gauge clearance is unverified THEN route_compatibility = unknown, never true."
R05: "IF traction_command is present AND safety_interlock is open THEN traction_permission = denied."
R06: "IF emergency_brake demand is active THEN prioritise safety-command handling over normal traction requests."
R07: "IF wheel_flat or severe wheel_defect is observed THEN flag inspection and authorised operating restriction."
R08: "IF braking capability is degraded THEN reassess permitted operation using approved rules; do not infer a safe speed automatically."
R09: "IF adhesion estimate falls THEN expected available traction and braking adhesion may decrease."
R10: "IF vehicle configuration changes THEN recompute mass, length, braking and coupling compatibility."
R11: "IF passenger door is not proved secure THEN departure_permission = false where interlock is required."
R12: "IF supply_voltage or collection interface mismatches infrastructure THEN electric traction compatibility = false."
R13: "IF sensor values disagree beyond validated tolerance THEN diagnostic_state = uncertain and request verification."
R14: "IF maintenance inspection is overdue THEN flag compliance review and applicable operating restrictions."
R15: "IF train protection equipment is incompatible with route requirements THEN operation is not authorised by this model."
R16: "IF lateral dynamic indicators exceed validated thresholds THEN raise stability alert for competent assessment."
R17: "IF component fault is confirmed THEN propagate affected functions through component-dependency graph."
R18: "IF operational evidence is incomplete THEN withhold definitive safety or route-acceptance conclusions."
CONFIDENCE:
evidence_tiers:
high: "Current, traceable, validated test or inspection data with confirmed configuration and calibrated instrumentation."
medium: "Reliable engineering specification or recent operational record with some unresolved context."
low: "Generic type assumption, unverified report, stale data or incomplete vehicle identification."
uncertainty_sources: [sensor_error, adhesion_variation, passenger_loading, wheel_wear, configuration_changes, route_data_gaps]
policy: "Confidence is evidence-dependent; no invented numeric confidence or claim of certification."
SEMANTIC_EQUIVALENCE:
preferred: "Rail Vehicle"
aliases: ["railway vehicle", "rolling stock vehicle", "rail-guided vehicle"]
narrower: ["locomotive", "passenger coach", "freight wagon", "multiple-unit car", "tram"]
related: ["train", "railway infrastructure", "wheelset", "bogie", "traction system", "braking system"]
disambiguation: "A train is an operational formation of one or more vehicles; a rail vehicle is an individual vehicle entity."
VALIDATION:
checks:
- "Vehicle identity and configuration are unique and traceable."
- "Mass, dimensions, speed and axle load have units and sources."
- "Subsystem relations have direction and functional meaning."
- "Route-compatibility claims are evidence-backed and current."
- "Operational state transitions honour applicable interlocks."
- "Safety-critical conclusions are marked for competent human review."
expected_outputs: ["entity_graph", "compatibility_status", "diagnostic_hypotheses", "evidence_gaps", "maintenance_flags"]
FLOW_HASH:
method: "SHA-256 of canonical UTF-8 content excluding FLOW_HASH.value"
value: "COMPUTE_ON_PUBLICATION"
UPDATE_MODEL:
version: "1.0"
language: "en-GB"
revision_policy: "Revise with traceable changes when standards, vehicle design, evidence or operational requirements change."
provenance_policy: "Preserve source links, dates, authorship and evidence status on every update."
next_review: "On significant ontology or engineering evidence change"
END_FLOW
Download Code
Copy to Clipboard