flow "MotorDriveSystem" v1.0
# ---------- IDENTITY ----------
id: "engineering.electrical_machine.motor_drive_system"
name: "Motor Drive System"
category: "Electrical Machine Entities"
representation: "Flow Algebra semantic and engineering reasoning model"
# ---------- 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/motor-drive-system-ontology.html"
source.title: "Motor Drive System Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed Flow Algebra representation; not a verbatim extraction of embedded source code."
# ---------- PURPOSE ----------
purpose: "Represent, analyse and reason about a controlled electrical-to-mechanical drive system, its components, operational states, performance and protection."
# ---------- STATE_MODEL ----------
state S(t) = (I(t), R, B, K)
I(t): observed supply, commands, speed, torque, current, voltage, temperature and fault signals
R: motor-drive relationships and control rules
B: electrical, thermal, mechanical and operational boundaries
K: component ontology, configuration, ratings and evidence provenance
operating_states: ["de-energised", "ready", "starting", "accelerating", "running", "decelerating", "stopping", "faulted", "isolated", "maintenance"]
state_transition: "ready -> starting -> accelerating -> running -> decelerating -> stopping -> ready"
fault_transition: "any energised state -> faulted -> isolated -> inspected -> ready only after authorised reset"
# ---------- ENTITIES ----------
entity MotorDriveSystem: system
entity ElectricalSupply: energy_source
entity MotorController: controller
entity PowerConverter: power_electronics
entity ElectricMotor: electromechanical_converter
entity MechanicalLoad: mechanical_consumer
entity FeedbackSensor: measurement_device
entity ProtectionDevice: protective_component
entity CoolingSystem: thermal_management
entity OperatorCommand: control_input
entity ControlSetpoint: target_state
entity DriveFault: abnormal_condition
relation ElectricalSupply -> feeds -> PowerConverter
relation MotorController -> commands -> PowerConverter
relation PowerConverter -> energises -> ElectricMotor
relation ElectricMotor -> drives -> MechanicalLoad
relation FeedbackSensor -> reports_to -> MotorController
relation ProtectionDevice -> protects -> MotorDriveSystem
relation CoolingSystem -> removes_heat_from -> MotorDriveSystem
# ---------- PATHWAYS ----------
pathway "CommandToMotion":
read OperatorCommand
validate command_authority, interlocks, supply_available
resolve ControlSetpoint
compare measured_motion with ControlSetpoint
compute bounded_control_request
command PowerConverter
observe ElectricMotor and MechanicalLoad
update state S(t+1)
pathway "EnergyConversion":
electrical_input_power -> converter_losses + motor_electrical_input
motor_electrical_input -> motor_losses + mechanical_shaft_power
mechanical_shaft_power -> load_power + drivetrain_losses
require energy_balance_consistency within measurement_uncertainty
pathway "FeedbackRegulation":
read speed_feedback, torque_estimate, current_feedback
error = target_speed - measured_speed
adjust control_output within configured_limits
require stable_response and no_protection_violation
pathway "FaultResponse":
observe overcurrent, overvoltage, undervoltage, overtemperature, overspeed, sensor_failure, loss_of_phase, earth_fault
classify severity and protective_action
if unsafe_condition then inhibit_drive_or_trip_as_configured
record timestamp, evidence, fault_code, protective_state
require authorised_diagnosis_before_reset
# ---------- ENGINEERING_RELATIONSHIPS ----------
formula mechanical_power_W = torque_Nm * angular_speed_rad_per_s
formula angular_speed_rad_per_s = 2 * pi * speed_rpm / 60
formula efficiency = mechanical_output_power_W / electrical_input_power_W
formula three_phase_real_power_W = sqrt(3) * line_voltage_V * line_current_A * true_power_factor
condition efficiency_valid: electrical_input_power_W > 0 and measurement_basis_consistent
note: "Three-phase formula assumes balanced sinusoidal conditions or appropriate true-power-factor measurement."
note: "Controller topology and control laws depend on motor type, drive design and manufacturer specifications."
# ---------- MINI_RECURSION_ENGINE ----------
engine "DriveStateReasoner":
input I(t), R, B, K
expand E(t) = expand(I(t), R)
validate V(t) = filter(E(t), B)
rank hypotheses by evidence_support, physical_consistency, risk
select action = argmax permitted_utility(action | I(t), R, B, K)
update I(t+1) from measured_response and verified_events
stop when state_stable or safety_boundary_triggered or evidence_insufficient
# ---------- INFERENCE_RULES ----------
rule "NoMotion":
when run_command and drive_enabled and measured_speed_near_zero
infer possible_stall_or_disconnected_feedback
require inspect_command_path, motor_current, load_and_sensor_evidence
rule "Overload":
when measured_current > configured_continuous_limit for configured_duration
infer possible_overload
action initiate_configured_protection
rule "ThermalRisk":
when measured_temperature > configured_temperature_limit
infer thermal_protection_required
action inhibit_or_trip_according_to_protection_design
rule "SpeedDeviation":
when abs(target_speed - measured_speed) > permitted_speed_error for configured_duration
infer control_tracking_deviation
action inspect load, tuning, converter_and_feedback
rule "EvidenceIntegrity":
when feedback_missing or sensor_quality_invalid
infer operating_state_uncertain
action prohibit_unsupported_claims_of_safe_operation
# ---------- SAFETY_BOUNDARIES ----------
boundary voltage_current_frequency: "manufacturer ratings and applicable standards"
boundary torque_speed: "motor, drive and mechanical-load limits"
boundary temperature: "winding, semiconductor, bearing and cooling limits"
boundary protective_isolation: "verified isolation, stored-energy discharge and lock-off procedures"
boundary personnel_safety: "qualified personnel; no inference rule replaces safety-rated hardware"
require: "Never treat software-estimated stopped state as proof of electrical isolation."
require: "Safe torque off, where fitted, is not electrical isolation."
# ---------- CONFIDENCE ----------
confidence.high: "independent calibrated measurements and confirmed topology agree"
confidence.medium: "partial measurements consistent with configured machine model"
confidence.low: "missing sensors, uncertain ratings or conflicting observations"
rule: "Reduce confidence when evidence is absent, stale or inconsistent."
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent "motor drive" ~ "electric motor drive system" when context_is_electromechanical
related "variable-frequency drive" -> "motor drive system" as possible_component_or_subtype
related "servo drive" -> "motor drive system" as possible_controlled_drive_variant
not_equivalent "motor" != "complete motor drive system"
not_equivalent "motor controller" != "motor drive system"
# ---------- FLOW_HASH ----------
flow_hash.method: "SHA-256 over canonical UTF-8 representation"
flow_hash.value: "UNCOMPUTED; generate after canonicalisation"
# ---------- UPDATE_MODEL ----------
update_trigger: ["ontology_revision", "new_motor_type", "new_drive_configuration", "new_measurement_evidence", "safety_rule_change"]
update_policy: "preserve source, version, provenance and validation history"
validation: ["ontology_consistency", "unit_consistency", "energy_balance", "state_transition_safety", "protection_boundary_check"]
# ---------- END FLOW ----------
Download Code
Copy to Clipboard