flow "VariableFrequencyDrive" v1.0
# ---------- IDENTITY ----------
id: "engineering.electrical_machine.variable_frequency_drive"
label: "Variable-Frequency Drive"
category: "Electrical Machine Entities"
locale: "en-GB"
representation: "Flow Algebra textual ontology"
# ---------- 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/variable-frequency-drive-ontology.html"
source.title: "Variable-Frequency Drive Ontology"
source.revised: "2026-08-04"
citation_backlink: source.url
provenance: "Newly constructed domain flow; not a verbatim extraction of embedded page specifications"
# ---------- PURPOSE ----------
purpose: "Represent the structure, operation, control, monitoring and protection of a variable-frequency drive (VFD) supplying an electric motor."
scope: ["AC-to-DC conversion", "DC link", "PWM inverter", "motor frequency and voltage control", "feedback", "fault states", "safe isolation"]
# ---------- STATE_MODEL ----------
state S(t) = (I(t), R, B, K)
I(t): measured_inputs + commands + equipment_status
R: electrical_rules + control_rules + protection_rules
B: rated_limits + safety_interlocks + operating_envelope
K: motor_model + drive_configuration + event_history
E(t) = expand(I(t), R)
V(t) = filter(E(t), B)
a(t) = argmax[priority(safety, stability, command_tracking, efficiency)] over V(t)
I(t+1) = observe(apply(a(t)), sensors, events)
states: ["de_energised", "precharge", "ready", "starting", "running", "decelerating", "stopped", "faulted", "locked_out"]
initial_state: "de_energised"
# ---------- ENTITIES ----------
entity VFD: ElectricalPowerConverter
entity ACInput: ElectricalSource
entity Rectifier: ACToDCConverter
entity DCLink: EnergyBuffer
entity Inverter: DCToACConverter
entity Motor: ElectricalMachine
entity Controller: FeedbackController
entity SpeedReference: ControlSetpoint
entity CurrentSensor: MeasurementDevice
entity VoltageSensor: MeasurementDevice
entity TemperatureSensor: MeasurementDevice
entity Protection: SafetyFunction
entity Disconnect: IsolationDevice
entity BrakingUnit: OptionalEnergyDissipationDevice
entity EMCFilter: OptionalInterferenceMitigationDevice
relation ACInput -> supplies -> Rectifier
relation Rectifier -> energises -> DCLink
relation DCLink -> supplies -> Inverter
relation Inverter -> supplies_variable_frequency_power -> Motor
relation SpeedReference -> informs -> Controller
relation Controller -> modulates -> Inverter
relation CurrentSensor -> reports_to -> Controller
relation VoltageSensor -> reports_to -> Controller
relation TemperatureSensor -> reports_to -> Protection
relation Protection -> inhibits_or_trips -> Inverter
relation Disconnect -> isolates_supply_to -> VFD
# ---------- PARAMETERS ----------
parameter input_voltage_rms: volt
parameter dc_link_voltage: volt
parameter output_frequency: hertz
parameter motor_pole_count: integer
parameter rotor_speed: rpm
parameter commanded_speed: rpm
parameter output_current_rms: ampere
parameter rated_current: ampere
parameter drive_temperature: celsius
parameter ramp_time: second
parameter motor_power: watt
parameter torque_estimate: newton_metre
# ---------- PATHWAYS ----------
pathway "PowerConversion":
require supply_healthy and protection_clear
ACInput -> Rectifier -> DCLink -> Inverter -> Motor
ensure output_frequency within configured_frequency_limits
ensure output_current_rms within configured_current_limits
pathway "Start":
when start_command and state == "ready" and interlocks_valid
transition "ready" -> "starting"
ramp output_frequency toward frequency_reference within ramp_limits
transition "starting" -> "running" when reference_tracking_acceptable
pathway "RegulateSpeed":
when state == "running"
error = commanded_speed - rotor_speed
control_request = controller(error, current_feedback, voltage_feedback)
command inverter_output(control_request) subject_to B
observe motor_response
pathway "Stop":
when stop_command and state in ["starting", "running"]
transition state -> "decelerating"
apply configured_deceleration subject_to dc_link_and_braking_limits
transition "decelerating" -> "stopped" when motor_speed_near_zero
pathway "Trip":
when critical_fault_detected
inhibit_output
latch_fault_event
transition state -> "faulted"
require fault_cleared and authorised_reset before restart
pathway "SafeMaintenance":
when maintenance_requested
require qualified_personnel and approved_isolation_procedure
disconnect all relevant supplies including auxiliary and backfeed sources
lock_out and verify_absence_of_voltage using approved methods
account_for dc_link_stored_energy and manufacturer_discharge_time
transition state -> "locked_out" only after verification
# ---------- ENGINEERING_RELATIONSHIPS ----------
rule "SynchronousSpeed":
synchronous_speed_rpm = (120 * output_frequency_hz) / motor_pole_count
applicability: "AC machine with defined pole count; actual induction rotor speed differs by slip"
rule "InductionSlip":
slip = (synchronous_speed_rpm - rotor_speed_rpm) / synchronous_speed_rpm
require synchronous_speed_rpm > 0
applicability: "Induction motor under appropriate steady-state assumptions"
rule "ThreePhasePowerEstimate":
input_or_output_real_power_w = sqrt(3) * line_voltage_rms * line_current_rms * power_factor
applicability: "Balanced sinusoidal three-phase conditions; not generally valid without harmonic-aware measurements"
rule "DriveLoss":
estimated_loss_w = input_real_power_w - output_real_power_w
require measurement_boundaries_and_time_basis_consistent
# ---------- MINI_RECURSION_ENGINE ----------
engine "VFDStateReasoner":
observe measurements + commands + state
infer operating_mode + anomalies + permitted_actions
filter candidates through safety_limits and interlocks
select highest_priority_safe_action
apply only through authorised control interface
observe resulting state
repeat while controller_enabled
terminate_or_trip on critical_fault or invalid_feedback
# ---------- INFERENCE_RULES ----------
infer "Overcurrent" when output_current_rms > configured_trip_limit
then request_protective_trip and record("overcurrent")
infer "DCLinkOvervoltage" when dc_link_voltage > configured_dc_overvoltage_limit
then request_protective_trip and record("dc_link_overvoltage")
infer "ThermalOverload" when drive_temperature > configured_temperature_limit
then derate_or_trip according_to validated_protection_settings
infer "FeedbackLoss" when speed_feedback_required and feedback_invalid
then inhibit_closed_loop_operation and select_configured_safe_response
infer "MotorStallSuspected" when high_torque_demand and low_speed_persistent
then flag_diagnostic and apply validated_motor_protection
infer "InsulationOrEarthFaultSuspected" when earth_fault_protection_activated
then trip and require qualified_diagnosis
# ---------- SAFETY_CONSTRAINTS ----------
constraint "NoAutomaticUnsafeRestart": require configured_restart_policy and validated_interlocks
constraint "StoredEnergy": dc_link_may_remain_hazardous_after_input_disconnection
constraint "STO": safe_torque_off_does_not_itself_provide_electrical_isolation
constraint "Protection": VFD_control_logic_does_not_replace_required_external_protection
constraint "Limits": do_not_exceed manufacturer_ratings or motor_thermal_limits
constraint "Verification": commissioning_and_protection_settings_require_engineering_validation
# ---------- CONFIDENCE ----------
confidence.domain_principles: "high"
confidence.equipment_specific_values: "unknown_until_manufacturer_data_supplied"
confidence.diagnostic_inferences: "conditional; corroborate with measurements"
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent "Variable-Frequency Drive" ~ "VFD"
equivalent "Variable-Speed Drive" ~ "VSD" when context == "electronic motor frequency control"
equivalent "Adjustable-Frequency Drive" ~ "AFD"
not_equivalent "VFD" != "motor"
not_equivalent "safe_torque_off" != "verified_electrical_isolation"
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.value: "computed_by_publishing_pipeline_from_canonical_file_bytes"
# ---------- UPDATE_MODEL ----------
update.trigger: ["source_revision", "manufacturer_data_change", "new_protection_evidence", "ontology_revision"]
update.policy: "retain provenance, review constraints, regenerate hash, increment version"
update.review: "technical validation required before real-world control deployment"
end flow
Download Code
Copy to Clipboard