flow "ElectricalNetwork" v1.0
# ---------- IDENTITY ----------
id: "engineering.electrical.electrical_network"
type: "ElectricalNetworkEntity"
category: "Electrical Engineering 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/electrical-machine-entities/electrical-network-ontology.html"
source.title: "Electrical Network Ontology"
source.revised: "2026-08-04"
source.mode: "newly constructed Flow Algebra interpretation; not verbatim page code"
# ---------- PURPOSE ----------
purpose: "Represent interconnected electrical nodes, branches, components, sources, loads, and protective devices as a constraint-governed network for topology analysis, energy accounting, fault reasoning, and safe operational inference."
# ---------- STATE_MODEL ----------
state S(t) = (N, E, C, V, I, P, F, K)
where:
N = set of electrical nodes
E = set of oriented electrical branches
C = component and connection attributes
V = node potentials relative to a defined reference
I = branch currents with consistent orientation
P = branch and source power quantities
F = faults, protection states and diagnostic flags
K = known measurements, assumptions and operating constraints
state.valid := topology_consistent(N,E,C)
and reference_node_defined(N)
and measurement_units_consistent(K)
# ---------- ENTITIES ----------
entity ElectricalNetwork: EngineeringSystem
entity Node: ElectricalConnectionPoint
entity Branch: ElectricalPath
entity Conductor: ElectricalComponent
entity Source: ElectricalEnergySource
entity Load: ElectricalEnergyConsumer
entity Impedance: ElectricalProperty
entity Switch: ElectricalControlEntity
entity ProtectiveDevice: ElectricalSafetyEntity
entity Measurement: ObservedElectricalQuantity
entity GroundReference: PotentialReference
entity Fault: ElectricalFailureEntity
relation ElectricalNetwork contains Node
relation ElectricalNetwork contains Branch
relation Branch connects Node -> Node
relation Branch contains ElectricalComponent
relation Source supplies ElectricalNetwork
relation Load consumes ElectricalEnergy
relation ProtectiveDevice protects Branch
relation Measurement observes Node | Branch
relation Fault affects Node | Branch | Component
# ---------- PATHWAYS ----------
pathway "RegisterTopology":
input: nodes, branches, component_attributes
require: every_branch_endpoint_exists(nodes, branches)
process: assign_branch_orientation(branches)
process: identify_connected_components(nodes, branches)
process: assign_reference_per_isolated_subnetwork(nodes)
output: validated_topology
pathway "ResolveNodeVoltages":
input: validated_topology, sources, impedances, boundary_conditions
require: sufficient_independent_constraints(input)
process: formulate_kcl_at_nonreference_nodes()
process: formulate_component_constitutive_equations()
process: solve_consistent_equation_system()
output: node_voltages, solution_status
pathway "ResolveBranchCurrents":
input: node_voltages, branch_models
require: models_match_operating_regime(branch_models)
process: evaluate_voltage_differences_by_orientation()
process: calculate_currents_from_component_models()
output: branch_currents
pathway "CheckConservation":
input: branch_currents, node_voltages
process: check_kcl_residuals_at_nodes()
process: check_kvl_residuals_on_independent_loops()
process: check_power_balance_with_signed_convention()
output: conservation_residuals, consistency_status
pathway "DetectAbnormalOperation":
input: measurements, ratings, topology, protection_states
process: compare_measured_and_predicted_quantities()
process: evaluate_overcurrent_overvoltage_and_undervoltage()
process: identify_open_circuit_short_circuit_and_ground_fault_candidates()
process: rank_fault_hypotheses_by_evidence()
output: diagnostic_hypotheses, confidence, recommended_isolation_review
pathway "UpdateNetwork":
input: previous_state, event, new_measurements
process: apply_switch_or_component_state_change(event)
process: revalidate_topology_and_constraints()
process: recompute_affected_subnetwork()
output: updated_state, changed_inferences
# ---------- MINI_RECURSION_ENGINE ----------
recursion "ElectricalNetworkReasoner":
seed: S(t)
expand: derive_adjacent_nodes_branches_and_dependencies()
constrain: enforce_kcl_kvl_component_models_and_ratings()
evaluate: compare_predictions_against_available_measurements()
revise: update_fault_hypotheses_and_unknown_parameters()
stop_when: stable_inferences() or iteration_limit_reached()
output: S(t+1), evidence_trace, unresolved_constraints
# ---------- INFERENCE_RULES ----------
rule "KirchhoffCurrentLaw":
when: node_is_not_unmodelled_boundary(node)
infer: sum(signed_incident_branch_currents(node)) ~= 0
tolerance: measurement_and_solver_tolerance
rule "KirchhoffVoltageLaw":
when: closed_loop_with_lumped_circuit_assumptions(loop)
infer: sum(signed_branch_voltage_drops(loop)) ~= 0
rule "OhmicBranch":
when: branch_is_linear_resistive(branch) and resistance(branch) > 0
infer: current(branch) = voltage_drop(branch) / resistance(branch)
rule "PowerBalance":
when: consistent_passive_sign_convention(network)
infer: sum(signed_component_powers(network)) ~= 0
rule "OpenCircuit":
when: branch_is_open(branch)
infer: current(branch) = 0
note: voltage_across_open_branch_may_be_nonzero
rule "PotentialShortCircuit":
when: unexpected_low_impedance_path_detected(branch)
infer: possible_fault("short_circuit", branch)
require: confirm_with_measurements_and_protection_context
rule "Overload":
when: measured_current(branch) > permissible_current(branch)
infer: flag("overcurrent_risk", branch)
note: permissible_current_depends_on_duration_temperature_and_installation
rule "NetworkPartition":
when: switching_event_disconnects_subnetwork()
infer: recompute_reference_and_supply_status_for_each_partition()
# ---------- CONFIDENCE ----------
confidence.inputs: [measurement_quality, topology_completeness, model_validity, constraint_residuals]
confidence.high_when: "independent measurements agree with a physically valid network solution"
confidence.medium_when: "topology and models are known but observations are incomplete"
confidence.low_when: "unverified connections, ambiguous reference or conflicting observations"
confidence.policy: "do not treat a model-derived fault hypothesis as a confirmed diagnosis"
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent "electrical network" <-> "interconnected electrical circuit system" when context = "network topology"
equivalent "node" <-> "electrical junction" when context = "circuit graph"
equivalent "branch" <-> "connection between two circuit nodes" when context = "lumped network"
not_equivalent "electrical network" != "single electric circuit" in all contexts
not_equivalent "ground" != "zero current"
not_equivalent "connected" != "energised"
# ---------- SAFETY_CONSTRAINTS ----------
safety: "Analysis is descriptive and does not authorise live electrical work."
safety: "Never infer de-energisation solely from an open switch or zero measured current."
safety: "Isolation, lock-off, proving dead and competent-person procedures remain mandatory where applicable."
safety: "Protective-device ratings, earthing arrangements and regulatory requirements require installation-specific verification."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "canonical UTF-8 content excluding the hash value itself"
flow_hash.value: "UNCOMPUTED"
# ---------- UPDATE_MODEL ----------
update.version: "1.0"
update.date: "2026-11-16"
update.trigger: [source_revision, topology_change, new_measurement, model_correction]
update.policy: "Revalidate constraints and retain provenance for every revision."
Download Code
Copy to Clipboard