flow "GridConnection" v1.0
# ---------- IDENTITY ----------
identity:
name: "Grid Connection"
class: "Power-System Entity"
domain: "Electrical Power Engineering"
representation: "Semantic Library Flow Algebra"
locale: "en-GB"
# ---------- AUTHORS ----------
authors:
primary: "Mark Anthony Higgins"
collaborator: "Sky — Recursive AI"
licence: "Open Research Licence; citation required"
# ---------- SOURCE ----------
source:
url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/power-system-entities/grid-connection-ontology.html"
page_title: "Grid Connection Ontology"
page_revised: "2026-08-04"
note: "Newly constructed semantic interpretation; not a verbatim extraction of embedded page specifications."
# ---------- PURPOSE ----------
purpose:
define: "A controlled electrical interface connecting a generating, consuming or storage installation to an external power network."
reason_about: ["connection state", "synchronisation", "import/export", "protection", "metering", "islanding", "fault isolation"]
boundary: "The point of common coupling (PCC), with defined ownership, voltage, frequency and protection obligations."
# ---------- STATE_MODEL ----------
state_model:
states: ["DISCONNECTED", "READY", "SYNCHRONISING", "CONNECTED", "IMPORTING", "EXPORTING", "FAULT", "ISOLATED", "MAINTENANCE"]
initial: "DISCONNECTED"
transitions:
- "DISCONNECTED -> READY when inspections_pass and protection_available"
- "READY -> SYNCHRONISING when connection_requested and synchronisation_required"
- "READY -> CONNECTED when connection_requested and synchronisation_not_required and interlocks_pass"
- "SYNCHRONISING -> CONNECTED when synchronisation_verified and interlocks_pass"
- "CONNECTED -> IMPORTING when measured_active_power_at_PCC indicates net import"
- "CONNECTED -> EXPORTING when measured_active_power_at_PCC indicates net export and export_authorised"
- "IMPORTING -> CONNECTED when net_import_ceases"
- "EXPORTING -> CONNECTED when net_export_ceases"
- "CONNECTED -> FAULT when protection_operates or unsafe_condition_detected"
- "IMPORTING -> FAULT when protection_operates or unsafe_condition_detected"
- "EXPORTING -> FAULT when protection_operates or unsafe_condition_detected"
- "FAULT -> ISOLATED when breaker_open_confirmed and safe_isolation_verified"
- "ISOLATED -> MAINTENANCE when authorised_lockout_applied"
- "MAINTENANCE -> READY when maintenance_complete and tests_pass and authorisation_granted"
invariant: "A commanded open breaker is not proof of absence of voltage."
# ---------- ENTITIES ----------
entities:
GridConnection: ["point_of_common_coupling", "connection_agreement", "rated_capacity", "operating_state"]
PowerGrid: ["nominal_voltage", "nominal_frequency", "fault_level", "network_constraints"]
ConnectedInstallation: ["generation", "load", "energy_storage", "power_electronics"]
CircuitBreaker: ["position", "trip_status", "interrupting_rating"]
ProtectiveRelay: ["voltage_protection", "frequency_protection", "overcurrent_protection", "earth_fault_protection"]
SynchronisationUnit: ["voltage_difference", "frequency_difference", "phase_angle_difference"]
PowerMeter: ["import_energy", "export_energy", "active_power", "reactive_power"]
EarthingSystem: ["bonding", "earth_fault_path", "earthing_arrangement"]
GridOperator: ["permission", "operating_limits", "connection_requirements"]
# ---------- PATHWAYS ----------
pathways:
establish_connection:
input: ["installation", "grid", "connection_agreement", "test_results"]
require: ["rated_equipment", "compatible_voltage", "compatible_frequency", "protection_verified", "earthing_verified", "operator_authorisation"]
evaluate: "check interface ratings, protection settings, operating envelope and applicable synchronisation requirements"
output: "READY or REJECTED with reasons"
synchronise:
input: ["grid_voltage", "installation_voltage", "grid_frequency", "installation_frequency", "phase_angle_difference"]
require: ["synchronisation_required", "live_measurements_valid", "permitted_limits_configured"]
evaluate: "compare voltage, frequency and phase angle against approved site-specific limits"
output: "SYNCHRONISATION_VERIFIED or HOLD"
connect:
input: ["connection_request", "interlock_status", "protection_status"]
require: ["READY or SYNCHRONISATION_VERIFIED", "interlocks_pass", "protection_healthy", "authorisation_valid"]
action: "request breaker closure via approved control system"
verify: "independent breaker-position and electrical measurements"
output: "CONNECTED or FAILED_CONNECTION"
monitor_power:
input: ["voltage", "current", "phase", "power_factor", "meter_readings"]
derive: "P_total = sum(per_phase_real_power)"
derive: "Q_total = sum(per_phase_reactive_power)"
convention: "positive PCC active power denotes import; negative denotes export"
output: ["net_import", "net_export", "reactive_power", "operating_limit_status"]
respond_to_fault:
input: ["protection_trip", "voltage_anomaly", "frequency_anomaly", "earth_fault", "loss_of_mains"]
evaluate: "identify protection operation, preserve evidence and initiate approved disconnection sequence"
output: "FAULT -> ISOLATED only after verified isolation"
constraint: "Do not automatically re-energise until all applicable reconnection conditions are met."
reconnect:
input: ["fault_clearance", "grid_status", "protection_reset", "operator_permission"]
require: ["cause_resolved", "grid_stable", "tests_pass", "authorised_reconnection", "synchronisation_if_required"]
output: "READY; connection remains a separate controlled transition"
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine:
seed: "Observe grid connection and its dependencies."
expand: "Trace PCC -> switchgear -> protective relay -> metering -> grid -> connected installation."
inspect: "Evaluate current state, measurements, permissions and protective constraints."
infer: "Identify mismatches, faults and permissible next states."
validate: "Reject transitions unsupported by measurements, settings or authorisation."
recurse: "Repeat when network topology, equipment state or operating limits change."
stop: "Return a supported state and evidence trail, or INDETERMINATE when evidence is insufficient."
# ---------- INFERENCE_RULES ----------
inference_rules:
- "IF breaker_open_confirmed THEN electrical_path_open; DO NOT infer de_energised."
- "IF voltage_or_frequency_outside_approved_limits THEN inhibit_connection_or_initiate_approved_protection_response."
- "IF synchronisation_required AND synchronisation_not_verified THEN prohibit_closure."
- "IF net_active_power_at_PCC > 0 THEN classify IMPORTING under declared sign convention."
- "IF net_active_power_at_PCC < 0 AND export_authorised THEN classify EXPORTING under declared sign convention."
- "IF net_active_power_at_PCC < 0 AND NOT export_authorised THEN flag UNAUTHORISED_EXPORT."
- "IF protective_trip_asserted THEN classify FAULT and require verified protective action."
- "IF loss_of_mains_detected THEN apply approved anti-islanding behaviour; intentional islanding requires separate engineered controls."
- "IF measurements_conflict THEN classify INDETERMINATE and request verification."
# ---------- CONFIDENCE ----------
confidence:
high: "Independent, current measurements agree with verified device states and approved settings."
medium: "Measurements are valid but one non-critical corroborating source is unavailable."
low: "Stale, incomplete or conflicting evidence; do not authorise energisation."
evidence: ["meter_timestamp", "breaker_auxiliary_contacts", "relay_events", "test_records", "operator_permission"]
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
"grid connection": ["utility interconnection", "network connection", "grid interconnection"]
"point of common coupling": ["PCC", "grid interface point"]
"loss of mains": ["loss of grid supply", "mains failure"]
"grid export": ["power export", "export to network"]
distinction: "A grid connection is an interface; it is not identical to the whole power grid, a transformer or a single circuit breaker."
# ---------- FLOW_HASH ----------
flow_hash:
algorithm: "SHA-256"
scope: "Canonical UTF-8 content of this file excluding the hash value itself"
value: "NOT_COMPUTED"
note: "Compute on publication; do not invent a digest."
# ---------- UPDATE_MODEL ----------
update_model:
version: "1.0"
created: "2026-11-16"
triggers: ["ontology_revision", "protection_requirement_change", "network_code_change", "engineering_validation"]
procedure: "Review source, verify constraints, revise flow, increment version and regenerate hash."
safety: "Conceptual reasoning representation only; not a switching instruction, protection setting schedule or substitute for qualified engineering review."
# ---------- END FLOW ----------
Download Code
Copy to Clipboard