GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Websites and apps / grid-dictionary / seed

Definitions and 1 more file

A configuration file in the seed folder of Grid Dictionary covering substations, the Renewable Energy Planning Database (REPD) register, cables and interconnectors.

679 lines of YAML and JavaScript from grid-dictionary, grid-distance-maths, in 2 files. Topic: Websites and apps. Section 1995 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. Definitions docs-config · grid-dictionary / seed/definitions.yaml lines 1–614
  2. Placement transform · grid-distance-maths / src/placement.mjs lines 1–65

Definitions

A configuration file in the seed folder of Grid Dictionary covering substations, the Renewable Energy Planning Database (REPD) register, cables and interconnectors.

docs-configgrid-dictionary / seed/definitions.yaml · lines 1–614 of 614 · Not reached from any entry point (candidate for review)

Why it exists in the grid workflow
Domain terms in the code: substations, the REPD register, cables, interconnectors, 400kV, 275kV. README: "`tools/build_dictionary.py` reads `seed/definitions.yaml` (the curated authoritative terms), the wandering-star code index (`stars/code/index.json` + `code/f/*.json`), `stars/blocks/blocks.json`, and the Maya cards, then writes:"
Inputs & outputs
Voltage levels named: 400kV, 275kV, 132kV, 33kV, 11kV.
What it achieves
Authoritative grid terms for GlobalGrid2050, curated by the Ventus lab.
Why it matters
No other file in the estate was found to import it.
Application
grid-dictionary · seed · configuration
Uses
none found
Used by
none found
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
grid-dictionary@21b73d7cd5a6171245e0b3d1b69b0ce4d6322a63 seed/definitions.yaml:1-614 · blob d7850ef42ba9aafefeea480af06e7c1bc81c9250 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
# grid-dictionary seed definitions
# Authoritative grid terms for GlobalGrid2050, curated by the Ventus lab.
# Each term has a PERMANENT key. The build script (tools/build_dictionary.py) reads this seed plus the estate's
# own code history and DNO/TSO data, assigns any missing keys, and emits data/dictionary.json + DICTIONARY.md +
# data/maya-links.json (definition <-> Maya card links, primary and secondary, one-to-many).
#
# Honesty rule (from the SPIDER_MAYA_REMOVER doctrine): a definition states established, sourced meaning. Where a
# figure is operator-specific or time-varying it says so and points to the body that publishes it; it never states a
# headroom, rating or price the operator has not published.
#
# fields: key | term | aliases | category | definition | source | related (secondary keys) | estate (where it appears in our code)

meta:
  version: "1"
  categories:
    bodies: Who runs and regulates the grid
    network: The physical network
    connection: Getting connected
    market: Prices and settlement
    physics: The engineering
    planning: Projects and pipeline
    data: The datasets

definitions:
  # ---- bodies ----
  - key: neso
    term: National Energy System Operator (NESO)
    aliases: [NESO, ESO, National Grid ESO]
    category: bodies
    definition: >
      The public body that operates Great Britain's electricity (and gas) system: it balances supply and demand
      second by second, runs the connections process and the network model, and plans the future system. NESO began
      on 1 October 2024, taking over the electricity system operator role from National Grid ESO; it operates the
      system but does not own transmission assets.
    source: "NESO; UK Government (Energy Act 2023)"
    related: [tso, nget, national-grid, dc-power-flow, connection-capacity, constraint, gsp]
    estate: "data_uk_dno_and_tso operators.csv (neso, role SO)"
  - key: tso
    term: Transmission System Operator (TSO)
    aliases: [TSO, SO, system operator]
    category: bodies
    definition: >
      The party responsible for operating a high-voltage transmission system, keeping it in balance and secure, and
      granting access to it. In Great Britain the system-operator role (NESO) is separated from transmission ownership
      (the transmission owners). On the continent one company often does both, for example TenneT.
    source: "Ofgem; ENTSO-E"
    related: [neso, to, dno, tennet, transmission]
    estate: "data_uk_dno_and_tso (role SO/TO)"
  - key: to
    term: Transmission Owner (TO)
    aliases: [TO, transmission owner]
    category: bodies
    definition: >
      The licensed owner of the high-voltage transmission assets (lines, cables, substations) in a region, responsible
      for building and maintaining them. In GB the TOs are National Grid Electricity Transmission (England and Wales),
      SP Transmission (south Scotland) and SSEN Transmission (north Scotland).
    source: "Ofgem; transmission licences"
    related: [nget, national-grid, tso, neso, transmission]
    estate: "data_uk_dno_and_tso transmission_ownership.csv"
  - key: nget
    term: National Grid Electricity Transmission (NGET)
    aliases: [NGET, National Grid Electricity Transmission]
    category: bodies
    definition: >
      The transmission owner for the high-voltage network in England and Wales, part of National Grid plc. NGET owns
      and maintains the 400 kV and 275 kV transmission network there; NESO, not NGET, operates the system.
    source: "National Grid; Ofgem"
    related: [national-grid, to, neso, transmission, voltage-level]
    estate: "data_uk_dno_and_tso operators.csv (nget, role TO)"
  - key: national-grid
    term: National Grid plc
    aliases: [National Grid]
    category: bodies
    definition: >
      The listed company that owns the electricity transmission network in England and Wales (through NGET) and gas
      transmission, and operates networks in the United States. Since NESO took over system operation in 2024, National
      Grid's GB electricity role is asset ownership, not system operation.
    source: "National Grid"
    related: [nget, to, neso]
    estate: "referenced across the estate's transmission datasets"
  - key: tennet
    term: TenneT
    aliases: [TenneT]
    category: bodies
    definition: >
      The transmission system operator for the Netherlands and a large part of Germany, and a benchmark for combined
      onshore and offshore grid build-out. TenneT both owns and operates its transmission network, which is the
      continental model that contrasts with GB's split between NESO (operator) and the transmission owners.
    source: "TenneT"
    related: [tso, to, interconnector, offshore]
    estate: "reference point for cross-border comparison; MV/HV components work (globalgrid2050 mv_and_hv_components)"
  - key: dno
    term: Distribution Network Operator (DNO)
    aliases: [DNO]
    category: bodies
    definition: >
      A company licensed to operate the lower-voltage electricity distribution network (132 kV and below in England
      and Wales) across a defined geographic licence area. There are 14 GB distribution licence areas run by six DNO
      groups; a project below transmission voltage connects to its area's DNO. UK Power Networks, National Grid
      Electricity Distribution, SP Energy Networks, SSEN, Northern Powergrid and Electricity North West are the six.
    source: "Ofgem; NESO DNO licence-area boundaries; DNO open-data portals"
    related: [dso, idno, licence-area, gsp-group, ukpn, connection-capacity, headroom]
    estate: "data_uk_dno_and_tso operators.csv + mpan_distributor.csv (14 areas, ids 10-23)"
  - key: dso
    term: Distribution System Operator (DSO)
    aliases: [DSO]
    category: bodies
    definition: >
      A DNO that also actively operates its network in real time, managing flexibility, local balancing and connections
      rather than only owning the wires. GB DNOs are transitioning to the DSO role under Ofgem's direction; ESB Networks
      in the Republic of Ireland is licensed as a DSO.
    source: "Ofgem"
    related: [dno, flexibility, headroom]
    estate: "data_uk_dno_and_tso operators.csv (esb_networks, role DSO)"
  - key: idno
    term: Independent Distribution Network Operator (IDNO)
    aliases: [IDNO]
    category: bodies
    definition: >
      A licensed distribution operator whose networks are not tied to one geographic area; an IDNO can own and run a
      network inside another DNO's licence area, typically new connections such as housing or industrial sites.
    source: "Ofgem"
    related: [dno, licence-area, connection-capacity]
    estate: "data_uk_dno_and_tso DEFINITIONS.md"
  - key: ukpn
    term: UK Power Networks (UKPN)
    aliases: [UKPN, UK Power Networks]
    category: bodies
    definition: >
      The DNO group that runs three of the 14 GB distribution licence areas: Eastern England (Eastern Power Networks),
      London (London Power Networks) and South Eastern (South Eastern Power Networks). It publishes open data on network
      capacity and headroom that a connecting project reads for its area.
    source: "UK Power Networks open data; Ofgem"
    related: [dno, licence-area, headroom, connection-capacity]
    estate: "data_uk_dno_and_tso operators.csv (ukpn); mpan_distributor.csv areas 10, 12, 19"
  - key: ofgem
    term: Ofgem
    aliases: [Ofgem, Office of Gas and Electricity Markets]
    category: bodies
    definition: >
      The independent energy regulator for Great Britain. Ofgem grants the transmission and distribution licences,
      sets the price controls that fund network investment (the RIIO framework), and approves the codes and charging
      methodologies that govern connections and use of the system.
    source: "Ofgem; UK Government"
    related: [neso, dno, to, riio, tnuos, licence-area]
    estate: "regulator_id in data_uk_dno_and_tso operators.csv"
  - key: uk-government
    term: UK Government (DESNZ)
    aliases: [DESNZ, government, UK Government]
    category: bodies
    definition: >
      The Department for Energy Security and Net Zero sets energy policy, the pathway to net zero, and publishes the
      Renewable Energy Planning Database (REPD). It legislated NESO into being through the Energy Act 2023.
    source: "UK Government (DESNZ)"
    related: [repd, neso, net-zero]
    estate: "REPD is the spine of the pipeline (globalgrid2050 uk_renewables_pipeline)"
  - key: elexon
    term: Elexon
    aliases: [Elexon, BSC, BMRS]
    category: bodies
    definition: >
      The body that runs the Balancing and Settlement Code, which settles the difference between what generators and
      suppliers contracted and what they actually delivered, every half-hour. Elexon's data (through BMRS) is the source
      of GB system prices and settlement periods, grouped by GSP group.
    source: "Elexon; BSC"
    related: [gsp-group, system-price, market, settlement-period]
    estate: "~161,000 half-hourly periods since 2016 (mission); data-gb-electricity"

  # ---- network ----
  - key: transmission
    term: Transmission network
    aliases: [transmission, grid]
    category: network
    definition: >
      The highest-voltage part of the electricity network (400 kV and 275 kV in England and Wales, plus 132 kV in
      Scotland) that carries bulk power long distances between generators, interconnectors and grid supply points.
    source: "NESO; National Grid"
    related: [voltage-level, gsp, distribution, circuit, substation]
    estate: "engine/network-topology.js; data-grid-gb gb-transmission-network"
  - key: distribution
    term: Distribution network
    aliases: [distribution]
    category: network
    definition: >
      The lower-voltage network (132 kV and below in England and Wales) that a DNO operates to deliver power from grid
      supply points to homes, businesses and most connecting projects.
    source: "Ofgem; DNO portals"
    related: [dno, voltage-level, gsp, licence-area]
    estate: "data_uk_dno_and_tso"
  - key: substation
    term: Substation
    aliases: [substation, primary substation, grid substation]
    category: network
    definition: >
      A site where voltage is transformed and circuits are switched. A grid (transmission) substation connects the
      transmission network to distribution; a primary substation steps distribution voltage down towards local supply.
      A connecting project meets the grid at a substation.
    source: "NESO; DNO portals"
    related: [gsp, transmission, distribution, connection-point, transformer]
    estate: "engine/network-topology.js; the pipeline's nearest-substation join"
  - key: gsp
    term: Grid Supply Point (GSP)
    aliases: [GSP, grid supply point]
    category: network
    definition: >
      A point where the transmission network hands power to a distribution network. GSPs are the boundary between
      NESO's transmission model and a DNO's area, and a firm connection is often bound to its primary or grid supply
      point.
    source: "NESO; Ofgem"
    related: [gsp-group, substation, transmission, distribution, firm-capacity]
    estate: "the next-stage join in the mission (project -> supply point)"
  - key: gsp-group
    term: GSP group
    aliases: [GSP group, grid supply point group]
    category: network
    definition: >
      One of the 14 GB regions used for electricity settlement, each aligned to a distribution licence area and labelled
      _A to _P. Elexon settles and prices by GSP group; the mapping to the 14 DNO areas is the join key.
    source: "Elexon; Ofgem"
    related: [gsp, elexon, licence-area, settlement-period]
    estate: "data_uk_dno_and_tso mpan_distributor.csv (gsp_group column)"
  - key: licence-area
    term: Distribution licence area
    aliases: [licence area, DNO area]
    category: network
    definition: >
      One of the 14 regulated geographic areas into which GB electricity distribution is divided, each with a numeric
      id 10 to 23 and run by a DNO. The area a project sits in decides which DNO's network and open data apply to it.
    source: "Ofgem; NESO boundaries"
    related: [dno, gsp-group, ukpn, mpan]
    estate: "data_uk_dno_and_tso mpan_distributor.csv (ids 10-23)"
  - key: circuit
    term: Circuit
    aliases: [circuit, line, cable]
    category: network
    definition: >
      A single electrical path between two points on the network, overhead line or underground cable, with a rating for
      how much power it can carry. Electrical distance is measured in circuit hops.
    source: "NESO; NGET"
    related: [seasonal-rating, electrical-distance, transmission, reactance]
    estate: "engine/electrical-distance.js; data-grid-gb (circuits, ratings)"
  - key: interconnector
    term: Interconnector
    aliases: [interconnector]
    category: network
    definition: >
      A high-voltage link, usually subsea DC, that connects the GB grid to another country's grid so power can flow
      either way with the market. GB has around sixteen interconnectors; they sit outside the REPD project spine.
    source: "NESO; National Grid Interconnectors"
    related: [tennet, transmission, market, dc-power-flow]
    estate: "engine/interconnector-economics.js; 16 GB interconnectors (pipeline)"

  # ---- connection ----
  - key: connection-capacity
    term: Connection capacity
    aliases: [connection capacity]
    category: connection
    definition: >
      How much generation or demand a point on the network can accept, given the ratings of the circuits and
      transformers around it. It is not a single published number everywhere; the operator that owns the point states
      it, and it changes as the network and the connection queue change.
    source: "NESO (transmission); DNO portals (distribution)"
    related: [firm-capacity, headroom, dno, neso, curtailment]
    estate: "engine/connection-capacity.js"
  - key: firm-capacity
    term: Firm capacity
    aliases: [firm capacity, firm connection]
    category: connection
    definition: >
      Capacity a connection can rely on at all times, including when part of the network is out for maintenance or
      fault, as opposed to a non-firm connection that may be curtailed. A firm connection is the stronger, usually more
      expensive, offer.
    source: "NESO; Ofgem"
    related: [connection-capacity, curtailment, headroom, gsp]
    estate: "engine/firm-capacity.js"
  - key: headroom
    term: Headroom
    aliases: [headroom, spare capacity]
    category: connection
    definition: >
      The spare capacity left at a substation or on a circuit before it reaches its limit. DNOs publish headroom in
      their open data; the mission's next stage binds each mapped substation to the operator's published headroom
      rather than a summed or inferred figure.
    source: "DNO open data (e.g. UK Power Networks); NESO"
    related: [connection-capacity, firm-capacity, dno, ukpn, substation]
    estate: "the substation-to-headroom join (mission next stage)"
  - key: curtailment
    term: Curtailment
    aliases: [curtailment, constraint payment]
    category: connection
    definition: >
      Reducing a generator's output below what it could produce because the network cannot carry the power at that
      moment. Curtailment of a non-firm connection avoids reinforcing the grid; constraint costs are what the system
      pays to manage it.
    source: "NESO"
    related: [constraint, firm-capacity, connection-capacity]
    estate: "constraint-cost study (globalgrid2050 studies)"
  - key: constraint
    term: Constraint
    aliases: [constraint, network constraint]
    category: connection
    definition: >
      A point where the network cannot carry all the power that wants to flow, so NESO must pay to move generation or
      demand. Constraints are where electrification meets its first physical limit, and where new capacity is worth most.
    source: "NESO"
    related: [curtailment, connection-capacity, dc-power-flow, boundary]
    estate: "engine electrical-distance and boundary crossing; constraint-cost study"
  - key: connection-reform
    term: Connections reform (TMO4+)
    aliases: [connection reform, TMO4+, queue reform, gate 2]
    category: connection
    definition: >
      NESO's overhaul of the connections queue, moving from first-come first-served to a system that prioritises ready
      and needed projects, so viable schemes connect sooner. It reorders the multi-hundred-gigawatt queue behind the
      transmission network.
    source: "NESO; Ofgem"
    related: [neso, connection-capacity, firm-capacity, pipeline]
    estate: "context for prioritising the 7,600+ pipeline projects"

  # ---- market ----
  - key: system-price
    term: System (imbalance) price
    aliases: [system price, imbalance price]
    category: market
    definition: >
      The half-hourly price at which the market settles the difference between contracted and delivered electricity,
      set through the Balancing and Settlement Code. It is the price signal a decade of GB data is built from.
    source: "Elexon; BMRS"
    related: [elexon, settlement-period, market, gsp-group]
    estate: "GB price study 2016-2026 (mission)"
  - key: settlement-period
    term: Settlement period
    aliases: [settlement period, half-hour]
    category: market
    definition: >
      A half-hour block, the unit GB electricity is metered and settled in. There are 48 in a normal day; the estate
      holds about 161,000 of them since 2016.
    source: "Elexon; BSC"
    related: [system-price, elexon, gsp-group]
    estate: "data-gb-electricity"
  - key: cfd
    term: Contracts for Difference (CfD)
    aliases: [CfD, Contracts for Difference]
    category: market
    definition: >
      The UK Government's main support scheme for low-carbon generation: a project is paid the difference between a
      fixed strike price and the market reference price, giving revenue certainty. Awarded in competitive allocation
      rounds.
    source: "UK Government (DESNZ); Low Carbon Contracts Company"
    related: [uk-government, market, repd]
    estate: "project economics context"
  - key: tnuos
    term: TNUoS
    aliases: [TNUoS, transmission use of system]
    category: market
    definition: >
      Transmission Network Use of System charges: what generators and suppliers pay to use the transmission network,
      varying by location to reflect the cost a user imposes on the grid. A locational signal for where to build.
    source: "NESO; Ofgem"
    related: [neso, ofgem, transmission, market]
    estate: "locational cost context"
  - key: riio
    term: RIIO
    aliases: [RIIO, price control]
    category: market
    definition: >
      Ofgem's framework (Revenue = Incentives + Innovation + Outputs) that sets how much network companies can earn and
      spend over a price-control period, funding the reinforcement that connections depend on.
    source: "Ofgem"
    related: [ofgem, dno, to, headroom]
    estate: "funding context for reinforcement"

  # ---- physics ----
  - key: voltage-level
    term: Voltage level
    aliases: [voltage level, kV, 400kV, 275kV, 132kV, 33kV, 11kV]
    category: physics
    definition: >
      The nominal voltage a part of the network runs at. In GB the transmission levels are 400 kV and 275 kV (and 132
      kV in Scotland); 132 kV is distribution in England and Wales, down through 33 kV and 11 kV to low voltage.
      Higher voltage carries more power with less loss.
    source: "NESO; NGET"
    related: [transmission, distribution, substation, circuit]
    estate: "voltage star; 400/275/220/132/66/33/11 kV across the code and atlas layers"
  - key: reactance
    term: Reactance
    aliases: [reactance, impedance]
    category: physics
    definition: >
      The part of a circuit's opposition to alternating current that comes from its inductance, the main quantity that
      decides how power divides between parallel paths. NESO publishes reactances in its network model; a DC power flow
      uses them.
    source: "NESO network model"
    related: [dc-power-flow, electrical-distance, circuit, kirchhoff]
    estate: "network model read by engine/network-topology.js"
  - key: electrical-distance
    term: Electrical distance
    aliases: [electrical distance, circuit hops]
    category: physics
    definition: >
      How far apart two points are electrically, measured in published circuit hops rather than kilometres, so it
      reflects how power actually flows through the network rather than straight-line geography.
    source: "NESO network model"
    related: [circuit, reactance, dc-power-flow, geodesy]
    estate: "engine/electrical-distance.js"
  - key: dc-power-flow
    term: DC power flow
    aliases: [DC power flow, load flow, power flow]
    category: physics
    definition: >
      A standard linear approximation of how power flows across a network given generation, demand and circuit
      reactances, with a named slack bus that balances the system. It shows where new power would flow and which
      boundaries it would cross.
    source: "NESO; power-systems engineering"
    related: [reactance, slack-bus, kirchhoff, constraint, boundary]
    estate: "declared DC power flow (mission), engine network modules"
  - key: slack-bus
    term: Slack bus
    aliases: [slack bus, reference bus]
    category: physics
    definition: >
      The node in a power-flow model that absorbs the difference between total generation and demand so the maths
      balances; every published answer names the slack bus it used, so the result can be checked.
    source: "power-systems engineering"
    related: [dc-power-flow, kirchhoff]
    estate: "named on every answer (mission)"
  - key: kirchhoff
    term: Kirchhoff's laws
    aliases: [Kirchhoff, Kirchhoff's laws]
    category: physics
    definition: >
      The two laws that power flow must obey: current into a node equals current out, and voltages around a loop sum to
      zero. Verifying them at every node is how a model proves it is physically consistent.
    source: "physics"
    related: [dc-power-flow, slack-bus, reactance]
    estate: "verified at every node (mission)"
  - key: fault-level
    term: Fault level
    aliases: [fault level, short-circuit level]
    category: physics
    definition: >
      The current that would flow at a point if a short circuit occurred there, which sets the rating switchgear must
      withstand. It is carried only where an operator has published it, never inferred.
    source: "DNO/TSO published fault-level data"
    related: [seasonal-rating, substation, connection-capacity]
    estate: "engine/published-fault-level.js; fault-level study (how it may and may not be used)"
  - key: seasonal-rating
    term: Seasonal rating
    aliases: [seasonal rating, winter rating, thermal rating]
    category: physics
    definition: >
      The power a circuit or transformer can carry, which is higher in winter when cooling is better; ratings are
      stated by season and never summed into a headroom the operator has not published.
    source: "NESO; NGET; DNO data"
    related: [circuit, transformer, fault-level, rating-envelope]
    estate: "engine/rating-envelope.js; data-grid-gb circuit_winter_rating_mva"
  - key: geodesy
    term: Geodesy (distance and bearing)
    aliases: [geodesy, haversine, earth radius]
    category: physics
    definition: >
      The maths that turns coordinates into real distances and bearings on the Earth's surface, the first step in
      siting and routing a connection. The Earth radius used (a mean radius for haversine) must be agreed so every
      distance is comparable.
    source: "geodesy; the estate's engine geo-core"
    related: [electrical-distance, earth-radius, substation]
    estate: "engine/geo-core.js, v9-geodesy.js; EARTH_KM constant (decision d002)"
  - key: earth-radius
    term: Earth radius (EARTH_KM)
    aliases: [EARTH_KM, earth radius]
    category: physics
    definition: >
      The radius of the Earth used to turn coordinates into kilometres. The mean radius (about 6371.0088 km) is right
      for the haversine formula; the equatorial radius (6378.137 km) would put distances out by up to 0.1 percent. The
      estate is settling on one value so every copy of the distance calculation agrees.
    source: "geodesy; estate decision d002"
    related: [geodesy, electrical-distance]
    estate: "EARTH_KM constant; open decision d002 (engine geo-core.js holds three named radii)"

  # ---- planning / data ----
  - key: repd
    term: Renewable Energy Planning Database (REPD)
    aliases: [REPD, planning database]
    category: planning
    definition: >
      The UK Government's quarterly database of renewable and storage projects (solar, wind, storage) at 1 MW and
      above, with a reference for each. It is the spine the pipeline is built on; every project is keyed to its REPD
      reference so it can be deep-linked, checked and corrected.
    source: "UK Government (DESNZ)"
    related: [uk-government, pipeline, deep-link]
    estate: "7,680 records at >=1 MW (pipeline 202609082224); repd_ref is the join key"
  - key: pipeline
    term: UK renewables pipeline
    aliases: [pipeline, project pipeline]
    category: planning
    definition: >
      The set of solar, wind and storage projects in Great Britain compiled from REPD, over 7,600 at 1 MW and above,
      each shown on the atlas and keyed to its REPD reference. It is where electrification is decided project by
      project.
    source: "GlobalGrid2050 from DESNZ REPD"
    related: [repd, deep-link, connection-reform, headroom]
    estate: "globalgrid2050 uk_renewables_pipeline"
  - key: deep-link
    term: Deep link (MAP contract)
    aliases: [deep link, MAP button]
    category: planning
    definition: >
      A link that carries a project from a list to its exact place on the atlas, using a frozen contract of parameters
      (REPD reference, technology, latitude, longitude, zoom). It is the thread that ties a pipeline row to the map.
    source: "GlobalGrid2050 deeplink contract"
    related: [repd, pipeline, substation]
    estate: "deeplink/contract.js; the MAP button in Pipeline News"
  - key: net-zero
    term: Net zero (2050)
    aliases: [net zero, 2050]
    category: planning
    definition: >
      The UK's legislated target to cut greenhouse gas emissions to net zero by 2050, which requires a much larger,
      largely electrified grid. The countdown on the platform runs to 1 January 2050.
    source: "UK Government (Climate Change Act)"
    related: [uk-government, pipeline, electrification]
    estate: "the clock and mission of globalgrid2050.com"
  - key: electrification
    term: Electrification
    aliases: [electrification, electrification demand]
    category: planning
    definition: >
      Shifting transport, heat and industry from fossil fuels to electricity, which raises electricity demand and the
      size of the grid needed. The mission argues the future grid from services rather than headline percentages.
    source: "GlobalGrid2050 studies"
    related: [net-zero, headroom, diversified-demand]
    estate: "engine/electrification-demand.js, diversified-demand.js"

  # ---- engine modules (the canonical grid maths; each is a dead end on the Spider) ----
  - key: voltage-drop
    term: Voltage drop
    aliases: [voltage drop, voltage-drop, volt drop]
    category: physics
    definition: >
      The voltage lost along a cable or line carrying a load, from its resistance and reactance. It sets how far a
      connection can run at a given voltage before the drop is unacceptable, so it shapes cable sizing and route length.
    source: "power-systems engineering; the estate engine"
    related: [voltage-level, reactance, circuit, electrical-distance]
    estate: "engine/voltage-drop.js (Vd); Computation class on the Classification graph"
  - key: power-factor
    term: Power factor
    aliases: [power factor, power-factor]
    category: physics
    definition: >
      The ratio of real power (that does work) to apparent power (that flows), between 0 and 1. A low power factor
      means more current for the same useful power, so it affects cable ratings and losses.
    source: "power-systems engineering"
    related: [reactance, seasonal-rating, circuit]
    estate: "engine/power-factor.js (Po)"
  - key: rating-envelope
    term: Rating envelope
    aliases: [rating envelope, line and transformer ratings]
    category: physics
    definition: >
      The set of seasonal ratings for the lines and transformers on a path, the limits a connection must stay within.
      Ratings are stated by season and never summed into a headroom the operator has not published.
    source: "NESO; NGET; DNO data"
    related: [seasonal-rating, circuit, transformer, firm-capacity]
    estate: "engine/rating-envelope.js (Re)"
  - key: network-topology
    term: Grid network topology
    aliases: [network topology, grid network topology, network-topology]
    category: network
    definition: >
      The map of which substations and circuits connect to which, the graph the power flows over. It is the structure a
      DC power flow and an electrical-distance calculation both walk.
    source: "NESO network model"
    related: [dc-power-flow, electrical-distance, substation, circuit]
    estate: "engine/network-topology.js (Nt)"
  - key: nearest-substation
    term: Nearest substation search
    aliases: [nearest substation, nearest substation search, substation lookup]
    category: connection
    definition: >
      Finding the substations closest to a project's coordinates, the first step in asking where it could connect. It
      turns a point on the map into candidate connection points to assess.
    source: "the estate engine"
    related: [substation, geodesy, connection-capacity, headroom]
    estate: "engine/v9-nearest-search.js (Vn)"
  - key: corridor-estimate
    term: Cable corridor estimate
    aliases: [corridor estimate, cable corridor, corridor]
    category: connection
    definition: >
      A first estimate of the route and cost of the cable corridor from a project to its connection point, over real
      terrain. It turns electrical distance into an engineering and cost picture.
    source: "the estate engine; cable engineering"
    related: [electrical-distance, nearest-substation, voltage-drop]
    estate: "engine/corridor-estimate.js (Ce); cable-trench-or-drill"
  - key: diversified-demand
    term: Diversified demand
    aliases: [diversified demand, diversity]
    category: planning
    definition: >
      The realistic peak demand of many users together, which is lower than the sum of their individual peaks because
      they do not all peak at once. It sizes what the network must actually serve as electrification grows.
    source: "power-systems planning"
    related: [electrification, electrification-demand, headroom]
    estate: "engine/diversified-demand.js (Dd)"
  - key: firm-capacity-engine
    term: Connection capacity (engine)
    aliases: [connection capacity module]
    category: connection
    definition: >
      The estate's canonical calculation of how much a point can accept, combining ratings, firmness and the network
      around it. It is the module a project's connection question is answered by, with its inputs named.
    source: "the estate engine"
    related: [connection-capacity, firm-capacity, headroom, rating-envelope]
    estate: "engine/connection-capacity.js (Cc)"

Placement

A JavaScript module in Grid Distance Maths that works with hilbert order (`hilbertOrder`).

transformgrid-distance-maths / src/placement.mjs · lines 1–65 of 65 · Not reached from any entry point (candidate for review) · pattern golden (shared by 2 files)

What it does
It calculates its inputs. Defines golden, hilbertOrder, hilbert, lattice, morph.
Downstream impact
Used directly by 1 file: Verify Placement (grid-distance-maths).
What it achieves
It is built from the golden step (`golden`), the hilbert order helper (`hilbertOrder`) and the hilbert step (`hilbert`). Where a thing goes on a plane, and what "near" means there.
Why it matters
Checked by Verify Placement.
Application
grid-distance-maths · src · JavaScript module
Uses
none found
Used by
run by Verify Placement (script call)
Produces
GOLDEN, golden, hilbertOrder, hilbert, lattice, morph
Defines here
golden, hilbertOrder, hilbert, lattice, morph
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
grid-distance-maths@8e91b07d8312acca5bcaef43e839f06a3b1d642a src/placement.mjs:1-65 · blob a29bf0ae8a03c670b3d0b719332c3973d316ca12 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
/* Placement: where a thing goes on a plane, and what "near" means there.
 *
 * The JavaScript half. placement.py is the other half and neither is
 * authoritative: they must agree, and test/verify_placement.mjs is what holds
 * them to it. Same rule as geodesy.
 *
 *   golden(key)      an archive. Adjacency is ORDER. The Kuiper arrangement.
 *   hilbert(d, o)    a swept space. Adjacency is one parameter, one step.
 *   lattice(i, rad)  mixed-radix decode: the space being arranged.
 *   morph(a, b, t)   the same points on their way from one to the other.
 */

/* the golden angle, pi*(3-sqrt(5)) = 2.39996... rad. The most irrational
 * angle there is, which is the point: a rational one eventually makes spokes. */
export const GOLDEN = Math.PI * (3 - Math.sqrt(5));

export function golden(key, spacing = 1) {
  if (key < 0) throw new RangeError("key must be >= 0");
  const r = spacing * Math.sqrt(key), t = key * GOLDEN;
  return [r * Math.cos(t), r * Math.sin(t)];
}

export function hilbertOrder(n) {
  if (n <= 0) throw new RangeError("n must be > 0");
  let order = 0;
  while ((1 << order) * (1 << order) < n) order += 1;
  return order;
}

export function hilbert(d, order) {
  const side = 1 << order;
  if (d < 0 || d >= side * side) throw new RangeError("d out of range");
  let x = 0, y = 0, t = d, s = 1;
  while (s < side) {
    const rx = Math.floor(t / 2) % 2 ? 1 : 0;
    const ry = (t ^ rx) % 2 ? 1 : 0;
    if (ry === 0) {
      if (rx === 1) { x = s - 1 - x; y = s - 1 - y; }
      const tmp = x; x = y; y = tmp;
    }
    x += s * rx;
    y += s * ry;
    t = Math.floor(t / 4);
    s <<= 1;
  }
  return [x, y];
}

export function lattice(index, radices) {
  if (index < 0) throw new RangeError("index must be >= 0");
  const out = [];
  let r = index;
  for (const radix of radices) {
    if (radix < 1) throw new RangeError("every radix must be >= 1");
    out.push(r % radix);
    r = Math.floor(r / radix);
  }
  return out;
}

export function morph(a, b, t, ease = true) {
  if (!(t >= 0 && t <= 1)) throw new RangeError("t must be in [0, 1]");
  const k = ease ? t * t * (3 - 2 * t) : t;
  return [a[0] + (b[0] - a[0]) * k, a[1] + (b[1] - a[1]) * k];
}