flow "ElectronicSwitch" v1.0
# ---------- IDENTITY ----------
id: "engineering.electronic_component.electronic_switch"
title: "Electronic Switch Ontology — Flow Algebra"
category: "Engineering Entities / Electronic Component Entities"
locale: "en-GB"
# ---------- 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/electronic-component-entities/electronic-switch-ontology.html"
source.title: "Electronic Switch Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed semantic Flow Algebra representation; not a verbatim extraction of hidden page specifications."
citation_backlink: source.url
# ---------- PURPOSE ----------
purpose: "Represent an electronic switch as a controllable device that changes an electrical conduction path between defined operating states."
scope: ["semiconductor switches", "solid-state switching", "control input", "load path", "switching losses", "protection", "diagnostics"]
# ---------- STATE_MODEL ----------
state S(t) = (I(t), R, B, K(t))
I(t): observed inputs, gate/base drive, terminal voltage, current, temperature and commands
R: switching and electrical behaviour rules
B: device ratings, safe operating area, topology and physical limits
K(t): current inferred operating state and accumulated evidence
operating_states: ["OFF", "TURNING_ON", "ON", "TURNING_OFF", "FAULT", "UNKNOWN"]
state.transition: OFF -> TURNING_ON -> ON -> TURNING_OFF -> OFF
state.fault_transition: any_operating_state -> FAULT when protective_limit_exceeded
state.unknown_transition: any_operating_state -> UNKNOWN when evidence_insufficient
# ---------- ENTITIES ----------
entity ElectronicSwitch:
is_a: ElectronicComponent
function: "Control conduction between two or more electrical terminals"
has: ["control_terminal", "power_terminals", "switching_state", "device_rating", "thermal_path"]
variants: ["MOSFET", "BJT", "IGBT", "thyristor", "solid_state_relay", "analogue_switch"]
entity ControlSignal:
attributes: ["voltage", "current", "timing", "duty_cycle", "isolation"]
entity LoadPath:
attributes: ["terminal_voltage", "load_current", "polarity", "impedance"]
entity Protection:
attributes: ["overcurrent", "overvoltage", "overtemperature", "short_circuit", "transient_suppression"]
entity DiagnosticEvidence:
attributes: ["commanded_state", "measured_state", "current", "voltage", "temperature", "timestamp"]
relations:
ElectronicSwitch --receives--> ControlSignal
ElectronicSwitch --controls--> LoadPath
ElectronicSwitch --constrained_by--> Protection
ElectronicSwitch --observed_through--> DiagnosticEvidence
ElectronicSwitch --part_of--> ElectronicCircuit
# ---------- PATHWAYS ----------
pathway "ClassifyDevice":
input: device_type, datasheet, terminal_configuration
require: device_type is known
derive: applicable_drive_rules, conduction_direction, ratings
output: classification, constraints
pathway "CommandSwitch":
input: command, control_signal, device_state, protection_state
guard: protection_state == "CLEAR"
guard: control_signal meets device_specific_drive_requirements
when command == "ON" and device_state == "OFF":
emit: "TURNING_ON"
when command == "OFF" and device_state == "ON":
emit: "TURNING_OFF"
otherwise:
emit: "NO_SAFE_TRANSITION_OR_INSUFFICIENT_DATA"
pathway "ObserveConduction":
input: terminal_voltage, load_current, commanded_state, device_type
infer: conduction_state using device_specific_voltage_current_characteristics
compare: conduction_state with commanded_state
output: observed_state, mismatch_flag
pathway "EstimateLosses":
input: device_type, voltage_waveform, current_waveform, switching_events
derive: instantaneous_power(t) = voltage(t) * current(t)
derive: energy_loss = integral(instantaneous_power(t), time_window)
derive: average_loss = energy_loss / time_window
note: "For MOSFET on-state, I_rms^2 * R_DS_on is an approximation under stated conditions."
output: estimated_loss, model_assumptions
pathway "ProtectSwitch":
input: observed_voltage, observed_current, junction_temperature_estimate, device_ratings
when any applicable safe_operating_limit exceeded:
emit: "FAULT"
request: "PROTECTIVE_SHUTDOWN_OR_ISOLATION"
otherwise:
emit: "WITHIN_EVALUATED_LIMITS"
note: "Protection action depends on actual circuit architecture; a latched thyristor may not turn off through gate control alone."
# ---------- MINI_RECURSION_ENGINE ----------
recursive_cycle:
1: acquire electrical measurements and switching commands
2: expand candidate states from I(t), R and K(t)
3: filter candidates against device constraints B
4: compare predictions with observations
5: choose best-supported state; retain uncertainty
6: update K(t+1) with timestamped evidence
7: repeat on measurement, command or fault event
formal:
E(t) = expand(I(t), R)
V(t) = {x in E(t) | satisfies(x, B)}
x_star = argmax(x in V(t)) P(x | I(t), R, B, K(t))
K(t+1) = update(K(t), x_star, evidence(t))
# ---------- INFERENCE_RULES ----------
rule "OFF_State":
if: command == "OFF" and measured_current approximately leakage_current
then: candidate_state = "OFF"
caveat: "Leakage and measurement resolution are device-dependent."
rule "ON_State":
if: command == "ON" and terminal_measurements match expected_conduction
then: candidate_state = "ON"
rule "StuckOn":
if: command == "OFF" and sustained_load_current exceeds expected_off_leakage
then: flag = "POSSIBLE_STUCK_ON_OR_ALTERNATIVE_CURRENT_PATH"
rule "FailedToConduct":
if: command == "ON" and load_current is absent despite verified_supply_and_load
then: flag = "POSSIBLE_OPEN_DEVICE_OR_DRIVE_FAILURE"
rule "ThermalRisk":
if: estimated_junction_temperature exceeds rated_limit
then: flag = "OVER_TEMPERATURE_RISK"
rule "SwitchingStress":
if: voltage_current_overlap or inductive_transient exceeds rated_envelope
then: flag = "SWITCHING_STRESS_RISK"
# ---------- CONFIDENCE ----------
confidence.inputs: ["sensor_quality", "datasheet_match", "measurement_resolution", "model_validity", "evidence_consistency"]
confidence.policy: "Do not assign numeric confidence without a calibrated evidence model."
confidence.low: "Mark state UNKNOWN and request additional measurements."
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent_terms:
"electronic switch" ~= "solid-state switch" where mechanical_contacts_absent
"switch ON" ~= "conducting state" only when device-specific conditions hold
"switch OFF" ~= "blocking state" subject to leakage and device topology
not_equivalent:
"electronic switch" != "mechanical isolator"
"commanded OFF" != "verified de-energised"
"gate drive removed" != "thyristor current interrupted"
# ---------- SAFETY_CONSTRAINTS ----------
safety.require: "Verify voltage, current, thermal and safe-operating-area ratings."
safety.require: "Account for inductive load transients and stored energy."
safety.require: "Do not treat semiconductor OFF state as safe galvanic isolation."
safety.require: "Use suitable independent protective devices and competent engineering review."
safety.prohibit: "Assuming an inferred software state proves electrical safety."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "Canonical UTF-8 representation of the final published flow"
flow_hash.value: "UNASSIGNED — compute after final publication"
# ---------- UPDATE_MODEL ----------
update.trigger: ["ontology_revision", "new_device_variant", "validated_fault_evidence", "safety_standard_revision"]
update.require: ["version_increment", "source_review", "rule_validation", "hash_recalculation"]
update.policy: "Preserve provenance and previous versions; do not silently overwrite validated rules."
# ---------- END FLOW ----------
Download Code
Copy to Clipboard