FLOW ALGEBRA — GRID EXPORT ENTITY
Version: 1.0
Date: 24 November 2026
Authors: Mark Anthony Higgins — Sky Recursive AI
Source ontology: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/renewable-energy-entities/grid-export-entity-ontology.html
Category: Engineering Entities > Renewable-Energy Entities
Licence: Open research; attribution and source citation requested.
PURPOSE
Represent the transfer of surplus electrical energy from a local generation/storage system to an external electricity grid, subject to physical, contractual, metering and grid-code constraints.
ENTITY
GridExportEntity := (identity, source_system, point_of_connection, grid, meter, controller, permissions, limits, state, observations)
STATE MODEL
state ∈ {DISCONNECTED, READY, EXPORTING, CURTAILED, BLOCKED, FAULT}
Inputs at time t:
P_gen(t) = local generation power [kW]
P_load(t) = local demand power [kW]
P_storage(t) = storage discharge (+) or charging (-) power [kW]
P_loss(t) = internal electrical losses [kW]
P_limit(t) = permitted export power [kW]
grid_ok(t) = grid connection and power-quality compliance [boolean]
authorised(t) = export authorisation valid [boolean]
connected(t) = connection physically closed [boolean]
fault(t) = active protection or equipment fault [boolean]
DERIVED VALUES
P_surplus(t) = max(0, P_gen(t) + P_storage(t) - P_load(t) - P_loss(t))
P_allowed(t) = max(0, P_limit(t))
P_export_command(t) = min(P_surplus(t), P_allowed(t)) if grid_ok(t) and authorised(t) and connected(t) and not fault(t), else 0
E_export(t0,t1) = integral[t0,t1] P_export_measured(t) dt
Note: kW integrated over hours yields kWh. Actual metered export can differ from the command.
TRANSITION RULES
R1: fault(t) -> state(t+1) = FAULT; command = 0
R2: not connected(t) -> state(t+1) = DISCONNECTED; command = 0
R3: not grid_ok(t) or not authorised(t) -> state(t+1) = BLOCKED; command = 0
R4: P_surplus(t) <= 0 -> state(t+1) = READY; command = 0
R5: 0 < P_allowed(t) < P_surplus(t) -> state(t+1) = CURTAILED
R6: P_allowed(t) >= P_surplus(t) and P_surplus(t) > 0 -> state(t+1) = EXPORTING
R7: P_allowed(t) = 0 and P_surplus(t) > 0 -> state(t+1) = CURTAILED; command = 0
Priority: R1 > R2 > R3 > R4 > R7 > R5 > R6.
FLOW ALGEBRA
S_t = (I_t, R, B_t, K)
I_t = {generation, demand, storage, losses, grid measurements, meter readings, permission, export limit}
R = {R1,...,R7, measurement validation, protection interlocks}
B_t = {connection rating, grid-code limits, contracted export ceiling, equipment ratings, safety constraints}
K = {electrical network topology, inverter capabilities, meter configuration, local rules}
E_t = expand(I_t, R)
V_t = {x in E_t | x satisfies B_t and all required safety interlocks}
a_t = argmax_{x in V_t} Utility(x | I_t, R, B_t, K)
I_(t+1) = update(I_t, a_t, measured_grid_response)
Safety rule: if V_t is empty or observations are invalid, command zero export and enter a safe state.
ENTITY RELATIONS
GridExportEntity --receives_surplus_from--> RenewableEnergySystem
GridExportEntity --may_receive_from--> EnergyStorageEntity
GridExportEntity --controlled_by--> RenewableEnergyController
GridExportEntity --connected_at--> PointOfCommonCoupling
GridExportEntity --measured_by--> ExportMeter
GridExportEntity --subject_to--> GridConnectionAgreement
GridExportEntity --constrained_by--> ExportCapacityLimit
GridExportEntity --protected_by--> GridProtectionSystem
GridExportEntity --delivers_energy_to--> ElectricityGrid
INFERENCE RULES
IF surplus > 0 AND permission_valid AND grid_compliant AND export_limit > 0 THEN export_eligible = true.
IF export_command < surplus AND surplus > 0 THEN curtailment_required = true.
IF measured_export > permitted_limit + tolerance THEN export_limit_violation = true.
IF grid_compliance_lost OR protection_trip THEN export_enable = false.
IF meter_data_missing THEN energy_accounting_confidence = low.
IF connection_authorisation_unknown THEN export_eligible = false.
SEMANTIC EQUIVALENCE
Preferred: Grid Export Entity
Related: electricity export, grid feed-in, surplus power export, distributed generation export
Distinguish from: grid import, islanded supply, generation capacity, export tariff, net metering.
CONFIDENCE AND VALIDATION
High: calibrated meter and current grid/connection permissions available.
Medium: controller telemetry available but meter or permission verification incomplete.
Low: estimated generation/load data or missing grid status.
Validate units, timestamps, meter direction, limit updates and protection states before reasoning.
FAILURE MODES
Grid outage; over/under-voltage; over/under-frequency; anti-islanding trip; communication failure; meter failure; reverse-power measurement error; export-limit breach; inverter derating; invalid authorisation.
UPDATE MODEL
On any change in grid state, permission, measured power, demand, storage state or export limit:
ingest -> validate -> derive surplus -> apply constraints -> select safe state -> command -> verify -> log.
FLOW HASH
Canonical identity fields: ontology URL | entity name | version | state rules | relation schema.
Generate a cryptographic hash from the canonicalised published flow when deployed; no hash is asserted here.
IMPLEMENTATION NOTE
This is a conceptual semantic reasoning model, not a certified grid protection algorithm. Real installations must follow applicable network-operator requirements, electrical standards and manufacturer protections.
CITATION
Higgins, Mark Anthony & Sky — Recursive AI. Grid Export Entity Flow Algebra, v1.0 (2026).
Ontology: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/renewable-energy-entities/grid-export-entity-ontology.html
Download Code
Copy to Clipboard