Skip to main content

Electrical Machine Ontology

Electrical Machine Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 17 November 2026
Audio Overview
flow "ElectricalMachine" v1.0

# ---------- IDENTITY ----------
id: "engineering.electrical_machine"
category: "Engineering Entities / Electrical Machine Entities"
locale: "en-GB"
representation: "Kireth Flow Algebra - declarative reasoning specification"

# ---------- AUTHORS ----------
authors: ["Mark Anthony Higgins", "Sky — Recursive AI"]
licence: "Kireth Open Research Licence; citation required"

# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electrical-machine-entities/electrical-machine-ontology.html"
source.title: "Electrical Machine Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed companion flow; not a verbatim extraction of the webpage's embedded code."
citation_backlink: source.url

# ---------- PURPOSE ----------
purpose: "Represent electromechanical energy conversion, machine states, component relationships, performance, faults and safe operating constraints."
scope: ["electric motor", "electric generator", "rotating electrical machine", "electromechanical converter"]

# ---------- STATE_MODEL ----------
state.machine: enum("unidentified", "stopped", "starting", "running", "generating", "stopping", "faulted", "isolated", "maintenance")
state.mode: enum("motor", "generator", "bidirectional", "unknown")
state.supply: enum("AC", "DC", "unknown")
state.voltage_v: number?
state.current_a: number?
state.frequency_hz: number?
state.speed_rpm: number?
state.torque_nm: number?
state.temperature_c: number?
state.input_power_w: number?
state.output_power_w: number?
state.efficiency: number?
state.protection_ok: bool?
state.isolation_verified: bool?
state.measurement_quality: enum("verified", "estimated", "unknown")

# ---------- ENTITIES ----------
entity ElectricalMachine:
  is_a: EngineeringSystemComponent
  performs: ElectromechanicalEnergyConversion
  has_part: [Stator, Rotor, Winding, MagneticCircuit, Shaft, Bearings, Housing]
  may_have_part: [Commutator, Brushes, PermanentMagnet, CoolingSystem, Encoder, ExcitationSystem]
  connected_to: [ElectricalSource, ElectricalLoad, MechanicalLoad, ProtectionDevice, Controller]

entity Motor:
  is_a: ElectricalMachine
  conversion: "electrical -> mechanical"

entity Generator:
  is_a: ElectricalMachine
  conversion: "mechanical -> electrical"

entity Winding:
  has_property: [Resistance, Inductance, InsulationClass, Temperature]

entity Rotor:
  has_property: [Speed, Torque, Inertia, Balance]

entity ProtectionDevice:
  monitors: [Overcurrent, Overtemperature, EarthFault, Overspeed, PhaseLoss]

# ---------- PATHWAYS ----------
pathway identify_machine:
  input: [nameplate, design, connection, operating_context]
  infer: [machine_type, rated_voltage, rated_current, rated_power, rated_speed, duty]
  output: state.mode
  require: "Do not assume unknown nameplate ratings."

pathway motor_conversion:
  when: state.mode == "motor"
  input: ElectricalPower
  process: ElectromagneticTorqueProduction
  output: MechanicalShaftPower
  relation: "P_shaft = torque_nm * angular_speed_rad_per_s"
  relation: "angular_speed_rad_per_s = 2 * pi * speed_rpm / 60"

pathway generator_conversion:
  when: state.mode == "generator"
  input: MechanicalShaftPower
  process: ElectromagneticInduction
  output: ElectricalPower
  constraint: "Electrical output does not exceed mechanical input plus any separately accounted energy input."

pathway thermal_losses:
  input: [CopperLoss, CoreLoss, MechanicalLoss, StrayLoss]
  derive: "TotalLoss = sum(identified_losses)"
  effect: [Heating, ReducedEfficiency, CoolingDemand]
  note: "Loss models depend on machine design and operating conditions."

pathway efficiency_estimation:
  require: "Measured input_power_w > 0 and output_power_w >= 0"
  derive: "efficiency = output_power_w / input_power_w"
  validate: "0 <= efficiency <= 1 within measurement uncertainty and correct energy boundary"

pathway state_transition:
  stopped -> starting: "start request AND permissives satisfied"
  starting -> running: "speed and current within verified operating envelope"
  running -> stopping: "stop request OR controlled shutdown"
  running -> faulted: "protection trip OR confirmed unsafe condition"
  faulted -> isolated: "authorised isolation procedure completed and verified"
  isolated -> maintenance: "zero-energy state verified under applicable procedure"
  maintenance -> stopped: "inspection, testing and authorised return to service complete"

# ---------- MINI_RECURSION_ENGINE ----------
engine ElectricalMachineReasoner:
  read: [machine_identity, measured_state, operating_limits, protection_events]
  expand: [electrical_inputs, mechanical_outputs, losses, cooling, connections, fault_paths]
  compare: "observations against verified ratings and expected physical relationships"
  classify: [normal, uncertain, degraded, faulted, unsafe]
  recurse: "follow evidence-linked component dependencies until resolved or evidence exhausted"
  stop_when: "conclusion supported OR uncertainty cannot be reduced safely"
  output: [state_estimate, supporting_evidence, confidence, recommended_review]

# ---------- INFERENCE_RULES ----------
rule EM01:
  if: "state.mode == motor AND measured electrical input AND measured shaft output"
  then: "calculate efficiency and account for losses"

rule EM02:
  if: "measured temperature exceeds verified machine limit"
  then: "classify unsafe; request protective response according to approved design"

rule EM03:
  if: "current exceeds verified permitted operating envelope"
  then: "flag possible overload, start transient or fault; distinguish using timing and context"

rule EM04:
  if: "abnormal vibration AND elevated bearing temperature"
  then: "raise bearing or alignment fault hypothesis; request inspection"

rule EM05:
  if: "speed departs from commanded value"
  then: "inspect supply, drive, feedback, mechanical load and control loop evidence"

rule EM06:
  if: "phase imbalance or phase loss confirmed in applicable polyphase machine"
  then: "flag winding overheating and torque disturbance risk"

rule EM07:
  if: "isolation not verified"
  then: "maintenance entry prohibited; retain hazardous-energy warning"

rule EM08:
  if: "required rating or measurement unavailable"
  then: "return unknown; do not invent thresholds or assert compliance"

# ---------- CONFIDENCE ----------
confidence.high: "verified nameplate, calibrated measurements, consistent model and documented limits"
confidence.medium: "partial measurements with bounded assumptions"
confidence.low: "inferred machine type, missing ratings, contradictory or stale evidence"
confidence.rule: "Never upgrade confidence solely through repeated inference."

# ---------- SEMANTIC_EQUIVALENCE ----------
semantic.map:
  "electrical machine" ~= "electromechanical energy converter"
  "electric motor" ~= "electrical-to-mechanical converter"
  "electric generator" ~= "mechanical-to-electrical converter"
  "shaft power" ~= "mechanical output power when operating as motor"
  "stator" != "rotor"
  "rated power" != "measured instantaneous power"
  "electrical isolation" != "absence of all stored energy"

# ---------- SAFETY_CONSTRAINTS ----------
safety.require: ["authorised personnel", "verified isolation", "stored-energy assessment", "appropriate protective equipment", "manufacturer limits"]
safety.prohibit: ["bypass protection", "assume de-energised from switch position", "reset repeated trips without diagnosis", "use ontology as installation approval"]
safety.note: "This semantic model is not a substitute for electrical standards, commissioning tests or competent engineering judgement."

# ---------- FLOW_HASH ----------
flow_hash.method: "SHA-256 over canonical UTF-8 source, calculated by publishing pipeline"
flow_hash.value: "UNSET - compute on publication"

# ---------- UPDATE_MODEL ----------
update.trigger: ["source ontology revision", "new verified machine category", "corrected physical model", "safety or standards review"]
update.policy: "increment version; preserve source attribution and revision history; revalidate inference rules"
update.status: "draft companion representation"

end flow
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ