flow "ElectricalMachineState" v1.0
# ---------- IDENTITY ----------
id: "engineering.electrical_machine.state"
category: "Electrical Machine Entities"
entity: "Electrical Machine State"
locale: "en-GB"
format: "Flow Algebra TXT"
# ---------- AUTHORS ----------
authors: ["Mark Anthony Higgins", "Sky — Recursive AI"]
licence: "Kireth Research Open Research Licence — citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electrical-machine-entities/electrical-machine-state-ontology.html"
source.title: "Electrical Machine State Ontology"
source.revised: "2026-08-04"
source.note: "Original semantic interpretation derived from page title and engineering domain; not a verbatim extraction of hidden page specifications."
citation_backlink: source.url
# ---------- PURPOSE ----------
purpose: "Represent and reason over the operational, electrical, mechanical, thermal and protection states of electrical machines."
# ---------- STATE_MODEL ----------
state.identity: machine_id
state.operational: enum[off, starting, running, stopping, stopped, tripped, faulted, maintenance, unknown]
state.electrical: {voltage_V, current_A, frequency_Hz, active_power_W, insulation_status}
state.mechanical: {speed_rpm, torque_Nm, vibration_mm_s, bearing_status}
state.thermal: {winding_temperature_C, bearing_temperature_C, cooling_status}
state.control: {start_command, stop_command, enable, interlock_ok, protection_trip}
state.observation: {timestamp, measurement_quality, sensor_health}
state.safety: {isolated, verified_deenergised, locked_out, authorised_access}
state.history: {previous_state, transition_reason, fault_code}
# ---------- ENTITIES ----------
entity ElectricalMachine: has_state -> ElectricalMachineState
entity ElectricalMachineState: describes -> ElectricalMachine
entity Motor: subclass_of -> ElectricalMachine
entity Generator: subclass_of -> ElectricalMachine
entity Stator: component_of -> ElectricalMachine
entity Rotor: component_of -> ElectricalMachine
entity Winding: component_of -> ElectricalMachine
entity Bearing: component_of -> ElectricalMachine
entity CoolingSystem: supports -> ElectricalMachine
entity MotorController: commands -> ElectricalMachine
entity ProtectionDevice: protects -> ElectricalMachine
entity Sensor: observes -> ElectricalMachineState
entity FaultEvent: causes -> StateTransition
entity StateTransition: changes -> ElectricalMachineState
# ---------- PATHWAYS ----------
pathway "ObserveMachine":
input: machine_id, timestamp, measurements, sensor_health
require: machine_id != null
derive: electrical_state <- validate_electrical(measurements)
derive: mechanical_state <- validate_mechanical(measurements)
derive: thermal_state <- validate_thermal(measurements)
output: observed_state, data_quality
pathway "StartSequence":
input: state, start_command, interlock_ok, protection_trip
when: state.operational == off and start_command and interlock_ok and not protection_trip
transition: off -> starting
require: machine_specific_start_conditions_verified
when: speed_or_output_stable and electrical_limits_ok and thermal_limits_ok
transition: starting -> running
otherwise: starting -> faulted
pathway "StopSequence":
input: state, stop_command
when: state.operational == running and stop_command
transition: running -> stopping
when: rotation_or_generation_ceased and controller_confirms_stop
transition: stopping -> stopped
pathway "ProtectionTrip":
input: protection_trip, fault_code, timestamp
when: protection_trip == true
transition: running|starting|stopping -> tripped
action: inhibit_automatic_restart
output: trip_record, inspection_required
pathway "MaintenanceEntry":
input: authorised_access, isolated, verified_deenergised, locked_out
require: authorised_access and isolated and verified_deenergised and locked_out
transition: stopped|tripped|faulted -> maintenance
output: maintenance_permitted
pathway "ReturnToService":
input: inspection_complete, protection_reset_authorised, interlock_ok
require: inspection_complete and protection_reset_authorised and interlock_ok
transition: maintenance|tripped|faulted -> stopped
output: ready_for_controlled_start
# ---------- MINI_RECURSION_ENGINE ----------
recursion.seed: observed_state
recursion.expand:
- identify_machine_type
- resolve_component_and_sensor_relations
- compare_current_state_to_previous_state
- test_operating_limits_against_manufacturer_ratings
- examine_transition_history_and_protection_events
recursion.filter:
- reject_stale_or_invalid_measurements
- reject_unsupported_state_transitions
- preserve_safety_interlocks
recursion.rank:
- confirmed_protection_events
- corroborated_sensor_evidence
- consistent_machine_dynamics
recursion.stop: stable_classification or insufficient_evidence or safety_trip
recursion.output: classified_state, evidence, confidence, required_action
# ---------- INFERENCE_RULES ----------
rule "RunningEvidence":
when: validated_speed_or_generation_output and controller_running and not protection_trip
infer: operational_candidate = running
note: "Motor and generator evidence criteria are machine-specific."
rule "ElectricalOverload":
when: current_A > rated_current_A for approved_time_window
infer: overload_suspected
action: request_protection_assessment
rule "ThermalLimit":
when: winding_temperature_C > permitted_winding_temperature_C
infer: thermal_limit_exceeded
action: protection_required
rule "ExcessVibration":
when: vibration_mm_s > machine_specific_vibration_limit
infer: mechanical_fault_suspected
action: inspect_bearing_alignment_and_rotor_condition
rule "SensorConflict":
when: controller_running and measured_speed_zero and sensor_health_uncertain
infer: state_uncertain
action: validate_measurement_before_diagnosis
rule "TripLatch":
when: protection_trip
infer: restart_inhibited
require: authorised_fault_clearance_before_reset
rule "SafeMaintenance":
when: isolated and verified_deenergised and locked_out and authorised_access
infer: maintenance_entry_conditions_satisfied
note: "Follow applicable electrical safety procedures and site rules."
# ---------- CONFIDENCE ----------
confidence.high: "Independent validated sensors and controller status agree."
confidence.medium: "Some evidence is missing but observations are consistent."
confidence.low: "Conflicting, stale or unverified measurements."
confidence.rule: "Never use a confidence score to bypass a protective trip or safety interlock."
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
"electrical machine operating state" ~ "machine operational condition"
"tripped" ~ "protective shutdown"
"starting" ~ "start-up transition"
"stopped" ~ "motion or generation stopped"
"de-energised" != "stopped"
"isolated" != "verified de-energised"
"faulted" != "tripped"
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "canonical UTF-8 flow content excluding computed hash field"
flow_hash.value: "compute_on_publication"
# ---------- UPDATE_MODEL ----------
update.trigger: ["new_measurement", "state_transition", "protection_event", "maintenance_record", "ontology_revision"]
update.policy: "Version changes, preserve previous states and provenance, revalidate inference rules."
update.safety: "Human-authorised review required before any physical control action."
# ---------- END FLOW ----------
Download Code
Copy to Clipboard