# Solar and storage design — GlobalGrid2050 Explore Code (text shard) Attribution: Ventus Ltd — GlobalGrid2050. Cut 2026-12-06T03:07:51+00:00. Generated deterministically from the public Ventusltd repositories by tools/explore/build.py (rules explore-agent-rules-v1); every statement is evidence-keyed and links to the exact commit and lines. Fields per file: Source (GitHub commit URL with line range), Page (Explore Code section), Synopsis, What it achieves (provenance), the four-part block, Signatures, VEDIC, domain_stage, commercial_user, canonical_status, data_contracts, Edges. Rules: https://code.globalgrid2050.com/explore-code/llms.txt (Agent Navigation Protocol) and GRAPH-CONTRACT.md. Topic page: https://code.globalgrid2050.com/explore-code/topics/solar-storage.html. Solar PV layout, strings, battery storage and site design. 655 files. ### Layers Panel - File: galaxies-wafers/iterations/01-route-alpha/layers-panel.mjs (JavaScript, 442 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/01-route-alpha/layers-panel.mjs#L1-L442 - Page: https://code.globalgrid2050.com/explore-code/s/0039.html#f3 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - What it achieves (comment): It routes alpha (`routeAlpha`), renders panel (`renderPanel`) and renders elements (`renderElements`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 26 functions or classes, including alphaScale, routeAlpha, $, esc, row. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 01 Route Alpha Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - Signatures: `alphaScale(() => { const raw = new URL(location.href).searchParams.get('alpha'); const v = raw === null ? NaN : Number(raw); ret...)`; `routeAlpha(n)`; `$(id)`; `esc(s)`; `row(l)`; `densityLegend()`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)` (and 1 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Layers Panel - File: galaxies-wafers/iterations/02-tunnels/layers-panel.mjs (JavaScript, 447 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/02-tunnels/layers-panel.mjs#L1-L447 - Page: https://code.globalgrid2050.com/explore-code/s/0040.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/02-tunnels/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/02-tunnels/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 25 functions or classes, including fromRoot, arcControl, $, esc, row. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 02 Tunnels Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/02-tunnels/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/02-tunnels/. - Signatures: `fromRoot(path)`; `arcControl([ax, ay], [bx, by])`; `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)`; `end(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/04-400kv-engine/layers-panel.mjs (JavaScript, 1075 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/04-400kv-engine/layers-panel.mjs#L1-L1075 - Page: https://code.globalgrid2050.com/explore-code/s/0041.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/04-400kv-engine/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers that draws blocks, 400kV, substations and 66kV, and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/04-400kv-engine/. - What it achieves (comment): It reads atlas topology (`readAtlasTopology`), computes bands (`computeBands`) and sets text (`setText`). Layers over the inherited wafer, in Grid Atlas's grammar. Its code works with 400 kV and 66 kV. It responds to click, resize and change events. - What it does: It draws blocks, 400kV, substations and 66kV. Defines 60 functions or classes, including evalExpr, readAtlasTopology, get, isModule, moduleStats. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, substations, 66kV. - Inputs & outputs: In: data source: ventus-grid-engine data; JSON file blocks.json. Out: canvas drawing. Voltage levels named: 400kV, 66kV. - Downstream impact: Used directly by 2 files: Iterations — 04 400kV Engine Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/04-400kv-engine/); Questions (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/04-400kv-engine/). Reached from 88 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/04-400kv-engine/. - Signatures: `evalExpr(e, z)`; `readAtlasTopology()`; `get(t, k)`; `isModule(l)`; `moduleStats(doc)`; `computeBands()`; `q(B - 1 - i)`; `bandOf(count)`; `$(id)`; `fmt(n)`; `esc(s)`; `node(tag, text, cls)`; `schedule(what)`; `flush()`; `setText(el, t)`; `paintEngine()`; `all(manifest?.layers || [])`; `paintLoadState()`; `makeOverlay()`; `bodyOpened()`; `unCover()`; `buildRows()`; `paintRow(l)`; `renderElements()`; `el(tag, cls, text)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; JSON file blocks.json]; out [canvas drawing]; crs []; voltages [400kV, 66kV] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 1 ### Layers Panel - File: galaxies-wafers/iterations/05-periodic-table/layers-panel.mjs (JavaScript, 433 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/05-periodic-table/layers-panel.mjs#L1-L433 - Page: https://code.globalgrid2050.com/explore-code/s/0043.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/05-periodic-table/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/05-periodic-table/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 24 functions or classes, including at, $, esc, row, renderPanel. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 05 Periodic Table Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/05-periodic-table/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/05-periodic-table/. - Signatures: `at(path)`; `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)`; `end(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/06-stars-as-engines/layers-panel.mjs (JavaScript, 423 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/06-stars-as-engines/layers-panel.mjs#L1-L423 - Page: https://code.globalgrid2050.com/explore-code/s/0044.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/06-stars-as-engines/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/06-stars-as-engines/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 24 functions or classes, including atRoot, $, esc, row, renderPanel. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 06 Stars As Engines Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/06-stars-as-engines/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/06-stars-as-engines/. - Signatures: `atRoot(p)`; `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)`; `end(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of galaxies-wafers/iterations/08-space-and-time/layers-panel.mjs) · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/07-code-card/layers-panel.mjs (JavaScript, 421 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/07-code-card/layers-panel.mjs#L1-L421 - Page: https://code.globalgrid2050.com/explore-code/s/0045.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/07-code-card/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/07-code-card/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 23 functions or classes, including $, esc, row, renderPanel, renderElements. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 07 Code Card Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/07-code-card/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/07-code-card/. - Signatures: `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)`; `end(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of galaxies-wafers/iterations/10-ground-bridge/layers-panel.mjs) · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/08-space-and-time/layers-panel.mjs (JavaScript, 437 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/08-space-and-time/layers-panel.mjs#L1-L437 - Page: https://code.globalgrid2050.com/explore-code/s/0046.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/08-space-and-time/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/08-space-and-time/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 24 functions or classes, including atRoot, $, esc, row, renderPanel. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 08 Space and Time Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/08-space-and-time/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/08-space-and-time/. - Signatures: `atRoot(p)`; `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)`; `end(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/09-deeplink-receiver/layers-panel.mjs (JavaScript, 537 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/09-deeplink-receiver/layers-panel.mjs#L1-L537 - Page: https://code.globalgrid2050.com/explore-code/s/0047.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/09-deeplink-receiver/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/09-deeplink-receiver/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 25 functions or classes, including $, esc, row, renderPanel, renderElements. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Iterations — 09 Deeplink Receiver Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/09-deeplink-receiver/). Reached from 1 other entry point, including Iterations — 45 Deeplink Round Trip Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/45-deeplink-round-trip/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/09-deeplink-receiver/. - Signatures: `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `requestedLayers()`; `readLayersFromURL()`; `liveView()`; `buildCache(doc)`; `visibleLayers()`; `placeOverlay(v)`; `carry(v, cw, ch)`; `dx(anchor.x - v.x)`; `drawOverlay(snap)`; `wx0(-2 - ox)`; `segDist2(px, py, ax, ay, bx, by)`; `pickAt(cx, cy)`; `d(X - cx)`; `node(tag, text, cls)` (and 3 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/10-ground-bridge/layers-panel.mjs (JavaScript, 457 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/10-ground-bridge/layers-panel.mjs#L1-L457 - Page: https://code.globalgrid2050.com/explore-code/s/0048.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/10-ground-bridge/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/10-ground-bridge/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and writes layers URL (`writeLayersToURL`). Layers over the inherited wafer, in Grid Atlas's grammar. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 23 functions or classes, including $, esc, row, renderPanel, renderElements. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. - Downstream impact: Used directly by 1 file: Wafer (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/10-ground-bridge/wafer.html). Reached from 1 other entry point, including Iterations — 10 Ground Bridge Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/10-ground-bridge/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/10-ground-bridge/. - Signatures: `$(id)`; `esc(s)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `drawOverlay()`; `S(p)`; `segDist2(px, py, [ax, ay], [bx, by])`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `inspect(hit)`; `onStage(e)`; `end(e)`; `light(ids)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/21-dark-pixels/layers-panel.mjs (JavaScript, 608 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/21-dark-pixels/layers-panel.mjs#L1-L608 - Page: https://code.globalgrid2050.com/explore-code/s/0049.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/21-dark-pixels/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers covering 11kV and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/21-dark-pixels/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and gets JSON (`getJSON`). The root's layers panel, copied, with its drawing replaced: the ground is dark and a ticked layer wakes only the keys it charts (see "dark pixels" below). Its code works with 11 kV and 400 kV. It responds to click, change and pointerdown events. - What it does: It draws 11kV. Defines 28 functions or classes, including $, esc, emptyReason, row, renderPanel. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 11kV, 400kV. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. Voltage levels named: 400kV, 11kV. - Downstream impact: Used directly by 1 file: Iterations — 21 Dark Pixels Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/21-dark-pixels/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/21-dark-pixels/. - Signatures: `$(id)`; `esc(s)`; `emptyReason(st)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `getJSON(url, failPrefix)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `atlasZoom(z)`; `interp(stops, x)`; `precompute(doc)`; `drawOverlay()`; `wakeLine(az)`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `valueNode(val)` (and 3 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [400kV, 11kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Layers Panel - File: galaxies-wafers/iterations/22-fast-zoom/layers-panel.mjs (JavaScript, 770 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/22-fast-zoom/layers-panel.mjs#L1-L770 - Page: https://code.globalgrid2050.com/explore-code/s/0050.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers using data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/. - What it achieves (comment): It builds rows (`buildRows`), paints row (`paintRow`) and paints meter (`paintMeter`). Iteration 22, FAST ZOOM. Layers over the wafer, loaded the way Grid Atlas loads them, and drawn so that zooming stays cheap. It responds to click, change and pointerdown events. - What it does: It draws its content. Defines 39 functions or classes, including $, fmt, freshState, node, emptyReason. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: ventus-grid-engine data; JSON file index.json. Out: canvas drawing. - Downstream impact: Used directly by 2 files: Iterations — 22 Fast Zoom Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/); Questions (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/. - Signatures: `$(id)`; `fmt(n)`; `freshState()`; `node(tag, text, cls)`; `emptyReason(st)`; `buildRows()`; `paintRow(l)`; `paintMeter()`; `class FetchQueue`; `constructor(n)`; `add(task)`; `fetchJSON(url)`; `heldFeatures()`; `makeRoom(need, keep)`; `sc(s.on ? 0 : 1e9 - s.used)`; `releaseWhole(l, s)`; `releaseBand(l, s, b)`; `hydrateWhole(l, s)`; `refuse(l, s, want)`; `hydrateTiled(l, s)`; `minZoomOf(s, v)`; `bandsInView(s, v)`; `updateTiles()`; `loadBand(l, s, b)`; `toggle(l, on)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; JSON file index.json]; out [canvas drawing]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 1 ### Layers Panel - File: galaxies-wafers/iterations/26-apps-layers-substrate/layers-panel.mjs (JavaScript, 736 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/26-apps-layers-substrate/layers-panel.mjs#L1-L736 - Page: https://code.globalgrid2050.com/explore-code/s/0051.html#f2 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/26-apps-layers-substrate/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers covering 11kV and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/26-apps-layers-substrate/. - What it achieves (comment): It renders panel (`renderPanel`), updates row (`updateRow`) and renders elements (`renderElements`). Apps, Layers, Substrate (iteration 26). Its code works with 11 kV and 400 kV. It responds to click, change and pointerdown events. - What it does: It draws 11kV. Defines 38 functions or classes, including $, esc, wanted, emptyReason, tagText. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 11kV, 400kV. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. Voltage levels named: 400kV, 11kV. - Downstream impact: Used directly by 1 file: Iterations — 26 Apps Layers Substrate Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/26-apps-layers-substrate/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/26-apps-layers-substrate/. - Signatures: `$(id)`; `esc(s)`; `wanted(s)`; `emptyReason(st)`; `tagText(s)`; `noteText(l, s)`; `renderPanel()`; `updateRow(l)`; `changedLayer(l)`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `getJSON(url, failPrefix, stillWanted)`; `enforceCap()`; `keptBytes()`; `toggle(l, on)`; `settle(l)`; `hydrateTiles(l, s)`; `stillWanted()`; `writeLayersToURL()`; `readLayersFromURL()`; `setApp(ids)`; `liveView()`; `toScreen(v, [x, y])` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [400kV, 11kV] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/iterations/31-code-card-everywhere/layers-panel.mjs (JavaScript, 579 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/31-code-card-everywhere/layers-panel.mjs#L1-L579 - Page: https://code.globalgrid2050.com/explore-code/s/0052.html#f2 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/31-code-card-everywhere/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers covering 11kV and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/31-code-card-everywhere/. - What it achieves (comment): It renders panel (`renderPanel`), renders elements (`renderElements`) and gets JSON (`getJSON`). Code Card Everywhere (iteration 31): iteration 21's panel, with its own tap-to-inspect listener removed. Its code works with 11 kV and 400 kV. It responds to click and change events. - What it does: It draws 11kV. Defines 26 functions or classes, including $, esc, emptyReason, row, renderPanel. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 11kV, 400kV. - Inputs & outputs: In: data source: ventus-grid-engine data; form fields (user input). Out: canvas drawing. Voltage levels named: 400kV, 11kV. - Downstream impact: Used directly by 1 file: Iterations — 31 Code Card Everywhere Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/31-code-card-everywhere/). Reached from 90 other entry points, including Iterations — 39 Decisions and Permission Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/39-decisions-and-permission/); Iterations — 41 Golden Angle Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/41-golden-angle/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/31-code-card-everywhere/. - Signatures: `$(id)`; `esc(s)`; `emptyReason(st)`; `row(l)`; `renderPanel()`; `renderElements(manifest, state)`; `el(tag, cls, text)`; `link(href, text)`; `kv(k, v, cls)`; `getJSON(url, failPrefix)`; `toggle(l, on)`; `hydrateTiles(l, s)`; `writeLayersToURL()`; `readLayersFromURL()`; `liveView()`; `toScreen(v, [x, y])`; `visibleLayers()`; `atlasZoom(z)`; `interp(stops, x)`; `precompute(doc)`; `drawOverlay()`; `wakeLine(az)`; `pickAt(cx, cy)`; `node(tag, text, cls)`; `valueNode(val)` (and 1 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; form fields (user input)]; out [canvas drawing]; crs []; voltages [400kV, 11kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Layers Panel - File: galaxies-wafers/layers-panel.mjs (JavaScript, 914 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/layers-panel.mjs#L1-L914 - Page: https://code.globalgrid2050.com/explore-code/s/0053.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/ - Synopsis: A JavaScript module in Galaxies Wafers covering cables and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/galaxies-wafers/. - What it achieves (comment): It builds rows (`buildRows`), paints row (`paintRow`) and paints meter (`paintMeter`). Layers over the wafer, in Grid Atlas's grammar. Its code works with 11 kV. It responds to click and change events. - What it does: It draws cables. Defines 46 functions or classes, including tileIndexPath, $, fmt, freshState, node. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 11kV. - Inputs & outputs: In: data source: ventus-grid-engine data; JSON file index.json. Out: canvas drawing. Voltage levels named: 11kV. - Downstream impact: Used directly by 1 file: Galaxies Wafers — Index Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/). Reached from 242 other entry points, including 404 (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/404.html); Galaxies Wafers — Iterations Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/); Galaxies Wafers — Proof Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/proof/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/. - Signatures: `tileIndexPath(id)`; `$(id)`; `fmt(n)`; `freshState()`; `node(tag, text, cls)`; `emptyReason(st)`; `buildRows()`; `paintRow(l)`; `paintMeter()`; `class FetchQueue`; `constructor(n)`; `add(task)`; `fetchJSON(url)`; `heldFeatures()`; `makeRoom(need, keep)`; `sc(s.on ? 0 : 1e9 - s.used)`; `releaseWhole(l, s)`; `releaseBand(l, s, b)`; `hydrateWhole(l, s)`; `refuse(l, s, want)`; `hydrateTiled(l, s)`; `minZoomOf(s, v)`; `bandsInView(s, v)`; `updateTiles()`; `loadBand(l, s, b)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; JSON file index.json]; out [canvas drawing]; crs []; voltages [11kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Solar - File: globalgrid2050/automation/news/dc_context/solar.py (Python, 251 lines) · role energy-data · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/automation/news/dc_context/solar.py#L1-L251 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f2 - Synopsis: A Python command-line tool in the dc context folder of GlobalGrid2050 that reads solar, using SHA-256. - What it achieves (comment): It verifies source bytes (`verify_source_bytes`) and is built from the dumps step (`dumps`) and the build step (`build`). Offline `solar/storage/procurement` context, preserving source scope and bounds. It accepts `--input`, `--as-of` and `--output`. - What it does: It loads solar. Defines 12 functions or classes, including _require, _object, _text, _id, _time. Uses libraries __future__, argparse, copy, datetime, hashlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 3 files: Test Solar DC Context (globalgrid2050); Build Transition Context (globalgrid2050); Test Transition Context (globalgrid2050). Reached from 2 other entry points, including GlobalGrid2050 Pipeline Project Evidence Weekly Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - Signatures: `_require(ok, message)`; `_object(value, keys, field)`; `_text(value, field, limit=500)`; `_id(value, field)`; `_time(value)`; `_day(value)`; `dumps(value)`; `verify_source_bytes(source, raw)`; `_source(source, clock)`; `_context(context, source, clock)`; `build(bundle, *, as_of, source_bytes=None)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Test Solar DC Context - File: globalgrid2050/automation/news/tests/test_solar_dc_context.py (Python, 173 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/automation/news/tests/test_solar_dc_context.py#L1-L173 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f3 - Synopsis: A test in the tests folder of GlobalGrid2050 that checks Solar, using SHA-256. It is built from the bundle step (`bundle`) and the claim step (`claim`). - What it achieves (comment): Offline primary-source fixture and adversarial solar/DC scope tests. - What it does: It tests its inputs. Defines 10 functions or classes, including bundle, claim, test_real_receipt_slice_preserves_forecast_bounds_and_source_scope, test_deterministic_order_and_json, test_rejects_scope_unit_proximity_source_and_verification_tampering. Uses libraries copy, hashlib, json, pathlib, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file solar-context.json; JSON file context.json. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Pipeline Project Evidence Weekly Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - Signatures: `bundle()`; `claim(bundle, index=0)`; `test_real_receipt_slice_preserves_forecast_bounds_and_source_scope(bundle)`; `test_deterministic_order_and_json(bundle)`; `test_rejects_scope_unit_proximity_source_and_verification_tampering(bundle, mutation)`; `test_all_supplied_source_bytes_required_and_checked(bundle)`; `test_source_receipt_rejects_wrong_bytes(bundle)`; `test_empty_coverage_is_not_success(bundle)`; `test_parent_finance_stays_exact_and_stage_specific(bundle)`; `test_cli_writes_new_artifact_and_refuses_overwrite(tmp_path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file solar-context.json; JSON file context.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Model - File: globalgrid2050/cartridges/202609052155-solar-radiation/model.mjs (JavaScript, 2 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052155-solar-radiation/model.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f4 - Synopsis: A JavaScript module in the cartridges folder of GlobalGrid2050 that works with solar energy (`solarEnergy`). It is built from the solar energy helper (`solarEnergy`). - What it achieves (name): Defines `solarEnergy`. - What it does: It calculates its inputs. Defines solarEnergy. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Model (globalgrid2050). Reached from 33 other entry points, including Homepage V062 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v062.html); Homepage V063 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v063.html); Homepage V064 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v064.html). - Signatures: `export solarEnergy(seconds)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Model Test - File: globalgrid2050/cartridges/202609052155-solar-radiation/model.test.mjs (JavaScript, 2 lines) · role test · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052155-solar-radiation/model.test.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f5 - Synopsis: A test in the cartridges folder of GlobalGrid2050 covering solar. - What it does: It tests solar. Uses libraries node:test. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Open Energy Cartridge Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Solar - File: globalgrid2050/cartridges/202609052155-solar-radiation/solar.mjs (JavaScript, 3 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052155-solar-radiation/solar.mjs#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f6 - Synopsis: A JavaScript module in the cartridges folder of GlobalGrid2050 covering solar. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Homepage V061 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v061.html). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Model - File: globalgrid2050/cartridges/202609052157-solar-scenario/model.mjs (JavaScript, 2 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052157-solar-scenario/model.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f7 - Synopsis: A JavaScript module in the cartridges folder of GlobalGrid2050. It is built from the scenario m wh helper (`scenarioMWh`). - What it achieves (name): Defines `scenarioMWh`. - What it does: It calculates its inputs. Defines scenarioMWh. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export scenarioMWh(seconds,capacityFactor)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Model Test - File: globalgrid2050/cartridges/202609052157-solar-scenario/model.test.mjs (JavaScript, 1 lines) · role test · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052157-solar-scenario/model.test.mjs#L1-L1 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f8 - Synopsis: A test in the cartridges folder of GlobalGrid2050. - What it does: It tests its inputs. Uses libraries node:test. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Open Energy Cartridge Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Scenario - File: globalgrid2050/cartridges/202609052157-solar-scenario/scenario.mjs (JavaScript, 2 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052157-solar-scenario/scenario.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f9 - Synopsis: A JavaScript module in the cartridges folder of GlobalGrid2050 covering solar. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 33 files: Homepage V061 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v061.html); Homepage V062 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v062.html); Homepage V063 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v063.html); Homepage V064 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v064.html); and 29 more. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 33; mentioned by 0 ### Model - File: globalgrid2050/cartridges/202609052200-solar-periods/model.mjs (JavaScript, 2 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052200-solar-periods/model.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f10 - Synopsis: A JavaScript module in the cartridges folder of GlobalGrid2050 that works with solar. - What it achieves (name): Defines `periods`. - What it does: It calculates solar. Defines periods. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar (globalgrid2050). Reached from 32 other entry points, including Homepage V062 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v062.html); Homepage V063 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v063.html); Homepage V064 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v064.html). - Signatures: `export periods(now)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Model Test - File: globalgrid2050/cartridges/202609052200-solar-periods/model.test.mjs (JavaScript, 2 lines) · role test · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052200-solar-periods/model.test.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f11 - Synopsis: A test in the cartridges folder of GlobalGrid2050 covering solar. - What it does: It tests solar. Uses libraries node:test. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Open Energy Cartridge Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Retro - File: globalgrid2050/cartridges/202609052200-solar-periods/retro.css (CSS, 10 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052200-solar-periods/retro.css#L1-L10 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f12 - Synopsis: A style sheet in the cartridges folder of GlobalGrid2050 covering solar. - What it achieves (comment): Original terminal palette. Typography and solid grey progress fills remain inherited. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 32 files: Homepage V062 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v062.html); Homepage V063 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v063.html); Homepage V064 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v064.html); Homepage V065 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v065.html); and 28 more. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 32; mentioned by 0 ### Solar - File: globalgrid2050/cartridges/202609052200-solar-periods/solar.mjs (JavaScript, 4 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cartridges/202609052200-solar-periods/solar.mjs#L1-L4 - Page: https://code.globalgrid2050.com/explore-code/s/0054.html#f13 - Synopsis: A JavaScript module in the cartridges folder of GlobalGrid2050 covering solar. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 32 files: Homepage V062 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v062.html); Homepage V063 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v063.html); Homepage V064 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v064.html); Homepage V065 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v065.html); and 28 more. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 32; mentioned by 0 ### Employers' Requirements, Large-Scale Solar — Print Page - File: globalgrid2050/employers_requirments_large_scale_solar/print/index.html (HTML, 453 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/employers_requirments_large_scale_solar/print/index.html#L1-L453 - Page: https://code.globalgrid2050.com/explore-code/s/0055.html#f1 - Published at: https://globalgrid2050.com/employers_requirments_large_scale_solar/print/ - Synopsis: A web page in GlobalGrid2050 that applies selection (`applySelection`), covering cables, transformers, solar and substations, using IEC 61439 and IEC 60287. Published at https://globalgrid2050.com/employers_requirments_large_scale_solar/print/. - What it achieves (name): It applies selection (`applySelection`) and is built from the select all helper (`selectAll`). Defines `selectAll` and `applySelection`. - What it does: It draws cables, transformers, solar and substations. Defines selectAll, applySelection. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, solar, substations. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/employers_requirments_large_scale_solar/print/. - Signatures: `selectAll(value)`; `applySelection()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GIS Single-Line Diagram (SLD) V2 - File: globalgrid2050/feature_requests/001_extract_v2_css/files/solar-bess-topology-v2/gis-sld-v2.css (CSS, 531 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/feature_requests/001_extract_v2_css/files/solar-bess-topology-v2/gis-sld-v2.css#L1-L531 - Page: https://code.globalgrid2050.com/explore-code/s/0056.html#f1 - Synopsis: A style sheet in the feature requests folder of GlobalGrid2050 covering battery storage (BESS). - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GIS Single-Line Diagram (SLD) V2 Config - File: globalgrid2050/feature_requests/002_extract_v2_config/files/solar-bess-topology-v2/gis-sld-v2-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/feature_requests/002_extract_v2_config/files/solar-bess-topology-v2/gis-sld-v2-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0056.html#f2 - Synopsis: A JavaScript file in the feature requests folder of GlobalGrid2050 covering grid substations. - What it achieves (comment): GIS SLD Financial Sandbox V2. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V2 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V2 Helpers - File: globalgrid2050/feature_requests/003_extract_v2_helpers/files/solar-bess-topology-v2/gis-sld-v2-helpers.js (JavaScript, 75 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/feature_requests/003_extract_v2_helpers/files/solar-bess-topology-v2/gis-sld-v2-helpers.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0056.html#f3 - Synopsis: A JavaScript file in the feature requests folder of GlobalGrid2050 that sets class (`setClass`), picks prop (`pickProp`) and sets fetch status (`setFetchStatus`). - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS SLD Financial Sandbox V2. Helpers extracted by GridBot feature 003. - What it does: Defines 11 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V2 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html). - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V2 State - File: globalgrid2050/feature_requests/004_extract_v2_state/files/solar-bess-topology-v2/gis-sld-v2-state.js (JavaScript, 17 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/feature_requests/004_extract_v2_state/files/solar-bess-topology-v2/gis-sld-v2-state.js#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0056.html#f4 - Synopsis: A JavaScript file in the feature requests folder of GlobalGrid2050. - What it achieves (comment): GIS SLD Financial Sandbox V2. State extracted by GridBot feature 004. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V2 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V2 Substations - File: globalgrid2050/feature_requests/005_extract_v2_substation_data/files/solar-bess-topology-v2/gis-sld-v2-substations.js (JavaScript, 83 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/feature_requests/005_extract_v2_substation_data/files/solar-bess-topology-v2/gis-sld-v2-substations.js#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0057.html#f1 - Synopsis: A JavaScript file in the feature requests folder of GlobalGrid2050 that fetches substations. It normalises substations (`normaliseSubstations`) and loads substations (`loadSubstations`). - What it achieves (comment): GIS SLD Financial Sandbox V2. Substation data loading extracted by GridBot feature 005. - What it does: It fetches substations. Defines normaliseSubstations, loadSubstations. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V2 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html). - Signatures: `normaliseSubstations(raw)`; `loadSubstations()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Grid Engine — Solar Battery Energy Storage System (BESS) Export Page - File: globalgrid2050/grid_engine/202609060217-solar-bess-export/index.html (HTML, 240 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/grid_engine/202609060217-solar-bess-export/index.html#L1-L240 - Page: https://code.globalgrid2050.com/explore-code/s/0057.html#f2 - Published at: https://globalgrid2050.com/grid_engine/202609060217-solar-bess-export/ - Synopsis: A web page in GlobalGrid2050 covering battery storage (BESS) and uses data from the ventus-grid-engine repository. Published at https://globalgrid2050.com/grid_engine/202609060217-solar-bess-export/. - What it achieves (comment): It is built from the num step (`num`), the fig step (`fig`) and the refuse step (`refuse`). Solar and BESS Export Workbench — Ventus Grid Engine. It responds to input events. - What it does: It draws battery storage (BESS). Defines 7 functions or classes, including el, num, fig, refuse, bind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://globalgrid2050.com/grid_engine/202609060217-solar-bess-export/. - Signatures: `el(id)`; `num(id)`; `fig(target, r, decimals = 1, over = false)`; `refuse(target, message)`; `bind()`; `parse(raw)`; `render()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 3 estate files (link 3); used by 3; mentioned by 0 ### Grid Engine — Solar Farm Page - File: globalgrid2050/grid_engine/202609060318-solar-farm/index.html (HTML, 329 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/grid_engine/202609060318-solar-farm/index.html#L1-L329 - Page: https://code.globalgrid2050.com/explore-code/s/0057.html#f3 - Published at: https://globalgrid2050.com/grid_engine/202609060318-solar-farm/ - Synopsis: A web page in GlobalGrid2050 covering cables and uses data from the ventus-grid-engine repository. Published at https://globalgrid2050.com/grid_engine/202609060318-solar-farm/. - What it achieves (comment): It parses poly (`parsePoly`) and is built from the num step (`num`) and the fig step (`fig`). Solar Farm Workbench — Ventus Grid Engine. It responds to input events. - What it does: It draws cables. Defines 7 functions or classes, including el, num, fig, refuse, bind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'farm'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://globalgrid2050.com/grid_engine/202609060318-solar-farm/. - Signatures: `el(id)`; `num(id)`; `fig(target, r, decimals = 1, over = false)`; `refuse(target, message)`; `bind()`; `parsePoly(raw)`; `render()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 6 estate files (link 6); used by 3; mentioned by 0 ### 002 Solar Daily MWh Standalone - File: globalgrid2050/gridbot_manifests/002_solar_daily_mwh_standalone.yml (YAML, 48 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/gridbot_manifests/002_solar_daily_mwh_standalone.yml#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0057.html#f4 - Synopsis: A configuration file in the gridbot manifests folder of GlobalGrid2050 covering solar. - What it achieves (comment): Lift the proven Solar daily MWh chart out of the existing MW generation chart section and convert it into a standalone daily energy module with its own Solar-only controls. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 010 Generation History Solar UI - File: globalgrid2050/gridbot_manifests/010_generation_history_solar_ui.yml (YAML, 52 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/gridbot_manifests/010_generation_history_solar_ui.yml#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0058.html#f1 - Synopsis: A configuration file in the gridbot manifests folder of GlobalGrid2050 covering solar. - What it achieves (comment): GridBot manifest for Generation History V6 Solar UI integration Audit first, apply second. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 011 Generation History Solar Recent - File: globalgrid2050/gridbot_manifests/011_generation_history_solar_recent.yml (YAML, 51 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/gridbot_manifests/011_generation_history_solar_recent.yml#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0058.html#f2 - Synopsis: A configuration file in the gridbot manifests folder of GlobalGrid2050 covering solar. - What it achieves (comment): GridBot manifest for Generation History V6 Solar recent 30 minute heartbeat Audit first, apply second. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Array Lab - File: globalgrid2050/kuiper-grid/drawing/array-lab.js (JavaScript, 438 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/kuiper-grid/drawing/array-lab.js#L1-L438 - Page: https://code.globalgrid2050.com/explore-code/s/0058.html#f3 - Published at: https://globalgrid2050.com/kuiper-grid/drawing/ - Synopsis: A JavaScript file in the drawing folder of GlobalGrid2050 that draws generic models, Kuiper table recipe and cables. Served with the page at https://globalgrid2050.com/kuiper-grid/drawing/. - What it achieves (name): It sets camera (`setCamera`), restores camera (`restoreCamera`) and syncs engine (`syncEngine`). Defines `error`, `historyButtons`, `cameraSnapshot` and 45 more. It reads `./generic-models.json`. It responds to wheel, pointerdown and pointermove events. - What it does: It draws generic models, Kuiper table recipe and cables. Defines 51 functions or classes, including $, error, historyButtons, cameraSnapshot, setCamera. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: cables. - Inputs & outputs: In: JSON file generic-models.json; form fields (user input). Out: JSON file kuiper-table-recipe.json; downloaded file kuiper-table-recipe.json; canvas drawing. - Downstream impact: Used directly by 1 file: Kuiper Grid — Drawing Page (globalgrid2050, https://globalgrid2050.com/kuiper-grid/drawing/). Reached from 109 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — Compute Page (globalgrid2050, https://globalgrid2050.com/compute/). It is itself an entry point, published at https://globalgrid2050.com/kuiper-grid/drawing/. - Signatures: `$(id)`; `error(message)`; `historyButtons()`; `cameraSnapshot()`; `setCamera(x,y,z)`; `restoreCamera(saved)`; `engineInput(r)`; `engineResult(r)`; `syncEngine(savedCamera=null)`; `id(n)`; `dist(a,b)`; `length(pts)`; `finite(v,name,min,max)`; `eq(a,b)`; `clone(x)`; `readControls()`; `validate(r)`; `point(p,name)`; `baseCorners(r)`; `build(r)`; `world(x,y)`; `oriented(x,y)`; `posePoint(origin,tilt,azimuth,rotation,u,v)`; `fromUV(u,v)`; `transform(a,b)` (and 15 more) - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generic-models.json; form fields (user input)]; out [JSON file kuiper-table-recipe.json; downloaded file kuiper-table-recipe.json; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Array Visibility and Mwp Sizing - File: globalgrid2050/scripts/add_v7_gis_sld_array_visibility_and_mwp_sizing.py (Python, 454 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v7_gis_sld_array_visibility_and_mwp_sizing.py#L1-L454 - Page: https://code.globalgrid2050.com/explore-code/s/0059.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads solar and battery storage (BESS). - What it achieves (comment): It replaces once (`replace_once`) and is built from the string sizing helper (`string_sizing`) and the central sizing helper (`central_sizing`). Add V7 GIS SLD array visibility toggle and target MWp DC sizing control. Its code works with 33 kV. - What it does: It loads solar and battery storage (BESS). Defines 7 functions or classes, including string_sizing, central_sizing, main, read, write. Uses libraries __future__, datetime, pathlib, math. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 33kV. - Inputs & outputs: In: form fields (user input). Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Array Visibility and Mwp Sizing Workflow (globalgrid2050). - Signatures: `string_sizing(target_mwp, mod_wp, x_mods, z_strings, y_invs, current_skids_per_ring)`; `central_sizing(target_mwp, inv_dc_mwp, inv_per_skid, current_skids_per_ring)`; `main()`; `read(path: Path)`; `write(path: Path, text: str)`; `replace_once(text: str, old: str, new: str, label: str)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [33kV] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Site Intelligence Panel - File: globalgrid2050/scripts/add_v7_gis_sld_site_intelligence_panel.py (Python, 571 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v7_gis_sld_site_intelligence_panel.py#L1-L571 - Page: https://code.globalgrid2050.com/explore-code/s/0060.html#f1 - Synopsis: A Python command-line tool in the scripts folder covering grid 66kV, grid 132kV, grid 275kV and grid 400kV. - What it achieves (comment): It is built from the read step (`read`) and the write step (`write`). Turn a map click into structured site context. - Show nearest operating solar, battery energy storage system (BESS), onshore wind, offshore wind, substation and voltage corridors. - Keep this as screening intelligence only, not formal design or grid capacity confirmation. Its code works with 132 kV, 275 kV and 400 kV. It reads `/dist/repd_master.json`. - What it does: It draws grid 66kV, grid 132kV, grid 275kV and grid 400kV. Defines read, write, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: In: GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; JSON file repd_master.json. Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Site Intelligence Panel Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; JSON file repd_master.json]; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing - File: globalgrid2050/scripts/add_v8_bess_geospatial_layout_drawing.py (Python, 366 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v8_bess_geospatial_layout_drawing.py#L1-L366 - Page: https://code.globalgrid2050.com/explore-code/s/0061.html#f1 - Synopsis: A Python command-line tool in the scripts folder that maps BESS layout, BESS geo layout, BESS path line and BESS grid point. - What it achieves (comment): It patches index (`patch_index`), patches CSS (`patch_css`) and patches js (`patch_js`). Add geospatial BESS layout drawing to the V8 BESS GIS single-line diagram (SLD) sandbox. - What it does: It maps BESS layout, BESS geo layout, BESS path line and BESS grid point. Defines patch_index, patch_css, patch_js, write_report, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). Out: downloaded file v8-bess-layout.geojson; interactive map. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing Workflow (globalgrid2050). - Signatures: `patch_index()`; `patch_css()`; `patch_js()`; `write_report()`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [downloaded file v8-bess-layout.geojson; interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Build Pvlive Solar Browser V6 - File: globalgrid2050/scripts/build_pvlive_solar_browser_v6.py (Python, 96 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/build_pvlive_solar_browser_v6.py#L1-L96 - Page: https://code.globalgrid2050.com/explore-code/s/0061.html#f2 - Synopsis: A Python command-line tool in the scripts folder that reads pvlive solar daily candidate and pvlive solar daily browser, using SHA-256. - What it achieves (name): Defines `write_text` and `load_rows`. It accepts `--max-bytes`. - What it does: It loads pvlive solar daily candidate and pvlive solar daily browser. Defines write_text, load_rows, main. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file pvlive_solar_daily_browser.manifest.json; JSON file PVLIVE_SOLAR_BROWSER_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Step2 Build Pvlive Solar Browser V6 Workflow (globalgrid2050). - Signatures: `write_text(path: Path, text: str)`; `load_rows()`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file pvlive_solar_daily_browser.manifest.json; JSON file PVLIVE_SOLAR_BROWSER_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Build V8 Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial Sandbox - File: globalgrid2050/scripts/build_v8_bess_gis_sld_financial_sandbox.py (Python, 633 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/build_v8_bess_gis_sld_financial_sandbox.py#L1-L633 - Page: https://code.globalgrid2050.com/explore-code/s/0062.html#f1 - Synopsis: A Python command-line tool in the scripts folder that maps battery storage (BESS), cables, transformers and solar. It is built from the write step (`write`). - What it achieves (comment): Leave V7 stable. - Create a BESS only main frame app for V8. - Keep the GIS, SLD and finance concept. - Remove PV specific logic from the BESS layout app. - Keep cable sizing and protection coordination out… Its code works with 50 MW and 150 MWh. It writes `index.html`. - What it does: It maps battery storage (BESS), cables, transformers and solar. Defines write, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), cables, transformers, solar. - Inputs & outputs: In: JSON file style.json; form fields (user input). Out: interactive map; SVG drawing. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Build V8 Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial… (globalgrid2050). - Signatures: `write(path: Path, text: str)`; `main()` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json; form fields (user input)]; out [interactive map; SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Create V8 Battery Energy Storage System (BESS) Electrical Topology Review - File: globalgrid2050/scripts/create_v8_bess_electrical_topology_review.py (Python, 453 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/create_v8_bess_electrical_topology_review.py#L1-L453 - Page: https://code.globalgrid2050.com/explore-code/s/0063.html#f1 - Synopsis: A Python command-line tool in the scripts folder covering battery storage (BESS), cables, transformers and solar. It is built from the write step (`write`). - What it achieves (comment): This is the BESS equivalent of the V7 DC AC LV topology review, but it is created under V8 so V7 can remain stable. Its code works with 0 MW. It writes `index.html`. - What it does: It draws battery storage (BESS), cables, transformers and solar. Defines write, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables, transformers, solar. - Inputs & outputs: In: form fields (user input). Out: SVG drawing. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Create V8 Battery Energy Storage System (BESS) Electrical Topology Review Workflow (globalgrid2050). - Signatures: `write(path: Path, text: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Create V8 Battery Energy Storage System (BESS) Pcs Standalone - File: globalgrid2050/scripts/create_v8_bess_pcs_standalone.py (Python, 267 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/create_v8_bess_pcs_standalone.py#L1-L267 - Page: https://code.globalgrid2050.com/explore-code/s/0064.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads battery storage (BESS), solar and cables, using IEC 60287. - What it achieves (comment): It copies app (`copy_app`), patches index (`patch_index`) and writes v8 launcher (`write_v8_launcher`). Create V8 BESS PCS standalone study app from stable V7 GIS single-line diagram (SLD) sandbox. - What it does: It loads battery storage (BESS), solar and cables. Defines 6 functions or classes, including ensure_source, copy_app, patch_index, write_v8_launcher, write_report. Uses libraries __future__, datetime, shutil, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar, cables. - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Create V8 Battery Energy Storage System (BESS) Pcs Standalone Workflow (globalgrid2050). - Signatures: `ensure_source()`; `copy_app()`; `patch_index()`; `write_v8_launcher()`; `write_report()`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Download Pvlive Solar History - File: globalgrid2050/scripts/download_pvlive_solar_history.py (Python, 200 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/download_pvlive_solar_history.py#L1-L200 - Page: https://code.globalgrid2050.com/explore-code/s/0064.html#f2 - Synopsis: A Python command-line tool in the scripts folder that fetches Elexon generation sources half hourly and solar. It loads existing (`load_existing`) and writes CSV (`write_csv`). - What it achieves (name): Defines `utc_now`, `iso_z`, `normalise_mw` and 8 more. - What it does: It fetches Elexon generation sources half hourly and solar. Defines 12 functions or classes, including utc_now, iso_z, normalise_mw, load_existing, write_csv. Uses libraries csv, datetime, json, os, urllib.parse. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: CSV file elexon_generation_sources_half_hourly.csv. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Elexon Generation Sources Weekly Workflow (globalgrid2050). - Signatures: `utc_now()`; `iso_z(value)`; `normalise_mw(value)`; `load_existing()`; `write_csv(rows_by_key)`; `http_json(url)`; `extract_rows(payload)`; `parse_row(row, fetched_at)`; `candidate_urls(start_dt, end_dt)`; `fetch_window(start_dt, end_dt)`; `write_report(status, days, fetched_rows, total_rows, working_url, detail)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [CSV file elexon_generation_sources_half_hourly.csv]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Fetch Pvlive Solar Candidate V6 - File: globalgrid2050/scripts/fetch_pvlive_solar_candidate_v6.py (Python, 214 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/fetch_pvlive_solar_candidate_v6.py#L1-L214 - Page: https://code.globalgrid2050.com/explore-code/s/0064.html#f3 - Synopsis: A Python command-line tool in the scripts folder that fetches pvlive solar daily candidate, using SHA-256. It extracts rows (`extract_rows`), parses power (`parse_power`) and parses pvlive row (`parse_pvlive_row`). - What it achieves (name): Defines `utc_now`, `iso_z`, `http_json` and 8 more. It accepts `--days`. - What it does: It fetches pvlive solar daily candidate. Defines 12 functions or classes, including utc_now, iso_z, http_json, extract_rows, parse_power. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_candidate.json; JSON file PVLIVE_SOLAR_CANDIDATE_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Step1 Fetch Pvlive Solar Candidate V6 Workflow (globalgrid2050). - Signatures: `utc_now()`; `iso_z(value: Any)`; `http_json(url: str)`; `extract_rows(payload: Any)`; `parse_power(value: Any)`; `parse_pvlive_row(row: Any)`; `candidate_urls(start: dt.datetime, end: dt.datetime)`; `fetch_day(day: dt.date)`; `load_existing()`; `write_json(path: Path, payload: Any)`; `write_report(report: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_candidate.json; JSON file PVLIVE_SOLAR_CANDIDATE_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Array Toggle Visibility - File: globalgrid2050/scripts/fix_v7_gis_sld_mobile_array_toggle_visibility.py (Python, 141 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/fix_v7_gis_sld_mobile_array_toggle_visibility.py#L1-L141 - Page: https://code.globalgrid2050.com/explore-code/s/0065.html#f1 - Synopsis: A Python command-line tool in the scripts folder. - What it achieves (comment): Fix V7 GIS SLD mobile map control wrapping so ARRAY ON/OFF remains visible. - What it does: It loads data. Defines main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Array Toggle Visibility Workflow (globalgrid2050). - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Generation History Solar - File: globalgrid2050/scripts/gridbot_generation_history_solar.py (Python, 441 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_generation_history_solar.py#L1-L441 - Page: https://code.globalgrid2050.com/explore-code/s/0065.html#f2 - Synopsis: A Python command-line tool in the scripts folder that fetches generation daily mw spine fuelhh candidate and Elexon generation sources, using SHA-256. - What it achieves (comment): It reads text (`read_text`), reads JSON (`read_json`) and writes JSON (`write_json`). Audit first, apply second. This script follows the GridBot Mega Upgrade pattern: manifest driven phases, audit mode by default, apply only where a phase declares `applyByDefault` true. It accepts `--manifest`, `--apply` and `--phase`. - What it does: It fetches generation daily mw spine fuelhh candidate and Elexon generation sources. Defines 21 functions or classes, including utc_now, stamp, rel, read_text, read_json. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file generation_daily_mw_spine_fuelhh_candidate.json; JSON file elexon_generation_sources_2016.json; JSON file GENERATION_HISTORY_SOLAR_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Generation History Solar Workflow (globalgrid2050). - Signatures: `utc_now()`; `stamp()`; `rel(path: Path)`; `read_text(path: Path)`; `read_json(path: Path)`; `write_json(path: Path, payload: Any, compact: bool = False)`; `load_manifest(path: Path)`; `iso_z(value: Any)`; `parse_float(value: Any)`; `http_json(url: str)`; `extract_rows(payload: Any)`; `parse_pvlive_row(row: Any)`; `candidate_urls(day: dt.date)`; `fetch_day(day: dt.date)`; `pvlive_endpoint_audit(days: int)`; `fetch_candidate(output_path: str, days: int, apply: bool)`; `build_browser(input_path: str, output_path: str, max_bytes: int, apply: bool)`; `ui_wire_audit(config_path: str, loader_path: str, index_path: str, solar_path: str)`; `wire_ui(config_path: str, loader_path: str, index_path: str, solar_path: str, apply: bool)`; `render_report(payload: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generation_daily_mw_spine_fuelhh_candidate.json; JSON file elexon_generation_sources_2016.json; JSON file GENERATION_HISTORY_SOLAR_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Generation History Solar Recent - File: globalgrid2050/scripts/gridbot_generation_history_solar_recent.py (Python, 375 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_generation_history_solar_recent.py#L1-L375 - Page: https://code.globalgrid2050.com/explore-code/s/0066.html#f1 - Synopsis: A Python command-line tool in the scripts folder that fetches generation daily mw spine fuelhh candidate and pvlive solar daily browser, using SHA-256. - What it achieves (comment): It reads text (`read_text`), reads JSON (`read_json`) and loads manifest (`load_manifest`). GridBot Generation History Solar recent heartbeat orchestrator. It accepts `--manifest`, `--apply` and `--phase`. - What it does: It fetches generation daily mw spine fuelhh candidate and pvlive solar daily browser. Defines 19 functions or classes, including utc_now, stamp, read_text, read_json, load_manifest. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file generation_daily_mw_spine_fuelhh_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file GENERATION_HISTORY_SOLAR_RECENT_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Generation History Solar Recent Workflow (globalgrid2050). - Signatures: `utc_now()`; `stamp()`; `read_text(path: Path)`; `read_json(path: Path)`; `load_manifest(path: Path)`; `iso_z(value: Any)`; `parse_float(value: Any)`; `http_json(url: str)`; `extract_rows(payload: Any)`; `parse_pvlive_row(row: Any)`; `candidate_urls(start: dt.datetime, end: dt.datetime)`; `fetch_range(days: int)`; `existing_recent_audit(config_path: str, loader_path: str, recent_path: str)`; `pvlive_recent_audit(days: int)`; `build_recent_browser(output_path: str, days: int, max_bytes: int, apply: bool)`; `solar_recent_ui_audit(config_path: str, loader_path: str, solar_recent_path: str)`; `wire_solar_recent(config_path: str, loader_path: str, solar_recent_path: str, apply: bool)`; `render_report(payload: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generation_daily_mw_spine_fuelhh_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file GENERATION_HISTORY_SOLAR_RECENT_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot London Solar Daylight Geometry - File: globalgrid2050/scripts/gridbot_london_solar_daylight_geometry.py (Python, 428 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_london_solar_daylight_geometry.py#L1-L428 - Page: https://code.globalgrid2050.com/explore-code/s/0067.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads sunrise sunset time bands reference. It reads JSON if exists (`read_json_if_exists`), compares previous sunrise API (`compare_with_previous_sunrise_api`) and writes report (`write_report`). - What it achieves (comment): `/uk_energy_tracking_v6/generation_history/`. It accepts `--year` and `--apply`. - What it does: It loads sunrise sunset time bands reference. Defines 17 functions or classes, including now, rel, write, is_leap_year, days_in_year. Uses libraries __future__, argparse, datetime, json, math. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.json; JSON file sunrise_sunset_time_bands_reference.json; command-line arguments. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Gridbot London Solar Daylight Geometry Workflow (globalgrid2050); Concept Compute (globalgrid2050). Reached from 3 other entry points, including GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050); GlobalGrid2050 Testcode Dual Compute Workflow (globalgrid2050); Test Dual Compute (globalgrid2050). - Signatures: `now()`; `rel(path: Path)`; `write(path: Path, text: str)`; `is_leap_year(year: int)`; `days_in_year(year: int)`; `hhmm(value: dt.datetime)`; `iso_minute(value: dt.datetime)`; `minutes_to_utc(day: dt.date, minutes: float)`; `time_to_minutes(value: str)`; `solar_geometry_for_day(day: dt.date)`; `read_json_if_exists(path: Path)`; `compare_with_previous_sunrise_api(rows: list[dict])`; `build(year: int)`; `checks(payload: dict, meta: dict)`; `report_lines(report: dict)`; `write_report(report: dict)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.json; JSON file sunrise_sunset_time_bands_reference.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Daily MWh Index Upgrade - File: globalgrid2050/scripts/gridbot_solar_daily_mwh_index_upgrade.py (Python, 85 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_daily_mwh_index_upgrade.py#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0067.html#f2 - Synopsis: A Python command-line tool in the scripts folder that works with solar peak MWh (`solar_peak_mwh`), covering pvlive solar daily browser and solar daily mwh chart upgrade, using SHA-256. - What it achieves (name): Defines `sha`, `solar_peak_mwh` and `patch`. It accepts `--apply`. - What it does: It draws pvlive solar daily browser and solar daily mwh chart upgrade. Defines sha, solar_peak_mwh, patch, main. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_CHART_UPGRADE_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Solar Daily MWh Chart Upgrade Workflow (globalgrid2050). - Signatures: `sha(text)`; `solar_peak_mwh()`; `patch(text)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_CHART_UPGRADE_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Daily MWh Interaction Upgrade - File: globalgrid2050/scripts/gridbot_solar_daily_mwh_interaction_upgrade.py (Python, 222 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_daily_mwh_interaction_upgrade.py#L1-L222 - Page: https://code.globalgrid2050.com/explore-code/s/0068.html#f1 - Synopsis: A Python command-line tool in the scripts folder that patches index (`patch_index`) and control (`patch_control`) and renders report (`render_report`) (units: MWh, MW), covering pvlive solar daily browser. - What it achieves (name): It is built from the solar audit helper (`solar_audit`) and the branch exists helper (`branch_exists`). Defines `utc_now`, `git_head`, `read` and 5 more. It accepts `--apply`. - What it does: It draws pvlive solar daily browser. Defines 9 functions or classes, including utc_now, git_head, read, patch_index, patch_control. Uses libraries __future__, argparse, json, re, subprocess. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_INTERACTION_LATEST.json; form fields (user input); command-line arguments. Out: canvas drawing. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Solar Daily MWh Interaction Upgrade Workflow (globalgrid2050). - Signatures: `utc_now()`; `git_head()`; `read(path: Path)`; `patch_index(text: str)`; `patch_control(text: str)`; `solar_audit()`; `branch_exists(name: str)`; `render_report(payload: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_INTERACTION_LATEST.json; form fields (user input); command-line arguments]; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Daily MWh Readability Upgrade - File: globalgrid2050/scripts/gridbot_solar_daily_mwh_readability_upgrade.py (Python, 135 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_daily_mwh_readability_upgrade.py#L1-L135 - Page: https://code.globalgrid2050.com/explore-code/s/0068.html#f2 - Synopsis: A Python command-line tool in the scripts folder that patches index (`patch_index`) and renders report (`render_report`) (units: MWh, MW), covering pvlive solar daily browser. - What it achieves (name): It is built from the solar audit helper (`solar_audit`) and the slim step (`slim`). Defines `utc_now`, `git_head`, `read` and 4 more. It accepts `--apply`. - What it does: It draws pvlive solar daily browser. Defines 8 functions or classes, including utc_now, git_head, read, patch_index, solar_audit. Uses libraries __future__, argparse, json, re, subprocess. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_READABILITY_LATEST.json; command-line arguments. Out: canvas drawing. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Solar Daily MWh Readability Upgrade Workflow (globalgrid2050). - Signatures: `utc_now()`; `git_head()`; `read(p: Path)`; `patch_index(text: str)`; `solar_audit()`; `slim(r)`; `render_report(payload: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_READABILITY_LATEST.json; command-line arguments]; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Daily MWh Standalone Upgrade - File: globalgrid2050/scripts/gridbot_solar_daily_mwh_standalone_upgrade.py (Python, 221 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_daily_mwh_standalone_upgrade.py#L1-L221 - Page: https://code.globalgrid2050.com/explore-code/s/0068.html#f3 - Synopsis: A Python command-line tool in the scripts folder that patches index (`patch_index`) and renderer (`patch_renderer`) and renders report (`render_report`) (units: MWh, MW), covering pvlive solar daily browser, using SHA-256. - What it achieves (name): It is built from the read step (`read`), the solar audit helper (`solar_audit`) and the positions step (`positions`). Defines `utc_now`, `sha`, `git_head` and 7 more. It accepts `--apply`. - What it does: It draws pvlive solar daily browser. Defines 11 functions or classes, including utc_now, sha, git_head, read, solar_audit. Uses libraries __future__, argparse, hashlib, json, subprocess. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_STANDALONE_LATEST.json; form fields (user input); command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Solar Daily MWh Standalone Upgrade Workflow (globalgrid2050). - Signatures: `utc_now()`; `sha(text: str)`; `git_head()`; `read(path: Path)`; `solar_audit()`; `patch_index(text: str)`; `patch_renderer(text: str)`; `positions(text: str)`; `raw_temp_audit()`; `render_report(payload: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_DAILY_MWH_STANDALONE_LATEST.json; form fields (user input); command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Historic Backfill - File: globalgrid2050/scripts/gridbot_solar_historic_backfill.py (Python, 181 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_historic_backfill.py#L1-L181 - Page: https://code.globalgrid2050.com/explore-code/s/0069.html#f1 - Synopsis: A Python command-line tool in the scripts folder that fetches pvlive solar daily candidate and pvlive solar daily browser, using SHA-256. It parses float (`parse_float`) and parses MW (`parse_mw`). - What it achieves (name): Defines `utc_now`, `fetch_json`, `rows_from` and 5 more. It accepts `--start-date`, `--end-date` and `--max-days`. - What it does: It fetches pvlive solar daily candidate and pvlive solar daily browser. Defines 9 functions or classes, including utc_now, fetch_json, rows_from, parse_float, parse_mw. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_HISTORIC_BACKFILL_LATEST.json; command-line arguments. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Gridbot Solar 10 Year Backfill Workflow (globalgrid2050); GlobalGrid2050 Gridbot Solar Historic Backfill Workflow (globalgrid2050). - Signatures: `utc_now()`; `fetch_json(url: str)`; `rows_from(payload)`; `parse_float(value)`; `parse_mw(row)`; `fetch_day(day: dt.date)`; `load_existing(path: Path)`; `write_report(payload)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file SOLAR_HISTORIC_BACKFILL_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Immediate Data - File: globalgrid2050/scripts/gridbot_solar_immediate_data.py (Python, 142 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_immediate_data.py#L1-L142 - Page: https://code.globalgrid2050.com/explore-code/s/0069.html#f2 - Synopsis: A Python command-line tool in the scripts folder that fetches pvlive solar recent 30d 30min browser, using SHA-256. It parses row (`parse_row`) and writes report (`write_report`). - What it achieves (name): Defines `now_utc`, `fetch_json`, `rows_from` and 4 more. It accepts `--days` and `--apply`. - What it does: It fetches pvlive solar recent 30d 30min browser. Defines 8 functions or classes, including now_utc, fetch_json, rows_from, iso_z, parse_row. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_recent_30d_30min_browser.json; JSON file SOLAR_IMMEDIATE_DATA_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Solar Immediate Data Workflow (globalgrid2050). - Signatures: `now_utc()`; `fetch_json(url: str)`; `rows_from(payload)`; `iso_z(value)`; `parse_row(row)`; `build(days: int)`; `write_report(payload)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_recent_30d_30min_browser.json; JSON file SOLAR_IMMEDIATE_DATA_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Monthly Backfill - File: globalgrid2050/scripts/gridbot_solar_monthly_backfill.py (Python, 119 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_monthly_backfill.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0069.html#f3 - Synopsis: A Python command-line tool in the scripts folder that fetches pvlive solar daily candidate, pvlive solar daily browser and pvlive solar daily backfill progress, using SHA-256. - What it achieves (name): It gets JSON (`get_json`), parses row (`parse_row`) and fetches month (`fetch_month`). Defines `utc_now`, `month_key`, `month_start` and 11 more. It accepts `--start-month`, `--end-month` and `--max-months`. - What it does: It fetches pvlive solar daily candidate, pvlive solar daily browser and pvlive solar daily backfill progress. Defines 15 functions or classes, including utc_now, month_key, month_start, next_month, month_end. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file pvlive_solar_daily_BACKFILL_PROGRESS.json; JSON file SOLAR_MONTHLY_BACKFILL_LATEST.json; command-line arguments. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Gridbot Solar Monthly Backfill Workflow (globalgrid2050); GlobalGrid2050 Gridbot Solar Monthly Backfill Auto Workflow (globalgrid2050). - Signatures: `utc_now()`; `month_key(d)`; `month_start(s)`; `next_month(d)`; `month_end(d)`; `iso_z(v)`; `get_json(url)`; `rows_from(p)`; `parse_row(r)`; `fetch_month(mstart)`; `load_rows(path)`; `load_progress()`; `write_json(path,payload)`; `write_report(payload)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_daily_browser.json; JSON file pvlive_solar_daily_BACKFILL_PROGRESS.json; JSON file SOLAR_MONTHLY_BACKFILL_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Gridbot Solar Peak Integrity Audit - File: globalgrid2050/scripts/gridbot_solar_peak_integrity_audit.py (Python, 335 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_solar_peak_integrity_audit.py#L1-L335 - Page: https://code.globalgrid2050.com/explore-code/s/0070.html#f1 - Synopsis: A Python command-line tool in the scripts folder that fetches pvlive solar daily browser, pvlive solar daily candidate and pvlive solar recent 30d 30min browser, using SHA-256. - What it achieves (name): It parses time (`parse_time`) and compares day (`compare_day`). Defines `utc_now`, `load_json`, `sha256_file` and 17 more. It accepts `--start-month`, `--end-month` and `--dates`. - What it does: It fetches pvlive solar daily browser, pvlive solar daily candidate, pvlive solar recent 30d 30min browser and pvlive solar daily backfill progress. Defines 21 functions or classes, including utc_now, load_json, sha256_file, payload_rows, as_float. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_recent_30d_30min_browser.json; JSON file pvlive_solar_daily_BACKFILL_PROGRESS.json; JSON file SOLAR_PEAK_INTEGRITY_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Solar Peak Integrity Audit Workflow (globalgrid2050). - Signatures: `utc_now()`; `load_json(path: Path)`; `sha256_file(path: Path)`; `payload_rows(payload: dict)`; `as_float(value)`; `month_start(value: str)`; `next_month(value: dt.date)`; `month_key(value: dt.date)`; `expected_months(start_month: str, end_month: str)`; `month_expected_days(month: str)`; `parse_time(value)`; `row_time(row)`; `row_mw(row)`; `api_fetch_day(day: str)`; `daily_index(daily_rows: list)`; `coverage(daily_rows: list, start_month: str, end_month: str)`; `top_daily_highs(daily_rows: list, limit: int)`; `recent_peak(recent_rows: list)`; `field_integrity(daily_rows: list)`; `compare_day(stored, fetched)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file pvlive_solar_daily_candidate.json; JSON file pvlive_solar_recent_30d_30min_browser.json; JSON file pvlive_solar_daily_BACKFILL_PROGRESS.json; JSON file SOLAR_PEAK_INTEGRITY_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Patch V8 Battery Energy Storage System (BESS) Tabs Small Step - File: globalgrid2050/scripts/patch_v8_bess_tabs_small_step.py (Python, 187 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/patch_v8_bess_tabs_small_step.py#L1-L187 - Page: https://code.globalgrid2050.com/explore-code/s/0070.html#f2 - Synopsis: A Python command-line tool in the scripts folder that reads battery storage (BESS), cables and transformers. - What it achieves (name): Defines `replace_panel` and `append_once`. Its code works with 50 MW. - What it does: It loads battery storage (BESS), cables and transformers. Defines replace_panel, append_once, main. Uses libraries pathlib, datetime. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables, transformers. - Inputs & outputs: In: form fields (user input). - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `replace_panel(text: str)`; `append_once(text: str, marker: str, block: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GlobalGrid2050 Rebuild V8 Battery Energy Storage System (BESS) from V7 GIS Frame - File: globalgrid2050/scripts/rebuild_v8_bess_from_v7_gis_frame.py (Python, 470 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/rebuild_v8_bess_from_v7_gis_frame.py#L1-L470 - Page: https://code.globalgrid2050.com/explore-code/s/0071.html#f1 - Synopsis: A Python command-line tool in the scripts folder that maps BESS layout, BESS path, battery storage (BESS) and cables. - What it achieves (comment): It copies v7 frame (`copy_v7_frame`), patches index (`patch_index`) and patches CSS (`patch_css`). Rebuild V8 BESS GIS single-line diagram (SLD) app from the working V7 GIS SLD frame. Its code works with 50 MW. - What it does: It maps BESS layout, BESS path, battery storage (BESS) and cables. Defines 7 functions or classes, including ensure_sources, copy_v7_frame, patch_index, patch_css, patch_js. Uses libraries __future__, datetime, shutil, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables. - Inputs & outputs: In: form fields (user input). Out: downloaded file v8-bess-layout.geojson. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Rebuild V8 Battery Energy Storage System (BESS) from V7 GIS Frame Workflow (globalgrid2050). - Signatures: `ensure_sources()`; `copy_v7_frame()`; `patch_index()`; `patch_css()`; `patch_js()`; `write_docs()`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [downloaded file v8-bess-layout.geojson]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Repair V6 Restore V5 Panels - File: globalgrid2050/scripts/repair_v6_restore_v5_panels.py (Python, 268 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/repair_v6_restore_v5_panels.py#L1-L268 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f1 - Synopsis: A Python module in the scripts folder that draws live grid energy, live grid price, live oil prices and electricity price history daily decade. - What it does: It draws live grid energy, live grid price, live oil prices and electricity price history daily decade. Uses libraries pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panels'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file live_grid_energy.json; JSON file live_grid_price.json; JSON file live_oil_prices.json; JSON file electricity_price_history.json; JSON file electricity_price_history_daily_decade.json; GeoJSON file oil_price_history.geojson; JSON file live_uk_fuel_prices.json; JSON file ev_charging_prices.json. Out: canvas drawing. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Repair V6 Restore V5 Panels Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file live_grid_energy.json; JSON file live_grid_price.json; JSON file live_oil_prices.json; JSON file electricity_price_history.json; JSON file electricity_price_history_daily_decade.json; GeoJSON file oil_price_history.geojson; JSON file live_uk_fuel_prices.json; JSON file ev_charging_prices.json]; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Test Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing - File: globalgrid2050/scripts/test_add_v8_bess_geospatial_layout_drawing.py (Python, 52 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_add_v8_bess_geospatial_layout_drawing.py#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f2 - Synopsis: A test in the scripts folder covering battery storage (BESS) and cables. - What it does: It tests battery storage (BESS) and cables. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Test Build V8 Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial… - File: globalgrid2050/scripts/test_build_v8_bess_gis_sld_financial_sandbox.py (Python, 73 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_build_v8_bess_gis_sld_financial_sandbox.py#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f3 - Synopsis: A test in the scripts folder covering battery storage (BESS), solar and cables. - What it does: It tests battery storage (BESS), solar and cables. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), solar, cables. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Build V8 Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial… (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Test Create V8 Battery Energy Storage System (BESS) Electrical Topology Review - File: globalgrid2050/scripts/test_create_v8_bess_electrical_topology_review.py (Python, 50 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_create_v8_bess_electrical_topology_review.py#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f4 - Synopsis: A test in the scripts folder covering battery storage (BESS) and solar. - What it does: It tests battery storage (BESS) and solar. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Create V8 Battery Energy Storage System (BESS) Electrical Topology Review Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Test Create V8 Battery Energy Storage System (BESS) Pcs Standalone - File: globalgrid2050/scripts/test_create_v8_bess_pcs_standalone.py (Python, 45 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_create_v8_bess_pcs_standalone.py#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f5 - Synopsis: A test in the scripts folder covering battery storage (BESS) and solar. - What it does: It tests battery storage (BESS) and solar. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Create V8 Battery Energy Storage System (BESS) Pcs Standalone Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Test Patch V8 Battery Energy Storage System (BESS) Tabs Small Step - File: globalgrid2050/scripts/test_patch_v8_bess_tabs_small_step.py (Python, 58 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_patch_v8_bess_tabs_small_step.py#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f6 - Synopsis: A test in the scripts folder covering battery storage (BESS). - What it does: It tests battery storage (BESS). Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Test Rebuild V8 Battery Energy Storage System (BESS) from V7 GIS Frame - File: globalgrid2050/scripts/test_rebuild_v8_bess_from_v7_gis_frame.py (Python, 74 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_rebuild_v8_bess_from_v7_gis_frame.py#L1-L74 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f7 - Synopsis: A test in the scripts folder covering battery storage (BESS) and solar. - What it does: It tests battery storage (BESS) and solar. Uses libraries pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar. - Inputs & outputs: Out: interactive map. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050); GlobalGrid2050 Rebuild V8 Battery Energy Storage System (BESS) from V7 GIS Frame Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Test Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone - File: globalgrid2050/scripts/test_restore_v8_bess_maplibre_standalone.py (Python, 70 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_restore_v8_bess_maplibre_standalone.py#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0072.html#f8 - Synopsis: A test in the scripts folder covering battery storage (BESS) and solar. - What it does: It tests battery storage (BESS) and solar. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050); GlobalGrid2050 Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Test V7 GIS Single-Line Diagram (SLD) Array Sizing Math - File: globalgrid2050/scripts/test_v7_gis_sld_array_sizing_math.py (Python, 66 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_v7_gis_sld_array_sizing_math.py#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0073.html#f1 - Synopsis: A test in the scripts folder. It is built from the string sizing helper (`string_sizing`) and the central sizing helper (`central_sizing`). - What it achieves (comment): Static and maths checks for V7 GIS SLD array MWp sizing. - What it does: It tests its inputs. Defines string_sizing, central_sizing, main. Uses libraries __future__, math, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Array Visibility and Mwp Sizing (globalgrid2050); GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Array Visibility and Mwp Sizing Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - Signatures: `string_sizing(target_mwp, mod_wp, x_mods, z_strings, y_invs, current_skids_per_ring)`; `central_sizing(target_mwp, inv_dc_mwp, inv_per_skid, current_skids_per_ring)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GlobalGrid2050 Test V7 GIS Single-Line Diagram (SLD) Site Intelligence Panel - File: globalgrid2050/scripts/test_v7_gis_sld_site_intelligence_panel.py (Python, 21 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_v7_gis_sld_site_intelligence_panel.py#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0073.html#f2 - Synopsis: A test in the scripts folder. - What it achieves (comment): Static checks for V7 GIS SLD Site Intelligence Panel. Its code works with 132 kV, 275 kV and 400 kV. - What it does: It tests its inputs. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: In: JSON file repd_master.json. Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 3 files: GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Site Intelligence Panel (globalgrid2050); GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Site Intelligence Panel Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json]; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GlobalGrid2050 Wire Pvlive Solar UI V6 - File: globalgrid2050/scripts/wire_pvlive_solar_ui_v6.py (Python, 93 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/wire_pvlive_solar_ui_v6.py#L1-L93 - Page: https://code.globalgrid2050.com/explore-code/s/0073.html#f3 - Synopsis: A Python command-line tool in the scripts folder that reads pvlive solar daily browser and Elexon generation sources. It patches loader (`patch_loader`). - What it achieves (name): Defines `utc_now`, `replace_once`, `patch_config` and 3 more. - What it does: It loads pvlive solar daily browser and Elexon generation sources. Defines 7 functions or classes, including utc_now, replace_once, patch_config, patch_loader, patch_index_note. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file elexon_generation_sources_2016.json. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Step3 Wire Pvlive Solar UI V6 Workflow (globalgrid2050). - Signatures: `utc_now()`; `replace_once(text: str, old: str, new: str, label: str)`; `patch_config()`; `patch_loader()`; `patch_index_note()`; `write_report(changes: dict[str, bool])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file elexon_generation_sources_2016.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V2 - File: globalgrid2050/solar-bess-topology-v2/gis-sld-v2.css (CSS, 543 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v2/gis-sld-v2.css#L1-L543 - Page: https://code.globalgrid2050.com/explore-code/s/0073.html#f4 - Synopsis: A style sheet in GlobalGrid2050 covering battery storage (BESS). - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Downstream impact: Used directly by 3 files: Indexforgis Single-Line Diagram (SLD) V2 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html); Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). Reached from 1 other entry point, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Indexforgis Single-Line Diagram (SLD) V2 - File: globalgrid2050/solar-bess-topology-v2/indexforgis-sld-v2.html (HTML, 1406 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v2/indexforgis-sld-v2.html#L1-L1406 - Page: https://code.globalgrid2050.com/explore-code/s/0074.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html - Synopsis: A map page in GlobalGrid2050 that maps sat s, l sat, l subs and topology, and uses data from OpenStreetMap Nominatim. Published at https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html. - What it achieves (comment): It shows popup (`showPopup`), reads physical inputs (`readPhysicalInputs`) and builds stats (`buildStats`). GIS SLD Financial Sandbox V2. Its code works with 33 kV. It responds to click, keydown and change events. - What it does: It maps sat s, l sat, l subs and topology. Defines 35 functions or classes, including initMap, onMapLoad, showPopup, onSubstationClick, onInverterClick. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; JSON file style.json; form fields (user input). Out: web page; interactive map. Voltage levels named: 33kV. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v2/indexforgis-sld-v2.html. - Signatures: `initMap()`; `onMapLoad()`; `showPopup(coords, html)`; `onSubstationClick(e)`; `onInverterClick(e)`; `onPoiClick(e)`; `readPhysicalInputs(suffix)`; `zeroStats(dc_ac_ratio, mods_pallet, mods_container)`; `buildStats(opts)`; `dc_mwp(module_count * mod_wp)`; `computeStringStats()`; `computeCentralStats()`; `str_dc_kwp(x_mods * physical.mod_wp)`; `computeStats()`; `applyDevelopmentStageDefaults(prefix)`; `computeFinance(prefix, stats)`; `renderFinance(prefix, fin)`; `renderFinanceWarnings(prefix, fin, stats)`; `renderTechSummary(stats)`; `renderBenchmark()`; `updateSelectedSubstationDisplay()`; `recalcAll()`; `updateLegend()`; `getRectPolygon(centerCoord, width_km, length_km, propType)`; `getBlockAspect()` (and 13 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; JSON file style.json; form fields (user input)]; out [web page; interactive map]; crs []; voltages [33kV] - Edges: uses 5 estate files (script-src 4, stylesheet 1); used by 0; mentioned by 1 ### GIS Single-Line Diagram (SLD) V3 Calculations - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-calculations.js (JavaScript, 105 lines) · role electrical · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-calculations.js#L1-L105 - Page: https://code.globalgrid2050.com/explore-code/s/0076.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that reads physical inputs (`readPhysicalInputs`), builds stats (`buildStats`) and computes stats (`computeStringStats`) (units: MW). Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (comment): It reads physical inputs (`readPhysicalInputs`), builds stats (`buildStats`) and computes string stats (`computeStringStats`). AGGREGATE STATS (single unified function). - What it does: It calculates its inputs. Defines 6 functions or classes, including readPhysicalInputs, zeroStats, buildStats, computeStringStats, computeCentralStats. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html); Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html). Reached from 6 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `readPhysicalInputs(suffix)`; `zeroStats(dc_ac_ratio, mods_pallet, mods_container)`; `buildStats(opts)`; `dc_mwp(module_count * mod_wp)`; `computeStringStats()`; `computeCentralStats()`; `str_dc_kwp(x_mods * physical.mod_wp)`; `computeStats()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Config - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0076.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (comment): GIS SLD Financial Sandbox V3. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). Reached from 1 other entry point, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Drawing - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-drawing.js (JavaScript, 203 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-drawing.js#L1-L203 - Page: https://code.globalgrid2050.com/explore-code/s/0076.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that works with battery storage (BESS) and substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It gets array axis deg (`getArrayAxisDeg`), gets rect polygon (`getRectPolygon`) and gets block aspect (`getBlockAspect`). Defines `normBearing`, `getArrayAxisDeg`, `getRectPolygon` and 5 more. Its code works with 33 kV. - What it does: It calculates battery storage (BESS) and substations. Defines 8 functions or classes, including normBearing, getArrayAxisDeg, getRectPolygon, getBlockAspect, getExportCableExtraKm. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), substations, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html). Reached from 2 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `normBearing(deg)`; `getArrayAxisDeg()`; `getRectPolygon(centerCoord, width_km, length_km, propType, rotationDeg = 0)`; `getBlockAspect()`; `getExportCableExtraKm()`; `buildExportCableLine(privateSubCoord, publicSubCoord, safeExtraOffsetKm)`; `addCableRouteWaypointMarkers(features)`; `computeAndDraw()`; `bess_area_km2(bess_mwh * CONSTANTS.BESS_M2_PER_MWH)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Export - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-export.js (JavaScript, 148 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-export.js#L1-L148 - Page: https://code.globalgrid2050.com/explore-code/s/0076.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that exports geo (`exportGeoJSON`) (units: MW, MWh, kV). Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It exports geo JSON (`exportGeoJSON`) and is built from the trigger download helper (`triggerDownload`). Defines `exportGeoJSON` and `triggerDownload`. - What it does: It draws its content. Defines exportGeoJSON, triggerDownload. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html); Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/); and 3 more. Reached from 170 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `exportGeoJSON()`; `triggerDownload(data)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Finance - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-finance.js (JavaScript, 192 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-finance.js#L1-L192 - Page: https://code.globalgrid2050.com/explore-code/s/0077.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that applies development stage defaults (`applyDevelopmentStageDefaults`) and renders finance warnings (`renderFinanceWarnings`) (units: MW, MWh), covering battery storage (BESS). Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It applies development stage defaults (`applyDevelopmentStageDefaults`), computes finance (`computeFinance`) and renders finance (`renderFinance`). Defines `applyDevelopmentStageDefaults`, `computeFinance`, `renderFinance` and 1 more. - What it does: It draws battery storage (BESS). Defines applyDevelopmentStageDefaults, computeFinance, renderFinance, renderFinanceWarnings. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html). Reached from 2 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `applyDevelopmentStageDefaults(prefix)`; `computeFinance(prefix, stats)`; `renderFinance(prefix, fin)`; `renderFinanceWarnings(prefix, fin, stats)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Helpers - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-helpers.js (JavaScript, 75 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-helpers.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0077.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that sets class (`setClass`), picks prop (`pickProp`) and sets fetch status (`setFetchStatus`). Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS SLD Financial Sandbox V3. Helpers extracted by GridBot feature 003. - What it does: Defines 11 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). Reached from 1 other entry point, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Map - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-map.js (JavaScript, 188 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-map.js#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/0077.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that maps sat s, l sat, l subs and topology. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It shows popup (`showPopup`) and is built from the init map helper (`initMap`) and the on map load helper (`onMapLoad`). Defines `initMap`, `onMapLoad`, `showPopup` and 3 more. - What it does: It maps sat s, l sat, l subs and topology. Defines 6 functions or classes, including initMap, onMapLoad, showPopup, onSubstationClick, onInverterClick. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV. - Inputs & outputs: In: JSON file style.json. Out: interactive map. Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html). Reached from 2 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `initMap()`; `onMapLoad()`; `showPopup(coords, html)`; `onSubstationClick(e)`; `onInverterClick(e)`; `onPoiClick(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json]; out [interactive map]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 State - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-state.js (JavaScript, 23 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-state.js#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0077.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (comment): GIS SLD Financial Sandbox V3. State extracted by GridBot feature 004. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html). Reached from 2 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 Substations - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-substations.js (JavaScript, 83 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-substations.js#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0077.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that fetches substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. It normalises substations (`normaliseSubstations`) and loads substations (`loadSubstations`). - What it achieves (comment): GIS SLD Financial Sandbox V3. Substation data loading extracted by GridBot feature 005. - What it does: It fetches substations. Defines normaliseSubstations, loadSubstations. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html). Reached from 2 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `normaliseSubstations(raw)`; `loadSubstations()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 UI Core - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-ui-core.js (JavaScript, 95 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-ui-core.js#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0077.html#f6 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that renders tech summary (`renderTechSummary`) and benchmark (`renderBenchmark`) and updates selected substation display (`updateSelectedSubstationDisplay`) (units: MW). Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It renders tech summary (`renderTechSummary`), renders benchmark (`renderBenchmark`) and updates selected substation display (`updateSelectedSubstationDisplay`). Defines `renderTechSummary`, `renderBenchmark`, `updateSelectedSubstationDisplay` and 2 more. Its code works with 33 kV. - What it does: It draws substations, battery storage (BESS) and 33kV. Defines renderTechSummary, renderBenchmark, updateSelectedSubstationDisplay, recalcAll, updateLegend. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, battery storage (BESS), 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html); Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html). Reached from 6 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `renderTechSummary(stats)`; `renderBenchmark()`; `updateSelectedSubstationDisplay()`; `recalcAll()`; `updateLegend()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V3 UI - File: globalgrid2050/solar-bess-topology-v3/gis-sld-v3-ui.js (JavaScript, 384 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/gis-sld-v3-ui.js#L1-L384 - Page: https://code.globalgrid2050.com/explore-code/s/0078.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 covering cables and uses data from OpenStreetMap Nominatim. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It applies logistics preset (`applyLogisticsPreset`), updates export cable length display (`updateExportCableLengthDisplay`) and updates array rotation display (`updateArrayRotationDisplay`). Defines `switchTab`, `applyLogisticsPreset`, `autoFillBifacial` and 22 more. It responds to click, keydown and change events. - What it does: It draws cables. Defines 25 functions or classes, including switchTab, applyLogisticsPreset, autoFillBifacial, updateExportCableLengthDisplay, updateArrayRotationDisplay. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; form fields (user input). - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html). Reached from 2 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `switchTab(tab)`; `applyLogisticsPreset(val, suffix)`; `autoFillBifacial(gcrVal, targetId)`; `updateExportCableLengthDisplay()`; `updateArrayRotationDisplay()`; `rotateArrayBy(deltaDeg)`; `resetArrayRotation()`; `updateCableRouteStatus()`; `injectExportCableLengthControl()`; `redrawIfTopologyExists()`; `setArrayMoveStatus(text, active = false)`; `toggleArrayMoveMode()`; `resetArrayLocation()`; `placeArrayAtMapPoint(e)`; `startCableRouteMode()`; `finishCableRouteMode()`; `clearCableRoute()`; `addCableRouteWaypoint(e)`; `searchLocation()`; `triggerDrawAtCenter()`; `toggleBasemap()`; `toggleSubs()`; `wireEvents()`; `wireMapMoveEvents()`; `boot()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page - File: globalgrid2050/solar-bess-topology-v3/index.html (HTML, 12 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/index.html#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0078.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A web page. Published at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (comment): GIS single-line diagram (SLD) Financial Sandbox V3. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 0; mentioned by 0 ### Indexforgis Single-Line Diagram (SLD) V3 - File: globalgrid2050/solar-bess-topology-v3/indexforgis-sld-v3.html (HTML, 408 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/indexforgis-sld-v3.html#L1-L408 - Page: https://code.globalgrid2050.com/explore-code/s/0079.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html - Synopsis: A web page in GlobalGrid2050 that reads inputs for loc, mod wp and mod (units: MW, MWh), covering battery storage (BESS), solar, substations and cables. Published at https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html. - What it achieves (comment): GIS SLD Financial Sandbox V3. Its code works with 33 kV. - What it does: It draws battery storage (BESS), solar, substations and cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar, substations, cables, 33kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V3 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/); Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/indexforgis-sld-v3.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [33kV] - Edges: uses 12 estate files (script-src 11, stylesheet 1); used by 2; mentioned by 0 ### Module Layout V3 - File: globalgrid2050/solar-bess-topology-v3/module-layout-v3.css (CSS, 222 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/module-layout-v3.css#L1-L222 - Page: https://code.globalgrid2050.com/explore-code/s/0079.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A style sheet in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html). Reached from 2 other entry points, including GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050); GlobalGrid2050 Clone V3 to V4 (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Module Layout V3 - File: globalgrid2050/solar-bess-topology-v3/module-layout-v3.html (HTML, 90 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/module-layout-v3.html#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0080.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html - Synopsis: A web page in GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height. Published at https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 6 estate files (script-src 3, stylesheet 2, link 1); used by 0; mentioned by 0 ### Module Layout V3 - File: globalgrid2050/solar-bess-topology-v3/module-layout-v3.js (JavaScript, 296 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v3/module-layout-v3.js#L1-L296 - Page: https://code.globalgrid2050.com/explore-code/s/0080.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v3/ - Synopsis: A JavaScript file in GlobalGrid2050 that maps ml sat, ml boundary fill and ml boundary line. Served with the page at https://globalgrid2050.com/solar-bess-topology-v3/. - What it achieves (name): It is built from the ml num helper (`mlNum`), the ml int helper (`mlInt`) and the ml set status helper (`mlSetStatus`). Defines `mlNum`, `mlInt`, `mlSetStatus` and 14 more. It responds to input, change and click events. - What it does: It maps ml sat, ml boundary fill and ml boundary line. Defines 18 functions or classes, including ml, mlNum, mlInt, mlSetStatus, mlSetText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file style.json. Out: interactive map. - Downstream impact: Used directly by 6 files: Module Layout V3 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v3/module-layout-v3.html); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html); Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/module-layout/); and 2 more. Reached from 157 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v3/. - Signatures: `ml(id)`; `mlNum(id, fallback = 0)`; `mlInt(id, fallback = 0)`; `mlSetStatus(text)`; `mlSetText(id, text)`; `mlGetInputs()`; `mlPointFromOffset(centerCoord, acrossM, alongM, axisDeg)`; `mlRect(centerCoord, widthM, lengthM, type, axisDeg, props = {})`; `mlUpdateResults(inputs, renderedCount)`; `mlBuildLayout(centerCoord)`; `mlDrawAtMapCentre()`; `mlClear()`; `mlZoomToLayout()`; `mlToggleSatellite()`; `mlTogglePickMode()`; `mlWireInputs()`; `mlInitMap()`; `mlBoot()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Config - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0080.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (comment): GIS SLD Financial Sandbox V4. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html). Reached from 3 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050); GlobalGrid2050 Clone V3 to V4 (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Drawing - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-drawing.js (JavaScript, 234 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-drawing.js#L1-L234 - Page: https://code.globalgrid2050.com/explore-code/s/0080.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 that works with battery storage (BESS) and substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (name): It gets array axis deg (`getArrayAxisDeg`), gets rect polygon (`getRectPolygon`) and routes length km (`routeLengthKm`). Defines `normBearing`, `getArrayAxisDeg`, `getRectPolygon` and 9 more. Its code works with 33 kV. - What it does: It calculates battery storage (BESS) and substations. Defines 12 functions or classes, including normBearing, getArrayAxisDeg, getRectPolygon, atlasHaversineKm, routeLengthKm. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), substations, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 111 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - Signatures: `normBearing(deg)`; `getArrayAxisDeg()`; `getRectPolygon(centerCoord, width_km, length_km, propType, rotationDeg = 0)`; `atlasHaversineKm(a, b)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `routeLengthKm(coords)`; `getBlockAspect()`; `getExportCableExtraKm()`; `getCommittedCablePins()`; `shouldShowExportCable()`; `buildExportCableLine(privateSubCoord, publicSubCoord, safeExtraOffsetKm)`; `addCableRoutePinMarkers(features)`; `computeAndDraw()`; `bess_area_km2(bess_mwh * CONSTANTS.BESS_M2_PER_MWH)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Finance - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-finance.js (JavaScript, 262 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-finance.js#L1-L262 - Page: https://code.globalgrid2050.com/explore-code/s/0081.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 that sets finance label (`setFinanceLabel`), applies development stage defaults (`applyDevelopmentStageDefaults`) and renders finance warnings (`renderFinanceWarnings`) (units: MW, MWh). Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (name): It sets finance label (`setFinanceLabel`), converts large default wp (`convertLargeDefaultToWp`) and sets finance input defaults wp (`setFinanceInputDefaultsForWp`). Defines `setFinanceLabel`, `convertLargeDefaultToWp`, `setFinanceInputDefaultsForWp` and 5 more. It responds to DOMContentLoaded events. - What it does: It draws battery storage (BESS). Defines 8 functions or classes, including setFinanceLabel, convertLargeDefaultToWp, setFinanceInputDefaultsForWp, migrateFinanceUnitsToWp, applyDevelopmentStageDefaults. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Downstream impact: Used directly by 6 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); and 2 more. Reached from 168 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - Signatures: `setFinanceLabel(inputId, labelText)`; `convertLargeDefaultToWp(inputId)`; `setFinanceInputDefaultsForWp(prefix)`; `migrateFinanceUnitsToWp()`; `applyDevelopmentStageDefaults(prefix)`; `computeFinance(prefix, stats)`; `renderFinance(prefix, fin)`; `renderFinanceWarnings(prefix, fin, stats)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Helpers - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-helpers.js (JavaScript, 75 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-helpers.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0081.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 that sets class (`setClass`), picks prop (`pickProp`) and sets fetch status (`setFetchStatus`). Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS SLD Financial Sandbox V4. Helpers extracted by GridBot feature 003. - What it does: Defines 11 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html). Reached from 3 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050); GlobalGrid2050 Clone V3 to V4 (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Map - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-map.js (JavaScript, 216 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-map.js#L1-L216 - Page: https://code.globalgrid2050.com/explore-code/s/0081.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 that maps sat s, l sat, l subs and topology. Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (name): It shows popup (`showPopup`) and is built from the init map helper (`initMap`) and the on map load helper (`onMapLoad`). Defines `initMap`, `onMapLoad`, `showPopup` and 4 more. - What it does: It maps sat s, l sat, l subs and topology. Defines 7 functions or classes, including initMap, onMapLoad, showPopup, onSubstationClick, onInverterClick. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV. - Inputs & outputs: In: JSON file style.json. Out: interactive map. Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html). Reached from 107 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - Signatures: `initMap()`; `onMapLoad()`; `showPopup(coords, html)`; `onSubstationClick(e)`; `onInverterClick(e)`; `onCableRoutePinClick(e)`; `onPoiClick(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json]; out [interactive map]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 State - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-state.js (JavaScript, 28 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-state.js#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0081.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (comment): GIS SLD Financial Sandbox V4. State extracted by GridBot feature 004. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html); GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Substations - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-substations.js (JavaScript, 83 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-substations.js#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0081.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 that fetches substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. It normalises substations (`normaliseSubstations`) and loads substations (`loadSubstations`). - What it achieves (comment): GIS SLD Financial Sandbox V4. Substation data loading extracted by GridBot feature 005. - What it does: It fetches substations. Defines normaliseSubstations, loadSubstations. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html); GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - Signatures: `normaliseSubstations(raw)`; `loadSubstations()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 UI - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4-ui.js (JavaScript, 475 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4-ui.js#L1-L475 - Page: https://code.globalgrid2050.com/explore-code/s/0082.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A JavaScript file in GlobalGrid2050 covering cables, using haversine and uses data from OpenStreetMap Nominatim. Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (name): It applies logistics preset (`applyLogisticsPreset`), updates export cable length display (`updateExportCableLengthDisplay`) and updates array rotation display (`updateArrayRotationDisplay`). Defines `switchTab`, `applyLogisticsPreset`, `autoFillBifacial` and 30 more. It responds to click, keydown and change events. - What it does: It draws cables. Defines 33 functions or classes, including switchTab, applyLogisticsPreset, autoFillBifacial, updateExportCableLengthDisplay, updateArrayRotationDisplay. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; form fields (user input). - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html). Reached from 107 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - Signatures: `switchTab(tab)`; `applyLogisticsPreset(val, suffix)`; `autoFillBifacial(gcrVal, targetId)`; `updateExportCableLengthDisplay()`; `updateArrayRotationDisplay()`; `rotateArrayBy(deltaDeg)`; `resetArrayRotation()`; `getCurrentArrayCenter()`; `getArrayNudgeStepKm()`; `clearRouteAfterArrayShift()`; `nudgeArray(bearingDeg)`; `updateCableRouteStatus()`; `injectExportCableLengthControl()`; `redrawIfTopologyExists()`; `setArrayMoveStatus(text, active = false)`; `toggleArrayMoveMode()`; `resetArrayLocation()`; `placeArrayAtMapPoint(e)`; `toggleCablePinMode()`; `commitCablePinRoute()`; `undoCablePin()`; `clearCableRoute()`; `addCableRoutePin(e)`; `startCableRouteMode()`; `finishCableRouteMode()` (and 8 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 - File: globalgrid2050/solar-bess-topology-v4/gis-sld-v4.css (CSS, 548 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/gis-sld-v4.css#L1-L548 - Page: https://code.globalgrid2050.com/explore-code/s/0083.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A style sheet in GlobalGrid2050 covering battery storage (BESS). Served with the page at https://globalgrid2050.com/solar-bess-topology-v4/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Downstream impact: Used directly by 10 files: Indexforgis Single-Line Diagram (SLD) V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); and 6 more. Reached from 156 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 10; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page - File: globalgrid2050/solar-bess-topology-v4/index.html (HTML, 12 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/index.html#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0083.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/ - Synopsis: A web page. Published at https://globalgrid2050.com/solar-bess-topology-v4/. - What it achieves (comment): GIS single-line diagram (SLD) Financial Sandbox V4. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Clone V3 to V4 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 1; mentioned by 0 ### Indexforgis Single-Line Diagram (SLD) V4 - File: globalgrid2050/solar-bess-topology-v4/indexforgis-sld-v4.html (HTML, 421 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/indexforgis-sld-v4.html#L1-L421 - Page: https://code.globalgrid2050.com/explore-code/s/0084.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html - Synopsis: A web page in GlobalGrid2050 that reads inputs for loc, mod wp and mod (units: MW, MWh), covering battery storage (BESS), cables, solar and substations. Published at https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html. - What it achieves (comment): GIS SLD Financial Sandbox V4. Its code works with 33 kV. - What it does: It draws battery storage (BESS), cables, solar and substations. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables, solar, substations, 33kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V4 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/); Module Layout V4 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html); GlobalGrid2050 Clone V3 to V4 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/indexforgis-sld-v4.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [33kV] - Edges: uses 12 estate files (script-src 11, stylesheet 1); used by 3; mentioned by 0 ### Module Layout V4 - File: globalgrid2050/solar-bess-topology-v4/module-layout-v4.html (HTML, 90 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v4/module-layout-v4.html#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0084.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html - Synopsis: A web page in GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height. Published at https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Clone V3 to V4 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Clone V3 to V4 Once Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v4/module-layout-v4.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 6 estate files (script-src 3, stylesheet 2, link 1); used by 1; mentioned by 0 ### DC AC LV Topology Review V5 - File: globalgrid2050/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.css (CSS, 100 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.css#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0084.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A style sheet in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html). Reached from 101 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### DC AC LV Topology Review V5 - File: globalgrid2050/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html (HTML, 117 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html#L1-L117 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html - Synopsis: A web page in GlobalGrid2050 that draws SVG graphics and reads inputs for mod wp, voc and vmp (units: MVA, °C, MW). Published at https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html. - What it achieves (name): Its code works with 33 kV and 0 MVA. - What it does: It draws cables, 33kV, solar and transformers. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, solar, transformers. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html). Reached from 99 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [33kV] - Edges: uses 6 estate files (stylesheet 3, link 2, script-src 1); used by 2; mentioned by 0 ### DC AC LV Topology Review V5 - File: globalgrid2050/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.js (JavaScript, 162 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.js#L1-L162 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050 that calculates central (`calcCentral`) and renders stats (`renderStats`) and scada (`renderScada`) (units: MVA, MW, kW). Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (name): It renders stats (`renderStats`), renders scada (`renderScada`) and sets mode (`setMode`). Defines `txt`, `fmt`, `read` and 12 more. Its code works with 33 kV. It responds to input, change and click events. - What it does: It draws transformers and cables. Defines 18 functions or classes, including t, n, i, txt, fmt. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, 33kV. - Inputs & outputs: Out: SVG drawing. Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/); Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/). Reached from 156 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - Signatures: `t(id)`; `n(id, fallback = 0)`; `i(id, fallback = 0)`; `txt(id, value)`; `fmt(v, d = 2)`; `read(prefix)`; `baseCalc(v)`; `calcString()`; `calcCentral()`; `currentCalc()`; `renderStats(r)`; `svgEl(name, attrs = {}, text = null)`; `box(svg, x, y, w, h, title, lines = [], tone = "")`; `line(svg, x1, y1, x2, y2, tone = "")`; `renderScada(r)`; `update()`; `setMode(mode)`; `boot()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Config - File: globalgrid2050/solar-bess-topology-v5/gis-sld-v4-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/gis-sld-v4-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (comment): GIS SLD Financial Sandbox V5. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html). Reached from 102 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Helpers - File: globalgrid2050/solar-bess-topology-v5/gis-sld-v4-helpers.js (JavaScript, 75 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/gis-sld-v4-helpers.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050 that sets class (`setClass`), picks prop (`pickProp`) and sets fetch status (`setFetchStatus`). Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS SLD Financial Sandbox V5. Helpers extracted by GridBot feature 003. - What it does: Defines 11 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html). Reached from 102 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 State - File: globalgrid2050/solar-bess-topology-v5/gis-sld-v4-state.js (JavaScript, 28 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/gis-sld-v4-state.js#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (comment): GIS SLD Financial Sandbox V5. State extracted by GridBot feature 004. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html). Reached from 103 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V4 Substations - File: globalgrid2050/solar-bess-topology-v5/gis-sld-v4-substations.js (JavaScript, 83 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/gis-sld-v4-substations.js#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f6 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050 that fetches substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. It normalises substations (`normaliseSubstations`) and loads substations (`loadSubstations`). - What it achieves (comment): GIS SLD Financial Sandbox V5. Substation data loading extracted by GridBot feature 005. - What it does: It fetches substations. Defines normaliseSubstations, loadSubstations. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html). Reached from 103 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - Signatures: `normaliseSubstations(raw)`; `loadSubstations()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Calculations - File: globalgrid2050/solar-bess-topology-v5/gis-sld-v5-calculations.js (JavaScript, 170 lines) · role electrical · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/gis-sld-v5-calculations.js#L1-L170 - Page: https://code.globalgrid2050.com/explore-code/s/0085.html#f7 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050 that works with transformers and cables. Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (comment): It reads physical inputs (`readPhysicalInputs`), builds stats (`buildStats`) and gets central inverter mwac (`getCentralInverterMwac`). AGGREGATE STATS (single unified function). - What it does: It calculates transformers and cables. Defines 9 functions or classes, including readPhysicalInputs, zeroStats, buildStats, getCentralInverterMwac, getCentralInverterDcMwdc. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables. - Downstream impact: Used directly by 7 files: Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); and 3 more. Reached from 165 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - Signatures: `readPhysicalInputs(suffix)`; `zeroStats(dc_ac_ratio, mods_pallet, mods_container)`; `buildStats(opts)`; `dc_mwp(module_count * mod_wp)`; `getCentralInverterMwac()`; `getCentralInverterDcMwdc()`; `getCentralSkidMva()`; `computeStringStats()`; `inverter_acmax_mva(y * string_inverter_kva)`; `computeCentralStats()`; `str_dc_kwp(x_mods * physical.mod_wp)`; `computeStats()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 1 ### GIS Single-Line Diagram (SLD) V5 UI Core - File: globalgrid2050/solar-bess-topology-v5/gis-sld-v5-ui-core.js (JavaScript, 103 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/gis-sld-v5-ui-core.js#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0086.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A JavaScript file in GlobalGrid2050 that renders tech summary (`renderTechSummary`) and benchmark (`renderBenchmark`) and updates selected substation display (`updateSelectedSubstationDisplay`) (units: MVA, MW, kVA). Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (name): It renders tech summary (`renderTechSummary`), renders benchmark (`renderBenchmark`) and updates selected substation display (`updateSelectedSubstationDisplay`). Defines `renderTechSummary`, `renderBenchmark`, `updateSelectedSubstationDisplay` and 2 more. Its code works with 33 kV. - What it does: It draws substations, battery storage (BESS) and 33kV. Defines renderTechSummary, renderBenchmark, updateSelectedSubstationDisplay, recalcAll, updateLegend. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, battery storage (BESS), 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Indexforgis Single-Line Diagram (SLD) V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html). Reached from 103 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - Signatures: `renderTechSummary(stats)`; `renderBenchmark()`; `updateSelectedSubstationDisplay()`; `recalcAll()`; `updateLegend()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V5 Page - File: globalgrid2050/solar-bess-topology-v5/index.html (HTML, 12 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/index.html#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0086.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A web page. Published at https://globalgrid2050.com/solar-bess-topology-v5/. - What it achieves (comment): GIS single-line diagram (SLD) Financial Sandbox V5. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Clone V4 to V5 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Clone V4 to V5 Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 1; mentioned by 0 ### Indexforgis Single-Line Diagram (SLD) V5 - File: globalgrid2050/solar-bess-topology-v5/indexforgis-sld-v5.html (HTML, 433 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/indexforgis-sld-v5.html#L1-L433 - Page: https://code.globalgrid2050.com/explore-code/s/0086.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html - Synopsis: A web page in GlobalGrid2050 that reads inputs for loc, mod wp and mod (units: MW, MVA, MWh), covering battery storage (BESS), cables, 33kV and substations. Published at https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html. - What it achieves (comment): GIS SLD Financial Sandbox V5. Its code works with 33 kV, 0.00 MVA and 352 kVA. - What it does: It draws battery storage (BESS), cables, 33kV and substations. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables, 33kV, substations. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 33kV. - Downstream impact: Used directly by 4 files: DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V5 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/); Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html); GlobalGrid2050 Clone V4 to V5 (globalgrid2050). Reached from 99 other entry points, including Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/indexforgis-sld-v5.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [33kV] - Edges: uses 12 estate files (script-src 11, stylesheet 1); used by 4; mentioned by 0 ### Install DC AC LV 01 HTML - File: globalgrid2050/solar-bess-topology-v5/install_dc_ac_lv_01_html.py (Python, 126 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/install_dc_ac_lv_01_html.py#L1-L126 - Page: https://code.globalgrid2050.com/explore-code/s/0086.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A Python module in GlobalGrid2050 covering cables, 33kV, solar and transformers. - What it achieves (name): Its code works with 33 kV and 0 MVA. - What it does: It draws cables, 33kV, solar and transformers. Uses libraries pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, solar, transformers. - Inputs & outputs: In: form fields (user input). Out: SVG drawing. Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: GlobalGrid2050 V5 DC AC LV 01 HTML Workflow (globalgrid2050); GlobalGrid2050 V5 DC AC LV Topology Trigger Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [SVG drawing]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Install DC AC LV 02 CSS - File: globalgrid2050/solar-bess-topology-v5/install_dc_ac_lv_02_css.py (Python, 109 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/install_dc_ac_lv_02_css.py#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0087.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A Python module in GlobalGrid2050. - What it does: Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: GlobalGrid2050 V5 DC AC LV 02 CSS Workflow (globalgrid2050); GlobalGrid2050 V5 DC AC LV Topology Trigger Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Install DC AC LV 03 JS - File: globalgrid2050/solar-bess-topology-v5/install_dc_ac_lv_03_js.py (Python, 171 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/install_dc_ac_lv_03_js.py#L1-L171 - Page: https://code.globalgrid2050.com/explore-code/s/0087.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A Python module in GlobalGrid2050 covering transformers and cables. - What it achieves (name): Its code works with 33 kV. - What it does: It draws transformers and cables. Uses libraries pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, 33kV. - Inputs & outputs: Out: SVG drawing. Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: GlobalGrid2050 V5 DC AC LV 03 JS Workflow (globalgrid2050); GlobalGrid2050 V5 DC AC LV Topology Trigger Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Install DC AC LV 04 Link - File: globalgrid2050/solar-bess-topology-v5/install_dc_ac_lv_04_link.py (Python, 18 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/install_dc_ac_lv_04_link.py#L1-L18 - Page: https://code.globalgrid2050.com/explore-code/s/0087.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A Python module in GlobalGrid2050. - What it does: It loads data. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: GlobalGrid2050 V5 DC AC LV 04 Link Workflow (globalgrid2050); GlobalGrid2050 V5 DC AC LV Topology Trigger Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Install Geometry Visualiser Migration V5 - File: globalgrid2050/solar-bess-topology-v5/install_geometry_visualiser_migration_v5.py (Python, 107 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/install_geometry_visualiser_migration_v5.py#L1-L107 - Page: https://code.globalgrid2050.com/explore-code/s/0087.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A Python command-line tool in GlobalGrid2050 that reads cables, solar and battery storage (BESS). It writes report (`write_report`). - What it achieves (name): Defines `replace_once`, `migrate_geometry_app`, `patch_module_layout_link` and 1 more. - What it does: It loads cables, solar and battery storage (BESS). Defines replace_once, migrate_geometry_app, patch_module_layout_link, write_report, main. Uses libraries pathlib, datetime. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 V5 Geometry Visualiser Migration Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - Signatures: `replace_once(text, old, new, label, actions)`; `migrate_geometry_app(actions)`; `patch_module_layout_link(actions)`; `write_report(actions)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Module Layout V5 - File: globalgrid2050/solar-bess-topology-v5/module-layout-v5.css (CSS, 287 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/module-layout-v5.css#L1-L287 - Page: https://code.globalgrid2050.com/explore-code/s/0087.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/ - Synopsis: A style sheet in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v5/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/); Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/). Reached from 155 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Module Layout V5 - File: globalgrid2050/solar-bess-topology-v5/module-layout-v5.html (HTML, 90 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/module-layout-v5.html#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0088.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html - Synopsis: A web page in GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height, covering cables. Published at https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Cable Geometry Visualiser V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html); DC AC LV Topology Review V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/dc-ac-lv-topology-review-v5.html); GlobalGrid2050 Clone V4 to V5 (globalgrid2050). Reached from 98 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 8 estate files (link 3, script-src 3, stylesheet 2); used by 3; mentioned by 0 ### DC AC LV Topology Review V5 - File: globalgrid2050/solar-bess-topology-v6/dc-ac-lv-topology-review/dc-ac-lv-topology-review-v5.css (CSS, 594 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/dc-ac-lv-topology-review/dc-ac-lv-topology-review-v5.css#L1-L594 - Page: https://code.globalgrid2050.com/explore-code/s/0088.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/ - Synopsis: A style sheet in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/); Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/). Reached from 143 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page - File: globalgrid2050/solar-bess-topology-v6/dc-ac-lv-topology-review/index.html (HTML, 118 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/dc-ac-lv-topology-review/index.html#L1-L118 - Page: https://code.globalgrid2050.com/explore-code/s/0089.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/ - Synopsis: A web page in GlobalGrid2050 that draws SVG graphics and reads inputs for mod wp, voc and vmp (units: MVA, °C, MW). Published at https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/. - What it achieves (name): Its code works with 33 kV and 0 MVA. - What it does: It draws cables, 33kV, solar and transformers. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, solar, transformers. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/module-layout/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [33kV] - Edges: uses 6 estate files (stylesheet 3, link 2, script-src 1); used by 3; mentioned by 0 ### 05 V6 Module Relevance - File: globalgrid2050/solar-bess-topology-v6/docs/training/05_v6_module_relevance.yml (YAML, 80 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/docs/training/05_v6_module_relevance.yml#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0089.html#f2 - Synopsis: A configuration file in the training folder of GlobalGrid2050 covering battery storage (BESS), solar and cables. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar, cables. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Config - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0089.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (comment): GIS SLD Financial Sandbox V6. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Helpers - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-helpers.js (JavaScript, 75 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-helpers.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0089.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that sets class (`setClass`), picks prop (`pickProp`) and sets fetch status (`setFetchStatus`). Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS SLD Financial Sandbox V6. Helpers extracted by GridBot feature 003. - What it does: Defines 11 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/module-layout/). Reached from 3 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Map - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js (JavaScript, 427 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js#L1-L427 - Page: https://code.globalgrid2050.com/explore-code/s/0089.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that maps atlas grid 66kV line and atlas grid 132kV line. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (name): It toggles atlas v8 grid layer (`toggleAtlasV8GridLayer`) and shows popup (`showPopup`). Defines `toggleAtlasV8OperatingAssetLayer`, `toggleAtlasV8GridLayer`, `initMap` and 7 more. - What it does: It maps atlas grid 66kV line, atlas grid 132kV line, atlas grid 275kV line and atlas grid 400kV line. Defines 10 functions or classes, including toggleAtlasV8OperatingAssetLayer, toggleAtlasV8GridLayer, initMap, onMapLoad, showPopup. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: JSON file style.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; JSON file repd_master.json. Out: interactive map. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - Signatures: `toggleAtlasV8OperatingAssetLayer(assetKey)`; `toggleAtlasV8GridLayer(voltageKey)`; `initMap()`; `onMapLoad()`; `showPopup(coords, html)`; `onSubstationClick(e)`; `onInverterClick(e)`; `onCableRoutePinClick(e)`; `onOperatingAssetClick(e)`; `onPoiClick(e)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; JSON file repd_master.json]; out [interactive map]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 State - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-state.js (JavaScript, 28 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-state.js#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0090.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (comment): GIS SLD Financial Sandbox V6. State extracted by GridBot feature 004. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Substations - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-substations.js (JavaScript, 83 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-substations.js#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0090.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that fetches substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. It normalises substations (`normaliseSubstations`) and loads substations (`loadSubstations`). - What it achieves (comment): GIS SLD Financial Sandbox V6. Substation data loading extracted by GridBot feature 005. - What it does: It fetches substations. Defines normaliseSubstations, loadSubstations. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - Signatures: `normaliseSubstations(raw)`; `loadSubstations()` - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 UI Core - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui-core.js (JavaScript, 127 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui-core.js#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0090.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in GlobalGrid2050 that renders tech summary and benchmark and updates selected substation display, covering substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (name): It renders tech summary (`renderTechSummary`), renders benchmark (`renderBenchmark`) and updates selected substation display (`updateSelectedSubstationDisplay`). Defines `renderTechSummary`, `renderBenchmark`, `updateSelectedSubstationDisplay` and 4 more. Its code works with 33 kV, 132 kV and 275 kV. - What it does: It draws substations, battery storage (BESS), 66kV and 132kV. Defines 7 functions or classes, including renderTechSummary, renderBenchmark, updateSelectedSubstationDisplay, recalcAll, atlasV8LegendItem. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations, battery storage (BESS), 66kV, 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 4 files: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 149 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - Signatures: `renderTechSummary(stats)`; `renderBenchmark()`; `updateSelectedSubstationDisplay()`; `recalcAll()`; `atlasV8LegendItem(voltageKey, label, colour, widthPx)`; `atlasV8AssetLegendItem(assetKey, label, colour)`; `updateLegend()` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 UI - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js (JavaScript, 808 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js#L1-L808 - Page: https://code.globalgrid2050.com/explore-code/s/0090.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 covering cables and 66kV, using haversine, and uses data from OpenStreetMap Nominatim. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (name): It applies logistics preset (`applyLogisticsPreset`), updates export cable length display (`updateExportCableLengthDisplay`) and updates array rotation display (`updateArrayRotationDisplay`). Defines `switchTab`, `applyLogisticsPreset`, `autoFillBifacial` and 52 more. Its code works with 132 kV, 275 kV and 400 kV. It responds to click, keydown and change events. - What it does: It draws cables, 66kV, 132kV and 275kV. Defines 55 functions or classes, including switchTab, applyLogisticsPreset, autoFillBifacial, updateExportCableLengthDisplay, updateArrayRotationDisplay. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables, 66kV, 132kV, 275kV, 400kV. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; form fields (user input). Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - Signatures: `switchTab(tab)`; `applyLogisticsPreset(val, suffix)`; `autoFillBifacial(gcrVal, targetId)`; `updateExportCableLengthDisplay()`; `updateArrayRotationDisplay()`; `rotateArrayBy(deltaDeg)`; `resetArrayRotation()`; `getCurrentArrayCenter()`; `getArrayNudgeStepKm()`; `clearRouteAfterArrayShift()`; `nudgeArray(bearingDeg)`; `updateCableRouteStatus()`; `injectExportCableLengthControl()`; `redrawIfTopologyExists()`; `setArrayMoveStatus(text, active = false)`; `toggleArrayMoveMode()`; `resetArrayLocation()`; `placeArrayAtMapPoint(e)`; `toggleCablePinMode()`; `commitCablePinRoute()`; `undoCablePin()`; `clearCableRoute()`; `addCableRoutePin(e)`; `startCableRouteMode()`; `finishCableRouteMode()` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; form fields (user input)]; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css (CSS, 1512 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css#L1-L1512 - Page: https://code.globalgrid2050.com/explore-code/s/0092.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A style sheet in the GIS SLD financial sandbox folder of GlobalGrid2050 covering battery storage (BESS), solar and wind. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (readme): The README says: It remains close to the V5 GIS SLD app and still uses legacy `gis-sld-v5` file names inside the V6 folder. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), solar, wind, 400kV, 275kV, 132kV. README: "It remains close to the V5 GIS SLD app and still uses legacy `gis-sld-v5` file names inside the V6 folder." - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V6 — GIS Single-Line Diagram (SLD) Financial Sandbox Page - File: globalgrid2050/solar-bess-topology-v6/gis-sld-financial-sandbox/index.html (HTML, 466 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/gis-sld-financial-sandbox/index.html#L1-L466 - Page: https://code.globalgrid2050.com/explore-code/s/0094.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/ - Synopsis: A web page in GlobalGrid2050 that reads inputs for loc, mod wp and mod (units: MW, kV, MVA), covering battery storage (BESS), cables, solar and 33kV. Published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - What it achieves (name): Its code works with 33 kV, 0.00 MVA and 132 kV. - What it does: It draws battery storage (BESS), cables, solar and 33kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), cables, solar, 33kV, 400kV, 275kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/module-layout/). Reached from 1 other entry point, including Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 12 estate files (script-src 11, stylesheet 1); used by 3; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page - File: globalgrid2050/solar-bess-topology-v6/index.html (HTML, 137 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/index.html#L1-L137 - Page: https://code.globalgrid2050.com/explore-code/s/0095.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/ - Synopsis: A web page covering cables, solar, battery storage (BESS) and 33kV. Published at https://globalgrid2050.com/solar-bess-topology-v6/. - What it achieves (name): Its code works with 33 kV. - What it does: It draws cables, solar, battery storage (BESS) and 33kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, battery storage (BESS), 33kV. - Inputs & outputs: Out: web page. Voltage levels named: 33kV. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [33kV] - Edges: uses 6 estate files (link 6); used by 0; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Config - File: globalgrid2050/solar-bess-topology-v6/module-layout/gis-sld-v5-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/module-layout/gis-sld-v5-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0095.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/module-layout/ - Synopsis: A JavaScript file in the module layout folder of GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/module-layout/. - What it achieves (comment): GIS SLD Financial Sandbox V6. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/module-layout/). Reached from 3 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/module-layout/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page - File: globalgrid2050/solar-bess-topology-v6/module-layout/index.html (HTML, 91 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/module-layout/index.html#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0095.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/module-layout/ - Synopsis: A web page in GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height, covering cables. Published at https://globalgrid2050.com/solar-bess-topology-v6/module-layout/. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/); Solar Battery Energy Storage System (BESS) Topology V6 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/dc-ac-lv-topology-review/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/module-layout/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 8 estate files (link 3, script-src 3, stylesheet 2); used by 3; mentioned by 0 ### Module Layout V5 - File: globalgrid2050/solar-bess-topology-v6/module-layout/module-layout-v5.css (CSS, 781 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/module-layout/module-layout-v5.css#L1-L781 - Page: https://code.globalgrid2050.com/explore-code/s/0095.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/module-layout/ - Synopsis: A style sheet in GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v6/module-layout/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V6 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). Reached from 142 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v6/module-layout/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/000_validation_test/manifest.yml (YAML, 11 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/000_validation_test/manifest.yml#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0096.html#f2 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that tests solar and battery storage (BESS). - What it achieves (comment): Validation only manifest for the V6 Complex Upgrade Install workflow. - What it does: It tests solar and battery storage (BESS). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/001_gis_sld_validation_test/manifest.yml (YAML, 11 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/001_gis_sld_validation_test/manifest.yml#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0096.html#f3 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that tests solar and battery storage (BESS). - What it achieves (comment): Validation only manifest for the V6 GIS single-line diagram (SLD) Financial Sandbox. - What it does: It tests solar and battery storage (BESS). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/002_gis_sld_atlas_v8_132_400kv_layers/manifest.yml (YAML, 66 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/002_gis_sld_atlas_v8_132_400kv_layers/manifest.yml#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0096.html#f4 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that maps atlas grid 132kV line, atlas grid 400kV line, l sat and solar. - What it achieves (comment): Add Atlas V8 132kV and 400kV grid line visibility to the V6 GIS single-line diagram (SLD) Financial Sandbox map. - What it does: It maps atlas grid 132kV line, atlas grid 400kV line, l sat and solar. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/003_gis_sld_atlas_v8_voltage_layer_toggles/manifest.yml (YAML, 143 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/003_gis_sld_atlas_v8_voltage_layer_toggles/manifest.yml#L1-L143 - Page: https://code.globalgrid2050.com/explore-code/s/0096.html#f5 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that maps atlas grid 66kV line, atlas grid 132kV line, atlas grid 275kV line and atlas grid 400kV line. - What it achieves (comment): Add Atlas V8 66kV and 275kV grid line layers and allow Atlas voltage layers to be toggled from the V6 GIS single-line diagram (SLD) map legend. - What it does: It maps atlas grid 66kV line, atlas grid 132kV line, atlas grid 275kV line and atlas grid 400kV line. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml (YAML, 153 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f1 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV. - What it achieves (comment): Replace legend based Atlas V8 voltage toggles with real map buttons using the same interaction pattern as SUBS and SATELLITE VIEW. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 400kV, 66kV, 275kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml (YAML, 82 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f2 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 66kV and 132kV. - What it achieves (comment): Add real Atlas voltage toggle buttons using the same event listener pattern as existing map buttons. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 66kV, 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml (YAML, 109 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f3 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV. - What it achieves (comment): Add real Atlas voltage toggle buttons without patching the map layer function. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 400kV, 66kV, 275kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml (YAML, 83 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f4 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar and battery storage (BESS). - What it achieves (comment): Add map expand mode and key collapse controls. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v6/upgrades/006_gis_sld_map_tool_overlay/manifest.yml (YAML, 130 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/006_gis_sld_map_tool_overlay/manifest.yml#L1-L130 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f5 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar and battery storage (BESS). - What it achieves (comment): Add collapsible map overlay tools for draw, cable route pins, array movement and rotation using existing functions. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Active Upgrade - File: globalgrid2050/solar-bess-topology-v6/upgrades/ACTIVE_UPGRADE.yml (YAML, 3 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/upgrades/ACTIVE_UPGRADE.yml#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f6 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page - File: globalgrid2050/solar-bess-topology-v7/dc-ac-lv-topology-review/index.html (HTML, 118 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/dc-ac-lv-topology-review/index.html#L1-L118 - Page: https://code.globalgrid2050.com/explore-code/s/0097.html#f7 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/ - Synopsis: A web page in GlobalGrid2050 that draws SVG graphics and reads inputs for mod wp, voc and vmp (units: MVA, °C, MW). Published at https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/. - What it achieves (name): Its code works with 33 kV and 0 MVA. - What it does: It draws cables, 33kV, solar and transformers. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, solar, transformers. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. Voltage levels named: 33kV. - Downstream impact: Used directly by 4 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). Reached from 136 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [33kV] - Edges: uses 6 estate files (stylesheet 3, link 2, script-src 1); used by 4; mentioned by 0 ### Demonstration Videos - File: globalgrid2050/solar-bess-topology-v7/docs/demonstration-videos.html (HTML, 119 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/docs/demonstration-videos.html#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0098.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html - Synopsis: A web page in GlobalGrid2050 covering solar and battery storage (BESS). Published at https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html. - What it does: It draws solar and battery storage (BESS). Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 2 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). Reached from 135 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 2; mentioned by 0 ### 05 V6 Module Relevance - File: globalgrid2050/solar-bess-topology-v7/docs/training/05_v6_module_relevance.yml (YAML, 80 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/docs/training/05_v6_module_relevance.yml#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0098.html#f2 - Synopsis: A configuration file in the training folder of GlobalGrid2050 covering battery storage (BESS), solar and cables. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar, cables. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Config - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0098.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (comment): GIS SLD Financial Sandbox V7. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Drawing - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-drawing.js (JavaScript, 236 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-drawing.js#L1-L236 - Page: https://code.globalgrid2050.com/explore-code/s/0098.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that works with battery storage (BESS) and substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (name): It gets array axis deg (`getArrayAxisDeg`), gets rect polygon (`getRectPolygon`) and routes length km (`routeLengthKm`). Defines `normBearing`, `getArrayAxisDeg`, `getRectPolygon` and 9 more. Its code works with 33 kV. - What it does: It calculates battery storage (BESS) and substations. Defines 12 functions or classes, including normBearing, getArrayAxisDeg, getRectPolygon, atlasHaversineKm, routeLengthKm. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), substations, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - Signatures: `normBearing(deg)`; `getArrayAxisDeg()`; `getRectPolygon(centerCoord, width_km, length_km, propType, rotationDeg = 0)`; `atlasHaversineKm(a, b)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `routeLengthKm(coords)`; `getBlockAspect()`; `getExportCableExtraKm()`; `getCommittedCablePins()`; `shouldShowExportCable()`; `buildExportCableLine(privateSubCoord, publicSubCoord, safeExtraOffsetKm)`; `addCableRoutePinMarkers(features)`; `computeAndDraw()`; `bess_area_km2(bess_mwh * CONSTANTS.BESS_M2_PER_MWH)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### GIS Single-Line Diagram (SLD) V5 Helpers - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-helpers.js (JavaScript, 75 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-helpers.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0098.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that sets class (`setClass`), picks prop (`pickProp`) and sets fetch status (`setFetchStatus`). Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS SLD Financial Sandbox V7. Helpers extracted by GridBot feature 003. - What it does: Defines 11 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 5 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); and 1 more. Reached from 143 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 1 ### GIS Single-Line Diagram (SLD) V5 Map - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-map.js (JavaScript, 476 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-map.js#L1-L476 - Page: https://code.globalgrid2050.com/explore-code/s/0099.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that maps atlas grid 66kV line and atlas grid 132kV line. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (name): It toggles atlas v8 grid layer (`toggleAtlasV8GridLayer`) and shows popup (`showPopup`). Defines `atlasV8CapacityExpression`, `atlasV8AssetBaseFilter`, `atlasV8StatusExpression` and 12 more. - What it does: It maps atlas grid 66kV line, atlas grid 132kV line, atlas grid 275kV line and atlas grid 400kV line. Defines 15 functions or classes, including atlasV8CapacityExpression, atlasV8AssetBaseFilter, atlasV8StatusExpression, atlasV8AssetFilter, applyAtlasV8AssetDropdownFilter. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: JSON file style.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; JSON file repd_master.json. Out: interactive map. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - Signatures: `atlasV8CapacityExpression()`; `atlasV8AssetBaseFilter(assetKey)`; `atlasV8StatusExpression()`; `atlasV8AssetFilter(assetKey)`; `applyAtlasV8AssetDropdownFilter(selected = atlasV8AssetFilterState.selected, status = atlasV8AssetFilterState.status, minMw = atlasV8AssetFilterState...)`; `toggleAtlasV8OperatingAssetLayer(assetKey)`; `toggleAtlasV8GridLayer(voltageKey)`; `initMap()`; `onMapLoad()`; `showPopup(coords, html)`; `onSubstationClick(e)`; `onInverterClick(e)`; `onCableRoutePinClick(e)`; `onOperatingAssetClick(e)`; `onPoiClick(e)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; JSON file repd_master.json]; out [interactive map]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### GIS Single-Line Diagram (SLD) V5 State - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-state.js (JavaScript, 29 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-state.js#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0099.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (comment): GIS SLD Financial Sandbox V7. State extracted by GridBot feature 004. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Substations - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-substations.js (JavaScript, 83 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-substations.js#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0099.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that fetches substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. It normalises substations (`normaliseSubstations`) and loads substations (`loadSubstations`). - What it achieves (comment): GIS SLD Financial Sandbox V7. Substation data loading extracted by GridBot feature 005. - What it does: It fetches substations. Defines normaliseSubstations, loadSubstations. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - Signatures: `normaliseSubstations(raw)`; `loadSubstations()` - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### GIS Single-Line Diagram (SLD) V5 UI - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-ui.js (JavaScript, 1484 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-ui.js#L1-L1484 - Page: https://code.globalgrid2050.com/explore-code/s/0100.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in GlobalGrid2050 covering Renewable Energy Planning Database (REPD) master and uses data from OpenStreetMap Nominatim. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (name): It applies logistics preset (`applyLogisticsPreset`), updates export cable length display (`updateExportCableLengthDisplay`) and updates array rotation display (`updateArrayRotationDisplay`). Defines `switchTab`, `applyLogisticsPreset`, `autoFillBifacial` and 95 more. Its code works with 132 kV, 275 kV and 400 kV. It reads `/dist/repd_master.json`. It responds to click, focus and input events. - What it does: It draws REPD master, grid 66kV, grid 132kV and grid 275kV. Defines 98 functions or classes, including switchTab, applyLogisticsPreset, autoFillBifacial, updateExportCableLengthDisplay, updateArrayRotationDisplay. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; JSON file repd_master.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; form fields (user input). Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - Signatures: `switchTab(tab)`; `applyLogisticsPreset(val, suffix)`; `autoFillBifacial(gcrVal, targetId)`; `updateExportCableLengthDisplay()`; `updateArrayRotationDisplay()`; `rotateArrayBy(deltaDeg)`; `resetArrayRotation()`; `getCurrentArrayCenter()`; `getArrayNudgeStepKm()`; `clearRouteAfterArrayShift()`; `nudgeArray(bearingDeg)`; `updateCableRouteStatus()`; `injectExportCableLengthControl()`; `redrawIfTopologyExists()`; `setArrayMoveStatus(text, active = false)`; `toggleArrayMoveMode()`; `resetArrayLocation()`; `placeArrayAtMapPoint(e)`; `toggleCablePinMode()`; `commitCablePinRoute()`; `undoCablePin()`; `clearCableRoute()`; `addCableRoutePin(e)`; `startCableRouteMode()`; `finishCableRouteMode()` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; JSON file repd_master.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; form fields (user input)]; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### GIS Single-Line Diagram (SLD) V5 - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5.css (CSS, 1937 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5.css#L1-L1937 - Page: https://code.globalgrid2050.com/explore-code/s/0102.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A style sheet in the GIS SLD financial sandbox folder of GlobalGrid2050 covering battery storage (BESS), solar, substations and wind. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (readme): The README says: It remains close to the V5 GIS SLD app and still uses legacy `gis-sld-v5` file names inside the V7 folder. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), solar, substations, wind, 400kV, 275kV. README: "It remains close to the V5 GIS SLD app and still uses legacy `gis-sld-v5` file names inside the V7 folder." - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 145 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page - File: globalgrid2050/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html (HTML, 507 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html#L1-L507 - Page: https://code.globalgrid2050.com/explore-code/s/0105.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A web page in GlobalGrid2050 that reads inputs for loc, mod wp and mod (units: MW, kV, MVA), covering battery storage (BESS), cables, substations and 33kV. Published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (name): Its code works with 33 kV, 0.00 MVA and 132 kV. - What it does: It draws battery storage (BESS), cables, substations and 33kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), cables, substations, 33kV, 400kV, 275kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 9 files: Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/); and 5 more. Reached from 137 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 12 estate files (script-src 11, stylesheet 1); used by 9; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page - File: globalgrid2050/solar-bess-topology-v7/index.html (HTML, 154 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/index.html#L1-L154 - Page: https://code.globalgrid2050.com/explore-code/s/0105.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/ - Synopsis: A web page covering cables, solar, battery storage (BESS) and 33kV. Published at https://globalgrid2050.com/solar-bess-topology-v7/. - What it achieves (name): Its code works with 33 kV. - What it does: It draws cables, solar, battery storage (BESS) and 33kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, battery storage (BESS), 33kV. - Inputs & outputs: Out: web page. Voltage levels named: 33kV. - Downstream impact: Used directly by 4 files: Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/); Registry of All Content in Repos and Dependencies — Index Page (registry_of_all_content_in_repos_and_dependencies, https://ventusltd.github.io/registry_of_all_content_in_repos_and_dependencies/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). Reached from 133 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [33kV] - Edges: uses 7 estate files (link 7); used by 4; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 Config - File: globalgrid2050/solar-bess-topology-v7/module-layout/gis-sld-v5-config.js (JavaScript, 24 lines) · role electrical · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/module-layout/gis-sld-v5-config.js#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0105.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/module-layout/ - Synopsis: A JavaScript file in the module layout folder of GlobalGrid2050 covering grid substations. Served with the page at https://globalgrid2050.com/solar-bess-topology-v7/module-layout/. - What it achieves (comment): GIS SLD Financial Sandbox V7. Config extracted by GridBot feature 002. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). Reached from 139 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/module-layout/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page - File: globalgrid2050/solar-bess-topology-v7/module-layout/index.html (HTML, 91 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/module-layout/index.html#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v7/module-layout/ - Synopsis: A web page in GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height, covering cables. Published at https://globalgrid2050.com/solar-bess-topology-v7/module-layout/. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/). Reached from 138 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/module-layout/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 8 estate files (link 3, script-src 3, stylesheet 2); used by 2; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/000_validation_test/manifest.yml (YAML, 11 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/000_validation_test/manifest.yml#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f2 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that tests solar and battery storage (BESS). - What it achieves (comment): Validation only manifest for the V7 Complex Upgrade Install workflow. - What it does: It tests solar and battery storage (BESS). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/001_gis_sld_validation_test/manifest.yml (YAML, 11 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/001_gis_sld_validation_test/manifest.yml#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f3 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that tests solar and battery storage (BESS). - What it achieves (comment): Validation only manifest for the V7 GIS single-line diagram (SLD) Financial Sandbox. - What it does: It tests solar and battery storage (BESS). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/002_gis_sld_atlas_v8_132_400kv_layers/manifest.yml (YAML, 66 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/002_gis_sld_atlas_v8_132_400kv_layers/manifest.yml#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f4 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that maps atlas grid 132kV line, atlas grid 400kV line, l sat and solar. - What it achieves (comment): Add Atlas V8 132kV and 400kV grid line visibility to the V7 GIS single-line diagram (SLD) Financial Sandbox map. - What it does: It maps atlas grid 132kV line, atlas grid 400kV line, l sat and solar. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/003_gis_sld_atlas_v8_voltage_layer_toggles/manifest.yml (YAML, 143 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/003_gis_sld_atlas_v8_voltage_layer_toggles/manifest.yml#L1-L143 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f5 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 that maps atlas grid 66kV line, atlas grid 132kV line, atlas grid 275kV line and atlas grid 400kV line. - What it achieves (comment): Add Atlas V8 66kV and 275kV grid line layers and allow Atlas voltage layers to be toggled from the V7 GIS single-line diagram (SLD) map legend. - What it does: It maps atlas grid 66kV line, atlas grid 132kV line, atlas grid 275kV line and atlas grid 400kV line. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml (YAML, 153 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f6 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV. - What it achieves (comment): Replace legend based Atlas V8 voltage toggles with real map buttons using the same interaction pattern as SUBS and SATELLITE VIEW. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 400kV, 66kV, 275kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml (YAML, 82 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f7 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 66kV and 132kV. - What it achieves (comment): Add real Atlas voltage toggle buttons using the same event listener pattern as existing map buttons. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 66kV, 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml (YAML, 109 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0106.html#f8 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV. - What it achieves (comment): Add real Atlas voltage toggle buttons without patching the map layer function. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 400kV, 66kV, 275kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml (YAML, 83 lines) · role docs-config · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0107.html#f1 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar and battery storage (BESS). - What it achieves (comment): Add map expand mode and key collapse controls. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/solar-bess-topology-v7/upgrades/006_gis_sld_map_tool_overlay/manifest.yml (YAML, 130 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v7/upgrades/006_gis_sld_map_tool_overlay/manifest.yml#L1-L130 - Page: https://code.globalgrid2050.com/explore-code/s/0107.html#f2 - Synopsis: A configuration file in the upgrades folder of GlobalGrid2050 covering solar and battery storage (BESS). - What it achieves (comment): Add collapsible map overlay tools for draw, cable route pins, array movement and rotation using existing functions. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Battery Energy Storage System (BESS) Electrical Topology Review - File: globalgrid2050/solar-bess-topology-v8/bess-electrical-topology-review/bess-electrical-topology-review.css (CSS, 36 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-electrical-topology-review/bess-electrical-topology-review.css#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0107.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/ - Synopsis: A style sheet in GlobalGrid2050 covering battery storage (BESS). Served with the page at https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/. - What it achieves (readme): The README says: The BESS Electrical Topology Review handles cable, impedance, leakage, reverse current, transformer impedance, fault level and formal study flags. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). README: "The BESS Electrical Topology Review handles cable, impedance, leakage, reverse current, transformer impedance, fault level and formal study flags." - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Battery Energy Storage System (BESS) Electrical Topology Review - File: globalgrid2050/solar-bess-topology-v8/bess-electrical-topology-review/bess-electrical-topology-review.js (JavaScript, 143 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-electrical-topology-review/bess-electrical-topology-review.js#L1-L143 - Page: https://code.globalgrid2050.com/explore-code/s/0107.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/ - Synopsis: A JavaScript file in GlobalGrid2050 that updates BESS topology (`updateBessTopology`) and draws scada (`drawScada`), covering battery storage (BESS), cables and transformers. Served with the page at https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/. - What it achieves (readme): It sets text (`setText`), updates BESS topology (`updateBessTopology`) and draws scada (`drawScada`). The README says: The BESS Electrical Topology Review handles cable, impedance, leakage, reverse current, transformer impedance, fault level and formal study flags. It responds to input, change and DOMContentLoaded events. - What it does: It draws battery storage (BESS), cables and transformers. Defines 6 functions or classes, including num, val, setText, fmt, updateBessTopology. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), cables, transformers. README: "The BESS Electrical Topology Review handles cable, impedance, leakage, reverse current, transformer impedance, fault level and formal study flags." - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/. - Signatures: `num(id, fallback = 0)`; `val(id)`; `setText(id, text)`; `fmt(value, digits = 2)`; `updateBessTopology()`; `drawScada(data)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… - File: globalgrid2050/solar-bess-topology-v8/bess-electrical-topology-review/index.html (HTML, 87 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-electrical-topology-review/index.html#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0107.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/ - Synopsis: A web page in GlobalGrid2050 that draws SVG graphics and reads inputs for BESS power MW, BESS energy MWh and dc voltage (units: MW, Ω, mm²). Published at https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/. - What it achieves (name): Its code works with 0 MW. - What it does: It draws battery storage (BESS), transformers, cables and solar. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), transformers, cables, solar. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/). Reached from 2 other entry points, including Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 4 estate files (link 2, stylesheet 1, script-src 1); used by 2; mentioned by 0 ### Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial Sandbox - File: globalgrid2050/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.css (CSS, 49 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.css#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0107.html#f6 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/ - Synopsis: A style sheet in GlobalGrid2050 covering battery storage (BESS). Served with the page at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS). README: "The BESS GIS SLD Financial Sandbox handles:" - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial Sandbox - File: globalgrid2050/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.js (JavaScript, 465 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.js#L1-L465 - Page: https://code.globalgrid2050.com/explore-code/s/0108.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in GlobalGrid2050 that maps BESS layout, BESS geo layout, BESS path line and BESS grid point. Served with the page at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - What it achieves (name): It sets text (`setText`), applies container preset (`applyContainerPreset`) and syncs energy (`syncEnergy`). Defines `setText`, `fmt`, `gbp` and 23 more. It responds to input, change and click events. - What it does: It maps BESS layout, BESS geo layout, BESS path line and BESS grid point. Defines 28 functions or classes, including n, v, setText, fmt, gbp. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "The BESS GIS SLD Financial Sandbox handles:" - Inputs & outputs: In: JSON file style.json. Out: GeoJSON file v8-bess-layout.geojson; downloaded file v8-bess-layout.geojson; interactive map; SVG drawing. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/). Reached from 4 other entry points, including GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - Signatures: `n(id, fallback = 0)`; `v(id, fallback = '')`; `setText(id, text)`; `fmt(value, digits = 2)`; `gbp(value)`; `initMap()`; `switchStyle(style)`; `applyContainerPreset()`; `syncEnergy()`; `calc()`; `updateSummary(c)`; `svgEl(tag, attrs = {})`; `svgText(svg, x, y, text, cls = 'svg-small', anchor = 'start')`; `drawLayout(c)`; `updateAll()`; `bindEvents()`; `metresToLngLat(origin, eastM, northM)`; `rotatePoint(x, y, deg)`; `rectFeature(origin, cx, cy, w, h, rotationDeg, props)`; `pointFeature(origin, eastM, northM, rotationDeg, props)`; `lineFeature(origin, points, rotationDeg, props)`; `buildBessGeoJsonAt(origin)`; `ensureBessGeoLayers()`; `refreshBessGeoLayout()`; `drawBessGeoLayoutAtMapCenter()` (and 3 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json]; out [GeoJSON file v8-bess-layout.geojson; downloaded file v8-bess-layout.geojson; interactive map; SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 UI - File: globalgrid2050/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/gis-sld-v5-ui.js (JavaScript, 1667 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/gis-sld-v5-ui.js#L1-L1667 - Page: https://code.globalgrid2050.com/explore-code/s/0109.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in GlobalGrid2050 that maps Renewable Energy Planning Database (REPD) master and grid 66kV, using haversine, and uses data from OpenStreetMap Nominatim. Served with the page at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - What it achieves (name): It applies logistics preset (`applyLogisticsPreset`), updates export cable length display (`updateExportCableLengthDisplay`) and updates array rotation display (`updateArrayRotationDisplay`). Defines `switchTab`, `applyLogisticsPreset`, `autoFillBifacial` and 113 more. Its code works with 132 kV, 275 kV and 400 kV. It reads `/dist/repd_master.json`. It responds to click, focus and input events. - What it does: It maps REPD master, grid 66kV, grid 132kV and grid 275kV. Defines 116 functions or classes, including switchTab, applyLogisticsPreset, autoFillBifacial, updateExportCableLengthDisplay, updateArrayRotationDisplay. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; JSON file repd_master.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; form fields (user input). Out: GeoJSON file v8-bess-layout.geojson; downloaded file v8-bess-layout.geojson. Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Signatures: `switchTab(tab)`; `applyLogisticsPreset(val, suffix)`; `autoFillBifacial(gcrVal, targetId)`; `updateExportCableLengthDisplay()`; `updateArrayRotationDisplay()`; `rotateArrayBy(deltaDeg)`; `resetArrayRotation()`; `getCurrentArrayCenter()`; `getArrayNudgeStepKm()`; `clearRouteAfterArrayShift()`; `nudgeArray(bearingDeg)`; `updateCableRouteStatus()`; `injectExportCableLengthControl()`; `redrawIfTopologyExists()`; `setArrayMoveStatus(text, active = false)`; `toggleArrayMoveMode()`; `resetArrayLocation()`; `placeArrayAtMapPoint(e)`; `toggleCablePinMode()`; `commitCablePinRoute()`; `undoCablePin()`; `clearCableRoute()`; `addCableRoutePin(e)`; `startCableRouteMode()`; `finishCableRouteMode()` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; JSON file repd_master.json; GeoJSON file grid_66kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_400kv.geojson; form fields (user input)]; out [GeoJSON file v8-bess-layout.geojson; downloaded file v8-bess-layout.geojson]; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GIS Single-Line Diagram (SLD) V5 - File: globalgrid2050/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/gis-sld-v5.css (CSS, 1967 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/gis-sld-v5.css#L1-L1967 - Page: https://code.globalgrid2050.com/explore-code/s/0111.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/ - Synopsis: A style sheet in GlobalGrid2050 covering battery storage (BESS), solar, substations and wind. Served with the page at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), solar, substations, wind, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… - File: globalgrid2050/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/index.html (HTML, 153 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/index.html#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0114.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/ - Synopsis: A web page in GlobalGrid2050 that draws SVG graphics and reads inputs for grid export MW, duration hours and energy MWh (units: MW, MWh). Published at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - What it achieves (comment): BESS GIS single-line diagram (SLD) Financial Sandbox V8. Its code works with 50 MW and 150 MWh. - What it does: It draws battery storage (BESS), transformers and cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), transformers, cables. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 3 files: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). Reached from 1 other entry point, including Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 4 estate files (link 2, stylesheet 1, script-src 1); used by 3; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… - File: globalgrid2050/solar-bess-topology-v8/bess-pcs-standalone/index.html (HTML, 13 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/bess-pcs-standalone/index.html#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0114.html#f3 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/ - Synopsis: A web page in the BESS pcs standalone folder of GlobalGrid2050 covering battery storage (BESS). Published at https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/. - What it achieves (comment): BESS PCS Standalone Redirect. - What it does: It draws battery storage (BESS). Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS). - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 0; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V8 Page - File: globalgrid2050/solar-bess-topology-v8/index.html (HTML, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v8/index.html#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0114.html#f4 - Published at: https://globalgrid2050.com/solar-bess-topology-v8/ - Synopsis: A web page covering battery storage (BESS), solar and cables. Published at https://globalgrid2050.com/solar-bess-topology-v8/. - What it does: It draws battery storage (BESS), solar and cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar, cables. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Electrical… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-electrical-topology-review/); Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) GIS… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-gis-sld-financial-sandbox/). Reached from 2 other entry points, including Solar Battery Energy Storage System (BESS) Topology V8 — Battery Energy Storage System (BESS) Pcs… (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v8/bess-pcs-standalone/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v8/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (link 2); used by 2; mentioned by 0 ### GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology Page - File: globalgrid2050/solar-bess-topology/index.html (HTML, 2028 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology/index.html#L1-L2028 - Page: https://code.globalgrid2050.com/explore-code/s/0114.html#f5 - Published at: https://globalgrid2050.com/solar-bess-topology/ - Synopsis: A web page covering cables, 33kV, 132kV and solar, using BS EN 50618 and BS 7671, and uses data from UK Power Networks open data. Published at https://globalgrid2050.com/solar-bess-topology/. - What it achieves (name): It looks up od (`lookupOD`), clamps integer (`clampInteger`) and formats mm (`formatMm`). Defines `lookupOD`, `byId`, `clampInteger` and 38 more. Its code works with 1 kV, 33 kV and 132 kV. It responds to focus, click and touchend events. - What it does: It draws cables, 33kV, 132kV and solar. Defines 41 functions or classes, including lookupOD, byId, clampInteger, formatMm, effectiveGap. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, 132kV, solar, 110kV, 66kV. - Inputs & outputs: In: form fields (user input). Out: web page; canvas drawing. Voltage levels named: 132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology/. - Signatures: `lookupOD(voltageKey, csaMm2, isThreeCore)`; `byId(id)`; `clampInteger(value, fallback, minValue)`; `formatMm(v)`; `effectiveGap(basis, spacing, od)`; `getBurialDepthForComputation()`; `normaliseBurialDepthFieldOnBlur()`; `normaliseIntegerFields()`; `getInputs()`; `getGroupGeometry(inputs)`; `computeLayout(inputs)`; `formationWidth(maxRowCount * geom.width)`; `formationDepth(rows * geom.depth)`; `buildReview(inputs, layout)`; `renderStatus(review)`; `renderIssues(review)`; `renderStats(layout, review, inputs)`; `getServiceColours(serviceType)`; `drawGroup(ctx, x, y, d, drawType, serviceType, scale)`; `circle(cx, cy, fill, stroke)`; `ang(2 * Math.PI * k / coreCount)`; `drawFormation(inputs, layout, review)`; `drawTrench(inputs, layout)`; `trenchX(W - trenchW)`; `drawBend(inputs, layout)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; canvas drawing]; crs []; voltages [132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Indexforgis Single-Line Diagram (SLD) - File: globalgrid2050/solar-bess-topology/indexforgis-sld.html (HTML, 1454 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology/indexforgis-sld.html#L1-L1454 - Page: https://code.globalgrid2050.com/explore-code/s/0117.html#f2 - Published at: https://globalgrid2050.com/solar-bess-topology/indexforgis-sld.html - Synopsis: A map page in the solar BESS topology folder of GlobalGrid2050 that maps grid substations, sat s and l sat, and uses data from OpenStreetMap Nominatim. Published at https://globalgrid2050.com/solar-bess-topology/indexforgis-sld.html. - What it achieves (comment): It sets text (`setText`), sets class (`setClass`) and picks prop (`pickProp`). GIS-SLD and Financial Sandbox. Its code works with 33 kV. It responds to click, keydown and change events. - What it does: It maps grid substations, sat s, l sat and l subs. Defines 47 functions or classes, including $, num, intVal, checked, setText. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV. - Inputs & outputs: In: data source: OpenStreetMap Nominatim; GeoJSON file grid_substations.geojson; JSON file style.json; form fields (user input). Out: web page; interactive map. Voltage levels named: 33kV. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology/indexforgis-sld.html. - Signatures: `$(id)`; `num(id)`; `intVal(id, fallback = 0)`; `checked(id)`; `setText(id, val)`; `setClass(id, cls)`; `money(v)`; `debounce(fn, ms)`; `isValidLngLat(c)`; `pickProp(obj, keys, fallback = null)`; `setFetchStatus(msg, isError)`; `initMap()`; `onMapLoad()`; `showPopup(coords, html)`; `normaliseSubstations(raw)`; `loadSubstations()`; `onSubstationClick(e)`; `onInverterClick(e)`; `onPoiClick(e)`; `readPhysicalInputs(suffix)`; `zeroStats(dc_ac_ratio, mods_pallet, mods_container)`; `buildStats(opts)`; `dc_mwp(module_count * mod_wp)`; `computeStringStats()`; `computeCentralStats()` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap Nominatim; GeoJSON file grid_substations.geojson; JSON file style.json; form fields (user input)]; out [web page; interactive map]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Camera - File: globalgrid2050/solar-design-studio/202609262041-site-world/world/camera.mjs (JavaScript, 37 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609262041-site-world/world/camera.mjs#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0119.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the direction step (`direction`), the perspective step (`perspective`) and the view step (`view`). - What it achieves (comment): Pure: no DOM, no WebGL. Local east (x), north (y), up (z), metres. - What it does: It calculates its inputs. Defines direction, perspective, view, dot, multiply. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 8 files: Print SVG (globalgrid2050); Xr Pose (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); and 4 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export direction(yaw, pitch)`; `export perspective(fovy, aspect, near, far)`; `export view(pos, yaw, pitch)`; `export multiply(a, b)`; `dot(a, b)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 8; mentioned by 1 ### Device Budget - File: globalgrid2050/solar-design-studio/202609262041-site-world/world/device-budget.mjs (JavaScript, 27 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609262041-site-world/world/device-budget.mjs#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0119.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with initial budget (`initialBudget`). - What it achieves (comment): It is built from the initial budget helper (`initialBudget`), the adjust step (`adjust`) and the round step (`round`). Measure, never guess the device. Starts at the screen's pixel ratio (capped at 2), lowers the drawing resolution when frames arrive late, and raises it again when they keep up. - What it does: It calculates its inputs. Defines initialBudget, adjust, round. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 6 files: Xr Pose (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); and 2 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export initialBudget(devicePixelRatio = 1)`; `export adjust(b, intervalMs, targetMs)`; `round(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Frame Gate - File: globalgrid2050/solar-design-studio/202609262041-site-world/world/frame-gate.mjs (JavaScript, 40 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609262041-site-world/world/frame-gate.mjs#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/0119.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws only when something changed, and while moving no faster than the mode's target. - What it achieves (name): It is built from the schedule step (`schedule`). Defines `due`, `createFrameGate`, `tick` and 1 more. Its code works with 120 Hz. - What it does: It calculates its inputs. Defines due, createFrameGate, tick, schedule. - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 5 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050); and 1 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export due(now, last, fps)`; `export createFrameGate(draw, { raf = requestAnimationFrame, clock = () => performance.now() } = {})`; `tick(now)`; `schedule()`; `invalidate()`; `setMoving(on, targetFps)`; `fps()`; `target()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### Terrain - File: globalgrid2050/solar-design-studio/202609262041-site-world/world/layers/terrain.mjs (JavaScript, 176 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609262041-site-world/world/layers/terrain.mjs#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0119.html#f5 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with tiles and LiDAR terrain, using SHA-256. It sets index sha (`setIndexSha`), decodes tile (`decodeTile`) and loads index (`loadIndex`). - What it achieves (comment): Ground heights from LiDAR tiles (.ght, written by the LiDAR pipeline). - What it does: It calculates tiles and LiDAR terrain. Defines 12 functions or classes, including setIndexSha, decodeTile, sampleTile, rectDist, createTerrain. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'terrain'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file tiles.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Plant Ground (globalgrid2050). - Signatures: `export setIndexSha(sha)`; `export decodeTile(buffer)`; `export sampleTile(t, u, v)`; `export createTerrain()`; `rectDist(x, y, x0, y0, x1, y1)`; `now()`; `place(o)`; `loadIndex()`; `wanted(x, y)`; `request(entry)`; `size(tile.samples - 1)`; `pump()`; `evict()`; `init(a)`; `heightAt(x, y)`; `lines(ctx)` - VEDIC: DECODE (GG2050-VEDIC-000009): Solar Design Studio / 3D terrain · Computer science / Binary decoding. terrain_tile_bytes -> terrain_grid - VEDIC: SAMPLE (GG2050-VEDIC-000010): Solar Design Studio / 3D terrain · Mathematics / Bilinear interpolation. terrain_grid, local_x_m, local_y_m -> height_m_or_nan - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Input - File: globalgrid2050/solar-design-studio/202609262200-site-world/world/input.mjs (JavaScript, 66 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609262200-site-world/world/input.mjs#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0119.html#f6 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the set step (`set`), the any step (`any`) and the axis step (`axis`). - What it achieves (comment): Keyboard, mouse and touch turned into one small state. It responds to keydown, keyup and blur events. - What it does: It calculates its inputs. Defines 6 functions or classes, including attachInput, set, up, any, axis. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export attachInput(canvas, { onChange, onLook, onView })`; `set(k, down)`; `up(e)`; `any(list)`; `axis(plus, minus)`; `get()`; `active()`; `clamp(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Arrival - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/arrival.mjs (JavaScript, 38 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/arrival.mjs#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0120.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the ease step (`ease`), the turn step (`turn`) and the arrive step (`arrive`). - What it achieves (comment): Fly the camera from where it is now to hover above a target, looking down on it. - What it does: It calculates its inputs. Defines ease, turn, arrive, finished, pose. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 5 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050); and 1 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export arrive(state, target, { height = 120, seconds = 3, yaw = state.yaw, pitch = DOWN } = {})`; `ease(u)`; `turn(from, to)`; `d(to - from)`; `finished(t)`; `pose(t)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 1 ### Attribution - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/attribution.mjs (JavaScript, 75 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/attribution.mjs#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0120.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with unknown layers (`unknownLayers`) and fill year (`fillYear`). - What it achieves (comment): It is built from the sources for helper (`sourcesFor`), the unknown layers helper (`unknownLayers`) and the fill year helper (`fillYear`). Attribution small print, GridAtlas style: credit exactly the data that is on screen. - What it does: It calculates its inputs. Defines 7 functions or classes, including sourcesFor, unknownLayers, fillYear, licenceOf, footerEntry. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 9 files: Print Sheet (globalgrid2050); Layers UI (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); and 5 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export sourcesFor(loadedLayerIds, attribution)`; `export unknownLayers(loadedLayerIds, attribution)`; `export footerEntry(src, attribution, year)`; `export footerText(loadedLayerIds, attribution, { year } = {})`; `export aboutList(loadedLayerIds, attribution, { year } = {})`; `fillYear(text, src, year)`; `licenceOf(src, attribution)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 9; mentioned by 1 ### Buffers UI - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/buffers-ui.mjs (JavaScript, 58 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/buffers-ui.mjs#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0120.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches cables, using SHA-256. - What it achieves (comment): It loads world files (`loadWorldFiles`) and is built from the world from helper (`worldFrom`) and the drawn items helper (`drawnItems`). Page wiring for the Buffers layer. - What it does: It fetches cables. Defines 8 functions or classes, including worldFrom, drawnItems, local, loadWorldFiles, cfg. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Signatures: `export worldFrom({ grid, rivers, roads, hedges } = {})`; `export drawnItems(design, origin)`; `export loadWorldFiles(manifestUrl, api = null)`; `export mountBuffers({ layer, origin, design, load = () => loadWorldFiles('./world/manifest.json') } = {})`; `local(path)`; `cfg(id)`; `get(c)`; `refresh(on)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/buffers-ui.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 1 ### Clash - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/clash.mjs (JavaScript, 149 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/clash.mjs#L1-L149 - Page: https://code.globalgrid2050.com/explore-code/s/0120.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with segs cross (`segsCross`) and dist to geometry (`distToGeometry`) and calculates planar distances. - What it achieves (comment): It checks clashes (`checkClashes`) and is built from the closest on seg helper (`closestOnSeg`) and the segs cross helper (`segsCross`). Clash check: where a drawn trench, road, pad or table enters a buffer zone, with the rule and its sources. - What it does: It calculates its inputs. Defines 17 functions or classes, including closestOnSeg, segsCross, o, segsOf, distToGeometry. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Buffers (globalgrid2050); Overhead Line (OHL) Zones (globalgrid2050); Cmd Run (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export distToGeometry(g, x, y)`; `export geometryDistance(g, h)`; `export itemGeometry(item)`; `export insideStretches(pts, g, reach, step = STEP_M)`; `export checkClashes(items, zones, { step = STEP_M } = {})`; `closestOnSeg(px, py, a, b)`; `segsCross(a, b, c, d)`; `o(p, q, r)`; `segsOf(g)`; `take(dd, at)`; `crossing(a, b, c, d)`; `t((c[0] - a[0]) * sy - (c[1] - a[1]) * sx)`; `chainage(pts)`; `pointAt(pts, cum, s)`; `f(s)`; `at(q)`; `edge(lo, hi)`; `r2(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 1 ### Design Store - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/design-store.mjs (JavaScript, 377 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/design-store.mjs#L1-L377 - Page: https://code.globalgrid2050.com/explore-code/s/0120.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that hashes doc (`hashDoc`), creates doc (`createDoc`) and checks params (`checkParams`), using SHA-256. - What it achieves (comment): It hashes doc (`hashDoc`), creates doc (`createDoc`) and checks params (`checkParams`). The versioned design document for everything drawn in the world. - What it does: It draws its content. Defines 33 functions or classes, including mm, isObj, canonicalJson, sha256Hex, hashDoc. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: Project UI (globalgrid2050); Project UI (globalgrid2050). - Signatures: `export canonicalJson(value)`; `export sha256Hex(text)`; `export hashDoc(doc)`; `export createDoc({ name = 'untitled', origin_e, origin_n } = {})`; `export validateDoc(doc)`; `export normaliseDoc(doc)`; `export pointsFromLocal(origin, pts)`; `export pointsToLocal(origin, pts)`; `export itemsToLocal(doc, origin)`; `export itemFromLocal(origin, { id, kind, params = {}, points })`; `export applyOp(doc, op)`; `export createHistory(doc, { limit = LIMITS.history } = {})`; `export exportFile(doc)`; `export downloadFile(doc, { document = globalThis.document, URL = globalThis.URL, Blob = globalThis.Blob } = {})`; `export importText(text, { maxBytes = LIMITS.fileBytes, unsigned = false } = {})`; `export makeShareLink(doc, { maxChars = LIMITS.linkChars } = {})`; `export readShareLink(link, { maxChars = LIMITS.linkChars, maxBytes = LIMITS.linkInflatedBytes } = {})`; `export storageKey(site)`; `export autosave(doc, { storage, key = storageKey(doc?.site) } = {})`; `export loadAutosave(site, { storage, key = storageKey(site) } = {})`; `export clearAutosave(site, { storage, key = storageKey(site) } = {})`; `mm(v)`; `isObj(v)`; `checkParams(p, depth, path, errors)`; `checkPoints(pts, path, errors)` (and 12 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Drums - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/drums.mjs (JavaScript, 288 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/drums.mjs#L1-L288 - Page: https://code.globalgrid2050.com/explore-code/s/0121.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV and 66kV. - What it achieves (comment): It draws joint bays (`drawJointBays`) and is built from the val step (`val`) and the mass per metre helper (`massPerMetre`). Split a cable route into drum lengths, place joint bays, and produce a drum schedule. Its code works with 33 kV, 66 kV and 2 kV. - What it does: It calculates cables, 33kV and 66kV. Defines 16 functions or classes, including val, massPerMetre, barrelRule, drumCapacity, chooseDrum. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, 66kV, 2kV. - Inputs & outputs: Voltage levels named: 66kV, 33kV, 2kV. - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export massPerMetre(cable, opts = {})`; `export barrelRule(cable, rules = [])`; `export drumCapacity(drum, odM, freeboard)`; `export chooseDrum(cable, rules, opts = {})`; `export planDrums({ route, cable, rules = [], crossings = [], groundAt = null, options = {} } = {})`; `export drawJointBays(bays, cfg = {}, groundAt = null)`; `val(opts, k)`; `profile(route)`; `cores(route.cores && route.cores.length ? route.cores : [{ polyline: cl }])`; `interp(pr, arr, t)`; `u(t - d3[lo])`; `pointAt(pr, t)`; `bayProblems(pr, route, t, cfg, crossings)`; `lo(c.from !== undefined ? c.from : c.at)`; `hi(c.to !== undefined ? c.to : c.at)`; `coreLen(t0, t1)`; `need(t0, t1)`; `ends(t0 <= 0 ? cfg.terminationAllowance : cfg.jointAllowance)`; `fits(t0, t1)`; `reach(t0)`; `seg(a, b)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/drums.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [66kV, 33kV, 2kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Fence - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/fence.mjs (JavaScript, 271 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/fence.mjs#L1-L271 - Page: https://code.globalgrid2050.com/explore-code/s/0121.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with box over (`boxOver`) and calculates planar distances, using BS 1722-12 and BS 1722-14. - What it achieves (comment): It is built from the wrap step (`wrap`), the point at helper (`pointAt`) and the z at helper (`zAt`). Perimeter and compound fences laid over the ground. - What it does: It calculates its inputs. Defines 14 functions or classes, including createFence, wrap, pointAt, zAt, profile. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Design Earthworks (globalgrid2050); Design Earthworks (globalgrid2050). - Signatures: `export createFence({ polygon, type = 'mesh', height, postSpacing, strainerMaxM, gates = [], groundAt, chunk = 1 })`; `wrap(s)`; `pointAt(s)`; `zAt(s)`; `profile(sa, sb)`; `at3d(pr, d)`; `f(d - pr.c[k - 1])`; `count(k)`; `boxOver(sa, sb)`; `chunksOf(sa, sb, out, extra)`; `solids()`; `lines(o = [0, 0, 0])`; `P3(s, up)`; `L(a, b)`; `inside(x, y)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Input - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/input.mjs (JavaScript, 93 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/input.mjs#L1-L93 - Page: https://code.globalgrid2050.com/explore-code/s/0121.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that clamps px (`clampPx`) and calculates planar distances. - What it achieves (comment): It clamps px (`clampPx`) and is built from the set step (`set`) and the move knob helper (`moveKnob`). Keyboard, mouse and touch turned into one small state. It responds to keydown, keyup and blur events. - What it does: It calculates its inputs. Defines 10 functions or classes, including attachInput, set, moveKnob, release, up. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Substrate (graphics-engines-open-source). Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export attachInput(canvas, pad, { onChange, onLook, onView, onClick = () => {} })`; `set(k, down)`; `moveKnob()`; `release(e)`; `up(e)`; `any(list)`; `axis(plus, minus)`; `get()`; `active()`; `setLift(v)`; `clamp(v)`; `capture(el, e)`; `clampPx(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Buffers - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/layers/buffers.mjs (JavaScript, 115 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/layers/buffers.mjs#L1-L115 - Page: https://code.globalgrid2050.com/explore-code/s/0122.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with dash ring (`dashRing`) and drape pieces (`drapePieces`) and calculates planar distances. - What it achieves (comment): It is built from the finite step (`finite`), the dash ring helper (`dashRing`) and the drape pieces helper (`drapePieces`). Offset zones around features (overhead lines, watercourses, roads, trees, hedges, drawn items) drawn as dashed outlines on the ground, and a small cross wherever a drawn item enters a zone. - What it does: It calculates its inputs. Defines 6 functions or classes, including finite, dashRing, drapePieces, createBuffers, say. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Overhead Line (OHL) UI (globalgrid2050); Overhead Line (OHL) UI (globalgrid2050). - Signatures: `export dashRing(ring, { dash = DASH_M, gap = GAP_M, step = STEP_M } = {})`; `export drapePieces(pieces, heightAt, lift = LIFT_M, o = [0, 0, 0], known = () => true)`; `export createBuffers()`; `finite(h)`; `ph(s + t)`; `say(s)`; `describe()`; `init(a)`; `setEnabled(on)`; `setZones(list)`; `setClashes(list)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Ground - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/layers/ground.mjs (JavaScript, 261 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/layers/ground.mjs#L1-L261 - Page: https://code.globalgrid2050.com/explore-code/s/0122.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with dist to line (`distToLine`) and along route (`alongRoute`) and calculates planar distances, using SHA-256 and point in polygon. - What it achieves (comment): It parses ground file (`parseGroundFile`) and is built from the is pt helper (`isPt`) and the rings of helper (`ringsOf`). A desktop study of what lies under the site, from a per-site file (`ground.json`) written by the LiDAR pipeline from public geological, mining and groundwater sources. - What it does: It lists and searches its content. Defines 30 functions or classes, including isPt, ringsOf, inside, bbox, areaItem. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Cmd Run (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export ringsOf(poly)`; `export inside(rings, e, n)`; `export sourcesOf(j)`; `export parseGroundFile(j)`; `export at(model, e, n)`; `export distToLine(path, e, n)`; `export crossings(areas, path, gap = 'not mapped')`; `export alongRoute(model, path, near = 250)`; `export drapeRings(rings, local, heightAt, o, dash = null)`; `export buildGround(model, origin, heightAt)`; `export groundStatus(model)`; `export createGround()`; `isPt(p)`; `bbox(rings)`; `areaItem(it, label)`; `text(...v)`; `list(k, f)`; `unit(it)`; `point(it)`; `hit(a, e, n)`; `pick(k)`; `cuts(rings, a, b)`; `t((px - a[0]) * sy - (py - a[1]) * sx)`; `add(k, d)`; `d(ts[i + 1] - ts[i])` (and 11 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Links - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/links.mjs (JavaScript, 100 lines) · role ingest · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/links.mjs#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0122.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that uses Helmert using data from the GridAtlas repository. - What it achieves (comment): It parses world URL (`parseWorldUrl`) and is built from the round step (`round`) and the on grid helper (`onGrid`). Links out of the world and back in. - What it does: Defines 8 functions or classes, including round, onGrid, inBritain, strip, gridAtlasUrl. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 6 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Build Mount (globalgrid2050); and 2 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export gridAtlasUrl({ origin, pos, zoom = DEFAULT_ZOOM, base = GRIDATLAS_RECEIVER } = {})`; `export worldUrl(base, { lat, lon, view, yaw, alt, gen } = {})`; `export parseWorldUrl(search)`; `round(v, dp)`; `onGrid(e, n)`; `inBritain(lat, lon)`; `strip(s)`; `deg((yaw * 180 / Math.PI) % 360 + 360)`; `num(k)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 4 estate files (import 2, estate-url 2); used by 6; mentioned by 0 ### Measure Format - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/measure-format.mjs (JavaScript, 86 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/measure-format.mjs#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0122.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It formats number (`formatNumber`), formats length (`formatLength`) and formats area (`formatArea`). - What it achieves (comment): Plain British English lines from the numbers `measure.mjs` returns. - What it does: It calculates cables. Defines 11 functions or classes, including formatNumber, formatLength, formatArea, formatVolume, formatGradient. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 9 files: Cable Checks UI (globalgrid2050); Ground Readout (globalgrid2050); Design Earthworks (globalgrid2050); Design Ground (globalgrid2050); and 5 more. Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export formatNumber(x, dp = 1)`; `export formatLength(m, dp = 1)`; `export formatArea(m2, dp = 1)`; `export formatVolume(m3, dp = 1)`; `export formatGradient(g, dp = 1)`; `export formatTrenchLine(ts, cs = null)`; `export formatCableLine(cs)`; `export formatPlatformLine(cf)`; `export formatProfileLine(p)`; `plural(n, one, many)`; `belowPhrase(cs)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 9; mentioned by 1 ### Offset - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/offset.mjs (JavaScript, 224 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/offset.mjs#L1-L224 - Page: https://code.globalgrid2050.com/explore-code/s/0123.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that cleans path (`cleanPath`), makes grid (`makeGrid`) and calculates planar distances. It cleans path (`cleanPath`) and makes grid (`makeGrid`). - What it achieves (comment): Offsetting of points, polylines and polygons: the zone of all ground within d metres of a feature. - What it does: It calculates its inputs. Defines 18 functions or classes, including cross, isPt, ringArea, pointInRing, cleanPath. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Clash (globalgrid2050); Buffers (globalgrid2050); Overhead Line (OHL) Zones (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export ringArea(ring)`; `export pointInRing(ring, x, y)`; `export cleanPath(pts, closed = false)`; `export pieces(parts, { segments = ARC_SEGMENTS } = {})`; `export unionRings({ pieces: pcs, areas = [] }, { inside = null } = {})`; `export offset(pts, d, { closed = false, area = false, segments = ARC_SEGMENTS } = {})`; `export offsetUnion(parts, { segments = ARC_SEGMENTS } = {})`; `cross(ax, ay, bx, by)`; `isPt(p)`; `p(Array.isArray(pts) ? pts : [])`; `piece(pts, id)`; `disc(c, d, n)`; `rect(a, b, d)`; `locate(pc, x, y)`; `makeGrid(h)`; `range(lo, hi)`; `add(box, v)`; `at(x, y)`; `cellOf(x, y)`; `segHit(e, f)`; `mx(p[0] + q[0])`; `k(p)`; `chain(segs)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### Origin - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/origin.mjs (JavaScript, 31 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/origin.mjs#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0123.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to local (`toLocal`) and bng (`toBng`). - What it achieves (comment): It is built from the to local helper (`toLocal`), the to bng helper (`toBng`) and the rebase if needed helper (`rebaseIfNeeded`). The world is drawn in local `east/north/up` metres around an origin held in float64 British National Grid metres ({ e, n, id }). - What it does: It calculates its inputs. Defines toLocal, toBng, rebaseIfNeeded. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 24 files: Links (globalgrid2050); Plan Wire (globalgrid2050); Tour (globalgrid2050); Design Earthworks (globalgrid2050); and 20 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export toLocal(origin, e, n)`; `export toBng(origin, x, y)`; `export rebaseIfNeeded(origin, pos, { limit = 600, tile = 1000 } = {})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 24; mentioned by 1 ### Phases Slider - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/phases-slider.mjs (JavaScript, 46 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/phases-slider.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0123.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates phase slider (`createPhaseSlider`). - What it achieves (comment): It creates phase slider (`createPhaseSlider`) and is built from the slider model helper (`sliderModel`) and the set step (`set`). A small range slider over a `phases.mjs` timeline. It responds to input events. - What it does: It draws its content. Defines sliderModel, createPhaseSlider, set. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Project UI (globalgrid2050); Project UI (globalgrid2050). - Signatures: `export sliderModel(timeline, step)`; `export createPhaseSlider(container, timeline, onStep = () => {})`; `set(step)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Phases - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/phases.mjs (JavaScript, 213 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/phases.mjs#L1-L213 - Page: https://code.globalgrid2050.com/explore-code/s/0123.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that compiles plan (`compilePlan`), validates plan (`validatePlan`) and creates timeline (`createTimeline`), covering cables. - What it achieves (comment): It compiles plan (`compilePlan`), validates plan (`validatePlan`) and creates timeline (`createTimeline`). Construction sequence over the design document. - What it does: It lists and searches cables. Defines 20 functions or classes, including rank, list, issue, readItems, ref. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 1 file: Project UI (globalgrid2050). - Signatures: `export compilePlan(items, phases = DEFAULT_PHASES)`; `export validatePlan(items, phases = DEFAULT_PHASES)`; `export createTimeline(items, phases = DEFAULT_PHASES)`; `rank(kind, state)`; `list(v)`; `issue(severity, code, message, extra = {})`; `readItems(items, issues)`; `ref(it, key, kind)`; `wholeSteps(p, idx, issues)`; `expand(phases, byId, issues)`; `rules(op, it, byId, state, allRoads)`; `at(id)`; `kindOf(id)`; `reached(id, s)`; `need(id, s, code, why)`; `roadsFor(x)`; `clamp(s)`; `phaseAt(step)`; `stateAt(step)`; `label(step)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Pick - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/pick.mjs (JavaScript, 52 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/pick.mjs#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0123.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that snaps to grid (`snapToGrid`) and calculates planar distances. It picks ground (`pickGround`) and snaps grid (`snapToGrid`). - What it achieves (comment): Picking: which point on the ground is under a pixel. - What it does: It calculates its inputs. Defines rayFromScreen, pickGround, below, snapToGrid, snap. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Design UI (globalgrid2050); Design UI (graphics-engines-open-source). Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export rayFromScreen(px, py, width, height, eye, yaw, pitch, fovy)`; `export pickGround(ray, groundAt, { maxDistance = 2000, step = 0.5 } = {})`; `export snapToGrid(point, spacing)`; `nx(2 * px)`; `below(t)`; `mid(lo + hi)`; `t(lo + hi)`; `snap(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Piles - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/piles.mjs (JavaScript, 225 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/piles.mjs#L1-L225 - Page: https://code.globalgrid2050.com/explore-code/s/0124.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It fits top line (`fitTopLine`) and is built from the pile stations helper (`pileStations`) and the spread at helper (`spreadAt`). Where the piles of a row of solar tables go, how far each stands out of the ground, how deep it goes in, and what grading a row needs where the ground is too uneven for a straight table. - What it does: It calculates solar. Defines 7 functions or classes, including pileStations, spreadAt, fitTopLine, clip, slopeAt. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export pileStations(len, tableLength, pileSpacing, tableGap = 0)`; `export fitTopLine(s, g, reveal, maxSlope = Infinity)`; `export planPiles(opts)`; `export revealPercentiles(piles)`; `off(len - used)`; `over(tableLength - (np - 1) * pileSpacing)`; `spreadAt(s, g, b)`; `clip(b)`; `slopeAt(groundAt, x, y, h)`; `gx(groundAt(x + h, y) - groundAt(x - h, y))`; `gy(groundAt(x, y + h) - groundAt(x, y - h))`; `ux(x1 - x0)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Plan Wire - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/plan-wire.mjs (JavaScript, 45 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/plan-wire.mjs#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0124.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. - What it achieves (comment): It is built from the mount plan helper (`mountPlan`), the local step (`local`) and the drawn step (`drawn`). Wires the plan inset (`plan-inset.mjs`) to the world: it is redrawn after each drawn frame, and only when what it shows has changed. - What it does: It calculates cables. Defines mountPlan, local, drawn, update. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export mountPlan(api, doc = document)`; `local(o, it)`; `drawn()`; `update()`; `setItems(key, items)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Print Layout - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/print-layout.mjs (JavaScript, 191 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/print-layout.mjs#L1-L191 - Page: https://code.globalgrid2050.com/explore-code/s/0124.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that scales bar (`scaleBar`), fits credit (`fitCredit`) and calculates angles. It wraps text (`wrapText`) and fits credit (`fitCredit`). - What it achieves (comment): Print sheet layout: the pure parts. - What it does: It calculates its inputs. Defines 16 functions or classes, including rect, sheetLayout, niceBelow, chooseScale, batchBounds. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 4 files: Print Sheet (globalgrid2050); Print SVG (globalgrid2050); Print (globalgrid2050); Print Sheet (globalgrid2050). - Signatures: `export sheetLayout(paperName = 'A3', { aspect = 10 / 16 } = {})`; `export niceBelow(v)`; `export chooseScale(extentM, drawMM)`; `export batchBounds(batches)`; `export planFrame(layout, { batches = [], extent = null, centre = null, maxHalf = 250, minHalf = 10 } = {})`; `export planToPaper(frame, layout, x, y)`; `export scaleBar(frame, layout, { fraction = 0.3 } = {})`; `export digitsFor(spacing)`; `export gridTicks(frame, layout, origin, { target = 5 } = {})`; `export refAt(origin, x, y, digits = 10)`; `export trueNorthOffset(e, n)`; `export bearingText(yaw)`; `export wrapText(text, widthMM, sizeMM)`; `export fitCredit(text, widthMM, maxHeightMM, { size = 2.4, minSize = 1.6, lead = 1.3 } = {})`; `rect(x, y, w, h)`; `safeRef(e, n, digits)`; `dx(b.lon - a.lon)`; `deg((yaw * 180 / Math.PI) % 360 + 360)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 1 ### Print Sheet - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/print-sheet.mjs (JavaScript, 198 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/print-sheet.mjs#L1-L198 - Page: https://code.globalgrid2050.com/explore-code/s/0124.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that clips def (`clipDef`) and draws SVG graphics, using Helmert. - What it achieves (comment): It builds sheet (`buildSheet`) and is built from the sheet date helper (`sheetDate`) and the rect step (`rect`). The whole print sheet as one SVG string: plan, current view, north arrow, scale bar, National Grid references, title block and the credit for exactly the loaded layers. - What it does: It draws its content. Defines 12 functions or classes, including sheetDate, f, t, rect, clipDef. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Print (globalgrid2050). - Signatures: `export sheetDate(date)`; `export buildSheet(opts)`; `export legendOf(batches)`; `f(v)`; `t(x, y, s, size, extra = '')`; `rect(r, extra = '')`; `clipDef(id, r)`; `stroke(p, w)`; `tag(x, y, s, size = 2.1, extra = '')`; `dateYear(date)`; `viewerMark(x, y, yaw)`; `titleBlock(L, { name, dateText, frame, centreRef, eyeRef, generation, tn, legend })`; `colW(r.w - 5)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 1 ### Print SVG - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/print-svg.mjs (JavaScript, 146 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/print-svg.mjs#L1-L146 - Page: https://code.globalgrid2050.com/explore-code/s/0125.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that clips segment (`clipSegment`), converts to paper (`toPaper`), scales bar SVG (`scaleBarSvg`) and calculates planar distances. - What it achieves (comment): It is built from the esc step (`esc`), the ink for helper (`inkFor`) and the clip segment helper (`clipSegment`). Print sheet drawing: builds the sheet as one SVG string, in millimetres. - What it does: It calculates its inputs. Defines 14 functions or classes, including esc, f, inkFor, clipSegment, planPaths. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: Print Sheet (globalgrid2050); Print Sheet (globalgrid2050). - Signatures: `export esc(s)`; `export inkFor(color)`; `export clipSegment(x0, y0, x1, y1, r)`; `export planPaths(batches, frame, layout)`; `export viewPaths(batches, cam, r, { fade = 450, near = 0.05, far = 5000 } = {})`; `export northArrow(x, y, size, tn)`; `export scaleBarSvg(bar, x, y, scale)`; `export gridSvg(ticks, layout)`; `f(v)`; `clip(x, y, z)`; `toPaper([cx, cy, w])`; `t(near - pa[2])`; `text(x, y, s, size, extra = '')`; `box(r, extra = '')`; `path(p, w)`; `sq(ticks.squares || [...new Set([...ticks.eastings, ...ticks.northings].map(t => t.square))])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 1 ### Print - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/print.mjs (JavaScript, 155 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/print.mjs#L1-L155 - Page: https://code.globalgrid2050.com/explore-code/s/0125.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that downloads SVG (`downloadSvg`) and png (`downloadPng`), opens sheet (`openSheet`) and draws on a canvas. - What it achieves (comment): It downloads SVG (`downloadSvg`), downloads png (`downloadPng`) and opens sheet (`openSheet`). A sheet of the world on A3 or A4 landscape, as SVG, PNG or through the browser's own print. It responds to afterprint, click and keydown events. - What it does: It draws its content. Defines 15 functions or classes, including captureView, sheetFileName, p, save, downloadSvg. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: canvas drawing. - Downstream impact: Used directly by 2 files: Project UI (globalgrid2050); Project UI (globalgrid2050). - Signatures: `export captureView(canvas, redraw)`; `export sheetFileName(paper, ext, date = new Date())`; `export downloadSvg(svg, name)`; `export sheetPng(svg, paper = 'A3', dpi = 150)`; `export downloadPng(svg, paper, name, dpi)`; `export printCss(paper = 'A3')`; `export printSheet(svg, paper = 'A3')`; `export openSheet(make, { paper = 'A3' } = {})`; `p(n)`; `save(blob, name)`; `clean()`; `button(label, fn, extra = {})`; `show(p)`; `close()`; `onKey(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 1 ### Road Lines - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/road-lines.mjs (JavaScript, 136 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/road-lines.mjs#L1-L136 - Page: https://code.globalgrid2050.com/explore-code/s/0125.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with offset line (`offsetLine`) and edge lines (`edgeLines`) and calculates planar distances. - What it achieves (comment): It is built from the frame step (`frame`), the offset line helper (`offsetLine`) and the densify step (`densify`). Lines for drawing a road made by `createRoad` (`road.mjs`). - What it does: It calculates its inputs. Defines 11 functions or classes, including frame, offsetLine, densify, finishedAtPoint, edgeLines. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Design Earthworks (globalgrid2050); Design Earthworks (globalgrid2050). - Signatures: `export offsetLine(road, h)`; `export edgeLines(road)`; `export batterLines(road, g = road.groundAt, { tick = 5 } = {})`; `export sectionLines(road, sections, { lift = 0.05, every = 1 } = {})`; `frame(road)`; `densify(line, every)`; `finishedAtPoint(road, x, y)`; `run(line)`; `daylight(road, x, y, ux, uy, zE, g)`; `raw(d)`; `ux(x - p.fx)`; `at(s, off)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Search - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/search.mjs (JavaScript, 96 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/search.mjs#L1-L96 - Page: https://code.globalgrid2050.com/explore-code/s/0125.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that parses coords (`parseCoords`) and query (`parseQuery`) (units: MW), covering postcodes. It parses coords (`parseCoords`) and parses query (`parseQuery`). - What it achieves (comment): Project search over `web/world/data/projects.json`. Pure: no imports, no DOM. - What it does: It lists and searches postcodes. Defines 8 functions or classes, including norm, compact, parseCoords, parseQuery, prepare. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes. - Downstream impact: Used directly by 2 files: Search UI (globalgrid2050); Search UI (globalgrid2050). Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export parseCoords(text)`; `export parseQuery(text)`; `export search(index, query, limit = 12)`; `norm(s)`; `compact(s)`; `prepare(index)`; `rows(index.records ?? [])`; `altMatches(row, alt)`; `score(row, whole)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Sun UI - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/sun-ui.mjs (JavaScript, 50 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/sun-ui.mjs#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0125.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that mounts sun control (`mountSunControl`), covering solar. - What it achieves (comment): It starts state (`startState`) and is built from the grid sun helper (`gridSun`) and the mount sun control helper (`mountSunControl`). Date and time for the Terrain shadow layer: a date field and a time-of-day slider under the Layers panel, shown only while the layer is on. It responds to change and input events. - What it does: It draws solar. Defines startState, gridSun, mountSunControl, apply. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: form fields (user input). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export startState(lat, lon, nowMs = Date.now())`; `export gridSun(lat, lon, state)`; `export mountSunControl(host, { layer, site, nowMs } = {})`; `apply()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Sun - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/sun.mjs (JavaScript, 156 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/sun.mjs#L1-L156 - Page: https://code.globalgrid2050.com/explore-code/s/0126.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. It clamps ms (`clampMs`) and applies time (`applyTime`). - What it achieves (comment): Sun position for a place and a moment, the sun's direction in the world's axes, and a date/time model. - What it does: It calculates solar. Defines 14 functions or classes, including fix360, julianDay, sunPlace, refraction, solarPosition. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 3 files: Sun UI (globalgrid2050); Sun Day (globalgrid2050); Sun Mode (globalgrid2050). - Signatures: `export julianDay(ms)`; `export sunPlace(ms)`; `export refraction(elevation, { pressure = 1010, temperature = 10 } = {})`; `export solarPosition(lat, lon, ms, opts = {})`; `export sunDirection({ azimuth, elevation })`; `export solarNoon(lon, ms)`; `export gridConvergence(lat, lon, lon0 = -2)`; `export timeState(utcMs, stepMinutes = 15)`; `export applyTime(state, action = {})`; `export timeView(state)`; `export sunAt(lat, lon, state, opts = {})`; `fix360(a)`; `T(julianDay(ms) - 2451545)`; `omega(125.04 - 1934.136 * T)`; `lambda(L0 + C - 0.00569 - 0.00478 * Math.sin(omega))`; `eps(eps0 + 0.00256 * Math.cos(omega))`; `minutes(((ms % DAY_MS) + DAY_MS) % DAY_MS)`; `tst((minutes + equationOfTime + 4 * lon) % 1440 + 1440)`; `clampMs(ms)`; `num(v, what)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Tour - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/tour.mjs (JavaScript, 281 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/tour.mjs#L1-L281 - Page: https://code.globalgrid2050.com/explore-code/s/0126.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates recorder (`createRecorder`) and player (`createPlayer`), using SHA-256. It creates recorder (`createRecorder`) and creates player (`createPlayer`). - What it achieves (comment): Tours: record a walk or a drone flight, play it back smoothly, save it, and present it. - What it does: It calculates its inputs. Defines 23 functions or classes, including mm, rad, ms, turn, keyframe. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Project UI (globalgrid2050). - Signatures: `export keyframe(t, origin, pose, { caption = '', hold = 0 } = {})`; `export createRecorder({ kind = 'walk', name = '', every = 0.25 } = {})`; `export makeTour({ kind = 'walk', name = '', keyframes })`; `export sha256(text)`; `export exportTour(tour)`; `export importTour(text)`; `export compile(tour)`; `export gridPoseAt(line, t)`; `export poseAt(line, t, origin)`; `export captionAt(line, t, { showFor = 6 } = {})`; `export createPlayer(tour, { gate, getOrigin, apply = () => {}, onCaption = () => {}, onEnd = () => {}, clock = () => performance.now(), s...)`; `export present(text, { captionEl, onCaption, onExit = () => {}, autoplay = true, ...opts } = {})`; `mm(x)`; `rad(x)`; `ms(x)`; `turn(from, to)`; `d(to - from)`; `push(k)`; `sample(t, origin, pose)`; `mark(caption, hold = 0)`; `stop()`; `pick(o, keys)`; `body(tour)`; `hermite(a, b, u, h, j)`; `at(v)` (and 9 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Xr Pose - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/xr-pose.mjs (JavaScript, 160 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/xr-pose.mjs#L1-L160 - Page: https://code.globalgrid2050.com/explore-code/s/0126.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to world (`toWorld`), snaps turn (`snapTurn`) and reads controllers (`readControllers`). - What it achieves (comment): It turns about (`turnAbout`), snaps turn (`snapTurn`) and reads controllers (`readControllers`). Headset view pose maths. Pure: no DOM, no WebXR objects, only plain numbers and arrays. Its code works with 72 Hz. - What it does: It lists and searches its content. Defines 21 functions or classes, including xrToWorld, rotYaw, rotate, dirToWorld, toWorld. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Xr (globalgrid2050). - Signatures: `export xrToWorld([x, y, z])`; `export rotYaw(yaw, [x, y, z])`; `export rotate([qx, qy, qz, qw], [vx, vy, vz])`; `export dirToWorld(rig, v)`; `export toWorld(rig, p)`; `export eyeMatrix(projection, rig, orientation)`; `export headLook(rig, orientation)`; `export turnAbout(rig, head, dYaw)`; `export snapTurn(armed, x, { step: size = SNAP, on = SNAP_ON, off = SNAP_OFF } = {})`; `export deadzone(v, dz = DEADZONE)`; `export readControllers(sources)`; `export movementInput(c, view)`; `export settle(rig, head, view, heightAt, lift)`; `export locomote(rig, head, orientation, input, dt, view, heightAt, solids = [], lift = 0)`; `export enterRig(state, head, orientation, heightAt, lift)`; `export leaveRig(rig, head, orientation, view)`; `export chooseFrameRate(supported, floor = MIN_FRAME_RATE)`; `export headsetBudget()`; `export adjustHeadset(b, intervalMs, frameRate)`; `pressed(n)`; `wrap(a)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 1 ### Xr - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/xr.mjs (JavaScript, 109 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/xr.mjs#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0127.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that attaches headset (`attachHeadset`). It attaches headset (`attachHeadset`) and is built from the label step (`label`) and the start step (`start`). - What it achieves (comment): Headset view: an optional WebXR immersive-vr session for the same line world. It responds to click and end events. - What it does: It calculates its inputs. Defines 10 functions or classes, including attachHeadset, label, start, run, layerFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export attachHeadset(button, api, { xr = globalThis.navigator && navigator.xr } = {})`; `label()`; `start()`; `run(s, gl, space, lift)`; `layerFor(k)`; `resize()`; `frame(t, f)`; `switchView(current, r, h, o)`; `xyz(p)`; `quat(q)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Boq Assumptions - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/boq-assumptions.mjs (JavaScript, 68 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/boq-assumptions.mjs#L1-L68 - Page: https://code.globalgrid2050.com/explore-code/s/0127.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It is built from the road build up helper (`roadBuildUp`) and the from road helper (`fromRoad`). - What it achieves (comment): The default values the bill of quantities falls back on when a design item does not say. - What it does: It calculates cables. Defines roadBuildUp, fromRoad. - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'boq'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 10 files: Drums (globalgrid2050); Boq (globalgrid2050); Design Earthworks (globalgrid2050); Design Ground (globalgrid2050); and 6 more. - Signatures: `export roadBuildUp(layers)`; `fromRoad(surface)` - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 10; mentioned by 1 ### Design Import - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/design-import.mjs (JavaScript, 239 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/design-import.mjs#L1-L239 - Page: https://code.globalgrid2050.com/explore-code/s/0127.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar. - What it achieves (comment): It imports design (`importDesign`) and is built from the num step (`num`) and the deg step (`deg`). Turns the GIS, single-line diagram (SLD) & Financial Sandbox GeoJSON export (WGS84 lon/lat) into local-metre geometry for the world viewer. - What it does: It calculates cables and solar. Defines 14 functions or classes, including num, deg, frame, box, closed. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, 33kV. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 33kV. - Signatures: `export importDesign(geojson, toLocal)`; `num(v, d)`; `deg(r)`; `frame(bearingDeg)`; `box(f, cu, cv, len, wid, z0, z1, extra)`; `closed(quad)`; `intervalsAt(ringsUV, v)`; `intersect(a, b)`; `pack(ringsLocal, f, len, depth, pitch, gap, margin, onSlot)`; `mountingFor(gcr)`; `ringsOf(geom, toLocal)`; `conv(ring)`; `polyLength(pts)`; `blocked(cu, cv)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Ground Readout - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/ground-readout.mjs (JavaScript, 133 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/ground-readout.mjs#L1-L133 - Page: https://code.globalgrid2050.com/explore-code/s/0127.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that joins names (`joinNames`) and routes rows (`routeRows`). It joins names (`joinNames`) and routes rows (`routeRows`). - What it achieves (comment): Words for what the ground layer (`layers/ground.mjs`) finds under the walker and along a finished trench or cable route. - What it does: It draws its content. Defines 11 functions or classes, including srcName, joinNames, underfootText, mayLink, lengths. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export underfootText(u)`; `export mayLink(source, url)`; `export thermalText(records)`; `export routeRows(r)`; `export mountGroundReadout({ doc, layer, on, feet, box, finished, here, walking })`; `srcName(sources, key)`; `joinNames(items)`; `lengths(list)`; `listed(label, list, key, none)`; `el(tag, cls, t)`; `update()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 1 ### Hdd - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/hdd.mjs (JavaScript, 384 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/hdd.mjs#L1-L384 - Page: https://code.globalgrid2050.com/explore-code/s/0128.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV and 132kV, using BS 7870-4. - What it achieves (comment): It compares crossing (`compareCrossing`) and is built from the cable bend multiple helper (`cableBendMultiple`) and the duct for cable helper (`ductForCable`). A horizontal directional drill (HDD) crossing under a road, watercourse or hedge. Its code works with 33 kV and 132 kV. - What it does: It calculates cables, 33kV and 132kV. Defines 16 functions or classes, including cableBendMultiple, ductForCable, clamp, lineOf, side. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, 132kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export cableBendMultiple(voltageKv = 33, method = 'duct')`; `export ductForCable({ odMm, voltageKv = 33, cores = 3, circuits = 1 } = {})`; `export designBore(opts)`; `export cablePull(samples, cable = CABLE_ASSUMED)`; `export compareCrossing(opts)`; `clamp(v, a, b)`; `lineOf(from, to)`; `side(zg, zb, a, R)`; `tangent(drop - arcDrop)`; `aE(opts.entryAngleDeg ?? 12)`; `zAt(s)`; `pointAt(s)`; `inRange(a, [lo, hi])`; `pitOf(s, name)`; `noLayout(base, note)`; `rootOut(f, start, end, valid = () => true)`; `h(s)`; `run(pts)`; `allowable(PULL_STRESS[c.material] ?? PULL_STRESS.al)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/hdd.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 33kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Land - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/land.mjs (JavaScript, 298 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/land.mjs#L1-L298 - Page: https://code.globalgrid2050.com/explore-code/s/0128.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It is built from the is grade helper (`isGrade`), the ring area helper (`ringArea`) and the prepare step (`prepare`). The land-use lens for farmers and planners. - What it does: It calculates solar. Defines 19 functions or classes, including isGrade, ringArea, prepare, intervalsAt, intersect. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export isGrade(g)`; `export ringArea(ring)`; `export prepare(rings)`; `export intervalsAt(poly, y)`; `export intersect(A, B)`; `export subtract(A, B)`; `export span(I)`; `export pointInRings(rings, x, y)`; `export areaByGrade(fieldRings, land, { step = STEP_M } = {})`; `export planWidth(slopeLengthM, tiltDeg)`; `export panelSplit(areaM2, { pitch, tableWidth, excludedFraction = 0 } = {})`; `export grazingNote(grazedM2)`; `export cellRing(e, n, { side, area, orientation = 'flat' } = {})`; `export cropMix(fieldRings, crops, { step = STEP_M } = {})`; `export landReport(fields, land, { panels = null, step = STEP_M } = {})`; `export reportLines(r)`; `ewes(lu)`; `add(into, from)`; `ha(m2)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Flow - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/layers/flow.mjs (JavaScript, 352 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/layers/flow.mjs#L1-L352 - Page: https://code.globalgrid2050.com/explore-code/s/0129.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), decodes hollow tile (`decodeHollowTile`), loads index (`loadIndex`) and calculates planar distances, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`), decodes flow tile (`decodeFlowTile`) and decodes hollow tile (`decodeHollowTile`). The natural drainage lines: every cell whose log-accumulation class is at or above a chosen class, drawn as a short downhill segment to the cell it drains into (D8), draped just above the ground, brighter as the flow grows. - What it does: It lists and searches flow tiles and LiDAR terrain. Defines 24 functions or classes, including setIndexSha, decodeFlowTile, fits, looksEsri, colorFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file flow-tiles.json. - Signatures: `export setIndexSha(sha)`; `export decodeFlowTile(buffer, { encoding } = {})`; `export colorFor(c, minClass, maxClass)`; `export segments(t, x0, y0, minClass, heightAt, { lift = LIFT_M, origin = [0, 0, 0] } = {})`; `export decodeHollowTile(buffer)`; `export hollowMask(t, minCells = MIN_HOLLOW_CELLS)`; `export hollowOutline(t, x0, y0, heightAt, { minCells = MIN_HOLLOW_CELLS, lift = HOLLOW_LIFT_M, origin = [0, 0, 0], openEdges = false } = {})`; `export createFlow()`; `fits(s, h)`; `looksEsri(raw)`; `inside(i, j)`; `seg(ax, ay, bx, by)`; `finite(h)`; `rectDist(x, y, x0, y0, x1, y1)`; `now()`; `say(s)`; `loadIndex()`; `loadHollows()`; `ready()`; `empty(t)`; `wanted(x, y)`; `request(entry)`; `pump()`; `evict()`; `init(a)` (and 3 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/flow.mjs) · essay_status: readme_derived - data_contracts: in [JSON file flow-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Measure - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/measure.mjs (JavaScript, 369 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/measure.mjs#L1-L369 - Page: https://code.globalgrid2050.com/explore-code/s/0130.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV, solar and LiDAR terrain, using point in polygon. - What it achieves (comment): It opens ring (`openRing`) and is built from the distance2d step (`distance2d`) and the distance3d step (`distance3d`). What the design tools and panels say about the real ground. Its code works with 33 kV. - What it does: It calculates cables, 33kV, solar and LiDAR terrain. Defines 15 functions or classes, including distance2d, distance3d, polylineLength2d, signedArea, areaOfPolygon. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, solar, LiDAR terrain. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 5 files: Design Earthworks (globalgrid2050); Design UI (globalgrid2050); Design Earthworks (globalgrid2050); Design UI (globalgrid2050); and 1 more. Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export distance2d(a, b)`; `export distance3d(a, b)`; `export polylineLength2d(points)`; `export signedArea(polygon)`; `export areaOfPolygon(polygon)`; `export profile(groundAt, points, step = 1)`; `export slopeAlong(groundAt, at, direction, h = 0.5)`; `export cutFillForPlatform(groundAt, polygon, level, cell = 0.5)`; `export trenchSummary(trench, groundAt = null)`; `export bendRule(cables, { voltageKv, construction = null, when, odMm })`; `export cableSummary(route, opts = {})`; `export coverAchieved(section, odMm = null)`; `openRing(polygon)`; `insidePoly(x, y, vx, vy)`; `j(i - 1 + n)`; `pathBends(path)`; `rules(cables && cables.rules)`; `required(voltageKv != null && odMm > 0)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 5; mentioned by 1 ### Phases Design - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/phases-design.mjs (JavaScript, 83 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/phases-design.mjs#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0130.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar. - What it achieves (comment): It is built from the items from store helper (`itemsFromStore`) and the items from design helper (`itemsFromDesign`). Derive construction items from a design. - What it does: It calculates cables and solar. Defines itemsFromStore, itemsFromDesign. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar. - Downstream impact: Used directly by 1 file: Project UI (globalgrid2050). - Signatures: `export itemsFromStore(doc, opts = {})`; `export itemsFromDesign(design, opts = {})`; `roads(opts.roads || [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/phases-design.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Plan Inset - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/plan-inset.mjs (JavaScript, 248 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/plan-inset.mjs#L1-L248 - Page: https://code.globalgrid2050.com/explore-code/s/0130.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to world (`toWorld`), scales bar (`scaleBar`), formats distance (`formatDistance`) and calculates planar distances. - What it achieves (comment): It formats distance (`formatDistance`) and starts collapsed (`startCollapsed`). A small top-down plan in a corner, drawn on a 2D canvas (not WebGL). It responds to click, pointerdown and pointercancel events. - What it does: It draws its content. Defines 18 functions or classes, including finite2, extentOf, add, fit, toPlan. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: canvas drawing. - Downstream impact: Used directly by 1 file: Plan Wire (globalgrid2050). - Signatures: `export extentOf({ viewer, boundary, tiles, items } = {})`; `export fit(extent, w, h, { pad = PAD_PX, minSpan = MIN_SPAN_M } = {})`; `export toPlan(f, x, y)`; `export toWorld(f, px, py)`; `export headingOnPlan(yaw)`; `export scaleBar(scale, maxPx)`; `export formatDistance(m)`; `export signature(data, w, h)`; `export planSize(vw, vh, coarse)`; `export startCollapsed(vw, vh)`; `export createPlanInset(doc, { onFly = () => {}, coarse, win = doc.defaultView } = {})`; `finite2(p)`; `add(x, y)`; `tiles(data?.tiles || [])`; `bound(data?.boundary || [])`; `items(data?.items || [])`; `isCoarse()`; `layout()`; `draw()`; `set(next)`; `refresh()`; `setCollapsed(on)`; `paint(ctx, f, data, side)`; `P(x, y)`; `ring(data.boundary || [])` (and 1 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Postcodes - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/postcodes.mjs (JavaScript, 77 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/postcodes.mjs#L1-L77 - Page: https://code.globalgrid2050.com/explore-code/s/0131.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches postcodes from postcodes.io. It normalises postcode (`normalisePostcode`) and creates postcode lookup (`createPostcodeLookup`). - What it achieves (comment): Postcode search through postcodes.io (code MIT; Great Britain postcode data under the OS OpenData licence, wording checked on postcodes.io 26 Sept 2026). - What it does: It fetches postcodes. Defines 6 functions or classes, including normalisePostcode, looksLikePostcode, toPostcodeRows, createPostcodeLookup, remember. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes. - Inputs & outputs: In: data source: postcodes.io. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 3 files: Places (globalgrid2050); Search UI (globalgrid2050); Search UI (globalgrid2050). Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export normalisePostcode(text)`; `export looksLikePostcode(text)`; `export toPostcodeRows(results)`; `export createPostcodeLookup({ fetchImpl, limit = 6, minGapMs = 250, cacheSize = 60, clock = () => Date.now(), sleep = ms => new Promise(r => setT...)`; `remember(q, rows)`; `lookup(text)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: postcodes.io]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Sites UI - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/sites-ui.mjs (JavaScript, 100 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/sites-ui.mjs#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0131.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates site chooser (`createSiteChooser`) and mounts site select (`mountSiteSelect`), using SHA-256. It parses sites (`parseSites`) and creates site chooser (`createSiteChooser`). - What it achieves (comment): Site selector for the world viewer. It reads `./world/data/sites.json`. It responds to change events. - What it does: It draws its content. Defines 6 functions or classes, including SAFE_PATH, parseSites, siteLabel, createSiteChooser, mountSiteSelect. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file sites.json; form fields (user input). - Downstream impact: Used directly by 6 files: Project UI (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Project UI (globalgrid2050); and 2 more. - Signatures: `export parseSites(json)`; `export siteLabel(site, { relief = true } = {})`; `export createSiteChooser(sites, { current = null, onChoose = () => {} } = {})`; `export mountSiteSelect(doc, parent, chooser)`; `export siteFromUrl(loc = location)`; `SAFE_PATH(p)`; `choose(name)`; `leave()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file sites.json; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 1 ### Snap - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/snap.mjs (JavaScript, 92 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/snap.mjs#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0131.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with substations. It snaps point (`snapPoint`) and snaps ring (`snapRing`). - What it achieves (comment): Snapping a cable route to grid equipment, and what the readout says about where the route meets the grid. Its code works with 200 kV and 400 kV. - What it does: It calculates substations. Defines 11 functions or classes, including dist, snapPoint, bearingDeg, nearestSubstation, tierOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, 400kV, 200kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 400kV, 200kV. - Downstream impact: Used directly by 3 files: Design Ground (globalgrid2050); Design UI (globalgrid2050); Design UI (globalgrid2050). - Signatures: `export snapPoint(p, assets, origin, radius = SNAP_M)`; `export bearingDeg(a, b)`; `export nearestSubstation(at, assets)`; `export tierOf(a)`; `export tierText(a)`; `export connectionText(near, endAsset = null)`; `export draftToNearest(last, asset, origin)`; `export measuredShare(pts, measuredAt, step = 5)`; `export snapRing([x, y, z], r = 3, h = 4)`; `dist(a, b)`; `km(d)`; `f(k + 0.5)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [400kV, 200kV] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### Wcs Terrain - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/wcs-terrain.mjs (JavaScript, 216 lines) · role geodesy · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/wcs-terrain.mjs#L1-L216 - Page: https://code.globalgrid2050.com/explore-code/s/0131.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches LiDAR terrain, using EPSG:27700 from Environment Agency. - What it achieves (comment): It reads tags (`readTags`), decodes geo tiff (`decodeGeoTiff`) and creates live terrain (`createLiveTerrain`). Live terrain: Environment Agency LiDAR Composite DTM 1 m, fetched from the EA's public WCS 2.0.1 in the browser, for anywhere the staged (hash-checked) tiles do not reach. - What it does: It fetches LiDAR terrain. Defines 14 functions or classes, including inExtent, wcsUrl, readTags, inflate, decodeGeoTiff. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'terrain'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: data source: Environment Agency. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 4 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export inExtent(e0, n0, size = BOX_M)`; `export wcsUrl(e0, n0, size = BOX_M)`; `export decodeGeoTiff(buffer)`; `export toTile(geo)`; `export sampleBox(tile, u, v)`; `export boxesNear(e, n, radius = LOAD_RADIUS, size = BOX_M)`; `export createLiveTerrain({ origin, invalidate = () => {}, skip = () => false, fetchImpl, clock = () => Date.now() } = {})`; `readTags(dv, little)`; `bytes(TYPE_BYTES[type] || 1)`; `inflate(bytes)`; `bx(b % across)`; `need(tiled ? bh : rows)`; `isNo(v)`; `s(tile.samples - 1)`; `o()`; `describe()`; `request(b)`; `pump()`; `heightAt(x, y)`; `lines(ctx)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: Environment Agency]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Boq - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/boq.mjs (JavaScript, 374 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/boq.mjs#L1-L374 - Page: https://code.globalgrid2050.com/explore-code/s/0132.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to CSV (`toCsv`) and calculates planar distances (units: kV, mm²), covering cables and overhead lines (OHL). - What it achieves (comment): It is built from the num step (`num`), the fmt step (`fmt`) and the plan length helper (`planLength`). A bill of quantities from a design document. - What it does: It lists and searches cables and overhead lines (OHL). Defines 22 functions or classes, including num, fmt, planLength, bendCount, lengthOf. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'boq'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, overhead lines (OHL). - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export buildBoq(doc, { sections = null, cables = null, rates = null, currency = null } = {})`; `export toCsv(boq)`; `num(v)`; `fmt(x, dp = 2)`; `planLength(path)`; `bendCount(path)`; `cr(b[0] - a[0])`; `dot(b[0] - a[0])`; `lengthOf(item)`; `weakest(...s)`; `armouredOf(id)`; `cableRows(item, ctx, add, skip)`; `trenchRows(item, ctx, add, skip)`; `sec(ctx.sections?.sections || [])`; `roadRows(item, ctx, add, skip)`; `padRows(item, ctx, add, skip)`; `fenceRows(item, ctx, add, skip)`; `hddRows(item, ctx, add, skip)`; `pileRows(item, ctx, add, skip)`; `ohlRows(item, ctx, add)`; `n(k)`; `rateOf(rates, code, unit)`; `skip(item, reason)`; `add(row, item)`; `cell(v)` - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Buffers - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/buffers.mjs (JavaScript, 147 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/buffers.mjs#L1-L147 - Page: https://code.globalgrid2050.com/explore-code/s/0132.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 33kV, 132kV, 66kV and 275kV, using BS5837 and BS 5837. - What it achieves (comment): It builds zones (`buildZones`) and is built from the voltage class helper (`voltageClass`) and the part step (`part`). Offset zones around features in the world data, and a clash check for drawn items. Its code works with 33 kV, 132 kV and 275 kV. - What it does: It calculates 33kV, 132kV, 66kV and 275kV. Defines 13 functions or classes, including voltageClass, part, sum, overheadRule, waterRule. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, 132kV, 66kV, 275kV, 400kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 2 files: Buffers UI (globalgrid2050); Buffers UI (globalgrid2050). - Signatures: `export voltageClass(kv)`; `export overheadRule(line)`; `export waterRule(w)`; `export roadRule(r)`; `export stemDiameterMm(t, fallback)`; `export rootRule(t, what)`; `export drawnRule(item)`; `export buildZones(world = {}, { origin = null, segments } = {})`; `part(what, m, kind, source)`; `sum(parts)`; `note(st.stems > 5 ? 'More than five stems: BS 5837 uses a different combination; check the survey. ' : '')`; `ptsOf(f)`; `add(layer, list, ruleFor, shape)`; `line()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 1 ### Design Earthworks - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/design-earthworks.mjs (JavaScript, 292 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/design-earthworks.mjs#L1-L292 - Page: https://code.globalgrid2050.com/explore-code/s/0133.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to local pts (`toLocalPts`) and calculates planar distances, covering cables, transformers, LiDAR terrain and overhead lines (OHL). - What it achieves (comment): It creates earthworks (`createEarthworks`) and is built from the to local pts helper (`toLocalPts`) and the handles step (`handles`). Earthworks tools in the Design panel: access road, equipment pad, perimeter fence, pile row and drilled crossing, plus the drum schedule for the last cable and the bill of quantities for the whole design. - What it does: It draws cables, transformers, LiDAR terrain and overhead lines (OHL). Defines 22 functions or classes, including createEarthworks, $, toLocalPts, handles, option. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, LiDAR terrain, overhead lines (OHL). - Downstream impact: Used directly by 1 file: Design UI (globalgrid2050). - Signatures: `export createEarthworks({ doc, origin, baseHeight, groundVersion, cables, catalogue, designItems, heightAt, extraItems = () => [], groundRow ...)`; `$(id)`; `toLocalPts(path)`; `handles(tool)`; `option(tool)`; `chosenCable()`; `crossingCable(id = chosenCable())`; `make(kind, opt, pts, ground, cableId)`; `ux(b[0] - a[0])`; `build()`; `of(kind, g)`; `groundFor(kind)`; `ground(base)`; `rowsOf(kind, d, draft, pts = [])`; `measure(kind, pts)`; `finish(kind, pts)`; `summary(kind, d)`; `batch(key, v, pos, color)`; `batches()`; `drumSchedule()`; `boqDoc()`; `billOfQuantities()`; `choose(tool)`; `replace(list = [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/design-earthworks.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 12 estate files (import 12); used by 1; mentioned by 1 ### Fade - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/fade.mjs (JavaScript, 12 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/fade.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0133.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with far plane (`farPlane`). It is built from the fade for helper (`fadeFor`) and the far plane helper (`farPlane`). - What it achieves (comment): How far the world is drawn before it fades out, and the far plane that follows it. - What it does: It calculates its inputs. Defines fadeFor, farPlane. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Layers UI (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050). - Signatures: `export fadeFor(view, above, rangeM = 0)`; `export farPlane(fade)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Labels - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/labels.mjs (JavaScript, 59 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/labels.mjs#L1-L59 - Page: https://code.globalgrid2050.com/explore-code/s/0133.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 33kV and cables. - What it achieves (comment): It is built from the circuits step (`circuits`), the voltage step (`voltage`) and the basis step (`basis`). Human words for what the page shows. Its code works with 33 kV, 1.5 kV and 132 kV. - What it does: It calculates 33kV and cables. Defines 9 functions or classes, including circuits, voltage, basis, sectionLabel, conductorLabel. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, cables, 132kV, 1.5kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV, 1.5kV. - Downstream impact: Used directly by 2 files: Design UI (globalgrid2050); First Showing (globalgrid2050). - Signatures: `export sectionLabel(s)`; `export conductorLabel(c)`; `export cableLabel(c)`; `export pressWord(coarse)`; `export distanceLabel(m)`; `export designHint(tool, view, n, press)`; `circuits(n)`; `voltage(s)`; `basis(s)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/labels.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 33kV, 1.5kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Grid - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/layers/grid.mjs (JavaScript, 368 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/layers/grid.mjs#L1-L368 - Page: https://code.globalgrid2050.com/explore-code/s/0134.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with substations, 33kV, 400kV and 275kV, using SHA-256. - What it achieves (comment): It parses grid file (`parseGridFile`), parses national index (`parseNationalIndex`) and parses national tile (`parseNationalTile`). Overhead lines from a per-site file and substations from the national index, drawn as quiet wireframe. Its code works with 33 kV, 132 kV and 275 kV. - What it does: It calculates substations, 33kV, 400kV and 275kV. Defines 29 functions or classes, including voltageClass, finite, isPt, parseGridFile, parseNationalIndex. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, 33kV, 400kV, 275kV, 132kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Signatures: `export voltageClass(kv)`; `export parseGridFile(j)`; `export parseNationalIndex(j)`; `export parseNationalTile(j, key)`; `export tileDistance(t, tileM, e, n)`; `export mergeSubstations(fromFile, fromIndex)`; `export nearSet(model, origin, pos = [0, 0], within = NEAR_M)`; `export marker(x, y, z, o)`; `export compound(x, y, cls, heightAt, o = [0, 0, 0])`; `export towerGrounds(towers, measuredAt, heightAt)`; `export measuredSpans(towers, measuredAt)`; `export roundClearance(v)`; `export judged(c)`; `export clearanceStatus(model, clearances)`; `export buildGrid(model, origin, heightAt, buildOverhead, measuredAt = heightAt, near = null, shown = null)`; `export createGrid()`; `finite(h, d = 0)`; `isPt(p)`; `substations(Array.isArray(j.substations) ? j.substations : [])`; `P(dx, dy, up)`; `L(a, b)`; `fmt(c)`; `straightGround(towers, x, y)`; `local(e, n)`; `loadTile(t)` (and 7 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### National - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/layers/national.mjs (JavaScript, 390 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/layers/national.mjs#L1-L390 - Page: https://code.globalgrid2050.com/explore-code/s/0135.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with 33kV, substations, 400kV and 275kV, using SHA-256. It rebuilds step (`rebuildStep`), starts near (`startNear`) and loads index (`loadIndex`). - What it achieves (comment): Roads, mainline railways, overhead lines with their towers, and every substation in Great Britain, from GridAtlas's national files (OpenStreetMap, ODbL), cut into 10 km tiles by `tools/features/cut_national.py`. Its code works with 33 kV, 132 kV and 275 kV. - What it does: It calculates 33kV, substations, 400kV and 275kV. Defines 33 functions or classes, including rebuildStep, voltageClass, clipToCircle, boxDist, wantedFiles. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, substations, 400kV, 275kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Signatures: `export rebuildStep(rangeM)`; `export voltageClass(kv)`; `export clipToCircle(ax, ay, bx, by, cx, cy, r)`; `export boxDist(x, y, b)`; `export wantedFiles(squares, tiles, kinds, e, n, r)`; `export boxOf(p)`; `export buildNational(tiles, v, ground, lib, memo = new Map())`; `export createNational()`; `zAt(x, y)`; `h(x - v.x)`; `out(g)`; `seg(a, ax, ay, az, bx, by, bz)`; `r2(x, y)`; `skip(p, tx, ty)`; `run(a, ax, ay, bx, by, lift, side = 0)`; `pieces(ax, ay, bx, by)`; `polyline(a, p, tx, ty, lift, from = 0, to = p.length / 2 - 1, twin = false)`; `plainLift(cls)`; `power(f, tx, ty, id)`; `isNear(t)`; `flush()`; `substation(f, tx, ty)`; `zero()`; `startNear(farNext, gv, t, why)`; `now()` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Lift - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/lift.mjs (JavaScript, 22 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/lift.mjs#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0135.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the hold step (`hold`) and the release step (`release`). - What it achieves (comment): Up and Down (drone): hold to climb or sink; a quick tap moves `TAP_M`, so a tap is never lost. It responds to pointerdown events. - What it does: It calculates its inputs. Defines attachLift, hold, release. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export attachLift(buttons, { setLift, tap, now = () => performance.now() })`; `hold(e)`; `release(e)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Overhead Line (OHL) Gs6 - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/ohl-gs6.mjs (JavaScript, 59 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/ohl-gs6.mjs#L1-L59 - Page: https://code.globalgrid2050.com/explore-code/s/0135.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 132kV and overhead lines (OHL). - What it achieves (comment): It is built from the zone distance helper (`zoneDistance`) and the exclusion for helper (`exclusionFor`). Overhead line zones: the distances, each with where it comes from. Its code works with 132 kV, 275 kV and 33 kV. - What it does: It calculates 132kV and overhead lines (OHL). Defines zoneDistance, exclusionFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 132kV, overhead lines (OHL), 400kV, 275kV, 66kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 3 files: Overhead Line (OHL) UI (globalgrid2050); Overhead Line (OHL) Zones (globalgrid2050); Overhead Line (OHL) UI (globalgrid2050). - Signatures: `export zoneDistance(support)`; `export exclusionFor(cls)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Overhead Line (OHL) UI - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/ohl-ui.mjs (JavaScript, 139 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/ohl-ui.mjs#L1-L139 - Page: https://code.globalgrid2050.com/explore-code/s/0135.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates OHL layer (`createOhlLayer`), mounts OHL control (`mountOhlControl`) and calculates planar distances, covering overhead lines (OHL). - What it achieves (comment): It creates OHL layer (`createOhlLayer`) and attaches OHL (`attachOhl`). Overhead line safety zones on the page: a layer that draws the zones on the ground from the grid layer's conductors, the design checks (`ohl-zones.mjs`), a short readout with the working height input, and the bill rows. It responds to change events. - What it does: It draws overhead lines (OHL). Defines 14 functions or classes, including readout, n, boqItems, get, goalpostLines. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Inputs & outputs: In: form fields (user input). - Signatures: `export readout(spans, result, height)`; `export boqItems(result)`; `export goalpostLines(x, y, dx, dy, heightAt, o)`; `export createOhlLayer({ grid, gridShown = () => true, design, origin, measuredAt, invalidate = () => {} })`; `export mountOhlControl(host, layer)`; `export attachOhl(items, deps)`; `n(f)`; `get(id)`; `g(a, b)`; `P(a, b, up)`; `setEnabled(on)`; `setHeight(h)`; `refresh(groundVersion = 0)`; `lines(ctx)`; `update()`; `gridItem()`; `onChange(ids, panel)`; `mount(host, panel)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/ohl-ui.mjs) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 1 ### Overhead Line (OHL) Zones - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/ohl-zones.mjs (JavaScript, 197 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/ohl-zones.mjs#L1-L197 - Page: https://code.globalgrid2050.com/explore-code/s/0136.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with overhead lines (OHL) and cables. It builds spans (`buildSpans`) and checks design (`checkDesign`). - What it achieves (comment): Overhead line zones: corridors on the ground either side of each overhead line, and the design checks against them. - What it does: It calculates overhead lines (OHL) and cables. Defines 17 functions or classes, including r1, swayOf, buildSpans, side, zoneRings. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), cables. - Downstream impact: Used directly by 2 files: Overhead Line (OHL) UI (globalgrid2050); Overhead Line (OHL) UI (globalgrid2050). - Signatures: `export swayOf(w)`; `export buildSpans(wires)`; `export zoneRings(spans, { segments = 16 } = {})`; `export itemShape(it)`; `export samplePoints(it, step = SAMPLE_M)`; `export crossingOf(core, span)`; `export goalpostsFor(core, half, span)`; `export plantReach(x, y, g, H, span, step = WIRE_STEP_M)`; `export checkDesign(items, spans, measuredAt = () => NaN, { height = 0 } = {})`; `export designItems(design, origin)`; `r1(v)`; `side(w)`; `parts(key)`; `pts(it.pts || [])`; `cross2(a, b, c, d)`; `o(p, q, r)`; `pointAtChainage(pts, s)`; `ux(w.b[0] - w.a[0])`; `s0(x - w.a[0])`; `L(path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (import 4); used by 2; mentioned by 1 ### Overhead - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/overhead.mjs (JavaScript, 215 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/overhead.mjs#L1-L215 - Page: https://code.globalgrid2050.com/explore-code/s/0136.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 400kV, 33kV, 275kV and 132kV. - What it achieves (comment): It draws tower (`drawTower`) and is built from the clearance basis helper (`clearanceBasis`) and the coshm1 step (`coshm1`). Overhead lines: lattice towers, wood poles and catenary conductors as light wireframe. Its code works with 400 kV, 33 kV and 132 kV. - What it does: It calculates 400kV, 33kV, 275kV and 132kV. Defines 19 functions or classes, including clearanceBasis, coshm1, levelSag, paramFromSag, catenarySpan. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, 33kV, 275kV, 132kV, 66kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 3 files: Overhead Line (OHL) Zones (globalgrid2050); Layers (globalgrid2050); Layers (globalgrid2050). Reached from 4 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050). - Signatures: `export clearanceBasis(sagRatio = SAG_TO_SPAN)`; `export levelSag(L, a)`; `export paramFromSag(L, sagRatio)`; `export catenarySpan(L, h1, h2, a)`; `export buildOverhead(towers, opts = {})`; `coshm1(u)`; `mid(lo + hi)`; `z(s)`; `unit(dx, dy)`; `directionAt(towers, k)`; `specOf(t)`; `attachments(t, spec, d, p)`; `at(across, z)`; `drawTower(seg, t, spec, d, p)`; `P(along, across, z)`; `L(a, b)`; `ring(z)`; `solidOf(t, spec)`; `need(t)`; `xy(s)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Range UI - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/range-ui.mjs (JavaScript, 43 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/range-ui.mjs#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0136.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that starts miles (`startMiles`). - What it achieves (comment): It starts miles (`startMiles`) and is built from the mount range helper (`mountRange`) and the apply step (`apply`). Range for the wider-area roads and rail (`layers/national.mjs`): 2, 5 or 10 miles, under the Layers panel, shown only while that layer is on. It responds to click events. - What it does: It draws its content. Defines startMiles, mountRange, apply, set. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Layers UI (globalgrid2050); Layers UI (globalgrid2050). - Signatures: `export startMiles(store, coarse)`; `export mountRange(host, { layer = () => null, store = null, coarse = false, onChange = () => {} } = {})`; `apply()`; `set(mi)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Route Tool - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/route-tool.mjs (JavaScript, 95 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/route-tool.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0136.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and substations. - What it achieves (comment): It describes controls (`describeControls`) and is built from the snapshot step (`snapshot`) and the changed step (`changed`). A small state machine for drawing a route on the ground, in Walk or Drone view. - What it does: It calculates cables and substations. Defines createRouteTool, snapshot, changed, point, describeControls. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: cables, substations. - Downstream impact: Used directly by 2 files: Design UI (globalgrid2050); Design UI (globalgrid2050). - Signatures: `export createRouteTool({ onChange = () => {} } = {})`; `export describeControls({ touch = false } = {})`; `snapshot()`; `changed()`; `addPoint(p)`; `movePoint(i, p)`; `removeLast()`; `finish()`; `clear()`; `point(p)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of graphics-engines-open-source/web/versions/202609262227-site-world/world/route-tool.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Sun Climate - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/sun-climate.mjs (JavaScript, 122 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/sun-climate.mjs#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0136.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that reads cell index (`readCellIndex`), tiles distance (`tileDistance`), reads cell tile (`readCellTile`) and calculates planar distances (units: kWh), using SHA-256. - What it achieves (comment): It reads climate (`readClimate`), reads cell index (`readCellIndex`) and reads cell tile (`readCellTile`). Sun mode, measured-climate data: readers for a site's precomputed sun files (gw-LiDAR `sun-data/src/sun_data.py` and `sun_cells.py`). - What it does: It lists and searches its content. Defines 11 functions or classes, including num, text, twelve, readClimate, readCellIndex. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Sun Mode (globalgrid2050). - Signatures: `export readClimate(j)`; `export readCellIndex(j, indexPath = '')`; `export tileDistance(index, t, e, n)`; `export tileFor(index, e, n)`; `export readCellTile(buf)`; `export cellValue(tile, index, e, n, month, quantity)`; `export climateLines(climate, month, here = null)`; `num(v)`; `text(v)`; `twelve(a)`; `fix(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Sun Day - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/sun-day.mjs (JavaScript, 145 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/sun-day.mjs#L1-L145 - Page: https://code.globalgrid2050.com/explore-code/s/0137.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that scales colour (`scaleColour`), splits into patches (`splitIntoPatches`) and calculates planar distances. - What it achieves (comment): It splits into patches (`splitIntoPatches`) and is built from the formatter step (`formatter`) and the zone parts helper (`zoneParts`). Sun mode, pure parts: site clock (a named time zone), direct sun over a day against a terrain horizon, and the per-batch light factor that makes grid lines a little brighter on sunlit slopes and dimmer in shadow. - What it does: It calculates its inputs. Defines 13 functions or classes, including formatter, zoneParts, zonedToUtc, zoneDay, zoneLabel. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Sun Mode (globalgrid2050). - Signatures: `export zoneParts(ms, timeZone = SITE_ZONE)`; `export zonedToUtc(year, month, day, minuteOfDay, timeZone = SITE_ZONE)`; `export zoneDay(ms, timeZone = SITE_ZONE)`; `export zoneLabel(ms, timeZone = SITE_ZONE)`; `export horizonFunction(profile)`; `export directAt(lat, lon, ms, horizon, convergence = 0)`; `export directSunDay(lat, lon, start, end, horizon = () => 0, { stepMinutes = 5, convergence = 0 } = {})`; `export groundNormal(heightAt, x, y, half = LIGHT.patch / 2)`; `export lightFactor(sun, normal, shadowed = 0)`; `export scaleColour(c, f)`; `export splitIntoPatches(batch, size = LIGHT.patch, wrap = LIGHT.wrap)`; `formatter(timeZone)`; `f((az % 360) + 360)`; `edge(lat, lon, a, b, horizon, convergence, rising)`; `m(a + b)`; `gx(e - w)`; `mx(p[k] + p[k + 3])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Sun Mode - File: globalgrid2050/solar-design-studio/202609270145-site-world-v3/world/sun-mode.mjs (JavaScript, 320 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270145-site-world-v3/world/sun-mode.mjs#L1-L320 - Page: https://code.globalgrid2050.com/explore-code/s/0137.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that sets playing (`setPlaying`) and time (`setTime`) and syncs inputs (`syncInputs`) (units: kWh), using SHA-256. - What it achieves (comment): It sets playing (`setPlaying`), sets time (`setTime`) and syncs inputs (`syncInputs`). One Sun toggle in the Layers panel (the dash keeps Walk, Drone, Find, Design, Layers). It responds to click, change and input events. - What it does: It draws its content. Defines 17 functions or classes, including el, hours, attachSunMode, back, setOn. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export attachSunMode(h)`; `el(tag, attrs = {}, text = '')`; `hours(h)`; `back(e)`; `setOn(next)`; `setPlaying(next)`; `setTime(ms)`; `enableShade(changed = false)`; `refresh()`; `syncInputs()`; `loadData()`; `cellHere(x, y, month)`; `tilesNear(index, e, n)`; `trimCells(e, n)`; `factorFor(p, ctx, shade)`; `write(lines)`; `update(ctx)`; `advance(intervalMs)`; `decorate(batches, ctx)`; `afterDraw(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 5 estate files (import 5); used by 0; mentioned by 0 ### Block Build - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/block-build.mjs (JavaScript, 257 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/block-build.mjs#L1-L257 - Page: https://code.globalgrid2050.com/explore-code/s/0138.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables, 33kV and overhead lines (OHL). - What it achieves (comment): It builds block (`buildBlock`) and is built from the group step (`group`) and the put step (`put`). The owner's 10MVA solar block (`station.mjs`, ported from his explorer) placed on the measured ground, with the 33kV rings to the grid (`block-mv.mjs`), as line groups ordered for the build sequence. Its code works with 33 kV, 1.5 kV and 10 MVA. - What it does: It calculates transformers, cables, 33kV and overhead lines (OHL). Defines 26 functions or classes, including group, put, seg, poly, mark. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, 33kV, overhead lines (OHL), 1.5kV. - Inputs & outputs: Voltage levels named: 33kV, 1.5kV. - Downstream impact: Used directly by 1 file: Block UI (globalgrid2050). - Signatures: `export padEarthworks(g, e0, n0, e1, n1, level = null)`; `export buildBlock({ anchor, ground, fallback = () => NaN, stations = 4, pocKv = 400, towers = [], gpuPads = [] })`; `export overheadClearance([E, N], stations, towers)`; `export blockCounts(b)`; `group()`; `put(G, p)`; `seg(G, a, b)`; `poly(G, pts)`; `mark(G)`; `box(G, [x, y, z], w, d, h)`; `median(a)`; `g(e, n)`; `zLocal(x)`; `baseOf(n, y)`; `onTable(n, x, y)`; `at(x, y, z)`; `edge(off, dz)`; `padOf(S)`; `buried(a, b)`; `lift(pts, table, inv, endZ)`; `odMv(a)`; `inside(poly, x, y)`; `blockTrenches(st, mv, E, N, odMv)`; `sec(id, label, o)`; `acSec(c)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 1.5kV] - Edges: uses 4 estate files (import 4); used by 1; mentioned by 0 ### Block MV - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/block-mv.mjs (JavaScript, 112 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/block-mv.mjs#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0138.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar, transformers and cables, using IEC 60287 and IEC 60949. - What it achieves (comment): It is built from the MV chain helper (`mvChain`), the col x helper (`colX`) and the path step (`path`). Stations of the solar block chained on 33kV rings to the MV board, the grid transformer(s) and the connection, laid out and sized from the load. Its code works with 33 kV and 400 kV. - What it does: It calculates solar, transformers and cables. Defines 9 functions or classes, including mvChain, colX, up, path, dropWith. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, transformers, cables, 400kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 33kV. - Downstream impact: Used directly by 2 files: Block Build (globalgrid2050); Block UI (globalgrid2050). - Signatures: `export mvChain({ stations = 4, stationMVA = 9.856, pocKv = 400, layout = MV_LAYOUT, ...opts } = {})`; `fieldE(cols - 1)`; `colX(col)`; `up(s)`; `path(A, B)`; `dropWith(a)`; `side(hs, sts)`; `lineOf(key)`; `off(key, lane)`; `xy(key, v, lane)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Block Sequence - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/block-sequence.mjs (JavaScript, 89 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/block-sequence.mjs#L1-L89 - Page: https://code.globalgrid2050.com/explore-code/s/0138.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, transformers and solar. - What it achieves (comment): It creates clock (`createClock`) and is built from the clamp01 step (`clamp01`) and the progress step (`progress`). The order a solar block is built in, as a clock the page can play, pause and step. Its code works with 33 kV. - What it does: It calculates cables, transformers and solar. Defines 7 functions or classes, including clamp01, progress, stageAt, reveal, partial. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Block UI (globalgrid2050); Block UI (globalgrid2050). - Signatures: `export progress(t)`; `export stageAt(t)`; `export reveal(n, f)`; `export partial(points, f)`; `export createClock({ now = () => performance.now(), speed = 1 } = {})`; `clamp01(x)`; `t()`; `play()`; `pause()`; `step()`; `reset()`; `finish()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Design Ground - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/design-ground.mjs (JavaScript, 45 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/design-ground.mjs#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0138.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws profile (`drawProfile`), covering LiDAR terrain. - What it achieves (comment): It draws profile (`drawProfile`) and is built from the ground share of helper (`groundShareOf`) and the ground row of helper (`groundRowOf`). What the ground under a route is: measured LiDAR, or a flat plane where none is loaded, said so plainly (code review 2, phone review 1). - What it does: Defines 6 functions or classes, including groundShareOf, groundRowOf, drawProfile, X, line. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Downstream impact: Used directly by 2 files: Design UI (globalgrid2050); Design UI (globalgrid2050). - Signatures: `export groundShareOf(pts, measuredAt)`; `export groundRowOf(pts, measuredAt)`; `export drawProfile(doc, m)`; `X(s)`; `line(dz, cls)`; `text(x, y, s, anchor = 'start')` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Design Options - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/design-options.mjs (JavaScript, 102 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/design-options.mjs#L1-L102 - Page: https://code.globalgrid2050.com/explore-code/s/0138.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches spec example and cables. It creates options (`createOptions`), sets source (`setSource`) and loads example (`loadExample`). - What it achieves (comment): The Options part of the Design panel (`world.html` #design-options). It reads `./world/data/spec-example.json`. It responds to change and click events. - What it does: It fetches spec example and cables. Defines 9 functions or classes, including createOptions, $, say, setSource, loadExample. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: JSON file spec-example.json. - Downstream impact: Used directly by 2 files: Design Sections (globalgrid2050); Design Sections (globalgrid2050). - Signatures: `export createOptions({ doc, viewer, heightAt, redraw, onChange = () => {} })`; `$(id)`; `say(msg, warn = false)`; `setSource(v)`; `loadExample()`; `readFile(input, parse)`; `place()`; `batch(key, pos, color)`; `batches()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file spec-example.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 1 ### Design UI - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/design-ui.mjs (JavaScript, 385 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/design-ui.mjs#L1-L385 - Page: https://code.globalgrid2050.com/explore-code/s/0139.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to local pts (`toLocalPts`), shows readout (`showReadout`), converts to nearest substation (`toNearestSubstation`) and calculates planar distances (units: kV). - What it achieves (comment): It creates design (`createDesign`), shows readout (`showReadout`) and shows results (`showResults`). Design tools in the world: Trench and Cable, drawn by clicking the ground. It responds to click, change and keydown events. - What it does: It draws cables, trench sections, substations and solar. Defines 35 functions or classes, including createDesign, $, groundVersion, groundShare, section. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, solar. - Inputs & outputs: In: JSON file cables.json; JSON file trench-sections.json. - Signatures: `export createDesign({ doc, canvas, fov, baseHeight, origin, viewer, invalidate, redraw, assets = () => [], measuredAt = null, onChange = ...)`; `$(id)`; `groundVersion()`; `groundShare(pts)`; `section(id)`; `cableSpec(id)`; `toLocalPts(path)`; `effOf(sectionId)`; `trenchOf(sectionId, pts, eff = effOf(sectionId))`; `cableOf(cableId, ground, pts, sectionId, overdig = 0)`; `bed(Number(section(sectionId)?.bedding?.thickness_mm) || 0)`; `build()`; `heightAt(x, y)`; `designItems()`; `spoil(b.spoil ||= [])`; `batch(key, version, pos, color)`; `marker(v, [x, y, z], h, arm)`; `tightIndices(c)`; `batches()`; `nearFrom(end)`; `gridRow(pts, endAsset)`; `levelsAlong()`; `measure(kind, sectionId, cableId, pts, spoil, endAsset = null, eff = effOf(sectionId))`; `showReadout()`; `showResults()` (and 14 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271853-site-world/world/design-ui.mjs) · essay_status: readme_derived - data_contracts: in [JSON file cables.json; JSON file trench-sections.json]; out []; crs []; voltages [] - Edges: uses 13 estate files (import 13); used by 0; mentioned by 0 ### Layers UI - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/layers-ui.mjs (JavaScript, 104 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/layers-ui.mjs#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0139.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that reads overhead lines (OHL). It writes footer (`writeFooter`), fits footer (`fitFooter`) and shows range (`showRange`). - What it achieves (comment): Page wiring for the Layers panel. It responds to resize and close events. - What it does: It loads overhead lines (OHL). Defines 8 functions or classes, including panelLayers, footerFor, applyOn, mountLayersUi, writeFooter. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Signatures: `export panelLayers(items)`; `export footerFor(items, on, attribution, year)`; `export applyOn(items, on)`; `export mountLayersUi({ items, host, footer, attribution, invalidate = () => {}, on = DEFAULT_ON, year, onChange = () => {} } = {})`; `writeFooter(ids)`; `fitFooter()`; `showRange(ids)`; `refresh()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/layers-ui.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 5 estate files (import 5); used by 0; mentioned by 0 ### MV Network - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/mv-network.mjs (JavaScript, 125 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/mv-network.mjs#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0139.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that reads routes (`readRoutes`) (units: kV, MVA), covering cables and transformers. It reads routes (`readRoutes`) and places network (`placeNetwork`). - What it achieves (comment): The medium-voltage network from the stations to the grid, as equipment outlines with solids and cable routes, placed on the ground by the user. - What it does: Defines 9 functions or classes, including equipmentSolids, box, solidLines, readRoutes, pt. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers. - Downstream impact: Used directly by 5 files: Block Build (globalgrid2050); Design Options (globalgrid2050); Plant UI (globalgrid2050); Block Build (globalgrid2050); and 1 more. - Signatures: `export equipmentSolids(kind, at = [0, 0, 0], heading = 0, id = kind)`; `export solidLines(solids)`; `export readRoutes(json)`; `export drawingToGround({ at = [0, 0], metresPerUnit = 1, heading = 0, yDown = false } = {})`; `export placeNetwork(diagram, { routes = null, at = [0, 0], heading = 0, metresPerUnit = 1, spacing = 40, groundAt = () => 0 } = {})`; `export cableLines(cables, kind = null)`; `box(part, min, max)`; `pt(p)`; `links(json.links || [])`; `kindOf(n)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 5; mentioned by 0 ### Places - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/places.mjs (JavaScript, 103 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/places.mjs#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0140.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches postcodes from postcodes.io. - What it achieves (comment): It creates place lookup (`createPlaceLookup`) and is built from the fold name helper (`foldName`) and the looks like place helper (`looksLikePlace`). Town and village search through postcodes.io /places, which serves OS Open Names (Open Government Licence v3.0; the service's code is MIT). - What it does: It fetches postcodes. Defines 8 functions or classes, including foldName, looksLikePlace, english, whereOf, toPlaceRows. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes. - Inputs & outputs: In: data source: postcodes.io. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: Search UI (globalgrid2050); Search UI (globalgrid2050). Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export foldName(s)`; `export looksLikePlace(text)`; `export whereOf(r)`; `export toPlaceRows(results, query)`; `export createPlaceLookup({ fetchImpl, limit = 30, minGapMs = 300, cacheSize = 60, clock = () => Date.now(), sleep = ms => new Promise(r => set...)`; `english(s)`; `remember(q, rows)`; `lookup(text)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: postcodes.io]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Plant Feeders - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/plant-feeders.mjs (JavaScript, 114 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/plant-feeders.mjs#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0140.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV and A roads. - What it achieves (comment): It routes feeders (`routeFeeders`) and is built from the to spine helper (`toSpine`) and the road path helper (`roadPath`). The 33kV feeders of a laid-out plant, routed along its roads, with their trenches and cables. Its code works with 33 kV. - What it does: It calculates cables, 33kV and A roads. Defines 9 functions or classes, including toSpine, roadPath, side, coverage, trenchFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, A roads. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Block MV (globalgrid2050); Plant Layout (globalgrid2050). - Signatures: `export roadPath(A, B, net)`; `export coverage(intervals)`; `export trenchFor(c, L, into)`; `export routeFeeders(tpl, net, p)`; `toSpine(pt, net)`; `side(pt)`; `onRoad(s)`; `add(key, a, b)`; `dropOf(hops)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Plant Layout - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/plant-layout.mjs (JavaScript, 261 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/plant-layout.mjs#L1-L261 - Page: https://code.globalgrid2050.com/explore-code/s/0140.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that maps solar and substations. - What it achieves (comment): It is built from the table geometry helper (`tableGeometry`), the frame of helper (`frameOf`) and the inside step (`inside`). A solar plant laid out on measured ground inside a drawn boundary, from generic rules. Its code works with 33 kV and 5000 MW. - What it does: It maps solar and substations. Defines 17 functions or classes, including tableGeometry, frameOf, inside, segDist, edgeDist. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, substations, 33kV. - Inputs & outputs: Out: interactive map. Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Plant UI (globalgrid2050). - Signatures: `export tableGeometry(layout, p, tpl)`; `export frameOf(layout)`; `export inside(poly, x, y)`; `export edgeDist(poly, x, y)`; `export polyArea(poly)`; `export waterIndex(lines, reach, cell = 64)`; `export layoutSteps(input)`; `export layoutPlant(input)`; `export layoutPlantAsync(input, { sliceMs = 12, onProgress = () => {}, now = () => performance.now(), pause } = {})`; `segDist(x, y, ax, ay, bx, by)`; `nearestEdge(poly, x, y)`; `g(u, v)`; `water(input.water || [])`; `okPoint(u, v)`; `us(us0 + us1)`; `inCompound(ua, ub, va, vb)`; `inAccess(ua, ub, va, vb)`; `um(ua + ub)`; `gu(e5 - w5)`; `need(tpl)`; `stretch(k, s, d)`; `roadM(spine.v1 - spine.v0)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [interactive map]; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Plant Template - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/plant-template.mjs (JavaScript, 240 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/plant-template.mjs#L1-L240 - Page: https://code.globalgrid2050.com/explore-code/s/0141.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables, solar and 33kV, using IEC 60287 and IEC 60949. - What it achieves (comment): It sizes feeder (`sizeFeeder`) and is built from the auto poc kV helper (`autoPocKv`) and the modules per string helper (`modulesPerString`). A generic, parameterised solar plant block diagram, sized from engineering rules. Its code works with 33 kV, 10 MVA and 240 MVA. - What it does: It calculates transformers, cables, solar and 33kV. Defines 16 functions or classes, including up, r3, autoPocKv, modulesPerString, faultMinArea. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, solar, 33kV, 400kV, 1500V. - Inputs & outputs: Voltage levels named: 400kV, 33kV, 1500V. - Downstream impact: Used directly by 5 files: Block MV (globalgrid2050); Design Options (globalgrid2050); MV Network (globalgrid2050); Plant Layout (globalgrid2050); and 1 more. - Signatures: `export autoPocKv(mw)`; `export modulesPerString(p)`; `export faultMinArea(kA, s)`; `export plantTemplate(opts = {})`; `export gridChoice(mw, total, fixedUnits = null, feeders = [])`; `export pack(feeders, n)`; `export layoutDiagram(d)`; `up(steps, v)`; `r3(v)`; `node(id, kind, label, rating = {})`; `link(from, to, kind, kv, mva, extra = {})`; `check(name, value, max, min = -Infinity)`; `maxLoad(n)`; `L(i)`; `sizeFeeder(chain, p, cableOpts, minArea)`; `drop()`; `mid(Math.max(0, ...[...pos.values()].map(v => v.x)))` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV, 1500V] - Edges: uses 1 estate file (import 1); used by 5; mentioned by 1 ### Plant UI - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/plant-ui.mjs (JavaScript, 214 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/plant-ui.mjs#L1-L214 - Page: https://code.globalgrid2050.com/explore-code/s/0141.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws ground (`drawGround`), sets boundary (`setBoundary`), builds lines (`buildLines`) and calculates planar distances (units: MW, kV). - What it achieves (comment): It creates plant (`createPlant`), draws ground (`drawGround`) and sets boundary (`setBoundary`). Design > Plant layout. The user draws a boundary (the Boundary tool, or the open land around them), picks a capacity and a layout, and the plant is laid out on the measured ground (`plant-layout.mjs`), in slices between frames. Its code works with 33 kV. It responds to click events. - What it does: It draws substations and transformers. Defines 20 functions or classes, including PAUSE, createPlant, $, say, measured. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, transformers, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Design Sections (globalgrid2050). - Signatures: `export createPlant({ doc, origin, viewer, measuredAt, heightAt, assets = () => [], nearest = null, redraw })`; `PAUSE()`; `$(id)`; `say(msg, warn = false)`; `measured(fn)`; `drawGround(e, n)`; `setBoundary(path)`; `useOpenLand()`; `run()`; `buildLines(r)`; `make()`; `put(L, e, n, z)`; `seg(L, a, b)`; `at(u, v, dz = 0)`; `path(L, pts, dz = 0.05, step = 10)`; `c(u, v, z)`; `vm(va + vb)`; `place(kind, u, v, id)`; `w(pc.c > 1 ? 0.8 : 0.45)`; `batches()`; `showReport(r)`; `clearLayout(all = true)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 6 estate files (import 6); used by 1; mentioned by 0 ### Search UI - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/search-ui.mjs (JavaScript, 332 lines) · role interaction · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/search-ui.mjs#L1-L332 - Page: https://code.globalgrid2050.com/explore-code/s/0142.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that formats capacity and technology and converts to rows, covering postcodes, the Renewable Energy Planning Database (REPD) register, wind and solar. - What it achieves (comment): It formats capacity (`formatCapacity`), formats technology (`formatTechnology`) and merges rows (`mergeRows`). Search panel: "Find a place". A small box over the world that finds a town or village (OS Open Names through postcodes.io, see `places.mjs`), a REPD project, a UK postcode (postcodes.io, see `postcodes.mjs`) or a typed "lat, lon". Its code works with 1.2 GW, 49.9 MW and 650 kW. It responds to pointerdown, click and input events. - What it does: It draws postcodes, the REPD register, wind and solar. Defines 29 functions or classes, including creditsFor, formatCapacity, trim, formatTechnology, toRows. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes, the REPD register, wind, solar. - Downstream impact: Used directly by 2 files: Find Mount (globalgrid2050); Substrate (graphics-engines-open-source). Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export creditsFor(attribution, layers = ['search', 'postcodes', 'names'], year = new Date().getUTCFullYear())`; `export formatCapacity(mw)`; `export formatTechnology(t)`; `export toRows(result)`; `export summaryText(result, shown)`; `export moveSelection(index, count, key)`; `export rowForEnter(rows, index)`; `export debounce(fn, ms, clock = { set: (f, t) => setTimeout(f, t), clear: id => clearTimeout(id) })`; `export arrivalNote(choice, hasTerrain, live = false)`; `export mergeRows(postcodeRows, projectRows, placeRows = [])`; `export statusLine({ postcodes = undefined, places = undefined, projects = null, projectRows = 0 } = {})`; `export sourcesShown(rows)`; `export runQuery(index, text, limit = 12)`; `export createSearchPanel(container, { loadIndex, onChoose, attribution = null, hasTerrain = null, liveTerrain = false, postcodes = createPostc...)`; `trim(v)`; `d(...args)`; `el(tag, props = {}, attrs = {})`; `showCredits(ids)`; `ensureIndex()`; `highlight(i)`; `choose(row)`; `render(text)`; `paint()`; `settle()`; `ask(key, lookup, noun)` (and 4 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 1 ### Spec Rules - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/spec-rules.mjs (JavaScript, 104 lines) · role test · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/spec-rules.mjs#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0142.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that tests cables. It reads spec (`readSpec`) and applies ground (`applyGround`). - What it achieves (comment): Which specification a trench is built to, and what the ground does to it. - What it does: It tests cables. Defines num, txt, readSpec, applyGround, looseSpoil. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 4 files: Design Options (globalgrid2050); Design Sections (globalgrid2050); Xray (globalgrid2050); Design Sections (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export readSpec(json)`; `export applyGround(section, spec = OPERATOR_SPEC, groundId = 'normal')`; `export looseSpoil(bankM3, eff)`; `num(v, lo, hi)`; `txt(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Station - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/station.mjs (JavaScript, 260 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/station.mjs#L1-L260 - Page: https://code.globalgrid2050.com/explore-code/s/0142.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables and solar. - What it achieves (comment): It is built from the cfg step (`cfg`), the table shape helper (`tableShape`) and the table origin helper (`tableOrigin`). Solar station library: paired tables, pole inverters, DC home cables in ducts, AC trenches, 2 x 5MVA. Its code works with 5 MVA. - What it does: It calculates transformers, cables and solar. Defines 20 functions or classes, including cfg, tableShape, tableOrigin, stringsPerTable, tableStrings. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, solar. - Downstream impact: Used directly by 11 files: Cmd Trench (globalgrid2050); Block Trenches (globalgrid2050); Block Build (globalgrid2050); MV Network (globalgrid2050); and 7 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export tableShape(params)`; `export tableOrigin(n, params)`; `export stringsPerTable(params)`; `export tableStrings(params, { corners = true } = {})`; `export dcOrder(n, wiring = 'sequential')`; `export seriesLinks(string, wiring = 'sequential')`; `export inverterSite(k, params)`; `export dcDucts(sites, params)`; `export dcHomeRoutes(strings, sites, params)`; `export acRoute(p, t, id, label, params)`; `export acTrenches(sites, transformers, params)`; `export compoundBox(transformers)`; `export stationSolids(params, sites, transformers)`; `export stationInventory(params, strings = tableStrings(params, { corners: false }))`; `export placer(at = [0, 0, 0], heading = 0)`; `export station(params, { at = [0, 0, 0], heading = 0, corners = true } = {})`; `cfg(p)`; `v(side === 1 ? s.rows - 1 - r : r)`; `p(dv, du)`; `offset((slot % 6) * 2 + end - 5.5)`; `point([x, y, z = 0])`; `box(b)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 11; mentioned by 0 ### Block GPU - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/block-gpu.mjs (JavaScript, 108 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/block-gpu.mjs#L1-L108 - Page: https://code.globalgrid2050.com/explore-code/s/0143.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches cables and solar, using SHA-256. It loads prototype (`loadPrototype`), parses prototype (`parsePrototype`) and builds feed (`buildFeed`). - What it achieves (comment): Design > Solar block > GPU-checked placement. - What it does: It fetches cables and solar. Defines 13 functions or classes, including hex, sha256, loadPrototype, parsePrototype, flat. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar. - Inputs & outputs: In: JSON file index.json. - Downstream impact: Used directly by 1 file: Block UI (globalgrid2050). - Signatures: `export loadPrototype(site, { get = (u, o) => fetch(u, o), base = './world/sites/', digest = sha256 } = {})`; `export parsePrototype(layout, sequence, receipt = null)`; `export buildFeed(p, ground)`; `export countAt(G, h)`; `export feedStage(p, h)`; `hex(buf)`; `sha256(bytes)`; `tables(layout.tables || [])`; `flat(g)`; `z(q, lift)`; `add(key, t1)`; `seg(G, a, b)`; `line(G, pts, lift)`; `post(G, q, h)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/block-gpu.mjs) · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Block UI - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/block-ui.mjs (JavaScript, 235 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/block-ui.mjs#L1-L235 - Page: https://code.globalgrid2050.com/explore-code/s/0143.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws GPU compounds, 33kV, cables and overhead lines (OHL). It creates block (`createBlock`), places gpu (`placeGpu`) and shows gpu (`showGpu`). - What it achieves (comment): Design > Solar block. Places the owner's 10MVA station block (`block-build.mjs`) on the measured ground in front of the viewer, chains the stations on 33kV rings to the grid, and plays the build sequence (`block-sequence.mjs`). Its code works with 33 kV and 10 MVA. It responds to click events. - What it does: It draws GPU compounds, 33kV, cables and overhead lines (OHL). Defines 31 functions or classes, including n0, createBlock, $, say, local. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, cables, overhead lines (OHL). - Inputs & outputs: In: JSON file gpu-compounds.json. Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Design Sections (globalgrid2050). - Signatures: `export createBlock({ doc, origin, viewer, measuredAt, heightAt, towers = () => [], redraw, animate = () => {} })`; `n0(x)`; `$(id)`; `say(msg, warn = false)`; `local(e, n)`; `gpuPads()`; `site(await ground.start())`; `place()`; `measured(e, n)`; `fallback(e, n)`; `placeGpu()`; `gpuCounts()`; `gpuHour()`; `gpuBatches()`; `showGpu({ p, feed })`; `cableGroup(list, by)`; `o3(base)`; `prefix(key, G, count, color)`; `upto(G, whole)`; `pulling(key, F, r, color)`; `batches()`; `whole(k, f)`; `tick()`; `refreshItems()`; `play()` (and 7 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gpu-compounds.json]; out []; crs []; voltages [33kV] - Edges: uses 7 estate files (import 6, dynamic-import 1); used by 1; mentioned by 1 ### Design Tabs - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/design-tabs.mjs (JavaScript, 43 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/design-tabs.mjs#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0143.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 covering solar. It is built from the mount design tabs helper (`mountDesignTabs`) and the show step (`show`). - What it achieves (comment): The Design panel's four sections as tabs, so a phone shows one short panel at a time. It responds to click and keydown events. - What it does: Defines mountDesignTabs, show. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 2 files: Design Sections (globalgrid2050); Design Sections (globalgrid2050). - Signatures: `export mountDesignTabs(doc, { onFirstOpen = {}, onChange = () => {} } = {})`; `show(name, { focus = false } = {})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### First Showing - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/first-showing.mjs (JavaScript, 87 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/first-showing.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0143.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that reads substations and the Renewable Energy Planning Database (REPD) register. It places label (`placeLabel`) and shows place (`showPlace`). - What it achieves (comment): The first step, offered once (a small card that opens Find; dismissed for good with × or by using Find), and the place just found. It responds to click events. - What it does: It loads substations and the REPD register. Defines 10 functions or classes, including placeLabel, substationLine, pinBatch, mountFirstShowing, $. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, the REPD register. - Inputs & outputs: In: browser storage (getItem). Out: browser storage (setItem). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export placeLabel(choice)`; `export substationLine(sub, tower)`; `export pinBatch(x, y, z, version)`; `export mountFirstShowing({ doc = document, canvas, redraw, origin, heightAt, groundVersion, assets = () => [], nearest = null, openFind })`; `$(id)`; `remembered()`; `dismissStart()`; `phone()`; `gridLine(e, n)`; `showPlace(choice, e, n, note = '')`; `batches()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser storage (getItem)]; out [browser storage (setItem)]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 1 ### Help - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/help.mjs (JavaScript, 23 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/help.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0143.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with fill basis (`fillBasis`). - What it achieves (comment): It is built from the fill basis helper (`fillBasis`), the set step (`set`) and the mount help helper (`mountHelp`). The "How to use" part of the Controls panel (`world.html` #help). - What it does: Defines fillBasis, set, mountHelp. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export fillBasis(doc = document)`; `export mountHelp(doc = document, win = globalThis)`; `set(id, text)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Layers Panel - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers-panel.mjs (JavaScript, 256 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers-panel.mjs#L1-L256 - Page: https://code.globalgrid2050.com/explore-code/s/0144.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with panel model (`panelModel`) and status line (`statusLine`), covering overhead lines (OHL). - What it achieves (comment): It is built from the is optional helper (`isOptional`), the is loaded helper (`isLoaded`) and the panel model helper (`panelModel`). A small panel titled "Layers" with one labelled switch per optional layer, grouped by the groups Grid, Access, Water and ground, Planning (`docs/world-lenses.md`; desktop studies under Planning). It responds to click and keydown events. - What it does: It draws overhead lines (OHL). Defines 14 functions or classes, including isOptional, isLoaded, panelModel, statusLine, sourceKeysFor. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Downstream impact: Used directly by 7 files: Layers UI (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); Layers UI (globalgrid2050); and 3 more. - Signatures: `export isOptional(id)`; `export panelModel(layers = [], on = [])`; `export statusLine(entry)`; `export sourceKeysFor(ids)`; `export attributionLines(ids, attribution, year = new Date().getFullYear())`; `export shownIds(layers = [], on = [])`; `export attributionText(layers, on, attribution, year)`; `export toggle(on, id, layers, want)`; `export createLayersPanel(container, { layers = [], onToggle = () => {}, attribution = null, on = [], year } = {})`; `isLoaded(entry)`; `entry(layers || [])`; `el(tag, cls, text)`; `render()`; `set(id, want)`; `onKey(e)`; `update(layers)`; `show(v = true)`; `destroy()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 1 ### Canopy - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/canopy.mjs (JavaScript, 206 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/canopy.mjs#L1-L206 - Page: https://code.globalgrid2050.com/explore-code/s/0144.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), loads hedges (`loadHedges`) and calculates planar distances, covering canopy tiles, hedges and LiDAR terrain, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`), decodes canopy tile (`decodeCanopyTile`) and loads hedges (`loadHedges`). Hedges and tree canopies as sparse vertical ticks, each from the ground up to the real canopy height measured by the Environment Agency LiDAR (first-return surface minus bare earth). - What it does: It lists and searches canopy tiles, hedges and LiDAR terrain. Defines 11 functions or classes, including setIndexSha, decodeCanopyTile, blockOffset, treeTicks, along. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file canopy-tiles.json; JSON file hedges.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export setIndexSha(sha)`; `export decodeCanopyTile(buffer)`; `export blockOffset(bi, bj, stride)`; `export treeTicks(t, x0, y0, heightAt, { stride = STRIDE, origin = [0, 0, 0] } = {})`; `export along(pts, step)`; `export hedgeGeometry(lines, en, heightAt, { step = HEDGE_STEP, solidStep = SOLID_STEP, origin = [0, 0, 0] } = {})`; `export createCanopy()`; `x(Math.imul(bi, 73856093) ^ Math.imul(bj, 19349663))`; `finite(h)`; `statusLine()`; `loadHedges(j, dir)`; `hedges(ctx)`; `init(a)`; `setEnabled(on)`; `lines(ctx)`; `solids(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/canopy.mjs) · essay_status: readme_derived - data_contracts: in [JSON file canopy-tiles.json; JSON file hedges.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Construction - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/construction.mjs (JavaScript, 109 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/construction.mjs#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0144.html#f3 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with clearance words (`clearanceWords`), using SHA-256. - What it achieves (comment): It is built from the clearance words helper (`clearanceWords`), the construction status helper (`constructionStatus`) and the origin step (`origin`). How an overhead line and its connection might be built on this ground, from the GPU construction study (gpu-night agent A, `export/` /construction.odbl.json). - What it does: It lists and searches its content. Defines 8 functions or classes, including parseConstruction, clearanceWords, buildConstruction, L, constructionStatus. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export parseConstruction(j)`; `export clearanceWords(m)`; `export buildConstruction(model, origin)`; `export constructionStatus(model)`; `export createConstruction()`; `L(p)`; `origin()`; `load()`; `init(a)`; `lines()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Contours - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/contours.mjs (JavaScript, 182 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/contours.mjs#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0145.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha, decodes contour tile and calculates planar distances, covering contour tiles and LiDAR terrain, using Douglas-Peucker and SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`) and decodes contour tile (`decodeContourTile`). Contour lines draped 5 cm above the ground at a chosen interval (0.5, 1 or 5 m; default 1 m), with every 5 m line (an index contour) drawn slightly brighter. - What it does: It lists and searches contour tiles and LiDAR terrain. Defines 14 functions or classes, including statusLine, setIndexSha, multiple, isIndex, onInterval. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file contour-tiles.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export statusLine(tiles, credit = EA_CREDIT)`; `export setIndexSha(sha)`; `export isIndex(z)`; `export onInterval(z, iv)`; `export decodeContourTile(doc)`; `export segments(t, x0, y0, interval, heightAt, { lift = LIFT_M, step = STEP_M, origin = [0, 0, 0] } = {})`; `export labelsFor(t, x0, y0, heightAt, { lift = LIFT_M, minLen = LABEL_MIN_M } = {})`; `export createContours()`; `multiple(z, step)`; `fmt(z)`; `drape(h, x, y, lift)`; `ivKey(iv)`; `ready()`; `init(a)`; `setEnabled(on)`; `setInterval(m)`; `setLabels(on)`; `lines(ctx)`; `labels(ctx)`; `d(l)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/contours.mjs) · essay_status: readme_derived - data_contracts: in [JSON file contour-tiles.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Ground Grid - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/ground-grid.mjs (JavaScript, 163 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/ground-grid.mjs#L1-L163 - Page: https://code.globalgrid2050.com/explore-code/s/0145.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with height store (`heightStore`) and origin mark (`originMark`). - What it achieves (comment): It is built from the later step (`later`), the grid step (`grid`) and the wrap step (`wrap`). A 1 m grid near the viewer and a 10 m grid to the horizon, draped on whatever ground the world has (flat until a terrain layer supplies `heightAt`). - What it does: Defines 7 functions or classes, including later, grid, wrap, slotOf, heightStore. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export grid(cx, cy, { spacing, radius }, heightAt, { origin = [0, 0, 0], near = null, sample = null, known = null } = {})`; `init(a)`; `lines({ pos, heightAt, known = null, groundVersion = 0 })`; `later(s)`; `wrap(v, m)`; `slotOf(x, y)`; `heightStore(heightAt, groundVersion, cx, cy, before, known = null)`; `sample(x, y, guess = 0)`; `knownAt(x, y)`; `begin(x, y)`; `widen()`; `originMark(sample, guess)`; `finite(h)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Imagery - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/imagery.mjs (JavaScript, 248 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/imagery.mjs#L1-L248 - Page: https://code.globalgrid2050.com/explore-code/s/0145.html#f3 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that loads index (`loadIndex`) and draws on a canvas, using k-means and SHA-256. It indexes pixels (`indexPixels`) and loads index (`loadIndex`). - What it achieves (comment): A satellite picture of the site laid on the ground, under every other line, in the Map and Drone views only (never Walk). It responds to input events. - What it does: It draws its content. Defines 18 functions or classes, including framesOf, creditFor, sliderModel, paletteOf, lum. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: canvas drawing. - Signatures: `export framesOf(index)`; `export creditFor(frame, index)`; `export sliderModel(frames, i, index)`; `export paletteOf(img, k = PALETTE)`; `export nearest(C, r, g, b)`; `export indexPixels(img, C)`; `export heightGrid(w, h, box, heightAt, known = null)`; `export drapeImage(img, box, H, { lift = LIFT_M, origin = [0, 0, 0], rows = ROWS_PER_PX } = {})`; `export createImagery({ decode = browserDecode, doc = globalThis.document } = {})`; `lum(p)`; `finite(v)`; `ok(k)`; `o(out[pal] ||= [])`; `t(r + 0.5)`; `browserDecode(bytes)`; `origin()`; `box()`; `loadIndex()`; `request()`; `sync()`; `init(a)`; `setEnabled(on)`; `select(i)`; `mountControls(container)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Land - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/land.mjs (JavaScript, 140 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/land.mjs#L1-L140 - Page: https://code.globalgrid2050.com/explore-code/s/0146.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`) and is built from the finite step (`finite`) and the color for helper (`colorFor`). Agricultural Land Classification grade boundaries from `land.json` (cut per site by `tools/features/cut_land.py` from Natural England's open data), draped 4 cm above the ground in quiet, low-alpha earth tones: boundaries only, no fills, so the ground stays the picture. - What it does: It lists and searches its content. Defines 12 functions or classes, including setIndexSha, finite, colorFor, onBox, same. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file land.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export setIndexSha(sha)`; `export colorFor(grade, kind)`; `export onBox(a, b, box, eps = BOX_EPS)`; `export boundaryRuns(items, box, seen = new Set())`; `export allRuns(land)`; `export createLand()`; `finite(h)`; `same(u, v, s)`; `key(a, b)`; `survey(land.alc?.post1988 || [])`; `origin()`; `load()`; `n(j.alc.provisional || [])`; `localRuns()`; `init(a)`; `setEnabled(on)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file land.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Shade - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/shade.mjs (JavaScript, 199 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/shade.mjs#L1-L199 - Page: https://code.globalgrid2050.com/explore-code/s/0146.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), decodes horizon tile (`decodeHorizonTile`) and reads sun (`readSun`), covering horizon tiles and LiDAR terrain, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`), decodes horizon tile (`decodeHorizonTile`) and reads sun (`readSun`). Short hatching on ground that lies in terrain shadow for the chosen sun position. - What it does: Defines 11 functions or classes, including setIndexSha, decodeHorizonTile, horizonAt, inShadow, shadowMask. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file horizon-tiles.json. - Signatures: `export setIndexSha(sha)`; `export decodeHorizonTile(buffer)`; `export horizonAt(t, i, j, az)`; `export inShadow(t, i, j, sun)`; `export shadowMask(t, sun)`; `export hatches(t, x0, y0, sun, heightAt, { length = HATCH_M, lift = LIFT_M, origin = [0, 0, 0] } = {})`; `export readSun(s)`; `export createShade()`; `f((az % 360) + 360)`; `finite(h)`; `cellAt(x, y)`; `describe()`; `init(a)`; `setEnabled(on)`; `setSun(s)`; `lines(ctx)`; `horizonProfile(x, y)`; `horizonAngle(x, y, az)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/shade.mjs) · essay_status: readme_derived - data_contracts: in [JSON file horizon-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Slope - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/slope.mjs (JavaScript, 144 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/slope.mjs#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/0146.html#f3 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), covering slope tiles and LiDAR terrain, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`) and decodes slope tile (`decodeSlopeTile`). Short downslope tick marks (hachures) draped on the ground, drawn only where the slope exceeds a chosen limit (default 10 %). - What it does: Defines 8 functions or classes, including setIndexSha, decodeSlopeTile, classForLimit, downslope, ticks. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file slope-tiles.json. - Signatures: `export setIndexSha(sha)`; `export decodeSlopeTile(buffer)`; `export classForLimit(pct)`; `export downslope(o)`; `export ticks(t, x0, y0, minClass, heightAt, { stride = STRIDE, tick = TICK_M, lift = LIFT_M, origin = [0, 0, 0] } = {})`; `export createSlope()`; `finite(h)`; `ready()`; `init(a)`; `setEnabled(on)`; `setLimit(pct)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file slope-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Visibility - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/visibility.mjs (JavaScript, 141 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/visibility.mjs#L1-L141 - Page: https://code.globalgrid2050.com/explore-code/s/0146.html#f4 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), covering visibility tiles and LiDAR terrain, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`) and decodes visibility tile (`decodeVisibilityTile`). Faint diagonal hatching draped on the ground wherever a target of the stated height (default 3 m, a panel top) could be seen by at least one observer standing on a road or footpath (eye height 1.7 m). - What it does: It lists and searches visibility tiles and LiDAR terrain. Defines 11 functions or classes, including setIndexSha, decodeVisibilityTile, caveatFor, seen, hatch. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file visibility-tiles.json. - Signatures: `export setIndexSha(sha)`; `export decodeVisibilityTile(buffer)`; `export caveatFor(index)`; `export hatch(t, x0, y0, heightAt, { stride = STRIDE, lift = LIFT_M, origin = [0, 0, 0] } = {})`; `export createVisibility()`; `seen(c)`; `off(g)`; `z(x, y)`; `finite(h)`; `describe()`; `ready()`; `init(a)`; `setEnabled(on)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file visibility-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Water - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/water.mjs (JavaScript, 119 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/water.mjs#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0147.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`) and calculates planar distances, covering rivers, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`) and is built from the finite step (`finite`) and the origin step (`origin`). Watercourse centrelines from OS Open Rivers (`rivers.json`, cut per site by `tools/features/cut_rivers.py`), draped 5 cm above the ground, in a quiet blue. - What it does: It lists and searches rivers. Defines 6 functions or classes, including setIndexSha, finite, createWater, origin, load. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file rivers.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export setIndexSha(sha)`; `export createWater({ now = () => (globalThis.performance ? performance.now() : Date.now()) } = {})`; `finite(h)`; `origin()`; `load()`; `localLines()`; `init(a)`; `setEnabled(on)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file rivers.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Ways - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/layers/ways.mjs (JavaScript, 160 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/layers/ways.mjs#L1-L160 - Page: https://code.globalgrid2050.com/explore-code/s/0147.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets file sha (`setFileSha`) and status (`setStatus`) and calculates planar distances, covering roads, rail and motorways, using SHA-256. - What it achieves (comment): It sets file sha (`setFileSha`) and sets status (`setStatus`). Roads and railways draped on the ground. - What it does: It lists and searches roads, rail and motorways. Defines 9 functions or classes, including setFileSha, offsetLine, edgeOffsets, buildWays, finite. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: motorways. - Inputs & outputs: In: JSON file roads.json; JSON file rail.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export setFileSha(kind, sha)`; `export offsetLine(pts, d)`; `export edgeOffsets(line, kind)`; `export buildWays(doc, originEN, heightAt, { drape, origin = [0, 0, 0], step = STEP_M, lift = LIFT_M, known } = {})`; `export createWays()`; `c(t - (tracks - 1) / 2)`; `out(groups[g] ||= [])`; `finite(h)`; `now()`; `load(kind)`; `setStatus(msg)`; `init(a)`; `setData(kind, doc)`; `lines(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file roads.json; JSON file rail.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Drape - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/lib/drape.mjs (JavaScript, 99 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/lib/drape.mjs#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0147.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with dist to line (`distToLine`) and ticks along (`ticksAlong`) and calculates planar distances. - What it achieves (comment): It is built from the finite step (`finite`), the yes step (`yes`) and the densify step (`densify`). Lines laid on the ground, shared by the water, ways and land layers (through api.lib.drape) and by the cartridges (by import). - What it does: It calculates its inputs. Defines 9 functions or classes, including finite, yes, densify, cumulative, pointAt. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Site World V3 — World (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). Reached from 4 other entry points, including Layers (globalgrid2050); Layers (globalgrid2050); Substrate (globalgrid2050). - Signatures: `export finite(h)`; `export densify(pts, step)`; `export cumulative(pts)`; `export pointAt(pts, cum, s)`; `export distToLine(pts, x, y)`; `export drapeSegments(pts, heightAt, lift, o = [0, 0, 0], known = yes)`; `export drape(out, pts, heightAt, { step, lift, origin = [0, 0, 0], known = yes })`; `export ticksAlong(pts, cum, t, heightAt, { pos = null, near, spacing, tick, speed, lift, origin = [0, 0, 0], known = yes })`; `yes()`; `f(s - cum[lo])`; `phase((t * speed) % spacing + spacing)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### Earthworks - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/lib/earthworks.mjs (JavaScript, 226 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/lib/earthworks.mjs#L1-L226 - Page: https://code.globalgrid2050.com/explore-code/s/0147.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that strips volume (`stripVolume`) and calculates planar distances. - What it achieves (comment): It is built from the inv step (`inv`), the batter z helper (`batterZ`) and the daylight step (`daylight`). The one cut and fill engine for trenches, roads and pads, and the one composer that puts every dig into the ground. - What it does: It calculates its inputs. Defines 19 functions or classes, including inv, batterZ, daylight, polyArea, insidePoly. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 6 files: Trench (globalgrid2050); Site World V3 — World (globalgrid2050); Pad (globalgrid2050); Road (globalgrid2050); and 2 more. Reached from 4 other entry points, including Layers (globalgrid2050); Layers (globalgrid2050); Substrate (globalgrid2050). - Signatures: `export inv(h)`; `export batterZ(g, level, d, invCut, invFill)`; `export daylight(met, step, limit, { strict = false } = {})`; `export polyArea(pts)`; `export insidePoly(x, y, vx, vy)`; `export edgeDistance(x, y, pts)`; `export sampleCells(pts, groundAt, cell, reach, off = () => 0)`; `export volumesAt(cells, level0, invCut, invFill)`; `export balance(cells, invCut, invFill)`; `export gridIntegrate({ x0, y0, nx, ny, cell, sub = 8, split, visit })`; `export stripVolume(path, width, depth, g, { nt = 6, du = 0.25 } = {})`; `export padHeight(pad, x, y, groundAt)`; `export nearPad(p, x, y)`; `export composeGround(groundAt, { roads = [], pads = [], trenches = [] } = {})`; `j(i - 1 + n)`; `mid(lo + hi)`; `bis(s, t)`; `t((k + 0.5) / nt - 0.5)`; `inBox(b, x, y)`; `withRoads(groundAt, list)`; `withPads(groundAt, list)`; `withTrenches(groundAt, list)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 1 ### Site World V3 — World - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/lib/index.mjs (JavaScript, 13 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/lib/index.mjs#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0147.html#f5 - Synopsis: A JavaScript module in the solar design studio folder of GlobalGrid2050 that uses SHA-256. - What it achieves (comment): The shared world library as one object, and its version. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Layers (globalgrid2050); Layers (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). Reached from 2 other entry points, including Substrate (globalgrid2050); Substrate (globalgrid2050). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 4; mentioned by 0 ### Pad - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/pad.mjs (JavaScript, 268 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/pad.mjs#L1-L268 - Page: https://code.globalgrid2050.com/explore-code/s/0148.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, using ISO 668. It formats pad line (`formatPadLine`) and creates pad layer (`createPadLayer`). - What it achieves (comment): Level platforms for transformer foundations, inverter skids and battery compounds. - What it does: It calculates transformers. Defines 19 functions or classes, including frame, padFootprint, createPad, off, padGround. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers. - Downstream impact: Used directly by 2 files: Design Earthworks (globalgrid2050); Design Earthworks (globalgrid2050). - Signatures: `export frame(centre, heading = 0)`; `export padFootprint(spec)`; `export createPad(spec, groundAt)`; `export padGround(pads, groundAt)`; `export padLines(pad, groundAt, { spacing = 2, key = 'pad', version = 0 } = {})`; `export padUnits(pad)`; `export padSolids(pad)`; `export formatPadLine(pad)`; `export createPadLayer(opts = {})`; `off(x, y)`; `daylight(pad, px, py, ux, uy, groundAt)`; `F(x, y)`; `ring(z)`; `batch(part, positions)`; `corners(x, y, w, d)`; `boxEdges(c, z0, z1)`; `fmt(x, dp = 1)`; `specs()`; `init(a)`; `heightAt(x, y)`; `lines(ctx)`; `raw(x, y)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 1 ### Project UI - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/project-ui.mjs (JavaScript, 247 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/project-ui.mjs#L1-L247 - Page: https://code.globalgrid2050.com/explore-code/s/0148.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws sites and cables. It hides choice (`hideChoice`), sets tour (`setTour`) and refreshes phases (`refreshPhases`). - What it achieves (comment): Project tools, placed under the dash's essentials: the design file (Save, Open, Share, Print), Tour and Construction phases in the Design panel; Test sites in the Find panel. It responds to click, change and toggle events. - What it does: It draws sites and cables. Defines 19 functions or classes, including save, plain, mountProject, $, note. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: JSON file sites.json. - Signatures: `export mountProject(api, doc = document)`; `save(doc, name, text, type = 'application/json')`; `plain(o)`; `$(id)`; `note(msg)`; `pts(path)`; `toDoc()`; `fromDoc(d, { keep = true } = {})`; `path(it)`; `of(kind)`; `flyToDesign(d)`; `e(Math.min(...es) + Math.max(...es))`; `hideChoice()`; `shareTab()`; `offerChoice(shared, mine)`; `b(id, label, fn)`; `press(id, on, label)`; `setTour(t)`; `refreshPhases()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/project-ui.mjs) · essay_status: readme_derived - data_contracts: in [JSON file sites.json]; out []; crs []; voltages [] - Edges: uses 7 estate files (import 7); used by 0; mentioned by 1 ### Road - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/road.mjs (JavaScript, 311 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/road.mjs#L1-L311 - Page: https://code.globalgrid2050.com/explore-code/s/0149.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with A roads, using BS EN 13108-1. - What it achieves (comment): It is built from the point at helper (`pointAt`), the seg at helper (`segAt`) and the z at helper (`zAt`). An access road as a function over the ground, never a stored mesh (the sibling of `trench.mjs`). - What it does: It calculates A roads. Defines 20 functions or classes, including createRoad, pointAt, segAt, zAt, level. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: A roads. - Downstream impact: Used directly by 3 files: Boq Assumptions (globalgrid2050); Design Earthworks (globalgrid2050); Design Earthworks (globalgrid2050). - Signatures: `export createRoad(opts = {})`; `export composeRoadGround(groundAt, roads)`; `dx(bx - ax)`; `pointAt(s)`; `segAt(s)`; `zAt(s)`; `level(s)`; `r(v.g2 - v.g1)`; `designLevel(s)`; `gradeAt(s)`; `fallAt(off)`; `finishedAt(s, off)`; `edgeOfLimit(s, dir)`; `locate(x, y)`; `inBox(x, y)`; `batter(zE, d, g)`; `roadHeight(x, y, g = groundAt)`; `earthworksOf(p, gz)`; `earthworksAt(x, y, g = groundAt)`; `onRoad(x, y)`; `earthworksOn(g = groundAt)`; `jitter(i, j, k)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 1 ### Solar Design Studio — Site World V3 Page - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/index.html (HTML, 355 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/index.html#L1-L355 - Page: https://code.globalgrid2050.com/explore-code/s/0149.html#f2 - Published at: https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/ - Synopsis: A web page in GlobalGrid2050 that draws bill of quantities, cables, substations and postcodes. Published at https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/. - What it achieves (comment): Every module the first frame imports is fetched with the page, all at once, not one import level at a time; the manifest. - What it does: It draws bill of quantities, cables, substations and postcodes. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, postcodes. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Out: CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out [CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 23 estate files (modulepreload 23); used by 0; mentioned by 0 ### Design Sections - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/design-sections.mjs (JavaScript, 166 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/design-sections.mjs#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0150.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that lists and searches cables and solar. It creates sections (`createSections`), loads options (`loadOptions`) and loads plant (`loadPlant`). - What it achieves (comment): The parts of the Design panel that follow a specification, kept out of `design-ui.mjs`. Its code works with 10 MVA, 10 MW and 100 MW. It responds to click and toggle events. - What it does: It lists and searches cables and solar. Defines 10 functions or classes, including createSections, $, once, loadOptions, loadPlant. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, 400kV, 275kV, 132kV, 33kV. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: Used directly by 1 file: Design UI (globalgrid2050). - Signatures: `export createSections({ doc, origin, viewer, measuredAt, heightAt, baseHeight, assets = () => [], nearest = null, redraw, animate = () => {...)`; `$(id)`; `once(name, load)`; `loadOptions()`; `loadPlant()`; `loadBlock()`; `loadCables()`; `spec()`; `effOf(section)`; `cross(section, eff, cableOdMm)`; `extra(toLocalPts)`; `detail(b, batch)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 9 estate files (import 5, dynamic-import 4); used by 1; mentioned by 0 ### Find Mount - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/find-mount.mjs (JavaScript, 39 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/find-mount.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0150.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws projects and postcodes. - What it achieves (comment): It loads index (`loadIndex`) and is built from the mount find helper (`mountFind`) and the site near helper (`siteNear`). Find in the dash: a Renewable Energy Planning Database (REPD) project, postcode or "lat, lon"; the drone flies there. It reads `./world/data/projects.json`. It responds to keydown events. - What it does: It draws projects and postcodes. Defines mountFind, siteNear, loadIndex. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes. - Inputs & outputs: In: JSON file projects.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export mountFind({ site, attribution, origin, SITE_HALF_M, first, canvas, close, flyTo, doc = document })`; `siteNear(lat, lon)`; `loadIndex()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270439-site-world/world/find-mount.mjs) · essay_status: readme_derived - data_contracts: in [JSON file projects.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Layers - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/layers.mjs (JavaScript, 224 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/layers.mjs#L1-L224 - Page: https://code.globalgrid2050.com/explore-code/s/0150.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that loads base (`loadBase`) and lib (`loadLib`) and fetches checked (`fetchChecked`), using SHA-256. - What it achieves (comment): It loads base (`loadBase`), loads lib (`loadLib`) and imports text (`importText`). The manifest lists layers in order; each layer file is fetched, its SHA-256 compared with the manifest, and only then imported. - What it does: It fetches data. Defines 20 functions or classes, including loadBase, withBase, loadLib, no, libRefusal. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Cable Checks UI (globalgrid2050); Buffers UI (globalgrid2050); Sun Mode (globalgrid2050); Layers UI (globalgrid2050); and 3 more. - Signatures: `export loadBase()`; `export loadLib(entry, base, { get = (u, o) => fetch(u, o), load = importText } = {})`; `export libRefusal(want, lib, why)`; `export loadLayers(manifestUrl, hooks = {})`; `export statusLine(item)`; `export startLayer(item, api)`; `export makeApi(base, { invalidate = () => {}, origin = () => ({ e: 0, n: 0, id: 0 }), fetchImpl, lib = LIB } = {})`; `export normalise(text)`; `export sha256(text)`; `export sha256Bytes(bytes)`; `withBase(o)`; `no(why)`; `earlyFetch(url)`; `importText(text)`; `fetchChecked(entry)`; `start(item, entry, got)`; `fetchOne(e)`; `off(e)`; `fetchVerified(path, sha)`; `fetchJSON(path, sha)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (dynamic-import 3, import 1); used by 7; mentioned by 1 ### Terrain - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/layers/terrain.mjs (JavaScript, 114 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/layers/terrain.mjs#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0150.html#f4 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with tiles and LiDAR terrain, using SHA-256. It sets index sha (`setIndexSha`) and decodes tile (`decodeTile`). - What it achieves (comment): Ground heights from LiDAR tiles (.ght, written by the LiDAR pipeline). - What it does: It calculates tiles and LiDAR terrain. Defines setIndexSha, decodeTile, sampleTile, createTerrain. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'terrain'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file tiles.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 3 files: Wcs Terrain (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Plant Ground (globalgrid2050). Reached from 3 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050); Substrate (globalgrid2050). - Signatures: `export setIndexSha(sha)`; `export decodeTile(buffer)`; `export sampleTile(t, u, v)`; `export createTerrain()`; `init(a)`; `heightAt(x, y)`; `lines(ctx)`; `plan()` - VEDIC: DECODE (GG2050-VEDIC-000009): Solar Design Studio / 3D terrain · Computer science / Binary decoding. terrain_tile_bytes -> terrain_grid - VEDIC: SAMPLE (GG2050-VEDIC-000010): Solar Design Studio / 3D terrain · Mathematics / Bilinear interpolation. terrain_grid, local_x_m, local_y_m -> height_m_or_nan - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Tiles - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/lib/tiles.mjs (JavaScript, 134 lines) · role ingest · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/lib/tiles.mjs#L1-L134 - Page: https://code.globalgrid2050.com/explore-code/s/0150.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates tile loader (`createTileLoader`) and calculates planar distances, covering slope tiles, using SHA-256. - What it achieves (comment): It creates tile loader (`createTileLoader`) and is built from the rect dist helper (`rectDist`) and the invalidate step (`invalidate`). The tile loader every tiled layer shares (terrain, slope, flow, contours, shade, visibility, canopy). - What it does: It lists and searches slope tiles. Defines 10 functions or classes, including rectDist, createTileLoader, invalidate, place, follow. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file slope-tiles.json. - Downstream impact: Used directly by 3 files: Site World V3 — World (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). Reached from 4 other entry points, including Layers (globalgrid2050); Layers (globalgrid2050); Substrate (globalgrid2050). - Signatures: `export rectDist(x, y, x0, y0, x1, y1)`; `export createTileLoader(api, o)`; `invalidate()`; `place(t)`; `follow()`; `load()`; `wanted(x, y)`; `request(entry)`; `pump()`; `evict()`; `frame(pos)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file slope-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Lines - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/lines.mjs (JavaScript, 164 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/lines.mjs#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0151.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that splits batches (`splitBatches`), calculates planar distances and renders with WebGL. - What it achieves (comment): It splits batches (`splitBatches`) and is built from the offset of helper (`offsetOf`) and the occluder mesh helper (`occluderMesh`). Line renderer: raw WebGL 1, flat colour, lines fade with distance. It responds to webglcontextlost and webglcontextrestored events. - What it does: It draws its content. Defines 8 functions or classes, including offsetOf, splitBatches, occluderMesh, put, occluderFollower. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: WebGL/WebGPU drawing. - Downstream impact: Used directly by 2 files: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050). - Signatures: `export offsetOf(origin, eye)`; `export splitBatches(batches)`; `export occluderMesh(heightAt, x, y, { cell = 8, radius = 400, sink = 0.5, key = 'occluder', version } = {})`; `export occluderFollower({ every = 64, ...opts } = {})`; `export createLines(canvas, { onRestore = () => {} } = {})`; `put(i, j)`; `init()`; `bind(b, data)`; `setBackdrop(fn)`; `resize(nextScale)`; `draw(matrix, eye, fade, batches, target)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Plant Ground - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/plant-ground.mjs (JavaScript, 72 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/plant-ground.mjs#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0151.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates site ground (`createSiteGround`), using SHA-256. - What it achieves (comment): It creates site ground (`createSiteGround`) and is built from the start step (`start`) and the site step (`site`). The measured ground under a whole plant boundary, and the mapped water beside it. - What it does: It calculates its inputs. Defines 8 functions or classes, including createSiteGround, start, site, extent, loadFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Plant UI (globalgrid2050); Block UI (globalgrid2050). - Signatures: `export createSiteGround({ manifestUrl = './world/manifest.json', fetchImpl } = {})`; `start()`; `cfg(manifest.layers || [])`; `site()`; `extent()`; `loadFor({ e0, n0, e1, n1 }, onTile = () => {})`; `heightAt(e, n)`; `s(t.samples - 1)`; `sampler()`; `water()` - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Raycast - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/raycast.mjs (JavaScript, 317 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/raycast.mjs#L1-L317 - Page: https://code.globalgrid2050.com/explore-code/s/0151.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that builds pyramid (`buildPyramid`), calculates planar distances and renders with WebGL. It builds pyramid (`buildPyramid`) and creates raycaster (`createRaycaster`). - What it achieves (comment): Solid ground on the viewer's own GPU: a WebGL2 ray cast through the height field, drawn behind the lines. - What it does: It draws its content. Defines 14 functions or classes, including buildPyramid, basis, sunVector, createRaycaster, sh. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: WebGL/WebGPU drawing. - Downstream impact: Used directly by 1 file: Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/). - Signatures: `export buildPyramid(h, n)`; `export basis(yaw, pitch)`; `export sunVector({ azimuth, elevation })`; `export createRaycaster(gl)`; `export gatherGrid(measuredAt, cx, cy, { nodes = DEFAULTS.nodes, spacing = DEFAULTS.spacing, sliceMs = DEFAULTS.sliceMs } = {}, done, la...)`; `export mountRaycast(w, opts = {})`; `sh(t, s)`; `tex()`; `upload(g, level = 0)`; `setup(p, mode)`; `render(p)`; `readData(p)`; `half(nodes - 1)`; `slice()`; `gather()`; `stale()`; `backdrop(gl, width, height)`; `set(v)`; `setTarget(t)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Substrate - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/substrate.mjs (JavaScript, 387 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/substrate.mjs#L1-L387 - Page: https://code.globalgrid2050.com/explore-code/s/0152.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that sets origin (`setOrigin`), writes readout (`writeReadout`), opens panel (`openPanel`) and calculates planar distances (units: kV). - What it achieves (comment): It sets origin (`setOrigin`), writes readout (`writeReadout`) and opens panel (`openPanel`). The substrate: an empty world you can move around in. It reads `./world/data/attribution.json`. It responds to click, resize and close events. - What it does: It draws attribution, overhead lines (OHL), LiDAR terrain and substations. Defines 28 functions or classes, including $, fadeAt, tourPlaying, live, shown. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), LiDAR terrain, substations. - Inputs & outputs: In: JSON file attribution.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/). - Signatures: `$(id)`; `fadeAt()`; `tourPlaying()`; `live()`; `shown()`; `guarded(l, fn, fallback)`; `baseHeight(x, y)`; `measuredAt(x, y)`; `known(x, y)`; `groundSource(x, y)`; `heightAt(x, y)`; `solids()`; `invalidate({ ground = true } = {})`; `gridAssets()`; `subs(model.substations || [])`; `towers(model.lines || [])`; `setOrigin(e, n)`; `playing()`; `target()`; `moving()`; `flyTo(x, y, opts = {})`; `draw(now, intervalMs)`; `t(now - arrival.t0)`; `collect(pos)`; `chooseView(v, { arrive: fly = true } = {})` (and 7 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file attribution.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 18 estate files (import 17, dynamic-import 1); used by 1; mentioned by 0 ### Block Export - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/block-export.mjs (JavaScript, 89 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/block-export.mjs#L1-L89 - Page: https://code.globalgrid2050.com/explore-code/s/0152.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches substations, 33kV and solar, using Dijkstra and SHA-256. It loads export (`loadExport`), parses export (`parseExport`) and builds export (`buildExport`). - What it achieves (comment): Design > Solar block > Export route (GPU-checked, illustrative). Its code works with 33 kV. - What it does: It fetches substations, 33kV and solar. Defines 11 functions or classes, including hex, sha256, loadExport, parseExport, buildExport. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, 33kV, solar. - Inputs & outputs: In: JSON file index.json. Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Block UI (globalgrid2050). - Signatures: `export loadExport(site, { get = (u, o) => fetch(u, o), base = './world/sites/', digest = sha256 } = {})`; `export parseExport(j, witness = null)`; `export buildExport(p, ground = () => NaN)`; `export exportRows(p, fmt = { n0: x => String(Math.round(x)), len: m => `${Math.round(m)} m` })`; `hex(buf)`; `sha256(bytes)`; `hdd(j.hdd_candidates || [])`; `mk(key)`; `seg(G, a, b)`; `near(e, n)`; `z(e, n)`; `pair(o)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Drums - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/drums.mjs (JavaScript, 288 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/drums.mjs#L1-L288 - Page: https://code.globalgrid2050.com/explore-code/s/0153.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV and 66kV. - What it achieves (comment): It draws joint bays (`drawJointBays`) and is built from the val step (`val`) and the mass per metre helper (`massPerMetre`). Split a cable route into drum lengths, place joint bays, and produce a drum schedule. Its code works with 33 kV, 66 kV and 2 kV. - What it does: It calculates cables, 33kV and 66kV. Defines 16 functions or classes, including val, massPerMetre, barrelRule, drumCapacity, chooseDrum. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, 66kV, 2kV. - Inputs & outputs: Voltage levels named: 66kV, 33kV, 2kV. - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export massPerMetre(cable, opts = {})`; `export barrelRule(cable, rules = [])`; `export drumCapacity(drum, odM, freeboard)`; `export chooseDrum(cable, rules, opts = {})`; `export planDrums({ route, cable, rules = [], crossings = [], groundAt = null, options = {} } = {})`; `export drawJointBays(bays, cfg = {}, groundAt = null)`; `val(opts, k)`; `profile(route)`; `cores(route.cores && route.cores.length ? route.cores : [{ polyline: cl }])`; `interp(pr, arr, t)`; `u(t - d3[lo])`; `pointAt(pr, t)`; `bayProblems(pr, route, t, cfg, crossings)`; `lo(c.from !== undefined ? c.from : c.at)`; `hi(c.to !== undefined ? c.to : c.at)`; `coreLen(t0, t1)`; `need(t0, t1)`; `ends(t0 <= 0 ? cfg.terminationAllowance : cfg.jointAllowance)`; `fits(t0, t1)`; `reach(t0)`; `seg(a, b)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [66kV, 33kV, 2kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Find Mount - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/find-mount.mjs (JavaScript, 42 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/find-mount.mjs#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0153.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws projects and postcodes, using OSTN15. - What it achieves (comment): It loads index (`loadIndex`) and is built from the mount find helper (`mountFind`) and the site near helper (`siteNear`). Find in the dash: a Renewable Energy Planning Database (REPD) project, postcode or "lat, lon"; the drone flies there. It reads `./world/data/projects.json`. It responds to keydown events. - What it does: It draws projects and postcodes. Defines mountFind, siteNear, loadIndex. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes. - Inputs & outputs: In: JSON file projects.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export mountFind({ site, attribution, origin, SITE_HALF_M, first, canvas, close, flyTo, doc = document, ostn = createOstn15() })`; `siteNear(lat, lon)`; `loadIndex()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file projects.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 4 estate files (import 4); used by 0; mentioned by 0 ### Layers - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/layers.mjs (JavaScript, 226 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/layers.mjs#L1-L226 - Page: https://code.globalgrid2050.com/explore-code/s/0153.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that loads base (`loadBase`) and lib (`loadLib`) and fetches checked (`fetchChecked`), using SHA-256. - What it achieves (comment): It loads base (`loadBase`), loads lib (`loadLib`) and imports text (`importText`). The manifest lists layers in order; each layer file is fetched, its SHA-256 compared with the manifest, and only then imported. - What it does: It fetches data. Defines 20 functions or classes, including loadBase, withBase, loadLib, no, libRefusal. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Layers UI (globalgrid2050); Buffers UI (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Cmd Run (globalgrid2050); and 3 more. - Signatures: `export loadBase()`; `export loadLib(entry, base, { get = (u, o) => fetch(u, o), load = importText } = {})`; `export libRefusal(want, lib, why)`; `export loadLayers(manifestUrl, hooks = {})`; `export statusLine(item)`; `export startLayer(item, api)`; `export makeApi(base, { invalidate = () => {}, origin = () => ({ e: 0, n: 0, id: 0 }), fetchImpl, lib = LIB, towers = () => [] } = {})`; `export normalise(text)`; `export sha256(text)`; `export sha256Bytes(bytes)`; `withBase(o)`; `no(why)`; `earlyFetch(url)`; `importText(text)`; `fetchChecked(entry)`; `start(item, entry, got)`; `fetchOne(e)`; `off(e)`; `fetchVerified(path, sha)`; `fetchJSON(path, sha)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (dynamic-import 3, import 1); used by 7; mentioned by 0 ### Canopy - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/canopy.mjs (JavaScript, 217 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/layers/canopy.mjs#L1-L217 - Page: https://code.globalgrid2050.com/explore-code/s/0154.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), loads hedges (`loadHedges`) and calculates planar distances, covering canopy tiles, hedges and LiDAR terrain, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`), decodes canopy tile (`decodeCanopyTile`) and loads hedges (`loadHedges`). Hedges and tree canopies as sparse vertical ticks, each from the ground up to the real canopy height measured by the Environment Agency LiDAR (first-return surface minus bare earth). Its code works with 400 kV. - What it does: It lists and searches canopy tiles, hedges and LiDAR terrain. Defines 11 functions or classes, including setIndexSha, decodeCanopyTile, blockOffset, treeTicks, along. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain, 400kV. - Inputs & outputs: In: JSON file canopy-tiles.json; JSON file hedges.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 400kV. - Signatures: `export setIndexSha(sha)`; `export decodeCanopyTile(buffer)`; `export blockOffset(bi, bj, stride)`; `export treeTicks(t, x0, y0, heightAt, { stride = STRIDE, origin = [0, 0, 0], mask = [], maskM = TOWER_MASK_M } = {})`; `export along(pts, step)`; `export hedgeGeometry(lines, en, heightAt, { step = HEDGE_STEP, solidStep = SOLID_STEP, origin = [0, 0, 0] } = {})`; `export createCanopy()`; `x(Math.imul(bi, 73856093) ^ Math.imul(bj, 19349663))`; `finite(h)`; `statusLine()`; `loadHedges(j, dir)`; `hedges(ctx)`; `init(a)`; `setEnabled(on)`; `lines(ctx)`; `mask(typeof api.towers === 'function' ? api.towers() : [])`; `size(t.tile.samples - 1)`; `solids(ctx)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file canopy-tiles.json; JSON file hedges.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Contours - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/contours.mjs (JavaScript, 182 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/layers/contours.mjs#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0154.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha, decodes contour tile and calculates planar distances, covering contour tiles and LiDAR terrain, using Douglas-Peucker and SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`) and decodes contour tile (`decodeContourTile`). Contour lines draped 5 cm above the ground at a chosen interval (0.5, 1 or 5 m; default 1 m), with every 5 m line (an index contour) drawn slightly brighter. - What it does: It lists and searches contour tiles and LiDAR terrain. Defines 14 functions or classes, including statusLine, setIndexSha, multiple, isIndex, onInterval. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file contour-tiles.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export statusLine(tiles, credit = EA_CREDIT)`; `export setIndexSha(sha)`; `export isIndex(z)`; `export onInterval(z, iv)`; `export decodeContourTile(doc)`; `export segments(t, x0, y0, interval, heightAt, { lift = LIFT_M, step = STEP_M, origin = [0, 0, 0] } = {})`; `export labelsFor(t, x0, y0, heightAt, { lift = LIFT_M, minLen = LABEL_MIN_M } = {})`; `export createContours()`; `multiple(z, step)`; `fmt(z)`; `drape(h, x, y, lift)`; `ivKey(iv)`; `ready()`; `init(a)`; `setEnabled(on)`; `setInterval(m)`; `setLabels(on)`; `lines(ctx)`; `labels(ctx)`; `d(l)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file contour-tiles.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Flow - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/flow.mjs (JavaScript, 352 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/layers/flow.mjs#L1-L352 - Page: https://code.globalgrid2050.com/explore-code/s/0155.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), decodes hollow tile (`decodeHollowTile`), loads index (`loadIndex`) and calculates planar distances, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`), decodes flow tile (`decodeFlowTile`) and decodes hollow tile (`decodeHollowTile`). The natural drainage lines: every cell whose log-accumulation class is at or above a chosen class, drawn as a short downhill segment to the cell it drains into (D8), draped just above the ground, brighter as the flow grows. - What it does: It lists and searches flow tiles and LiDAR terrain. Defines 24 functions or classes, including setIndexSha, decodeFlowTile, fits, looksEsri, colorFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file flow-tiles.json. - Signatures: `export setIndexSha(sha)`; `export decodeFlowTile(buffer, { encoding } = {})`; `export colorFor(c, minClass, maxClass)`; `export segments(t, x0, y0, minClass, heightAt, { lift = LIFT_M, origin = [0, 0, 0] } = {})`; `export decodeHollowTile(buffer)`; `export hollowMask(t, minCells = MIN_HOLLOW_CELLS)`; `export hollowOutline(t, x0, y0, heightAt, { minCells = MIN_HOLLOW_CELLS, lift = HOLLOW_LIFT_M, origin = [0, 0, 0], openEdges = false } = {})`; `export createFlow()`; `fits(s, h)`; `looksEsri(raw)`; `inside(i, j)`; `seg(ax, ay, bx, by)`; `finite(h)`; `rectDist(x, y, x0, y0, x1, y1)`; `now()`; `say(s)`; `loadIndex()`; `loadHollows()`; `ready()`; `empty(t)`; `wanted(x, y)`; `request(entry)`; `pump()`; `evict()`; `init(a)` (and 3 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file flow-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Shade - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/layers/shade.mjs (JavaScript, 199 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/layers/shade.mjs#L1-L199 - Page: https://code.globalgrid2050.com/explore-code/s/0155.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that sets index sha (`setIndexSha`), decodes horizon tile (`decodeHorizonTile`) and reads sun (`readSun`), covering horizon tiles and LiDAR terrain, using SHA-256. - What it achieves (comment): It sets index sha (`setIndexSha`), decodes horizon tile (`decodeHorizonTile`) and reads sun (`readSun`). Short hatching on ground that lies in terrain shadow for the chosen sun position. - What it does: Defines 11 functions or classes, including setIndexSha, decodeHorizonTile, horizonAt, inShadow, shadowMask. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file horizon-tiles.json. - Signatures: `export setIndexSha(sha)`; `export decodeHorizonTile(buffer)`; `export horizonAt(t, i, j, az)`; `export inShadow(t, i, j, sun)`; `export shadowMask(t, sun)`; `export hatches(t, x0, y0, sun, heightAt, { length = HATCH_M, lift = LIFT_M, origin = [0, 0, 0] } = {})`; `export readSun(s)`; `export createShade()`; `f((az % 360) + 360)`; `finite(h)`; `cellAt(x, y)`; `describe()`; `init(a)`; `setEnabled(on)`; `setSun(s)`; `lines(ctx)`; `horizonProfile(x, y)`; `horizonAngle(x, y, az)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file horizon-tiles.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Phases Design - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/phases-design.mjs (JavaScript, 84 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/phases-design.mjs#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0155.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar. - What it achieves (comment): It is built from the items from store helper (`itemsFromStore`) and the items from design helper (`itemsFromDesign`). Derive construction items from a design. - What it does: It calculates cables and solar. Defines itemsFromStore, itemsFromDesign. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar. - Downstream impact: Used directly by 1 file: Project UI (globalgrid2050). - Signatures: `export itemsFromStore(doc, opts = {})`; `export itemsFromDesign(design, opts = {})`; `roads(opts.roads || [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Phases - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/phases.mjs (JavaScript, 215 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/phases.mjs#L1-L215 - Page: https://code.globalgrid2050.com/explore-code/s/0156.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that compiles plan (`compilePlan`), validates plan (`validatePlan`) and creates timeline (`createTimeline`), covering cables. - What it achieves (comment): It compiles plan (`compilePlan`), validates plan (`validatePlan`) and creates timeline (`createTimeline`). Construction sequence over the design document. - What it does: It lists and searches cables. Defines 20 functions or classes, including rank, list, issue, readItems, skip. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 1 file: Project UI (globalgrid2050). - Signatures: `export compilePlan(items, phases = DEFAULT_PHASES)`; `export validatePlan(items, phases = DEFAULT_PHASES)`; `export createTimeline(items, phases = DEFAULT_PHASES)`; `rank(kind, state)`; `list(v)`; `issue(severity, code, message, extra = {})`; `readItems(items, issues)`; `skip(it, what)`; `wholeSteps(p, idx, issues)`; `expand(phases, byId, issues)`; `rules(op, it, byId, state, allRoads)`; `at(id)`; `kindOf(id)`; `reached(id, s)`; `need(id, s, code, why)`; `roadsFor(x)`; `clamp(s)`; `phaseAt(step)`; `stateAt(step)`; `label(step)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Raycast - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/raycast.mjs (JavaScript, 326 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/raycast.mjs#L1-L326 - Page: https://code.globalgrid2050.com/explore-code/s/0156.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that builds pyramid (`buildPyramid`), calculates planar distances and renders with WebGL. It builds pyramid (`buildPyramid`) and creates raycaster (`createRaycaster`). - What it achieves (comment): Solid ground on the viewer's own GPU: a WebGL2 ray cast through the height field, drawn behind the lines. - What it does: It draws its content. Defines 14 functions or classes, including buildPyramid, basis, sunVector, createRaycaster, sh. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: WebGL/WebGPU drawing. - Downstream impact: Used directly by 1 file: Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `export buildPyramid(h, n)`; `export basis(yaw, pitch)`; `export sunVector({ azimuth, elevation })`; `export createRaycaster(gl)`; `export gatherGrid(measuredAt, cx, cy, { nodes = DEFAULTS.nodes, spacing = DEFAULTS.spacing, sliceMs = DEFAULTS.sliceMs } = {}, done, la...)`; `export mountRaycast(w, opts = {})`; `sh(t, s)`; `tex()`; `upload(g, level = 0)`; `setup(p, mode)`; `render(p)`; `readData(p)`; `half(nodes - 1)`; `slice()`; `gather()`; `stale()`; `backdrop(gl, width, height)`; `set(v)`; `setTarget(t)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Tour - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/tour.mjs (JavaScript, 291 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/tour.mjs#L1-L291 - Page: https://code.globalgrid2050.com/explore-code/s/0157.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates recorder (`createRecorder`) and player (`createPlayer`), using SHA-256. It creates recorder (`createRecorder`) and creates player (`createPlayer`). - What it achieves (comment): Tours: record a walk or a drone flight, play it back smoothly, save it, and present it. - What it does: It calculates its inputs. Defines 24 functions or classes, including fileRefusal, mm, rad, ms, turn. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Project UI (globalgrid2050). - Signatures: `export fileRefusal(size)`; `export keyframe(t, origin, pose, { caption = '', hold = 0 } = {})`; `export createRecorder({ kind = 'walk', name = '', every = 0.25 } = {})`; `export makeTour({ kind = 'walk', name = '', keyframes })`; `export sha256(text)`; `export exportTour(tour)`; `export importTour(text)`; `export compile(tour)`; `export gridPoseAt(line, t)`; `export poseAt(line, t, origin)`; `export captionAt(line, t, { showFor = 6 } = {})`; `export createPlayer(tour, { gate, getOrigin, apply = () => {}, onCaption = () => {}, onEnd = () => {}, clock = () => performance.now(), s...)`; `export present(text, { captionEl, onCaption, onExit = () => {}, autoplay = true, ...opts } = {})`; `mm(x)`; `rad(x)`; `ms(x)`; `turn(from, to)`; `d(to - from)`; `push(k)`; `sample(t, origin, pose)`; `mark(caption, hold = 0)`; `stop()`; `pick(o, keys)`; `body(tour)`; `hermite(a, b, u, h, j)` (and 10 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Block MV - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/block-mv.mjs (JavaScript, 137 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/block-mv.mjs#L1-L137 - Page: https://code.globalgrid2050.com/explore-code/s/0157.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar, transformers and cables, using IEC 60287 and IEC 60949. - What it achieves (comment): It is built from the MV chain helper (`mvChain`), the col x helper (`colX`) and the path step (`path`). Stations of the solar block chained on 33kV feeders to the MV board, the grid transformer(s) and the connection, laid out and sized from the load. Its code works with 33 kV and 400 kV. - What it does: It calculates solar, transformers and cables. Defines 12 functions or classes, including mvChain, colX, up, path, groupOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, transformers, cables, 400kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 33kV. - Downstream impact: Used directly by 3 files: Cmd Trench (globalgrid2050); Block Build (globalgrid2050); Block UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export mvChain({ stations = 4, stationMVA = 9.856, pocKv = 400, topology = 'radial', layout = MV_LAYOUT, ...opts } = {})`; `fieldE(cols - 1)`; `colX(col)`; `up(s)`; `path(A, B)`; `groupOf(h)`; `size(mva, h)`; `drop()`; `dropWith(a)`; `side(hs, sts)`; `lineOf(key)`; `off(key, lane)`; `xy(key, v, lane)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV] - Edges: uses 4 estate files (import 4); used by 3; mentioned by 0 ### Cmd Anim - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/cmd-anim.mjs (JavaScript, 158 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/cmd-anim.mjs#L1-L158 - Page: https://code.globalgrid2050.com/explore-code/s/0157.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws on a canvas, covering cables. - What it achieves (comment): It creates anim (`createAnim`) and is built from the size step (`size`) and the frame step (`frame`). Short drawn explanations beside the typed bar. - What it does: It draws cables. Defines 10 functions or classes, including f2, createAnim, size, frame, label. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: Out: canvas drawing. - Downstream impact: Used directly by 1 file: Cmd UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export createAnim(canvas, { onFrame = () => {} } = {})`; `f2(v)`; `size()`; `frame(now)`; `play(kind, a, b)`; `stop()`; `label(ctx, s, x, y, color = C.text, align = 'left')`; `setup(ctx)`; `line(ctx, pts, color, w = 1.5, dash = [])`; `tiltOf(d)`; `tilt(ctx, W, H, a, b, t)`; `cx(x0 + x1)`; `rows(ctx, W, H, a, b, t)`; `trench(ctx, W, H, a, b, t)`; `X(m)`; `loop(ctx, W, H, a, b, t)`; `draw(poly, color, alpha, k)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Design Earthworks - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/design-earthworks.mjs (JavaScript, 292 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/design-earthworks.mjs#L1-L292 - Page: https://code.globalgrid2050.com/explore-code/s/0158.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to local pts (`toLocalPts`) and calculates planar distances (units: kV, mm²), covering cables, solar, transformers and LiDAR terrain. - What it achieves (comment): It creates earthworks (`createEarthworks`) and is built from the to local pts helper (`toLocalPts`) and the handles step (`handles`). Earthworks tools in the Design panel: access road, equipment pad, perimeter fence, pile row and drilled crossing, plus the drum schedule for the last cable and the bill of quantities for the whole design. - What it does: It draws cables, solar, transformers and LiDAR terrain. Defines 22 functions or classes, including createEarthworks, $, toLocalPts, handles, option. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, transformers, LiDAR terrain. - Downstream impact: Used directly by 1 file: Design UI (globalgrid2050). - Signatures: `export createEarthworks({ doc, origin, baseHeight, groundVersion, cables, catalogue, designItems, heightAt, extraItems = () => [], groundRow ...)`; `$(id)`; `toLocalPts(path)`; `handles(tool)`; `option(tool)`; `chosenCable()`; `crossingCable(id = chosenCable())`; `make(kind, opt, pts, ground, cableId)`; `ux(b[0] - a[0])`; `build()`; `of(kind, g)`; `groundFor(kind)`; `ground(base)`; `rowsOf(kind, d, draft, pts = [])`; `measure(kind, pts)`; `finish(kind, pts)`; `summary(kind, d)`; `batch(key, v, pos, color)`; `batches()`; `drumSchedule()`; `boqDoc()`; `billOfQuantities()`; `choose(tool)`; `replace(list = [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 12 estate files (import 12); used by 1; mentioned by 0 ### Hdd - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/hdd.mjs (JavaScript, 384 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/hdd.mjs#L1-L384 - Page: https://code.globalgrid2050.com/explore-code/s/0158.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV and 132kV, using BS 7870-4. - What it achieves (comment): It compares crossing (`compareCrossing`) and is built from the cable bend multiple helper (`cableBendMultiple`) and the duct for cable helper (`ductForCable`). A horizontal directional drill (HDD) crossing under a road, watercourse or hedge. Its code works with 33 kV and 132 kV. - What it does: It calculates cables, 33kV and 132kV. Defines 16 functions or classes, including cableBendMultiple, ductForCable, clamp, lineOf, side. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, 132kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export cableBendMultiple(voltageKv = 33, method = 'duct')`; `export ductForCable({ odMm, voltageKv = 33, cores = 3, circuits = 1 } = {})`; `export designBore(opts)`; `export cablePull(samples, cable = CABLE_ASSUMED)`; `export compareCrossing(opts)`; `clamp(v, a, b)`; `lineOf(from, to)`; `side(zg, zb, a, R)`; `tangent(drop - arcDrop)`; `aE(opts.entryAngleDeg ?? 12)`; `zAt(s)`; `pointAt(s)`; `inRange(a, [lo, hi])`; `pitOf(s, name)`; `noLayout(base, note)`; `rootOut(f, start, end, valid = () => true)`; `h(s)`; `run(pts)`; `allowable(PULL_STRESS[c.material] ?? PULL_STRESS.al)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 33kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Labels - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/labels.mjs (JavaScript, 60 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/labels.mjs#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0159.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 33kV and cables. - What it achieves (comment): It is built from the circuits step (`circuits`), the voltage step (`voltage`) and the basis step (`basis`). Human words for what the page shows. Its code works with 33 kV, 1.5 kV and 132 kV. - What it does: It calculates 33kV and cables. Defines 9 functions or classes, including circuits, voltage, basis, sectionLabel, conductorLabel. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, cables, 132kV, 1.5kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV, 1.5kV. - Downstream impact: Used directly by 2 files: Design UI (globalgrid2050); First Showing (globalgrid2050). - Signatures: `export sectionLabel(s)`; `export conductorLabel(c)`; `export cableLabel(c)`; `export pressWord(coarse)`; `export distanceLabel(m)`; `export designHint(tool, view, n, press)`; `circuits(n)`; `voltage(s)`; `basis(s)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 33kV, 1.5kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Layers UI - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/layers-ui.mjs (JavaScript, 105 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/layers-ui.mjs#L1-L105 - Page: https://code.globalgrid2050.com/explore-code/s/0159.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that reads overhead lines (OHL). It writes footer (`writeFooter`), fits footer (`fitFooter`) and shows range (`showRange`). - What it achieves (comment): Page wiring for the Layers panel. It responds to resize and close events. - What it does: It loads overhead lines (OHL). Defines 8 functions or classes, including panelLayers, footerFor, applyOn, mountLayersUi, writeFooter. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Signatures: `export panelLayers(items)`; `export footerFor(items, on, attribution, year)`; `export applyOn(items, on)`; `export mountLayersUi({ items, host, footer, attribution, invalidate = () => {}, on = DEFAULT_ON, year, onChange = () => {} } = {})`; `writeFooter(ids)`; `fitFooter()`; `showRange(ids)`; `refresh()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 5 estate files (import 5); used by 0; mentioned by 0 ### Print Sheet - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/print-sheet.mjs (JavaScript, 223 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/print-sheet.mjs#L1-L223 - Page: https://code.globalgrid2050.com/explore-code/s/0159.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that clips def (`clipDef`) and draws SVG graphics, covering solar, overhead lines (OHL) and cables, using Helmert. - What it achieves (comment): It builds sheet (`buildSheet`) and is built from the legend label helper (`legendLabel`) and the data date helper (`dataDate`). The whole print sheet as one SVG string: plan, current view, north arrow, scale bar, National Grid references, title block and the credit for exactly the loaded layers. - What it does: It draws solar, overhead lines (OHL) and cables. Defines 14 functions or classes, including legendLabel, dataDate, sheetDate, f, t. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, overhead lines (OHL), cables. - Inputs & outputs: Out: SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export legendLabel(id)`; `export dataDate(g)`; `export sheetDate(date)`; `export buildSheet(opts)`; `export legendOf(batches)`; `f(v)`; `t(x, y, s, size, extra = '')`; `rect(r, extra = '')`; `clipDef(id, r)`; `stroke(p, w)`; `tag(x, y, s, size = 2.1, extra = '')`; `dateYear(date)`; `viewerMark(x, y, yaw)`; `titleBlock(L, { name, dateText, frame, centreRef, eyeRef, generation, tn, legend: drawn })`; `colW(r.w - 5)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Project UI - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/project-ui.mjs (JavaScript, 255 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/project-ui.mjs#L1-L255 - Page: https://code.globalgrid2050.com/explore-code/s/0159.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws sites and cables. It hides choice (`hideChoice`), sets tour (`setTour`) and refreshes phases (`refreshPhases`). - What it achieves (comment): Project tools, placed under the dash's essentials: the design file (Save, Open, Share, Print), Tour and Construction phases in the Design panel; Test sites in the Find panel. It responds to click, change and toggle events. - What it does: It draws sites and cables. Defines 19 functions or classes, including save, plain, mountProject, $, note. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: JSON file sites.json. - Signatures: `export mountProject(api, doc = document)`; `save(doc, name, text, type = 'application/json')`; `plain(o)`; `$(id)`; `note(msg)`; `pts(path)`; `toDoc()`; `fromDoc(d, { keep = true } = {})`; `path(it)`; `of(kind)`; `flyToDesign(d)`; `e(Math.min(...es) + Math.max(...es))`; `hideChoice()`; `shareTab()`; `offerChoice(shared, mine)`; `b(id, label, fn)`; `press(id, on, label)`; `setTour(t)`; `refreshPhases()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file sites.json]; out []; crs []; voltages [] - Edges: uses 7 estate files (import 7); used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Calc - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-calc.mjs (JavaScript, 136 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/sld-calc.mjs#L1-L136 - Page: https://code.globalgrid2050.com/explore-code/s/0160.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, using IEC 60909. It sets taps (`setTaps`) and checks graph (`checkGraph`). - What it achieves (comment): The tree: BFS from GRID over closed branches. - What it does: It calculates transformers. Defines 7 functions or classes, including treeOf, solve, iBaseKA, readouts, setTaps. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers. - Downstream impact: Used directly by 4 files: Single-Line Diagram (SLD) Graph (globalgrid2050); Hud Drops (globalgrid2050); Single-Line Diagram (SLD) Follow (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050). - Signatures: `export treeOf(g)`; `export solve(g, { tol = 1e-12, maxIter = 100 } = {})`; `export readouts(g, sol)`; `export setTaps(g)`; `export tracePath(g, sol, id)`; `export checkGraph(g)`; `iBaseKA(sb, kv)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Single-Line Diagram (SLD) Connect - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-connect.mjs (JavaScript, 55 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/sld-connect.mjs#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0160.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, substations, overhead lines (OHL) and 132kV. - What it achieves (comment): It is built from the nearest step (`nearest`), the kV for MW helper (`kvForMW`) and the choose connection helper (`chooseConnection`). Which grid connection a plant gets, from its size and what is near it. Its code works with 132 kV, 400 kV and 275 kV. - What it does: It calculates cables, substations, overhead lines (OHL) and 132kV. Defines nearest, km, kvForMW, chooseConnection. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, overhead lines (OHL), 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: Used directly by 3 files: Cmd Trench (globalgrid2050); Block UI (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export kvForMW(mw, { minKv = 0, rules = {} } = {})`; `export chooseConnection({ mw, at, subs = [], towers = [], kv: fixed = null, minKv = 0, rules = {} })`; `nearest(list, at, ok)`; `km(m)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Single-Line Diagram (SLD) Graph - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-graph.mjs (JavaScript, 128 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/sld-graph.mjs#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0160.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables, overhead lines (OHL) and 33kV. - What it achieves (comment): It builds graph (`buildGraph`) and is built from the node step (`node`) and the branch step (`branch`). The network graph behind the single-line diagram, the 3D symbols, the readouts and Follow. Its code works with 33 kV, 0.8 kV and 100 MVA. - What it does: It calculates transformers, cables, overhead lines (OHL) and 33kV. Defines 11 functions or classes, including zb, buildGraph, node, branch, bus. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, overhead lines (OHL), 33kV, 0.8kV. - Inputs & outputs: Voltage levels named: 33kV, 0.8kV. - Downstream impact: Used directly by 2 files: Hud Drops (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050). - Signatures: `export buildGraph(src, opts = {})`; `export graphJson(g)`; `zb(kv, sb)`; `node(id, kind, kv, label, extra = {})`; `branch(id, from, to, kind, kv, z, extra = {})`; `bus()`; `cablePu(area, L, kv, g = 1)`; `txPu(pct, xr, mva)`; `rmuOf(id)`; `kvLvOf(p)`; `round(x)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 0.8kV] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Plant - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-plant.mjs (JavaScript, 128 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/sld-plant.mjs#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0160.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, solar and cables, using IEC 60909. - What it achieves (comment): It sizes chain (`sizeChain`) and is built from the spread step (`spread`) and the station split helper (`stationSplit`). A whole solar plant as a single-line network, from generic rules, for the diagram and the load flow. Its code works with 20 kA, 400 kV and 400 kVA. - What it does: It calculates transformers, solar and cables. Defines 8 functions or classes, including up, spread, stationSplit, sldPlant, check. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, solar, cables, 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Signatures: `export stationSplit(inverters, perMax)`; `export sldPlant(opts = {})`; `up(steps, v)`; `spread(total, parts)`; `check(name, value, max, min = -Infinity)`; `sizeChain({ id, section, chain, head, group, p, opt, minArea })`; `tech(sizeFor(loadMVA / p.maxUtilisation, { ...opt, minArea, groupFactor: g }) || { area: SIZES.at(-1) })`; `side(hs)`; `drop()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Source - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-source.mjs (JavaScript, 91 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271552-site-world/world/sld-source.mjs#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0160.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables, solar and 33kV. - What it achieves (comment): It is built from the poly len helper (`polyLen`), the HV of helper (`hvOf`) and the source from block helper (`sourceFromBlock`). The plant in the world as a network source for `sld-graph.mjs`, with national-grid positions. Its code works with 33 kV, 400 kV and 5 MVA. - What it does: It calculates transformers, cables, solar and 33kV. Defines 6 functions or classes, including polyLen, hvOf, sourceFromBlock, sourceFromLayout, hops. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, solar, 33kV, 400kV. - Inputs & outputs: Voltage levels named: 400kV, 33kV. - Downstream impact: Used directly by 2 files: Hud Drops (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050). - Signatures: `export sourceFromBlock(built, anchor, conn = null)`; `export sourceFromLayout(r, conn = null, { acSpacingM = 25 } = {})`; `polyLen(pts)`; `hvOf(conn, kvDefault, plantAt, assumedM = 1500)`; `hops(e ? e.hops : f.segments.map((sg, k) => ({ from: k ? f.chain[k - 1].id : f.board, to: f.chain[k].id, areaMm2: sg.area,...)`; `txOf(b)`; `grid(gts.length ? gts : [{ id: 'GT1', rating: { mva: Math.max(20, tpl.params.targetMW * 1.1) } }])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Block Build - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/block-build.mjs (JavaScript, 253 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/block-build.mjs#L1-L253 - Page: https://code.globalgrid2050.com/explore-code/s/0161.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, transformers, overhead lines (OHL) and solar. - What it achieves (comment): It builds block (`buildBlock`) and is built from the group step (`group`) and the put step (`put`). The owner's 10MVA solar block (`station.mjs`, ported from his explorer) placed on the measured ground, with the 33kV rings to the grid (`block-mv.mjs`), as line groups ordered for the build sequence. Its code works with 10 MVA, 33 kV and 5 MVA. - What it does: It calculates cables, transformers, overhead lines (OHL) and solar. Defines 25 functions or classes, including group, put, seg, poly, mark. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, overhead lines (OHL), solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Block UI (globalgrid2050). - Signatures: `export padEarthworks(g, e0, n0, e1, n1, level = null)`; `export buildBlock({ anchor, ground, fallback = () => NaN, stations = 4, pocKv = 400, towers = [], gpuPads = [], topology = 'radial', co...)`; `export overheadClearance([E, N], stations, towers)`; `export blockCounts(b)`; `group()`; `put(G, p)`; `seg(G, a, b)`; `poly(G, pts)`; `mark(G)`; `box(G, [x, y, z], w, d, h)`; `median(a)`; `pileTotals(P)`; `g(e, n)`; `zLocal(x)`; `baseOf(n, y)`; `onTable(n, x, y)`; `gq(e, n)`; `at(x, y, z)`; `edge(off, dz)`; `padOf(S)`; `buried(a, b)`; `lift(pts, table, inv, endZ)`; `odMv(a)`; `inside(poly, x, y)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 7 estate files (import 7); used by 1; mentioned by 0 ### Block GPU - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/block-gpu.mjs (JavaScript, 111 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/block-gpu.mjs#L1-L111 - Page: https://code.globalgrid2050.com/explore-code/s/0161.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches cables and solar, using SHA-256. It loads prototype (`loadPrototype`), parses prototype (`parsePrototype`) and builds feed (`buildFeed`). - What it achieves (comment): Design > Solar block > GPU-checked placement. - What it does: It fetches cables and solar. Defines 13 functions or classes, including hex, sha256, loadPrototype, parsePrototype, flat. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar. - Inputs & outputs: In: JSON file index.json. - Downstream impact: Used directly by 1 file: Block UI (globalgrid2050). - Signatures: `export loadPrototype(site, { get = (u, o) => fetch(u, o), base = './world/sites/', digest = sha256 } = {})`; `export parsePrototype(layout, sequence, receipt = null)`; `export buildFeed(p, ground)`; `export countAt(G, h)`; `export feedStage(p, h)`; `hex(buf)`; `sha256(bytes)`; `tables(layout.tables || [])`; `flat(g)`; `z(q, lift)`; `add(key, t1)`; `seg(G, a, b)`; `line(G, pts, lift)`; `post(G, q, h)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Block UI - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/block-ui.mjs (JavaScript, 363 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/block-ui.mjs#L1-L363 - Page: https://code.globalgrid2050.com/explore-code/s/0162.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws GPU compounds, cables, 33kV and overhead lines (OHL). It creates block (`createBlock`), places gpu (`placeGpu`) and shows export (`showExport`). - What it achieves (comment): Design > Solar block. Places the owner's 10MVA station block (`block-build.mjs`) on the measured ground in front of the viewer, chains the stations on 33kV rings to the grid, and plays the build sequence (`block-sequence.mjs`). Its code works with 33 kV, 10 MVA and 132 kV. It reads `./world/data/modules.json`. It responds to change and click events. - What it does: It draws GPU compounds, cables, 33kV and overhead lines (OHL). Defines 45 functions or classes, including n0, createBlock, $, say, local. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, overhead lines (OHL), 132kV. - Inputs & outputs: In: JSON file modules.json; JSON file gpu-compounds.json. Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Design Sections (globalgrid2050). - Signatures: `export createBlock({ doc, origin, viewer, measuredAt, heightAt, towers = () => [], redraw, animate = () => {} })`; `n0(x)`; `$(id)`; `say(msg, warn = false)`; `local(e, n)`; `catalogue()`; `formMps()`; `formTmin()`; `design(params = state.params)`; `gpuPads()`; `m(await ground.start())`; `offerStaged()`; `staged(await ground.start().catch(() => null))`; `has(dir)`; `place(params = {})`; `measured(e, n)`; `fallback(e, n)`; `placeGpu()`; `site(await ground.start())`; `showExport(on = !state.exp)`; `exportBatches()`; `gpuCounts()`; `gpuHour()`; `gpuBatches()`; `showGpu({ p, feed })` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file modules.json; JSON file gpu-compounds.json]; out []; crs []; voltages [132kV, 33kV] - Edges: uses 13 estate files (import 9, dynamic-import 4); used by 1; mentioned by 0 ### Boq - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/boq.mjs (JavaScript, 391 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/boq.mjs#L1-L391 - Page: https://code.globalgrid2050.com/explore-code/s/0163.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to CSV (`toCsv`) and calculates planar distances, covering cables, overhead lines (OHL) and solar, using IEC 60287. - What it achieves (comment): It is built from the num step (`num`), the fmt step (`fmt`) and the plan length helper (`planLength`). A bill of quantities from a design document. Its code works with 33 kV. - What it does: It lists and searches cables, overhead lines (OHL) and solar. Defines 23 functions or classes, including num, fmt, planLength, bendCount, lengthOf. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'boq'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, overhead lines (OHL), solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Design Earthworks (globalgrid2050). - Signatures: `export buildBoq(doc, { sections = null, cables = null, rates = null, currency = null } = {})`; `export toCsv(boq)`; `num(v)`; `fmt(x, dp = 2)`; `planLength(path)`; `bendCount(path)`; `cr(b[0] - a[0])`; `dot(b[0] - a[0])`; `lengthOf(item)`; `weakest(...s)`; `armouredOf(id)`; `cableRows(item, ctx, add, skip)`; `trenchRows(item, ctx, add, skip)`; `sec(ctx.sections?.sections || [])`; `roadRows(item, ctx, add, skip)`; `padRows(item, ctx, add, skip)`; `fenceRows(item, ctx, add, skip)`; `hddRows(item, ctx, add, skip)`; `pileRows(item, ctx, add, skip)`; `ohlRows(item, ctx, add)`; `n(k)`; `trenchPlanRows(item, ctx, add)`; `rateOf(rates, code, unit)`; `skip(item, reason)`; `add(row, item)` (and 1 more) - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Buffers UI - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/buffers-ui.mjs (JavaScript, 61 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/buffers-ui.mjs#L1-L61 - Page: https://code.globalgrid2050.com/explore-code/s/0163.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches cables, using SHA-256. - What it achieves (comment): It loads world files (`loadWorldFiles`) and is built from the world from helper (`worldFrom`) and the drawn items helper (`drawnItems`). Page wiring for the Buffers layer. - What it does: It fetches cables. Defines 8 functions or classes, including worldFrom, drawnItems, local, loadWorldFiles, cfg. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Signatures: `export worldFrom({ grid, rivers, roads, hedges } = {})`; `export drawnItems(design, origin)`; `export loadWorldFiles(manifestUrl, api = null)`; `export mountBuffers({ layer, origin, design, designVersion = null, load = () => loadWorldFiles('./world/manifest.json') } = {})`; `local(path)`; `cfg(id)`; `get(c)`; `refresh(on)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Cmd Derive - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cmd-derive.mjs (JavaScript, 99 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/cmd-derive.mjs#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0163.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and 33kV. - What it achieves (comment): It is built from the noon sun helper (`noonSun`), the row shade helper (`rowShade`) and the formation of helper (`formationOf`). The quantities a typed command changes, worked out from its inputs. Its code works with 33 kV. - What it does: It calculates cables and 33kV. Defines 12 functions or classes, including noonSun, rowShade, formationOf, cableFor, bendOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Cmd Model (globalgrid2050); Cmd Run (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export noonSun(latDeg)`; `export rowShade({ rise, depth, pitch, elevDeg })`; `export formationOf(formation, od)`; `export cableFor(catalogue, size, metal = 'al')`; `export bendOf(catalogue, cable)`; `export trenchOf({ depth, width, formation, od })`; `export shoelace(pts)`; `export stringLoops({ mps, moduleShortM = 1.134, moduleLongM = 2.384, moduleGapM = 0.02 }, a = LOOP_ASSUMED)`; `export coldVoc({ voc, coeff = -0.0025, minC = -10 }, n)`; `export soilEffect(here)`; `rules(catalogue?.rules || [])`; `m(when)`; `cap(s)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Cmd Grammar Earth - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cmd-grammar-earth.mjs (JavaScript, 60 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/cmd-grammar-earth.mjs#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0163.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 covering cables. - What it achieves (comment): It parses earth (`parseEarth`) and is built from the is num helper (`isNum`) and the is thermal soil helper (`isThermalSoil`). The earthing words of the command line (earthing, earth, soil rho, bonding), split out of `cmd-grammar.mjs` to keep each cartridge under 400 lines. - What it does: It lists and searches cables. Defines isNum, isThermalSoil, parseEarth, has, chk. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 1 file: Cmd Grammar (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export isThermalSoil(rest)`; `export parseEarth(v, rest, bad, eg)`; `isNum(t)`; `has(w)`; `chk(k, x)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Earth Draw - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/earth-draw.mjs (JavaScript, 97 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/earth-draw.mjs#L1-L97 - Page: https://code.globalgrid2050.com/explore-code/s/0164.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, substations and cables. - What it achieves (comment): It is built from the group step (`group`), the put step (`put`) and the seg step (`seg`). The earthing layer in 3D, as line groups in national-grid metres (the same form as `sld-symbols.mjs`). Its code works with 33 kV. - What it does: It calculates transformers, substations and cables. Defines 14 functions or classes, including group, put, seg, dashed, at. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, substations, cables, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Earth Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export earthGroups(s, { block, groundAt = () => 0, inverters = [] } = {})`; `group()`; `put(G, p)`; `seg(G, a, b)`; `dashed(G, a, b, [on, off] = DASH)`; `at(t)`; `buried(G, [e0, n0], [e1, n1], depth, groundAt, step = 6)`; `rectLoop(G, [e0, n0, e1, n1], draw)`; `rod(G, [e, n, z], L)`; `drop(G, [e, n], zTop, zBot)`; `ringMark(G, [e, n, z], r = 0.8)`; `boxMark(G, [e, n, z], s = 0.6)`; `lay(Gx, a, b)`; `flatC(a, b)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Earth Grid - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/earth-grid.mjs (JavaScript, 393 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/earth-grid.mjs#L1-L393 - Page: https://code.globalgrid2050.com/explore-code/s/0164.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that solves mo (`solveMoM`), checks rows (`checkRows`) and calculates planar distances, covering substations, using IEC 61936-1 and IEC 60949. - What it achieves (comment): It solves mo (`solveMoM`) and checks rows (`checkRows`). Station and substation earth grids (world cartridge, loaded by `earth-mount.mjs` on the first earthing command). - What it does: It lists and searches substations. Defines 31 functions or classes, including soilFromGround, pick, mk, wennerRho, discPairPdf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Earth Study (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export soilFromGround(here)`; `export wennerRho(aM, ohms)`; `export csSeries(rho, rhoS, hS, b = 0.08)`; `export csApprox(rho, rhoS, hS)`; `export tolerable({ rhoSurf, Cs = 1, ts, bodyKg = 50, curve = null })`; `export decrement(tf, xOverR = 10, f = 50)`; `export kAdiabatic(metal = 'Cu', thetaI = 30, thetaF = 250)`; `export conductorSize({ I, t, metal = 'Cu', thetaI = 30, thetaF = 250, minMm2 = 50 })`; `export gridGeometry(g)`; `export rgSverak(rho, geo)`; `export meshFactors(geo)`; `export segments(geo, segM = null)`; `export solveMoM(rho, segs)`; `export surfaceV(rho, segs, I, x, y)`; `export numericTouchStep(rho, geo, segs, I, { step = 0.5, margin = 3 } = {})`; `export studyEarthGrid(input)`; `export fenceCheck(rho, geo, segs, I, GPR, { offsetM = 1, bonded = true, stepM = 1 } = {}, lim)`; `export designGrid(base, { spacings = [20, 15, 12, 10, 8, 7, 6, 5, 4, 3], rodCounts = [0, 4, 8, 16, 24] } = {})`; `export checkRows(s)`; `pick(u)`; `mk(s, from)`; `discPairPdf(s)`; `discPairMean(f, n = 400)`; `K(rho - rhoS)`; `touch(1000 + 1.5 * Cs * rhoSurf)` (and 12 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Earth Mount - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/earth-mount.mjs (JavaScript, 132 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/earth-mount.mjs#L1-L132 - Page: https://code.globalgrid2050.com/explore-code/s/0164.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 covering substations, solar and cables. - What it achieves (comment): It is built from the mount earth helper (`mountEarth`), the ground at helper (`groundAt`) and the study step (`study`). The earthing cartridge. Loaded the first time an earthing command is typed (`cmd-run.mjs`), never on the first frame. It responds to click events. - What it does: It draws substations, solar and cables. Defines 10 functions or classes, including mountEarth, groundAt, study, run, render. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, solar, cables. - Downstream impact: Used directly by 1 file: Cmd Run (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export mountEarth({ api, world, doc = document })`; `groundAt(e, n)`; `study()`; `run()`; `render(which = null)`; `o3(base)`; `batches()`; `inv(b?.built?.station?.inverters || [])`; `command({ what, on = true, value = null, value2 = null })`; `echo(what, t)`; `rowsFor(nodeId)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 5 estate files (import 5); used by 1; mentioned by 0 ### Elec Style - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/elec-style.mjs (JavaScript, 34 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/elec-style.mjs#L1-L34 - Page: https://code.globalgrid2050.com/explore-code/s/0164.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. It is built from the rgba step (`rgba`) and the elec CSS helper (`elecCss`). - What it achieves (comment): One table for what an electrical line looks like, by voltage level (e4 UI spec, section 3). Its code works with 1.5 kV, 33 kV and 400 kV. - What it does: It calculates solar. Defines rgba, elecCss. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, 400kV, 33kV, 1.5kV. - Inputs & outputs: Voltage levels named: 400kV, 33kV, 1.5kV. - Downstream impact: Used directly by 6 files: Block GPU (globalgrid2050); Block UI (globalgrid2050); Legend UI (globalgrid2050); Single-Line Diagram (SLD) Symbols (globalgrid2050); and 2 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export rgba(key, a = 1)`; `export elecCss(scope)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV, 1.5kV] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Fault Level - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/fault-level.mjs (JavaScript, 12 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/fault-level.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0164.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar and transformers. It is built from the transformer fault ka helper (`transformerFaultKA`). - What it achieves (comment): Prospective fault current at a solar block's LV board, by the impedance method. Its code works with 5 MVA. - What it does: It calculates solar and transformers. Defines transformerFaultKA. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, transformers. - Downstream impact: Used directly by 2 files: Cmd Trench (globalgrid2050); LV DC Sizing (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export transformerFaultKA(o = {})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Hud Drops - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/hud-drops.mjs (JavaScript, 40 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/hud-drops.mjs#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/0165.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar. - What it achieves (comment): It is built from the len step (`len`), the dc drop helper (`dcDrop`) and the ac drop helper (`acDrop`). The voltage drops the check HUD shows for the placed solar block, worked out the way Follow works them (`sld-follow.mjs`), so the HUD and Follow give one answer: DC each connected string. - What it does: It calculates cables and solar. Defines len, dcDrop, acDrop, blockDrops. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar. - Downstream impact: Used directly by 1 file: Hud UI (globalgrid2050). - Signatures: `export dcDrop(built, d = SLD_DEFAULTS)`; `export acDrop(built, anchor)`; `export blockDrops(built, anchor)`; `len(pts)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (import 4); used by 1; mentioned by 0 ### Ground Grid - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/layers/ground-grid.mjs (JavaScript, 158 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/layers/ground-grid.mjs#L1-L158 - Page: https://code.globalgrid2050.com/explore-code/s/0165.html#f2 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with height store (`heightStore`). - What it achieves (comment): It is built from the later step (`later`), the grid step (`grid`) and the wrap step (`wrap`). A 1 m grid near the viewer and a 10 m grid to the horizon, draped on whatever ground the world has (flat until a terrain layer supplies `heightAt`). - What it does: Defines 6 functions or classes, including later, grid, wrap, slotOf, heightStore. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export grid(cx, cy, { spacing, radius }, heightAt, { origin = [0, 0, 0], near = null, sample = null, known = null } = {})`; `init(a)`; `lines({ pos, heightAt, known = null, groundVersion = 0 })`; `later(s)`; `wrap(v, m)`; `slotOf(x, y)`; `heightStore(heightAt, groundVersion, cx, cy, before, known = null)`; `sample(x, y, guess = 0)`; `knownAt(x, y)`; `begin(x, y)`; `widen()`; `finite(h)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Legend UI - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/legend-ui.mjs (JavaScript, 95 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/legend-ui.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0165.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with legend rows (`legendRows`) (units: kV), covering solar and cables. - What it achieves (comment): It is built from the same step (`same`), the RGB of helper (`rgbOf`) and the words step (`words`). The compact key. One small "Key" fold at the bottom left; opened, it lists what the last frame drew, one row per colour: a swatch (dashed for earth) and plain words. It responds to toggle events. - What it does: It draws solar and cables. Defines 8 functions or classes, including same, rgbOf, words, labelFor, legendRows. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, cables. - Downstream impact: Used directly by 1 file: Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `export labelFor(b)`; `export legendRows(batches)`; `export mountLegend({ api, doc = document })`; `same(a, b)`; `rgbOf(hex)`; `words(s)`; `css(c)`; `draw()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Measure Format - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/measure-format.mjs (JavaScript, 112 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/measure-format.mjs#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0165.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It formats number (`formatNumber`), formats length (`formatLength`) and formats area (`formatArea`). - What it achieves (comment): Plain British English lines from the numbers `measure.mjs` returns. - What it does: It calculates cables. Defines 16 functions or classes, including formatNumber, formatLength, formatArea, formatVolume, formatGradient. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 11 files: Design Earthworks (globalgrid2050); Block UI (globalgrid2050); Single-Line Diagram (SLD) Follow (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050); and 7 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export formatNumber(x, dp = 1)`; `export formatLength(m, dp = 1)`; `export formatArea(m2, dp = 1)`; `export formatVolume(m3, dp = 1)`; `export formatGradient(g, dp = 1)`; `export formatTrenchLine(ts, cs = null)`; `export formatCableLine(cs)`; `export formatPlatformLine(cf)`; `export formatProfileLine(p)`; `export fmtSig(x, sf = 3)`; `export fmtQ(v, unit = '', sf = 3)`; `export fmtPct(p)`; `export fmtLen(m)`; `export fmtVolt(v)`; `plural(n, one, many)`; `belowPhrase(cs)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 11; mentioned by 0 ### Module Mount - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/module-mount.mjs (JavaScript, 188 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/module-mount.mjs#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/0165.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that mounts modules (`mountModules`), finds pick (`findPick`) and calculates planar distances (units: °C), covering solar and cables. - What it achieves (comment): It finds pick (`findPick`) and is built from the mount modules helper (`mountModules`) and the src step (`src`). Module detail on zoom, wired into the world. It reads `./world/data/modules.json`. It responds to change events. - What it does: It draws solar and cables. Defines 22 functions or classes, including n1, mountModules, src, redraw, load. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, cables. - Inputs & outputs: In: JSON file modules.json. - Downstream impact: Used directly by 1 file: Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `export mountModules(api, sources, doc = document)`; `n1(v)`; `src()`; `redraw()`; `load()`; `refresh()`; `eyeDir()`; `batches()`; `K_cost()`; `builtMps(face)`; `mpsFor(face)`; `draw(picks, now, o)`; `inspect(id = null)`; `findPick(id)`; `tap(x, y)`; `laid(c)`; `counts()`; `asBuilt(list, c)`; `use(id)`; `panel()`; `show(r = null)`; `debug()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file modules.json]; out []; crs []; voltages [] - Edges: uses 4 estate files (dynamic-import 3, import 1); used by 1; mentioned by 0 ### Overhead Line (OHL) UI - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/ohl-ui.mjs (JavaScript, 145 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/ohl-ui.mjs#L1-L145 - Page: https://code.globalgrid2050.com/explore-code/s/0166.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates OHL layer (`createOhlLayer`), mounts OHL control (`mountOhlControl`) and calculates planar distances, covering overhead lines (OHL). - What it achieves (comment): It creates OHL layer (`createOhlLayer`) and attaches OHL (`attachOhl`). Overhead line safety zones on the page: a layer that draws the zones on the ground from the grid layer's conductors, the design checks (`ohl-zones.mjs`), a short readout with the working height input, and the bill rows. It responds to change events. - What it does: It draws overhead lines (OHL). Defines 14 functions or classes, including readout, n, boqItems, get, goalpostLines. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Inputs & outputs: In: form fields (user input). - Signatures: `export readout(spans, result, height)`; `export boqItems(result)`; `export goalpostLines(x, y, dx, dy, heightAt, o)`; `export createOhlLayer({ grid, gridShown = () => true, design, designVersion = null, origin, measuredAt, invalidate = () => {} })`; `export mountOhlControl(host, layer)`; `export attachOhl(items, deps)`; `n(f)`; `get(id)`; `g(a, b)`; `P(a, b, up)`; `setEnabled(on)`; `setHeight(h)`; `refresh(groundVersion = 0)`; `lines(ctx)`; `update()`; `gridItem()`; `onChange(ids, panel)`; `mount(host, panel)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Piles - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/piles.mjs (JavaScript, 276 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/piles.mjs#L1-L276 - Page: https://code.globalgrid2050.com/explore-code/s/0166.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It fits top line (`fitTopLine`) and is built from the pile stations helper (`pileStations`) and the spread at helper (`spreadAt`). Where the piles of a row of solar tables go, how far each stands out of the ground, how deep it goes in, and what grading a row needs where the ground is too uneven for a straight table. - What it does: It calculates solar. Defines 9 functions or classes, including pileStations, spreadAt, fitTopLine, clip, slopeAt. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 3 files: Design Earthworks (globalgrid2050); Block Build (globalgrid2050); Plant Piles (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export pileStations(len, tableLength, pileSpacing, tableGap = 0)`; `export fitTopLine(s, g, reveal, maxSlope = Infinity)`; `export planPiles(opts)`; `export followTopLine(s, g, nominal, bayMax, passes = 400)`; `export revealPercentiles(piles)`; `FIXED_RISE(2 * 2.384 + 0.02)`; `off(len - used)`; `over(tableLength - (np - 1) * pileSpacing)`; `spreadAt(s, g, b)`; `clip(b)`; `slopeAt(groundAt, x, y, h)`; `gx(groundAt(x + h, y) - groundAt(x - h, y))`; `gy(groundAt(x, y + h) - groundAt(x, y - h))`; `ux(x1 - x0)`; `topOf(k)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Plant Feeders - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/plant-feeders.mjs (JavaScript, 140 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/plant-feeders.mjs#L1-L140 - Page: https://code.globalgrid2050.com/explore-code/s/0166.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, 33kV and A roads, using IEC 60287. - What it achieves (comment): It routes feeders (`routeFeeders`) and is built from the to spine helper (`toSpine`) and the road path helper (`roadPath`). The 33kV feeders of a laid-out plant, routed along its roads, with their trenches and cables. Its code works with 33 kV. - What it does: It calculates cables, 33kV and A roads. Defines 11 functions or classes, including toSpine, roadPath, side, coverage, trenchFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, A roads. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 4 files: Block MV (globalgrid2050); Cmd Model (globalgrid2050); Plant Layout (globalgrid2050); Plant UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export roadPath(A, B, net)`; `export coverage(intervals)`; `export trenchFor(c, L, into)`; `export routeFeeders(tpl, net, p)`; `export trenchRows(e, fmt = v => v.toFixed(2))`; `toSpine(pt, net)`; `side(pt)`; `onRoad(s)`; `add(key, a, b)`; `dropOf(hops)`; `k(m)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 4; mentioned by 0 ### Search UI - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/search-ui.mjs (JavaScript, 351 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/search-ui.mjs#L1-L351 - Page: https://code.globalgrid2050.com/explore-code/s/0167.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that formats capacity and technology and converts to rows, covering postcodes, the Renewable Energy Planning Database (REPD) register, wind and solar. - What it achieves (comment): It formats capacity (`formatCapacity`), formats technology (`formatTechnology`) and merges rows (`mergeRows`). Search panel: "Find a place". A small box over the world that finds a town or village (OS Open Names through postcodes.io, see `places.mjs`), a REPD project, a UK postcode (postcodes.io, see `postcodes.mjs`) or a typed "lat, lon". Its code works with 1.2 GW, 49.9 MW and 650 kW. It responds to pointerdown, click and input events. - What it does: It draws postcodes, the REPD register, wind and solar. Defines 30 functions or classes, including creditsFor, formatCapacity, trim, formatTechnology, gridRefQuery. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: postcodes, the REPD register, wind, solar. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Find Mount (globalgrid2050). - Signatures: `export creditsFor(attribution, layers = ['search', 'postcodes', 'names'], year = new Date().getUTCFullYear())`; `export formatCapacity(mw)`; `export formatTechnology(t)`; `export gridRefQuery(text)`; `export toRows(result)`; `export summaryText(result, shown)`; `export moveSelection(index, count, key)`; `export rowForEnter(rows, index)`; `export debounce(fn, ms, clock = { set: (f, t) => setTimeout(f, t), clear: id => clearTimeout(id) })`; `export arrivalNote(choice, hasTerrain, live = false)`; `export mergeRows(postcodeRows, projectRows, placeRows = [])`; `export statusLine({ postcodes = undefined, places = undefined, projects = null, projectRows = 0 } = {})`; `export sourcesShown(rows)`; `export runQuery(index, text, limit = 12)`; `export createSearchPanel(container, { loadIndex, onChoose, attribution = null, hasTerrain = null, liveTerrain = false, postcodes = createPostc...)`; `trim(v)`; `d(...args)`; `el(tag, props = {}, attrs = {})`; `showCredits(ids)`; `ensureIndex()`; `highlight(i)`; `choose(row)`; `render(text)`; `paint()`; `settle()` (and 5 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 4 estate files (import 4); used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Follow - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/sld-follow.mjs (JavaScript, 139 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/sld-follow.mjs#L1-L139 - Page: https://code.globalgrid2050.com/explore-code/s/0167.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, transformers, solar and overhead lines (OHL). It parses panel (`parsePanel`) and picks panel (`pickPanel`). - What it achieves (comment): Follow, from one solar module to the landing bay, as a list of stops along one continuous path. - What it does: It calculates cables, transformers, solar and overhead lines (OHL). Defines 16 functions or classes, including len, panelId, parsePanel, pickPanel, followPath. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, solar, overhead lines (OHL). - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Mount (globalgrid2050). - Signatures: `export panelId(p)`; `export parsePanel(id)`; `export pickPanel(built, anchor, [e, n], reachM = 6)`; `export followPath({ built, anchor, graph, sol, ro, panel, groundAt = () => 0 })`; `export dropSoFar(f, i)`; `len(pts)`; `move(q)`; `local(q)`; `gnd(q, h = 0.5)`; `stop(key, title, at, view, leg, rows, dropPct = 0, lengthM = 0, txPct = 0)`; `nodeAt(id)`; `fault(id)`; `isTx(b)`; `cur(x)`; `view(b?.lengthM || 0)`; `orient(pts, from)`; `d(q)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Hook - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/sld-hook.mjs (JavaScript, 28 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/sld-hook.mjs#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0167.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It is built from the SLD hook helper (`sldHook`), the load step (`load`) and the call step (`call`). The thin, typed hook for the single-line diagram: world.sld.show, world.sld.station(id), Nothing heavy loads until the first call, the first press of Single-line diagram or Follow (Design > Plant). It responds to click, pointerdown and pointerup events. - What it does: It calculates solar. Defines sldHook, load, call. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Signatures: `export sldHook({ api, design, doc = document })`; `load()`; `call(name)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (dynamic-import 1); used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Mount - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/sld-mount.mjs (JavaScript, 200 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/sld-mount.mjs#L1-L200 - Page: https://code.globalgrid2050.com/explore-code/s/0168.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with so far (`soFar`) and calculates planar distances (units: kV, MW, MVA), covering solar, substations, transformers and cables. - What it achieves (comment): It is built from the mount SLD helper (`mountSld`), the ground at helper (`groundAt`) and the connection for helper (`connectionFor`). The single-line diagram in the world. Its code works with 40 kA and 400 kV. It responds to click events. - What it does: It draws solar, substations, transformers and cables. Defines 21 functions or classes, including mountSld, $, groundAt, connectionFor, network. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, substations, transformers, cables, 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Hook (globalgrid2050). - Signatures: `export mountSld({ api, block, plant, doc = document })`; `$(id)`; `groundAt(e, n)`; `connectionFor(mw, at, kv = null)`; `subs(model?.substations || [])`; `towers(model?.lines || [])`; `network()`; `need()`; `rowsFor(nodeId, branchId)`; `o3(base)`; `batch(key, G, color, version)`; `batches()`; `show()`; `station(id)`; `summary()`; `follow(panel = null)`; `go(i)`; `play()`; `pause()`; `close()`; `soFar(f, i)`; `followState()`; `tap(clientX, clientY)`; `rules(r = {})`; `source(kA)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 11 estate files (import 11); used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Symbols - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/sld-symbols.mjs (JavaScript, 105 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/sld-symbols.mjs#L1-L105 - Page: https://code.globalgrid2050.com/explore-code/s/0168.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables and overhead lines (OHL). - What it achieves (comment): It is built from the group step (`group`), the put step (`put`) and the seg step (`seg`). The single-line diagram drawn in the world, as line groups in national-grid metres. - What it does: It calculates transformers, cables and overhead lines (OHL). Defines 12 functions or classes, including group, put, seg, poly, pen. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, overhead lines (OHL). - Downstream impact: Used directly by 2 files: Earth Mount (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export symbolGroups(g, { groundAt = () => 0, mast = 6 } = {})`; `export glowGroup(points, marker = null)`; `group()`; `put(G, p)`; `seg(G, a, b)`; `poly(G, pts)`; `pen(G, [e, n, z0])`; `sw(P, x, za, zb, open, breaker = false)`; `m(za + zb)`; `earth(P, x, z)`; `at(n, h = mast)`; `stem(L, n, h = mast)`; `lift(pts, h)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Single-Line Diagram (SLD) View - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/sld-view.mjs (JavaScript, 169 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/sld-view.mjs#L1-L169 - Page: https://code.globalgrid2050.com/explore-code/s/0168.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with earth mark (`earthMark`) (units: MVA, kV), covering transformers, cables and substations. - What it achieves (comment): It creates SLD view (`createSldView`) and is built from the rows step (`rows`) and the draw step (`draw`). The SLD view, a clean schematic single-line diagram of the whole plant in a flat panel over the world. Its code works with 33 kV. It responds to click events. - What it does: It draws transformers, cables and substations. Defines 9 functions or classes, including el, createSldView, rows, draw, hit. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, substations, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Mount (globalgrid2050). - Signatures: `export createSldView({ doc, onStation, onElement, onClose })`; `el(tag, attrs = {}, parent = null)`; `rows(list)`; `draw(src, version, { earth = false } = {})`; `hit(g0, id, station)`; `line(p, x1, y1, x2, y2, cls = 'ln')`; `text(p, x, y, t, anchor = 'middle')`; `circle(p, cx, cy, r, cls = 'ln')`; `earthMark(p, x, y)`; `show(src, version, opts = {})`; `hide()`; `highlight(nodes = [], branches = [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### String Design - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/string-design.mjs (JavaScript, 58 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/string-design.mjs#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0168.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It is built from the num step (`num`), the string design helper (`stringDesign`) and the string line helper (`stringLine`). The string voltage of the solar block, worked out in the open. - What it does: It calculates solar. Defines 6 functions or classes, including num, stringDesign, stringLine, stringWords, typedClass. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 4 files: Block UI (globalgrid2050); Build Rules (globalgrid2050); Cmd Model (globalgrid2050); Hud Checks (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export stringDesign({ cls, cat = {}, mps, tempMinC, systemV } = {})`; `export stringLine(d)`; `export stringWords(d)`; `export typedClass({ wp, voc, coeffPctPerK })`; `export stringCounts({ modules, mps, stringsPerInverter = 24, inverters = null })`; `num(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Xray UI - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/xray-ui.mjs (JavaScript, 70 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/xray-ui.mjs#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0168.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws trench sections, solar and cables. - What it achieves (comment): It shows note (`showNote`) and is built from the el step (`$el`) and the mount xray helper (`mountXray`). The As-built X-ray switch, in the Layers panel and typed ("xray on", "xray off"). It responds to click events. - What it does: It draws trench sections, solar and cables. Defines 6 functions or classes, including $el, mountXray, works, extra, showNote. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, cables. - Inputs & outputs: In: JSON file trench-sections.json. - Downstream impact: Used directly by 1 file: Cmd Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export mountXray({ api, world, doc = document, host = doc.getElementById('layers-slot') })`; `$el(doc, tag, props = {})`; `works()`; `extra(pos)`; `showNote()`; `set(v)`; `faults(cache.faults || [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file trench-sections.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (dynamic-import 1); used by 1; mentioned by 0 ### Xray - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/xray.mjs (JavaScript, 111 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/xray.mjs#L1-L111 - Page: https://code.globalgrid2050.com/explore-code/s/0169.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. - What it achieves (comment): It is built from the xray filter helper (`xrayFilter`), the len2 step (`len2`) and the samples step (`samples`). The as-built X-ray view. Once a trench is backfilled nothing of it shows on the ground; this view draws the ground faint and see-through and the buried works bright. - What it does: It calculates cables. Defines 10 functions or classes, including xrayFilter, len2, samples, buriedLines, push. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 1 file: Xray UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export xrayFilter(batches, extra = [], dim = XRAY.dim)`; `export samples(pts, step)`; `export buriedLines(runs, { groundAt, eye = null, pits = [], joints = [], rangeM = XRAY.rangeM, stepM = XRAY.stepM, base = [0, 0, 0], spe...)`; `export xrayBatches(lines, { base, version })`; `export xraySummary(runs, pits, joints, totals = null)`; `len2(a, b)`; `push(k, a, b)`; `far(pts)`; `P(s, [u, z])`; `box(k, [x, y], l, w, depth)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Solar Design Studio — Site World Page - File: globalgrid2050/solar-design-studio/202609271853-site-world/index.html (HTML, 363 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/index.html#L1-L363 - Page: https://code.globalgrid2050.com/explore-code/s/0169.html#f2 - Published at: https://globalgrid2050.com/solar-design-studio/202609271853-site-world/ - Synopsis: A web page in GlobalGrid2050 that draws bill of quantities, cables, substations and postcodes. Published at https://globalgrid2050.com/solar-design-studio/202609271853-site-world/. - What it achieves (comment): Every module the first frame imports is fetched with the page, all at once, not one import level at a time; the manifest. - What it does: It draws bill of quantities, cables, substations and postcodes. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, postcodes. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Out: CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-design-studio/202609271853-site-world/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out [CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 23 estate files (modulepreload 23); used by 0; mentioned by 0 ### Body - File: globalgrid2050/solar-design-studio/202609271853-site-world/packs/body/src/body.mjs (JavaScript, 318 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/packs/body/src/body.mjs#L1-L318 - Page: https://code.globalgrid2050.com/explore-code/s/0170.html#f1 - Synopsis: A JavaScript module in the packs folder of GlobalGrid2050 that runs want (`runWant`), steps len (`stepLen`) and calculates planar distances. - What it achieves (comment): It runs want (`runWant`) and is built from the apex of helper (`apexOf`) and the air time of helper (`airTimeOf`). Body pack (world.pack.v1): how the viewer moves on foot. - What it does: It calculates its inputs. Defines 22 functions or classes, including apexOf, airTimeOf, runWant, dipAt, clamp. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export apexOf(v = V0, g = G)`; `export airTimeOf(v = V0, g = G)`; `export runWant(t, lo = RUN_MIN, hi = RUN_MAX)`; `export dipAt(t, vi)`; `export blocked([x, y, z], solids, body = BODY)`; `export supportAt(x, y, feetZ, heightAt, solids = [], radius = BODY.radius)`; `export createBody({ at = [0, 0, 0], yaw = 0, walk = WALK, runMin = RUN_MIN, runMax = RUN_MAX, bob = false } = {})`; `clamp(v, a, b)`; `num(v)`; `dipNow()`; `speed()`; `stepLen()`; `bobNow()`; `place(p, heightAt, solids)`; `takeOff()`; `slide(dx, dy, z, solids)`; `fly(dt, heightAt, solids)`; `step(dt, input = {}, heightAt = () => 0, solids = [])`; `wx(s * f + c * sd)`; `press()`; `release()`; `unplace(x, y)`; `setYaw(v)`; `setBob(v)`; `gait(b)` (and 12 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Drone - File: globalgrid2050/solar-design-studio/202609271853-site-world/packs/drone/src/drone.mjs (JavaScript, 414 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/packs/drone/src/drone.mjs#L1-L414 - Page: https://code.globalgrid2050.com/explore-code/s/0170.html#f2 - Synopsis: A JavaScript module in the packs folder of GlobalGrid2050 that parses xy (`parseXY`) and calculates planar distances and angles (units: kV), covering wind, using ISO 2533. - What it achieves (comment): It parses xy (`parseXY`) and is built from the clamp step (`clamp`) and the num step (`num`). Drone pack (world.pack.v1, kind vehicle). A light multirotor model for our 3D worlds: thrust, quadratic drag and wind as a parameter, hover hold, height above the ground model, speed limits, a legal-height note, go-to. - What it does: Defines 24 functions or classes, including clamp, num, terminalSpeed, windVector, footprint. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: wind. - Signatures: `export terminalSpeed(p = DEFAULTS)`; `export windVector([speed, from])`; `export footprint(h, cam = DEFAULTS.camera)`; `export planSurvey(boundary, { height = DEFAULTS.hold, camera = DEFAULTS.camera, overlap = DEFAULTS.overlap, maxLanes = 400 } = {})`; `export createDrone(cfg = {})`; `clamp(v, a, b)`; `num(v)`; `toU([x, y])`; `toXY(u, v)`; `wanted()`; `toward([tx, ty], stopAt = true)`; `gz(Number.isFinite(floor) ? floor : g0)`; `reset()`; `batch(key, version, color, origin, fill, segs)`; `seg(a, b)`; `here()`; `heading()`; `aglAt(p)`; `parseXY(args, i, what)`; `legal(h)`; `status()`; `emit(topic, payload)`; `init(a)`; `setEnabled(v)`; `step(dt, ctx = {})` (and 11 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Grids - File: globalgrid2050/solar-design-studio/202609271853-site-world/packs/grids/src/grids.mjs (JavaScript, 577 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/packs/grids/src/grids.mjs#L1-L577 - Page: https://code.globalgrid2050.com/explore-code/s/0171.html#f2 - Synopsis: A JavaScript module in the packs folder of GlobalGrid2050 that parses network (`parseNetwork`) and flow (`parseFlow`), builds geometry (`buildGeometry`) and calculates planar distances (units: kV, MW), using SHA-256. - What it achieves (comment): It cleans id (`cleanId`), parses network (`parseNetwork`) and parses flow (`parseFlow`). Grid layers for a 3D world: overhead lines with catenary sag and conductor bundles by voltage class, towers standing on the measured ground, substations as fenced compounds, underground cable routes, and a load-flow colouring hook. Its code works with 33 kV, 132 kV and 220 kV. - What it does: It lists and searches cables, substations, 33kV and transformers. Defines 43 functions or classes, including classOf, rgb, withAlpha, toward, loadingBand. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, 33kV, transformers, 220kV, 132kV. - Inputs & outputs: Voltage levels named: 220kV, 132kV, 33kV. - Signatures: `export classOf(kv)`; `export rgb(hex)`; `export loadingBand(l)`; `export loadingColour(l)`; `export levelSag(L, a)`; `export paramFromSag(L, ratio)`; `export catenarySpan(L, z1, z2, a)`; `export bundleOffsets(n, s)`; `export parseNetwork(j)`; `export parseFlow(j)`; `export buildGeometry(net, o)`; `export createGrids()`; `withAlpha(c, a)`; `toward(c, g, t)`; `bandColour(b)`; `coshm1(u)`; `z(s)`; `isPt(p)`; `cleanId(v, d)`; `unique(id, what)`; `towers(Array.isArray(l.towers) ? l.towers : [])`; `points(Array.isArray(c.points) ? c.points : [])`; `run(x0, y0, x1, y1, span)`; `segDist(px, py, ax, ay, bx, by)`; `unit(dx, dy)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [220kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Lightning - File: globalgrid2050/solar-design-studio/202609271853-site-world/packs/lightning/src/lightning.mjs (JavaScript, 486 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/packs/lightning/src/lightning.mjs#L1-L486 - Page: https://code.globalgrid2050.com/explore-code/s/0172.html#f1 - Synopsis: A JavaScript module in the packs folder of GlobalGrid2050 that steps voltage (`stepVoltage`), builds field (`buildField`), creates pack (`createPack`) and calculates planar distances, using IEC 62305-2 and IEC 62305-3. - What it achieves (comment): It builds field (`buildField`), creates pack (`createPack`) and computes map (`computeMap`). Lightning pack (world.pack.v1). An ILLUSTRATIVE lightning simulation for a site world: - a strike map from ground flash density Ng (flashes per km2 per year). Its code works with 300 kA, 20 kA and 90 kA. - What it does: It calculates its inputs. Defines 40 functions or classes, including strikeDistance, ngFromThunderDays, collectionArea, expectedFlashes, mastShadowRadius. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export strikeDistance(kA)`; `export ngFromThunderDays(td)`; `export collectionArea(L, W, H)`; `export expectedFlashes(ng, ad, cd = 1)`; `export mastShadowRadius(H, r)`; `export hemisphereResistance(rho, a)`; `export equivalentRadius(rho, R)`; `export potentialAt(gpr, req, r)`; `export stepVoltage(gpr, req, r, step = 1)`; `export levelOf(word)`; `export rng(seed = 1)`; `export peakCurrent(u1, u2)`; `export buildField(area, h, heightAt, objects = [])`; `export rollSphere(field, r)`; `export sideTouchFrom(field, roll, k)`; `export strikePoint(field, x, y, r, heightAt)`; `export createPack()`; `f()`; `kernel(r, h)`; `crosses(cells, size)`; `circle(cx, cy, r, zAt, n = 48)`; `a0(i / n)`; `polyline(pts)`; `fmt(v, d = 0)`; `years(nd)` (and 15 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Roads - File: globalgrid2050/solar-design-studio/202609271853-site-world/packs/roads/src/roads.mjs (JavaScript, 521 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/packs/roads/src/roads.mjs#L1-L521 - Page: https://code.globalgrid2050.com/explore-code/s/0173.html#f1 - Synopsis: A JavaScript module in the packs folder of GlobalGrid2050 that converts to batch (`toBatch`) and calculates planar distances, using BS EN 13108-1. - What it achieves (comment): It is built from the inv step (`inv`), the batter z helper (`batterZ`) and the settings step (`settings`). Road-build simulation, a world layer pack (world.pack.v1). - What it does: It calculates its inputs. Defines 36 functions or classes, including inv, batterZ, settings, pos, planRoad. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export inv(h)`; `export batterZ(g, level, d, invCut, invFill)`; `export settings(given = {})`; `export planRoad(given, groundAt)`; `export frontOf(p, i, done)`; `pos(k)`; `G(x, y)`; `segAt(s)`; `pointAt(s)`; `level(s)`; `designLevel(s)`; `fallAt(off)`; `finishedAt(s, off)`; `surfaceAt(s, u, gs)`; `top(a.strip + b.strip)`; `sw(a.cutSides + b.cutSides)`; `add(u)`; `outer(a, b)`; `emit(topic, payload)`; `fmt(v)`; `pct(v)`; `ensurePlan(ctx)`; `announce()`; `advanceHours(h)`; `progress(force)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Sun - File: globalgrid2050/solar-design-studio/202609271853-site-world/packs/sun/src/sun.mjs (JavaScript, 668 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/packs/sun/src/sun.mjs#L1-L668 - Page: https://code.globalgrid2050.com/explore-code/s/0174.html#f1 - Synopsis: A JavaScript module in the packs folder of GlobalGrid2050 that works with solar, using ISO 2533 and EPSG:27700. It makes clock (`makeClock`), builds lines (`buildLines`) and parses when (`parseWhen`). - What it achieves (comment): Sun and sky pack (world.pack.v1). Self-contained ES module with no imports. - What it does: It calculates solar. Defines 46 functions or classes, including lim360, julianDay, deltaT, series, periodic. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Signatures: `export julianDay(ms)`; `export deltaT(year)`; `export solarPosition({ utcMs, lat, lon, elevation = 0, pressure = 1010, temperature = 10, deltaT: dT, refraction = true })`; `export incidence(zenith, azimuth, tilt, planeAzimuth)`; `export sunVector(azimuth, elevation, rotate = 0)`; `export airMass(zenith)`; `export pressureAt(h)`; `export clearSky(zenith, { altitude = 0, linke = 3, r = 1, solarConstant = 1361 } = {})`; `export planeIrradiance({ ghi, dni, dhi }, incidenceDeg, tilt, albedo = 0.2)`; `export tmInverse(E, N)`; `export gridToLatLon(E, N)`; `export dayEvents(place, dayStartMs, dayEndMs)`; `lim360(a)`; `u(year - 1820)`; `series(rows, x)`; `periodic(terms, jme)`; `xi(8.794 / (3600 * R))`; `a(azimuth - rotate)`; `M(p)`; `p(N - N0)`; `rx(0.1502 / 3600)`; `makeClock(cfg)`; `offset(ms)`; `parts(ms)`; `toUtc(y, m, d, minute)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Accuracy - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/accuracy.mjs (JavaScript, 146 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/accuracy.mjs#L1-L146 - Page: https://code.globalgrid2050.com/explore-code/s/0175.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 66kV, 33kV, 220kV and 275kV, using Helmert and OSTN15. - What it achieves (comment): It is built from the haversine m helper (`haversineM`), the chord to arc m helper (`chordToArcM`) and the point to segment helper (`pointToSegment`). The world's accuracy constants and the small pure maths that uses them. Its code works with 33 kV, 66 kV and 132 kV. - What it does: It calculates 66kV, 33kV, 220kV and 275kV. Defines 13 functions or classes, including haversineM, chordToArcM, pointToSegment, nearestOnPolyline, lineOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 66kV, 33kV, 220kV, 275kV, 400kV, 132kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 1 file: First Showing (globalgrid2050). - Signatures: `export haversineM(lon1, lat1, lon2, lat2, R = EARTH_RADIUS_M)`; `export chordToArcM(chord, R = EARTH_RADIUS_M)`; `export pointToSegment(px, py, ax, ay, bx, by)`; `export nearestOnPolyline([pe, pn], pts)`; `export nearestLine(at, towers)`; `export CURVATURE_PER_M2(1 - REFRACTION_K)`; `export curvatureDrop(d, k = REFRACTION_K, R = EARTH_RADIUS_M)`; `export horizonDistanceM(h, k = REFRACTION_K, R = EARTH_RADIUS_M)`; `export styleClass(kv)`; `export hexToRgb(h)`; `export decimalsFor(accuracyM)`; `export formatAtAccuracy(value, accuracyM)`; `export groundWords(source, groundM, eyeM, known)`; `P(pts || [])`; `lineOf(t)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Binoculars Lens - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/binoculars-lens.mjs (JavaScript, 182 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/binoculars-lens.mjs#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0175.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with substations, motorways, solar and LiDAR terrain. - What it achieves (comment): It is built from the fov for helper (`fovFor`), the step zoom helper (`stepZoom`) and the curvature drop helper (`curvatureDrop`). Binoculars, the lens: magnification and field of view, the rangefinder under the reticle, and what it reads in words. Its code works with 132 kV, 275 kV and 33 kV. - What it does: It calculates substations, motorways, solar and LiDAR terrain. Defines 17 functions or classes, including fovFor, stepZoom, curvatureDrop, convergence, bearingDeg. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, motorways, solar, LiDAR terrain, 400kV, 275kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: Used directly by 1 file: Binoculars Mount (globalgrid2050). - Signatures: `export fovFor(m, base = BASE_FOV)`; `export stepZoom(m, dir)`; `export curvatureDrop(d, k = REFRACTION_K, R = EARTH_R)`; `export convergence(e, n)`; `export bearingDeg(yaw)`; `export rangeAlong(eye, dir, measuredAt, { maxM = MAX_RANGE_M, k = REFRACTION_K } = {})`; `export kindOfKey(key)`; `export thingOnRay(batches, eye, dir, maxD, tol, { budget = 400000 } = {})`; `export drapeAt(batches, p)`; `export labelFor(thing, { lineClass = () => null } = {})`; `export reading(w)`; `export distanceText(d)`; `export readingLines(r)`; `at(d)`; `above(d)`; `rayToSegment(eye, dir, a, b)`; `cls(/\/(400kV|275kV|132kV|33kV)$/.exec(thing.key) || [])`; `deg(v, dp = 1)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Binoculars Mount - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/binoculars-mount.mjs (JavaScript, 148 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/binoculars-mount.mjs#L1-L148 - Page: https://code.globalgrid2050.com/explore-code/s/0175.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with horizon profile (`horizonProfile`) and line class (`lineClass`), calculates planar distances and angles and draws SVG graphics. - What it achieves (comment): It creates binoculars (`createBinoculars`) and is built from the horizon profile helper (`horizonProfile`) and the horizon text helper (`horizonText`). Binoculars, the mount: holds the lens (`binoculars-lens.mjs`) steady and reads the horizon along the bearing. It responds to wheel, pointerdown and pointermove events. - What it does: It draws its content. Defines 10 functions or classes, including horizonProfile, horizonText, createBinoculars, towers, lineClass. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: SVG drawing. - Downstream impact: Used directly by 1 file: Senses Mount (globalgrid2050). - Signatures: `export horizonProfile(eye, yaw, measuredAt, { maxM = MAX_RANGE_M, k = REFRACTION_K } = {})`; `export horizonText(h, gpu = null)`; `export createBinoculars({ api, world, doc = document, onChange = () => {} })`; `towers()`; `lineClass(key)`; `gpuDistance(s, yaw, pitch)`; `probe(pose = null)`; `measure()`; `zoom(m)`; `set(v)`; `rangeText()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Bs7671 Checks - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/bs7671-checks.mjs (JavaScript, 39 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/bs7671-checks.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0175.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, using BS 7671. - What it achieves (comment): It is built from the buried overload helper (`buriedOverload`), the buried protection helper (`buriedProtection`) and the disconnection step (`disconnection`). Checks on the LV cable engines from a cross-check against the national wiring rules. - What it does: It calculates cables. Defines buriedOverload, buriedProtection, disconnection. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: Earth Photovoltaic (PV) (globalgrid2050); LV DC Sizing (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export buriedOverload({ In, izAt, soilKmW, factor = SOIL_SENSITIVITY })`; `export buriedProtection({ armoured = false, ducted = false, kind = 'LV' } = {})`; `export disconnection(p)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Buggy Mount - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/buggy-mount.mjs (JavaScript, 60 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/buggy-mount.mjs#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0175.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It parses buggy (`parseBuggy`) and is built from the typing step (`typing`) and the mount buggy helper (`mountBuggy`). - What it achieves (comment): Buggy mode's only part that loads with the world (just after the first frame): the E key, a small mount chip (not a dash button: the dash keeps its five), and the typed "buggy" commands. It responds to click and keydown events. - What it does: It draws its content. Defines parseBuggy, typing, mountBuggy, load. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'buggy'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Signatures: `export parseBuggy(line)`; `export mountBuggy({ api, doc = document })`; `typing(t)`; `load()` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (dynamic-import 1); used by 0; mentioned by 0 ### Buggy Physics - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/buggy-physics.mjs (JavaScript, 245 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/buggy-physics.mjs#L1-L245 - Page: https://code.globalgrid2050.com/explore-code/s/0176.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that steps euler (`stepEuler`) and calculates planar distances and angles. - What it achieves (comment): It creates buggy (`createBuggy`) and is built from the wheels step (`wheels`) and the clamp step (`clamp`). The site buggy, a generic utility vehicle, as a small rigid body on the measured ground. - What it does: Defines 16 functions or classes, including wheels, clamp, params, createBuggy, contacts. - Why it exists in the grid workflow: Domain stage experimental (path word 'buggy'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Buggy UI (globalgrid2050). - Signatures: `export params(over = {})`; `export createBuggy(x, y, yaw, heightAt, over = {})`; `export contacts(s, P, heightAt)`; `export controls(v, forward, steer, brake)`; `export deriv(s, c, bug, heightAt, out = new Float64Array(N))`; `export release(bug, c)`; `export engage(bug, c)`; `export tipCheck(bug)`; `export stepEuler(bug, c, heightAt)`; `export hits(s, P, heightAt, solids)`; `export advance(bug, input, dtS, heightAt, solids = [])`; `export parked(bug, input = {})`; `export readout(bug)`; `wheels(P)`; `clamp(v, lo, hi)`; `sA((h[0] + h[1]) - (h[2] + h[3]))`; `drag(w, from)`; `side(G * sinB - vh * r)`; `deg((s[PSI] * 180 / Math.PI) % 360 + 360)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Buggy UI - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/buggy-ui.mjs (JavaScript, 185 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/buggy-ui.mjs#L1-L185 - Page: https://code.globalgrid2050.com/explore-code/s/0176.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates driver (`createDriver`), writes hud (`writeHud`) and calculates planar distances, covering LiDAR terrain. - What it achieves (comment): It creates driver (`createDriver`) and writes hud (`writeHud`). Driving the site buggy (loaded on first use by `buggy-mount.mjs`). Its code works with 120 Hz. It responds to click, keydown and keyup events. - What it does: It draws LiDAR terrain. Defines 20 functions or classes, including wrap, clamp, dir, buggyLines, P. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'buggy'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: LiDAR terrain. - Downstream impact: Used directly by 1 file: Buggy Mount (globalgrid2050). - Signatures: `export buggyLines(bug)`; `export cameraFor(bug, view, cam, dt, heightAt, userPitch)`; `export createDriver({ api, doc = document, chip = null })`; `wrap(a)`; `clamp(v, a, b)`; `dir(yaw, pitch)`; `P(a, b, h)`; `seg(p, q)`; `box(a0, a1, b, h0, h1)`; `q(t)`; `heightAt(x, y)`; `typing(t)`; `follow()`; `swapCam()`; `mount()`; `dismount(place = true)`; `writeHud()`; `frame(state, inp, intervalMs)`; `command(p)`; `onText()` - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Build Cmd - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/build-cmd.mjs (JavaScript, 51 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/build-cmd.mjs#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0176.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with setting lines (`settingLines`). It parses build (`parseBuild`) and is built from the setting lines helper (`settingLines`). - What it achieves (comment): The typed side of build mode. - What it does: It lists and searches its content. Defines no, parseBuild, settingLines. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Build UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export parseBuild(line)`; `export settingLines(P, D)`; `no(why)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Build Geom - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/build-geom.mjs (JavaScript, 98 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/build-geom.mjs#L1-L98 - Page: https://code.globalgrid2050.com/explore-code/s/0176.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with table frame (`tableFrame`) and inverter box (`inverterBox`) and calculates planar distances. - What it achieves (comment): It is built from the group step (`group`), the put step (`put`) and the seg step (`seg`). What build mode draws, as line groups in national-grid metres ({ base: [e, n, z], v: Float32Array relative to base }), and the piles of the built tables on the plant's own engine (`plant-piles.mjs`). - What it does: It calculates its inputs. Defines 11 functions or classes, including group, put, seg, done, tableFrame. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export tableFrame(G, t, T, ground)`; `export inverterBox(G, v, ground)`; `export outline(G, rect, ground, lift = 0.15)`; `export run(G, pts, ground)`; `export sceneGroups(items, W, P, ground)`; `export ghostGroup(check, P, ground)`; `export builtPiles(items, P, measured)`; `group()`; `put(G, p)`; `seg(G, a, b)`; `done(G)`; `f(r + 0.5)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Build Mount - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/build-mount.mjs (JavaScript, 52 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/build-mount.mjs#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0176.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 covering overhead lines (OHL) and solar. It is built from the mount build helper (`mountBuild`) and the load step (`load`). - What it achieves (comment): The only part of build mode that loads with the world (just after the first frame, from `cmd-mount.mjs`). It responds to click events. - What it does: It draws overhead lines (OHL) and solar. Defines mountBuild, load. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), solar. - Downstream impact: Used directly by 1 file: Cmd Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export mountBuild({ api, world, ohl = null, doc = document, loc = globalThis.location })`; `load()`; `it(d?.items || [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, dynamic-import 1); used by 1; mentioned by 0 ### Build Rules - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/build-rules.mjs (JavaScript, 198 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/build-rules.mjs#L1-L198 - Page: https://code.globalgrid2050.com/explore-code/s/0177.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with overhead lines (OHL), using IEC 62548-1. It checks placement (`checkPlacement`) and builds checks (`buildChecks`). - What it achieves (comment): Build mode's rules. Real components snap to a grid over the measured ground and click together only where the engineering allows; every refusal is a plain sentence that says what to change. Its code works with 300 kVA. - What it does: It calculates overhead lines (OHL). Defines 19 functions or classes, including r1, tableOf, snap, rectOf, overlaps. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Downstream impact: Used directly by 2 files: Build Geom (globalgrid2050); Build UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export tableOf(P = DEFAULTS)`; `export snap(kind, e, n, P = DEFAULTS)`; `export rectOf(it, P = DEFAULTS)`; `export slopeOver(rect, measured, nx = 5, ny = 3)`; `export rectToZone(rect, zone)`; `export checkPlacement(kind, at, { measured = () => NaN, zones = { state: 'off', list: [] }, items = [], P = DEFAULTS } = {})`; `export labelOf(it, items)`; `export typedOf(it)`; `export wire(items, P = DEFAULTS)`; `export statusWords(items, W, P = DEFAULTS)`; `export buildChecks(items, W, P = DEFAULTS, { cat = null, cls = null } = {})`; `r1(v)`; `overlaps(a, b)`; `m(k)`; `segSeg(a, b, c, d)`; `o(p, q, r)`; `ptSeg(p, a, b)`; `inPoly(poly, [x, y])`; `route(t, v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Build UI - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/build-ui.mjs (JavaScript, 198 lines) · role interaction · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/build-ui.mjs#L1-L198 - Page: https://code.globalgrid2050.com/explore-code/s/0177.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that sets tool (`setTool`), shows ghost (`showGhost`) and calculates planar distances, covering overhead lines (OHL). - What it achieves (comment): It creates build (`createBuild`), sets tool (`setTool`) and shows ghost (`showGhost`). Build mode on the page. Choose Table or Inverter; a ghost follows the pointer, snapped to the grid on the ground, outlined in green where it may go and red where it may not. It responds to click, pointermove and pointerdown events. - What it does: It draws overhead lines (OHL). Defines 23 functions or classes, including createBuild, o, measured, ground, zones. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL). - Inputs & outputs: In: JSON file modules.json. - Downstream impact: Used directly by 1 file: Build Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export createBuild({ api, world, ohl = null, doc = document, row = null })`; `o()`; `measured(e, n)`; `ground(e, n)`; `zones()`; `ctx()`; `o3(base)`; `batch(key, G, color, version)`; `batches()`; `changed(redraw = true)`; `snapshot()`; `remember()`; `tell(text, ok = true)`; `setTool(kind)`; `place(kind, e, n)`; `showGhost(c)`; `pointAt(x, y)`; `local(e)`; `exec(line)`; `pilesAuto()`; `script()`; `replay(lines)`; `probe(kind, e, n)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file modules.json]; out []; crs []; voltages [] - Edges: uses 5 estate files (import 4, dynamic-import 1); used by 1; mentioned by 0 ### Cmd Grammar Plant - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-grammar-plant.mjs (JavaScript, 58 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-grammar-plant.mjs#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0177.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It parses plant (`parsePlant`) and is built from the has step (`has`). - What it achieves (comment): The typed words for the plant's inverter class, its packing and the study presets. Its code works with 2500 kVA, 300 kVA and 400 kVA. - What it does: It lists and searches its content. Defines parsePlant, has, at. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Cmd Grammar (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export parsePlant(v, rest, out, { put, bad, isNum })`; `has(w)`; `at(w)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Cmd Grammar Senses - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-grammar-senses.mjs (JavaScript, 23 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-grammar-senses.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0177.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It parses senses (`parseSenses`) and is built from the is num helper (`isNum`). - What it achieves (comment): The binoculars words of the command line (binoculars, zoom, range), split out of `cmd-grammar.mjs` to keep each cartridge under 400 lines. - What it does: Defines isNum, parseSenses. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Cmd Grammar (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export parseSenses(v, rest, bad)`; `isNum(t)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cmd Grammar - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-grammar.mjs (JavaScript, 398 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-grammar.mjs#L1-L398 - Page: https://code.globalgrid2050.com/explore-code/s/0178.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 covering solar, overhead lines (OHL), cables and postcodes. - What it achieves (comment): It is built from the said step (`said`), the guard step (`guard`) and the words step (`words`). The typed design language of the site world. Its code works with 10 MVA, 100 MVA and 50 MW. - What it does: It lists and searches solar, overhead lines (OHL), cables and postcodes. Defines 15 functions or classes, including r, said, guard, words, search. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, overhead lines (OHL), cables, postcodes. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 4 files: Build Cmd (globalgrid2050); Cmd Model (globalgrid2050); Cmd UI (globalgrid2050); Packs Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export guard(key, v)`; `export words(line)`; `export search(text, limit = 8)`; `export example(c, text = '')`; `export parse(line)`; `export help(topic = '')`; `r(v, d = 2)`; `said(v)`; `hay(c)`; `refuse(why, line)`; `isNum(t)`; `takes(VOCAB[v] || [])`; `put(key, val)`; `num(i, key, units = [])`; `after(w)`; `has(w)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 6 estate files (import 6); used by 4; mentioned by 0 ### Cmd Model - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-model.mjs (JavaScript, 350 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-model.mjs#L1-L350 - Page: https://code.globalgrid2050.com/explore-code/s/0179.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and 33kV. It applies set (`applySet`), creates session (`createSession`) and runs layout (`runLayout`). - What it achieves (comment): The design as typed. A session holds the typed values, runs each command through an engine (the page's plant, block and layers, or a plain CPU layout in tests), echoes what changed in words, keeps an undo stack. Its code works with 33 kV. - What it does: It calculates cables and 33kV. Defines 27 functions or classes, including STRUCT, PACK, moduleOf, tplOpts, f. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, 1500V. - Inputs & outputs: Voltage levels named: 33kV, 1500V. - Downstream impact: Used directly by 2 files: Cmd Run (globalgrid2050); Cmd UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export moduleOf(st, env = {})`; `export derive(st, env = {}, lay = null)`; `export postOf(st, T)`; `export spoilOf(lay, st, sections = [])`; `export echo(a, b)`; `export layoutInput(st, env = {})`; `export createSession({ engine, env = {} })`; `export explain(what, d)`; `export summarize(r)`; `STRUCT(st)`; `PACK(st)`; `tplOpts(st, env)`; `f(v, d = 2)`; `int(v)`; `sec(sections || [])`; `warnings(d)`; `inWords(e)`; `applySet(st0, c, env)`; `strOf(st)`; `same(a, b, keys)`; `fmtPts(pts)`; `view()`; `runLayout()`; `exec(line, { replay = false } = {})`; `view_(fn)` (and 3 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 1500V] - Edges: uses 10 estate files (import 10); used by 2; mentioned by 0 ### Cmd Mount - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-mount.mjs (JavaScript, 63 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-mount.mjs#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0179.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that mounts command line (`mountCommandLine`) (units: MW), covering overhead lines (OHL) and solar. - What it achieves (comment): It is built from the form lines helper (`formLines`), the typing step (`typing`) and the mount command line helper (`mountCommandLine`). The command line's only part that loads with the world (just after the first frame): a "Type a command" button in the Design panel and the "/" key. It responds to click and keydown events. - What it does: It draws overhead lines (OHL) and solar. Defines 6 functions or classes, including formLines, typing, mountCommandLine, changed, load. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), solar. - Downstream impact: Used directly by 1 file: Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `export formLines(world)`; `export mountCommandLine({ api, world, project = null, ohl = null, doc = document })`; `typing(t)`; `changed()`; `load()`; `opened(d)`; `it(d?.items || [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (dynamic-import 3); used by 1; mentioned by 0 ### Cmd Run - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-run.mjs (JavaScript, 217 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-run.mjs#L1-L217 - Page: https://code.globalgrid2050.com/explore-code/s/0179.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that fetches overhead lines (OHL), solar and substations, using SHA-256. - What it achieves (comment): It creates engine (`createEngine`) and is built from the same step (`same`) and the status step (`status`). The page's engine for the typed session (`cmd-model.mjs`). - What it does: It fetches overhead lines (OHL), solar and substations. Defines 10 functions or classes, including n0, createEngine, same, status, here. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), solar, substations. - Downstream impact: Used directly by 2 files: Build UI (globalgrid2050); Cmd UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export createEngine({ world, api, ohl, doc = document })`; `export pilesText(r, lay)`; `n0(v)`; `same(a, b)`; `status(id)`; `here()`; `ohlTest()`; `soilModel()`; `cfg(m.layers || [])`; `soilAt(e, n)`; `layout(input)`; `openLand(input)`; `drawnBoundary()`; `setBoundary(pts)`; `clearPlant()`; `avoid(st)`; `constraints(lay, st)`; `block({ stations, pocKv, at, trench, frame = false, modulesPerString, tempMinC })`; `clearBlock()`; `strings({ mps, tempMinC })`; `binoculars(arg)`; `xray(on)`; `piles(lay)`; `show({ layer, on, limit })`; `follow({ step })` (and 8 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 7 estate files (import 6, dynamic-import 1); used by 2; mentioned by 0 ### Cmd UI - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/cmd-ui.mjs (JavaScript, 151 lines) · role interaction · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/cmd-ui.mjs#L1-L151 - Page: https://code.globalgrid2050.com/explore-code/s/0180.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws cables, trench sections, overhead lines (OHL) and solar. - What it achieves (comment): It reads kept (`readKept`), writes kept (`writeKept`) and creates command line (`createCommandLine`). The command line over the world. It responds to click, keydown and input events. - What it does: It draws cables, trench sections, overhead lines (OHL) and solar. Defines 15 functions or classes, including readKept, writeKept, createCommandLine, data, moduleClass. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, overhead lines (OHL), solar. - Inputs & outputs: In: JSON file cables.json; JSON file trench-sections.json; JSON file modules.json; browser storage (getItem); form fields (user input). Out: browser storage (setItem). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Cmd Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export createCommandLine({ api, world, ohl, doc = document, onChange = () => {}, toggle = null })`; `readKept()`; `writeKept(h)`; `data(f)`; `moduleClass()`; `$(id)`; `say(line, text, ok)`; `drawChips()`; `next()`; `run(text, queued = false)`; `lift()`; `mark()`; `open()`; `close()`; `replay(lines)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file cables.json; JSON file trench-sections.json; JSON file modules.json; browser storage (getItem); form fields (user input)]; out [browser storage (setItem)]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 5 estate files (import 5); used by 1; mentioned by 0 ### Design Sections - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/design-sections.mjs (JavaScript, 214 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/design-sections.mjs#L1-L214 - Page: https://code.globalgrid2050.com/explore-code/s/0180.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that loads plant (`loadPlant`) and block (`loadBlock`), loads cables (`loadCables`) and reads inputs for spec source, spec and ground condition. - What it achieves (comment): It creates sections (`createSections`), loads options (`loadOptions`) and loads plant (`loadPlant`). The parts of the Design panel that follow a specification, kept out of `design-ui.mjs`. Its code works with 10 MVA, 33 kV and 10 MW. It responds to click and toggle events. - What it does: It lists and searches cables, solar, 33kV and substations. Defines 14 functions or classes, including cableBox, cableTubes, createSections, $, once. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar, 33kV, substations, 400kV, 275kV. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: Used directly by 1 file: Design UI (globalgrid2050). - Signatures: `export cableBox(c)`; `export cableTubes(c, eye)`; `export createSections({ doc, origin, viewer, measuredAt, heightAt, baseHeight, assets = () => [], nearest = null, redraw, release = () => f...)`; `export nearRuns(pl, eye, near)`; `$(id)`; `once(name, load)`; `loadOptions()`; `loadPlant()`; `loadBlock()`; `loadCables()`; `spec()`; `effOf(section)`; `cross(section, eff, cableOdMm)`; `extra(toLocalPts)`; `detail(b, batch)`; `close(p)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 9 estate files (import 5, dynamic-import 4); used by 1; mentioned by 0 ### Design UI - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/design-ui.mjs (JavaScript, 388 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/design-ui.mjs#L1-L388 - Page: https://code.globalgrid2050.com/explore-code/s/0181.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to local pts (`toLocalPts`), shows readout (`showReadout`), converts to nearest substation (`toNearestSubstation`) and calculates planar distances (units: kV). - What it achieves (comment): It creates design (`createDesign`), shows readout (`showReadout`) and shows results (`showResults`). Design tools in the world: Trench and Cable, drawn by clicking the ground. It responds to click, change and keydown events. - What it does: It draws cables, trench sections, substations and solar. Defines 35 functions or classes, including createDesign, $, groundVersion, groundShare, section. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, solar. - Inputs & outputs: In: JSON file cables.json; JSON file trench-sections.json. - Signatures: `export createDesign({ doc, canvas, fov, baseHeight, origin, viewer, invalidate, redraw, release = () => false, assets = () => [], measure...)`; `$(id)`; `groundVersion()`; `groundShare(pts)`; `section(id)`; `cableSpec(id)`; `toLocalPts(path)`; `effOf(sectionId)`; `trenchOf(sectionId, pts, eff = effOf(sectionId))`; `cableOf(cableId, ground, pts, sectionId, overdig = 0)`; `bed(Number(section(sectionId)?.bedding?.thickness_mm) || 0)`; `build()`; `heightAt(x, y)`; `designItems()`; `spoil(b.spoil ||= [])`; `batch(key, version, pos, color)`; `marker(v, [x, y, z], h, arm)`; `tightIndices(c)`; `batches()`; `nearFrom(end)`; `gridRow(pts, endAsset)`; `levelsAlong()`; `measure(kind, sectionId, cableId, pts, spoil, endAsset = null, eff = effOf(sectionId))`; `showReadout()`; `showResults()` (and 14 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file cables.json; JSON file trench-sections.json]; out []; crs []; voltages [] - Edges: uses 13 estate files (import 13); used by 0; mentioned by 0 ### Detail Cache - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/detail-cache.mjs (JavaScript, 92 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/detail-cache.mjs#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0181.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the budget for helper (`budgetFor`), the detail cache class (`DetailCache`) and the pump step (`pump`). - What it achieves (comment): Arrival cache and frame pump for procedural detail. - What it does: It calculates its inputs. Defines budgetFor, DetailCache, pump, arrivals. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export budgetFor({ phone = false } = {})`; `export class DetailCache`; `export pump(queue, cache, generate, now, { budgetMs = FRAME_BUDGET_MS, state = { mean: 0, n: 0 } } = {})`; `export arrivals(tables, cam, radius, cache)`; `constructor(budgetBytes, { onEvict = null } = {})`; `has(key)`; `get(key)`; `set(key, value, bytes)`; `delete(key)`; `evict(budget = this.budget)`; `obtain(key, generate)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Earth Photovoltaic (PV) - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/earth-pv.mjs (JavaScript, 398 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/earth-pv.mjs#L1-L398 - Page: https://code.globalgrid2050.com/explore-code/s/0182.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, transformers, 33kV and solar, using BS 7671 and IEC 60364-5-54. - What it achieves (comment): It is built from the is num helper (`isNum`), the round step (`round`) and the metal step (`metal`). PV array earthing, bonding, earth-fault and surge checks for an early solar block design (world cartridge, loaded only by `earth-mount.mjs` on the first earthing command). Its code works with 10 MVA, 33 kV and 20 kA. - What it does: It calculates cables, transformers, 33kV and solar. Defines 33 functions or classes, including isNum, round, metal, rPerM, adiabaticK. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, 33kV, solar. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Earth Study (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export rPerM(areaMm2, theta, m = 'cu', factor = 1.0)`; `export adiabaticK(m, thetaI, thetaF)`; `export adiabaticMinArea(I, t, m, thetaI, thetaF)`; `export adiabaticFinalC(I, t, areaMm2, m, thetaI)`; `export loopInductancePerM(a1Mm2, a2Mm2, spacingM)`; `export sourceSequence(p)`; `export lvEarthFault(opts = {})`; `export arrayInsulation(kWp, opts = {})`; `export insulationCheck(risoOhm, { tripKOhm, warnKOhm } = {})`; `export bodyCurrentFirstFault(risoOhm, opts = {})`; `export capacitiveLeakage(capF, vcmRms, f = 150)`; `export residualCheck(leakA, limitA)`; `export functionalEarthConductor({ uocMax = 1500, resistorOhm = null, deviceA = null } = {})`; `export bondingPlan({ rows, rowLengthM, rowPitchM, ...opts })`; `export rodResistance(rhoOhmM, L, d)`; `export mutualRodResistance(rhoOhmM, L, s)`; `export meshResistance(rhoOhmM, A, Ltot, h = 0.6)`; `export pileLayout({ rows, tablesPerRow, tableLengthM, tableGapM = 1, pilesPerTable, rowPitchM })`; `export pilesResistance(piles, { rhoOhmM = 100, L = 1.8, d = 0.1 } = {})`; `export dcSpdNeed({ routeM, ng, coefficient } = {})`; `export collectionArea(L, W, H)`; `export flashesPerYear(ng, areaM2, locationFactor = 1)`; `export blockEarthing(opts = {}, limits = {})`; `export readout(block)`; `export sldBadges(block)` (and 10 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Earth Screen - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/earth-screen.mjs (JavaScript, 341 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/earth-screen.mjs#L1-L341 - Page: https://code.globalgrid2050.com/explore-code/s/0183.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, using IEC 60287-1-1 and IEC 60949. - What it achieves (comment): It places marks (`placeMarks`) and is built from the add step (`add`) and the mul step (`mul`). `earth-screen.mjs` (world cartridge, loaded by `earth-mount.mjs`): metallic screen (sheath) bonding of single-core MV/HV cable circuits. - What it does: It calculates cables. Defines 28 functions or classes, including C, add, mul, div, abs. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: Earth Draw (globalgrid2050); Earth Study (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export csolve(A, b)`; `export circuitGeometry({ formation = 'trefoil', sMm, screenMeanMm, screenAreaMm2, screenMat = 'Cu', thetaS = BONDING_DEFAULTS.thetaScreenC }...)`; `export phaseCurrents(I)`; `export screenEmfPerM(geo, Icore, freq = BONDING_DEFAULTS.freq)`; `export solidBonding(geo, { I, R, freq = BONDING_DEFAULTS.freq })`; `export solidTrefoilClosed(geo, { R, freq = BONDING_DEFAULTS.freq })`; `export standingVoltage(geo, { I, lengthM, freq = BONDING_DEFAULTS.freq })`; `export maxSinglePointM(geo, { I, limitV = BONDING_DEFAULTS.touchLimitV, freq = BONDING_DEFAULTS.freq })`; `export crossBonding(geo, { I, R, minorM, freq = BONDING_DEFAULTS.freq })`; `export crossTrefoilClosed(geo, { R, minorM, freq = BONDING_DEFAULTS.freq })`; `export carsonDepth(rho, freq = BONDING_DEFAULTS.freq)`; `export faultStandingVoltage(geo, { If3, If1, lengthM, ecc = {}, freq = BONDING_DEFAULTS.freq, soilOhmM = BONDING_DEFAULTS.soilOhmM, earthOhm = BO...)`; `export adiabaticK(mat = 'Cu', [thI, thF] = BONDING_DEFAULTS.eccThetaC)`; `export eccMinAreaMm2(If, t = BONDING_DEFAULTS.faultS, mat = 'Cu')`; `export ratingRatio(lambdaA, lambdaB)`; `export recommendBonding(run, opts = {})`; `export bondingRows(s)`; `export placeMarks(marks, path)`; `C(re, im = 0)`; `add(a, b)`; `mul(a, b)`; `div(a, b)`; `abs(a)`; `polar(m, deg)`; `dist(a, b)` (and 4 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Earth Study - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/earth-study.mjs (JavaScript, 193 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/earth-study.mjs#L1-L193 - Page: https://code.globalgrid2050.com/explore-code/s/0183.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, substations, 33kV and transformers, using BS 7430 and BS 7671. - What it achieves (comment): It is built from the block rects helper (`blockRects`), the size step (`size`) and the poly len helper (`polyLen`). The earthing study of the placed solar block, from its geometry and single-line network, using the three earthing engines (`earth-pv.mjs`, `earth-grid.mjs`, `earth-screen.mjs`). Its code works with 33 kV and 10 MVA. - What it does: It calculates cables, substations, 33kV and transformers. Defines 11 functions or classes, including blockRects, size, polyLen, earthStudy, fieldMesh. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, substations, 33kV, transformers. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Earth Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export blockRects(b)`; `export earthStudy({ block, net = null, settings = {} })`; `export earthChecks(s)`; `export earthRows(s, which = null)`; `size(r)`; `polyLen(pts)`; `lengths(block.built.cables?.ac || [])`; `fieldMesh(st)`; `ring(st)`; `up(s)`; `gt(f)`; `add(id, failed, line, inputs, standard)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 6 estate files (import 6); used by 1; mentioned by 0 ### Extensions - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/extensions.mjs (JavaScript, 16 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/extensions.mjs#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0183.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the mount extensions helper (`mountExtensions`). - What it achieves (comment): Extensions mounted after the first frame, each in its own chunk: a failure in one is a console line, never a broken page. - What it does: Defines ONE, mountExtensions. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `export mountExtensions({ api })`; `ONE(path, name, handle, mount)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fade - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/fade.mjs (JavaScript, 17 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/fade.mjs#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0183.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with far plane (`farPlane`). It is built from the fade for helper (`fadeFor`) and the far plane helper (`farPlane`). - What it achieves (comment): How far the world is drawn before it fades out, and the far plane that follows it. - What it does: It calculates its inputs. Defines fadeFor, farPlane. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Layers UI (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export fadeFor(view, above, rangeM = 0, plantM = 0)`; `export farPlane(fade)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### First Showing - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/first-showing.mjs (JavaScript, 94 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/first-showing.mjs#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0183.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that reads substations and the Renewable Energy Planning Database (REPD) register. It places label (`placeLabel`) and shows place (`showPlace`). - What it achieves (comment): The first step, offered once (a small card that opens Find; dismissed for good with × or by using Find), and the place just found. It responds to click, pointerdown and keydown events. - What it does: It loads substations and the REPD register. Defines 11 functions or classes, including placeLabel, substationLine, pinBatch, mountFirstShowing, $. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, the REPD register. - Inputs & outputs: In: browser storage (getItem). Out: browser storage (setItem). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export placeLabel(choice)`; `export substationLine(sub, tower, line = null)`; `export pinBatch(x, y, z, version)`; `export mountFirstShowing({ doc = document, canvas, redraw, origin, heightAt, groundVersion, assets = () => [], nearest = null, openFind })`; `$(id)`; `remembered()`; `dismissStart()`; `phone()`; `aside()`; `gridLine(e, n)`; `showPlace(choice, e, n, note = '')`; `batches()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser storage (getItem)]; out [browser storage (setItem)]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 4 estate files (import 4); used by 0; mentioned by 0 ### Hud Checks - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/hud-checks.mjs (JavaScript, 154 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/hud-checks.mjs#L1-L154 - Page: https://code.globalgrid2050.com/explore-code/s/0184.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that parses private rules (`parsePrivateRules`) (units: mm²), covering cables and solar, using BS 7671 and IEC 62548-1. - What it achieves (comment): It parses private rules (`parsePrivateRules`) and is built from the pct of helper (`pctOf`) and the public checks helper (`publicChecks`). The design checks the check HUD shows (`hud-ui.mjs`), one line per FAILED check. - What it does: It lists and searches cables and solar. Defines 11 functions or classes, including pctOf, publicChecks, voc, plantStringFacts, hi. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, solar. - Downstream impact: Used directly by 1 file: Hud UI (globalgrid2050). - Signatures: `export publicChecks(f = {})`; `export plantStringFacts(r, cat = null)`; `export plantFacts(r)`; `export parsePrivateRules(doc)`; `export evaluatePrivate(rules, facts = {})`; `export hudLines(publicList, privateList = [])`; `pctOf(u)`; `voc(id, pre, S)`; `hi(c)`; `cls(cat?.classes || [])`; `compare(v, op, lim)`; `dotted(o, k)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 5 estate files (import 5); used by 1; mentioned by 0 ### Hud UI - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/hud-ui.mjs (JavaScript, 159 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/hud-ui.mjs#L1-L159 - Page: https://code.globalgrid2050.com/explore-code/s/0184.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that places box (`placeBox`) and loads rules (`loadRulesText`) (units: kVA), covering solar and cables. - What it achieves (comment): It places box (`placeBox`) and loads rules text (`loadRulesText`). Small monospace red text over the view, top-left under the plan, a thin red rule, low opacity: one line per failed design check (`hud-checks.mjs`), each with a tiny "i" that opens its working (inputs, the standard cited by number. It responds to change and click events. - What it does: It draws solar and cables. Defines 10 functions or classes, including mountHud, inputs, dropsFor, facts, render. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, cables. - Inputs & outputs: In: JSON file modules.json. - Signatures: `export mountHud({ api, world, doc = document, fetchImpl = (u, o) => fetch(u, o) })`; `inputs()`; `dropsFor(B)`; `facts()`; `render()`; `placeBox()`; `replace()`; `refresh(force = false)`; `loadRulesText(text, name = 'rules')`; `rulesFromQuery(loc = location)`; `set(on)`; `pickRules()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file modules.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, dynamic-import 1); used by 0; mentioned by 0 ### Jump - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/jump.mjs (JavaScript, 132 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/jump.mjs#L1-L132 - Page: https://code.globalgrid2050.com/explore-code/s/0184.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with take off (`takeOff`) and calculates planar distances. - What it achieves (comment): It is built from the apex of helper (`apexOf`), the air time of helper (`airTimeOf`) and the dip at helper (`dipAt`). Jump in Walk (Space): real gravity, a short hold for a little more height, landing on measured ground and on solids. - What it does: It calculates its inputs. Defines 11 functions or classes, including apexOf, airTimeOf, dipAt, supportAt, createJump. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Senses Mount (globalgrid2050). - Signatures: `export apexOf(v = V0, g = G)`; `export airTimeOf(v = V0, g = G)`; `export dipAt(t, vi)`; `export supportAt(x, y, feetZ, heightAt, solids = [], radius = VIEWS.standing.body.radius)`; `export createJump()`; `reset()`; `dipNow()`; `carried(yaw, i)`; `takeOff(state, i)`; `fly(state, dt, heightAt, solids)`; `press()`; `release()`; `step(state, input, dt, heightAt, solids = [])`; `under(x, y)`; `hold(state, heightAt, solids = [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Keyset - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/keyset.mjs (JavaScript, 22 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/keyset.mjs#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0184.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050. It is built from the address step (`address`), the anchor step (`anchor`) and the records step (`records`). - What it achieves (comment): The pair's key set: synthetic plants (anonymous test land, no site) whose table addresses and anchors are fixed integer functions of an ordinal. - What it does: It calculates its inputs. Defines address, anchor, records. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export address(n)`; `export anchor(n)`; `export records()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Grid - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/layers/grid.mjs (JavaScript, 380 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/layers/grid.mjs#L1-L380 - Page: https://code.globalgrid2050.com/explore-code/s/0185.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with substations, 33kV, 400kV and 275kV, using SHA-256. - What it achieves (comment): It parses grid file (`parseGridFile`), parses national index (`parseNationalIndex`) and parses national tile (`parseNationalTile`). Overhead lines from a per-site file and substations from the national index, drawn as quiet wireframe. Its code works with 33 kV, 132 kV and 275 kV. - What it does: It calculates substations, 33kV, 400kV and 275kV. Defines 30 functions or classes, including voltageClass, styleClass, finite, isPt, parseGridFile. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, 33kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 1 file: Legend UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export voltageClass(kv)`; `export styleClass(kv)`; `export parseGridFile(j)`; `export parseNationalIndex(j)`; `export parseNationalTile(j, key)`; `export tileDistance(t, tileM, e, n)`; `export mergeSubstations(fromFile, fromIndex)`; `export nearSet(model, origin, pos = [0, 0], within = NEAR_M)`; `export marker(x, y, z, o)`; `export compound(x, y, cls, heightAt, o = [0, 0, 0])`; `export towerGrounds(towers, measuredAt, heightAt)`; `export measuredSpans(towers, measuredAt)`; `export roundClearance(v)`; `export judged(c)`; `export clearanceStatus(model, clearances)`; `export buildGrid(model, origin, heightAt, buildOverhead, measuredAt = heightAt, near = null, shown = null)`; `export createGrid()`; `finite(h, d = 0)`; `isPt(p)`; `substations(Array.isArray(j.substations) ? j.substations : [])`; `P(dx, dy, up)`; `L(a, b)`; `fmt(c)`; `straightGround(towers, x, y)`; `local(e, n)` (and 8 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### National - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/layers/national.mjs (JavaScript, 396 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/layers/national.mjs#L1-L396 - Page: https://code.globalgrid2050.com/explore-code/s/0186.html#f1 - Synopsis: A JavaScript module in the layers folder of GlobalGrid2050 that works with 33kV, 400kV, 275kV and 132kV, using SHA-256. It rebuilds step (`rebuildStep`), starts near (`startNear`) and loads index (`loadIndex`). - What it achieves (comment): Roads, mainline railways, overhead lines with their towers, and every substation in Great Britain, from GridAtlas's national files (OpenStreetMap, ODbL), cut into 10 km tiles by `tools/features/cut_national.py`. Its code works with 33 kV, 132 kV and 275 kV. - What it does: It calculates 33kV, 400kV, 275kV and 132kV. Defines 34 functions or classes, including rebuildStep, styleClass, voltageClass, clipToCircle, boxDist. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, 400kV, 275kV, 132kV, 220kV, 66kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Signatures: `export rebuildStep(rangeM)`; `export styleClass(kv)`; `export voltageClass(kv)`; `export clipToCircle(ax, ay, bx, by, cx, cy, r)`; `export boxDist(x, y, b)`; `export wantedFiles(squares, tiles, kinds, e, n, r)`; `export boxOf(p)`; `export buildNational(tiles, v, ground, lib, memo = new Map())`; `export createNational()`; `zAt(x, y)`; `h(x - v.x)`; `out(g)`; `seg(a, ax, ay, az, bx, by, bz)`; `r2(x, y)`; `skip(p, tx, ty)`; `run(a, ax, ay, bx, by, lift, side = 0)`; `pieces(ax, ay, bx, by)`; `polyline(a, p, tx, ty, lift, from = 0, to = p.length / 2 - 1, twin = false)`; `plainLift(cls)`; `power(f, tx, ty, id)`; `isNear(t)`; `flush()`; `substation(f, tx, ty)`; `zero()`; `startNear(farNext, gv, t, why)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Lines - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/lines.mjs (JavaScript, 180 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/lines.mjs#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0186.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that splits batches (`splitBatches`), calculates planar distances and renders with WebGL. - What it achieves (comment): It splits batches (`splitBatches`) and is built from the offset of helper (`offsetOf`) and the occluder mesh helper (`occluderMesh`). Line renderer: raw WebGL 1, flat colour, lines fade with distance. It responds to webglcontextlost and webglcontextrestored events. - What it does: It draws its content. Defines 8 functions or classes, including offsetOf, splitBatches, occluderMesh, put, occluderFollower. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: WebGL/WebGPU drawing. - Downstream impact: Used directly by 2 files: Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export CURVATURE_PER_M2(1 - 0.13)`; `export offsetOf(origin, eye)`; `export splitBatches(batches)`; `export occluderMesh(heightAt, x, y, { cell = 8, radius = 400, sink = 0.5, key = 'occluder', version } = {})`; `export occluderFollower({ every = 64, ...opts } = {})`; `export createLines(canvas, { onRestore = () => {} } = {})`; `put(i, j)`; `init()`; `bind(b, data)`; `release(key)`; `setBackdrop(fn)`; `resize(nextScale)`; `draw(matrix, eye, fade, batches, target)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LV DC Sizing - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/lv-dc-sizing.mjs (JavaScript, 398 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/lv-dc-sizing.mjs#L1-L398 - Page: https://code.globalgrid2050.com/explore-code/s/0187.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, using IEC 60287 and IEC 60287-1-1. - What it achieves (comment): It is built from the rdc step (`rdc`), the rac step (`rac`) and the build step (`build`). LV AC and 1.5 kV DC PV cable sizing, with our own code and editable inputs. Its code works with 1 kV. - What it does: It calculates cables. Defines 27 functions or classes, including rdc, rac, build, adiabaticK, air. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 1.5kV, 1kV. - Inputs & outputs: Voltage levels named: 1.5kV, 1kV. - Downstream impact: Used directly by 2 files: Cmd Trench (globalgrid2050); Hud Checks (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export rdc(area, t, cable)`; `export rac(area, t, cable, { freq = 50, spacingMm = null } = {})`; `export build(area, cable)`; `export adiabaticK(metal, ti = 90, tf = 250)`; `export nuCylinder(ra, pr = 0.71)`; `export airLoss(dM, ts, ta, { emissivity = 0.9, solarWm2 = 0, absorptivity = 0.6 } = {})`; `export annulusLoss(di, dOut, ti, to, { e1 = 0.9, e2 = 0.9 } = {})`; `export bundleFactor(m)`; `export trefoilRow(n, spacingM, depthM, odMm)`; `export row(n, spacingM, depthM)`; `export rating(spec)`; `export operatingC(ratingResult, I)`; `export chooseIn(Ib, { device = 'mccb', adjustable = false, setStep = 5, ratings = PREFERRED } = {})`; `export coordinate({ Ib, In, Iz, device = 'mccb', overloadLimit = 1.45 })`; `export voltDrop({ dc = false, I, lengthM, r, x = 0, U, pf = 1 })`; `export reactance(area, cable, { freq = 50, spacingMm = null, flat = false } = {})`; `export faultArea(metal, kA, seconds, ti = 90, tf = 250)`; `export stringCircuit(opts = {})`; `export inverterCircuit(opts = {})`; `export minSpacing(o)`; `xs4(8 * PI * freq / r * 1e-7)`; `air(tC)`; `lc(dOut - di)`; `x(c - (n - 1) / 2)`; `mutualT(rho, p, q)` (and 6 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [1.5kV, 1kV] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Module Catalogue - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/module-catalogue.mjs (JavaScript, 103 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/module-catalogue.mjs#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0187.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, using IEC 62548-1. It checks catalogue (`checkCatalogue`) and splits row (`splitRow`). - What it achieves (comment): The generic module catalogue (`data/modules.json`): schema check, the cell grid of a class, the cold open-circuit voltage, and the string and table counts a class gives on a table face. - What it does: It calculates cables. Defines 14 functions or classes, including NUM, checkCatalogue, classOf, nominal, highestVoc. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 7 files: Cmd Derive (globalgrid2050); Module Mount (globalgrid2050); String Design (globalgrid2050); LV DC Sizing (globalgrid2050); and 3 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export checkCatalogue(doc)`; `export classOf(doc, id)`; `export nominal(c)`; `export highestVoc(c)`; `export splitRow(c)`; `export sizeM(c)`; `export cellGrid(c)`; `export vocAt(c, tC, bin = nominal(c))`; `export coldVocOf({ voc, coeffPctPerK, tC })`; `export coldVoc(c, tC, bin = highestVoc(c))`; `export modulesPerString(c, coldC, systemV = 1500)`; `export faceFit(c, spanM, runM, gapM = 0.02, orient = 'portrait')`; `export countsFor(c, faces, coldC, systemV = 1500)`; `NUM(v)`; `gapT(lL - rows * ch - splitGap)`; `s0(W - lW)`; `tOf(r)`; `split(tOf(half) - splitGap / 2 - gapT / 2)`; `fit(a, b)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Module Geometry - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/module-geometry.mjs (JavaScript, 126 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/module-geometry.mjs#L1-L126 - Page: https://code.globalgrid2050.com/explore-code/s/0187.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It places module (`placeModule`) and is built from the sub step (`sub`) and the cross step (`cross`). - What it achieves (comment): One module drawn from its catalogue class and the table face it sits on, level by level. - What it does: It calculates cables. Defines 16 functions or classes, including sub, cross, unit, gridOf, placeModule. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: Module Mount (globalgrid2050); Module View (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export placeModule(face, row, col, c)`; `export moduleCount(face, c)`; `export moduleLines(M, c, level, out, base, grow = {}, info = null)`; `export levelCost(c)`; `sub(a, b)`; `cross(a, b)`; `unit(a)`; `gridOf(c)`; `s0(face.span - (fit.columns * (ds + g) - g))`; `pt(fs, ft, h = 0)`; `P(fs, ft, h)`; `seg(a, b)`; `line(s0, t0, s1, t1, h)`; `rect(s0, t0, s1, t1, h)`; `box(s0, t0, s1, t1, h0, h1)`; `use(name)`; `lead(s0, t, len, dir, end)`; `mid(s0 + s1)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Module View - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/module-view.mjs (JavaScript, 161 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/module-view.mjs#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0188.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It is built from the lerp3 step (`lerp3`), the block faces helper (`blockFaces`) and the plant faces helper (`plantFaces`). Which modules are drawn in detail, and how far each has opened, from where the viewer looks. - What it does: It calculates solar. Defines 16 functions or classes, including lerp3, blockFaces, at, plantFaces, c. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Module Mount (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export blockFaces(built)`; `export plantFaces(r)`; `export faceBox(f)`; `export faceGrid(faces, cell = CELL_M)`; `export facesNear(grid, eye, r = ENTER_M[0] * LEAVE)`; `export centresOf(f, c)`; `export levelAt(d, prev = 0)`; `export choose(faces, eye, dir, c, prev = new Map(), cache = new Map(), cap = CAP)`; `export hitModule(picks, c, origin, dir)`; `export builtStringLength(face, { block = null, plant = null } = {})`; `lerp3(A, B, C, D, a, b)`; `at(u, v)`; `c(u, v, z)`; `face(key, A, B, C, D, k)`; `boxDist(b, e)`; `rayTri(o, d, a, b, c)`; `t(e2[0] * q[0] + e2[1] * q[1] + e2[2] * q[2])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Nav Chips - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/nav-chips.mjs (JavaScript, 57 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/nav-chips.mjs#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0188.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with chip strip (`chipStrip`) and history step (`historyStep`). - What it achieves (comment): It is built from the esc step (`esc`), the chip strip helper (`chipStrip`) and the chip HTML helper (`chipHtml`). The breadcrumb bar and the phone chip strip, as data and as markup; the keys that move between levels; and what the browser history should do on each move. - What it does: It calculates its inputs. Defines 7 functions or classes, including esc, chipStrip, chipHtml, keyMove, historyStep. - Why it exists in the grid workflow: Domain stage field_execution (path word 'nav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `export chipStrip(path, { phone = false } = {})`; `export chipHtml(strip, { phone = false } = {})`; `export keyMove(key, path)`; `export historyStep(from, to)`; `export pathFromLocation(hash)`; `esc(s)`; `depth(p)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Nav Flight - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/nav-flight.mjs (JavaScript, 178 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/nav-flight.mjs#L1-L178 - Page: https://code.globalgrid2050.com/explore-code/s/0188.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that picks block (`pickBlock`), fits view (`fitView`) and calculates planar distances and angles. It picks block (`pickBlock`) and fits view (`fitView`). - What it achieves (comment): Flying about the plant: the start view that frames it all, the camera for each level, which block a tap is on, whether a flight may glide instead of the far-place origin jump, and a descent that eases through log(height). Its code works with 500 MW. - What it does: It calculates its inputs. Defines 24 functions or classes, including ease, clamp, turn, boxCentre, boxGrow. - Why it exists in the grid workflow: Domain stage field_execution (path word 'nav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 2 files: Plant UI (globalgrid2050); Substrate (globalgrid2050). Reached from 1 other entry point, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `export boxCentre(b)`; `export boxGrow(b, m)`; `export inBox(b, x, y)`; `export boxOfPoints(pts)`; `export blockSlices(stations)`; `export blockBox(tables, slice, toLocal, lenU, depth)`; `export pickBlock(blocks, x, y, tolM = 0)`; `export fitView(box, { fovy = 70 * DEG, aspect = 16 / 9, pitch = -45 * DEG, margin = 1.1, minDistance = 50, yaw = null } = {})`; `export plantView(plantBox, screen = {})`; `export blockView(box, screen = {})`; `export rowView(start, end)`; `export tableView(centre, facing)`; `export stringStand(centre, facing, blocked = () => false)`; `export glides(from, to, plantBox, { jumpM = JUMP_M, toM = 500, reachM = 7000 } = {})`; `export flightSeconds(h0, h1, d = 0)`; `export descend(state, target, opts = {})`; `ease(u)`; `clamp(v, a, b)`; `turn(from, to)`; `screenOf(px, py, cx, cy, yaw, pitch, distance, tv, th)`; `fits(a, D)`; `need(a)`; `finished(t)`; `pose(t)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Nav Path - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/nav-path.mjs (JavaScript, 172 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/nav-path.mjs#L1-L172 - Page: https://code.globalgrid2050.com/explore-code/s/0188.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to hash (`toHash`). - What it achieves (comment): It parses nav (`parseNav`) and is built from the whole step (`whole`) and the lower step (`lower`). Where the viewer is in the plant: Plant > Block > Row > Table > String. - What it does: It lists and searches its content. Defines 16 functions or classes, including whole, lower, clean, levelOf, up. - Why it exists in the grid workflow: Domain stage field_execution (path word 'nav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Nav Chips (globalgrid2050). - Signatures: `export clean(p = {})`; `export levelOf(p)`; `export up(p)`; `export samePath(a, b)`; `export toHash(p)`; `export fromHash(hash)`; `export crumbs(p)`; `export crumbText(p)`; `export normalise(p, counts)`; `export parseNav(line)`; `export resolve(cmd, current = PLANT)`; `export fromGoArg(arg)`; `export navigate(line, current, counts)`; `whole(v)`; `lower(k)`; `range(where, what, n)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Pack Check - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/pack-check.mjs (JavaScript, 254 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/pack-check.mjs#L1-L254 - Page: https://code.globalgrid2050.com/explore-code/s/0189.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that imports refusal (`importRefusal`) and creates bus (`createBus`), using SHA-256. It validates pack (`validatePack`), imports refusal (`importRefusal`) and imports text (`importText`). - What it achieves (comment): The checks and parts of the layer pack loader (contract world.pack.v1): validation of `pack.json`, the API, import and shape refusals, hashing and importing, the event bus, fixed steps and reading a pack folder. - What it does: It fetches data. Defines 19 functions or classes, including isObj, str, safePath, validatePack, need. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pack.json. - Downstream impact: Used directly by 1 file: Pack Loader (globalgrid2050). - Signatures: `export isObj(v)`; `export str(v, max = 200)`; `export safePath(p)`; `export validatePack(p)`; `export apiRefusal(need, world = API)`; `export importRefusal(text)`; `export normalise(text)`; `export sha256Text(text, subtle = globalThis.crypto?.subtle)`; `export importText(text)`; `export createBus({ onError = () => {}, clone = globalThis.structuredClone, maxDepth = 16 } = {})`; `export advance(acc, dt, fixed = FIXED_DT, max = MAX_SUBSTEPS)`; `export getText(fetchImpl, url)`; `export readPack(from, { base, fetchImpl = (u, o) => fetch(u, o) } = {})`; `export shapeRefusal(mod, pack)`; `need(ok, why)`; `on(name, fn)`; `emit(name, payload)`; `scoped(id, declared = {})`; `offAll()`; `deepFreeze(o)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file pack.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Pack Loader - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/pack-loader.mjs (JavaScript, 240 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/pack-loader.mjs#L1-L240 - Page: https://code.globalgrid2050.com/explore-code/s/0189.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates pack host (`createPackHost`), using SHA-256. - What it achieves (comment): It creates pack host (`createPackHost`) and is built from the off step (`off`) and the guard step (`guard`). Loads layer packs into a world, contract world.pack.v1 (see `CONTRACT.md` beside this folder). - What it does: It fetches data. Defines 18 functions or classes, including createPackHost, off, guard, add, refuse. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Packs Mount (globalgrid2050). - Signatures: `off(item, why)`; `guard(item, hook, fn)`; `add(pin)`; `refuse(why)`; `load(id)`; `setOn(item, on)`; `toggle(id, on)`; `live()`; `frame(ctx = {})`; `step(realDt, ctx = {})`; `active()`; `command(line, io = { say: () => {} })`; `key(k, io)`; `panel()`; `help()`; `dispose(id)`; `disposeAll()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Packs Mount - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/packs-mount.mjs (JavaScript, 112 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/packs-mount.mjs#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0189.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that shows hud (`showHud`), using SHA-256. - What it achieves (comment): It shows hud (`showHud`) and is built from the pack key allowed helper (`packKeyAllowed`) and the typing step (`typing`). Layer packs in the world (contract world.pack.v1; `pack-loader.mjs`). It responds to keydown and click events. - What it does: It draws its content. Defines 12 functions or classes, including packKeyAllowed, typing, packCtx, keyName, mountPacks. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export packKeyAllowed(k)`; `export packCtx(state, heightAt, groundVersion)`; `export keyName(e)`; `export mountPacks({ api, world = globalThis.window?.world, doc = document, manifestUrl = new URL('./manifest.json', import.meta.url).hr...)`; `typing(t)`; `kick()`; `bound()`; `showHud(lines)`; `render()`; `panelRoot()`; `attach()`; `watch()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Pick - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/pick.mjs (JavaScript, 55 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/pick.mjs#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0189.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that snaps to grid (`snapToGrid`) and calculates planar distances. It picks ground (`pickGround`) and snaps grid (`snapToGrid`). - What it achieves (comment): Picking: which point on the ground is under a pixel. - What it does: It calculates its inputs. Defines rayFromScreen, pickGround, below, snapToGrid, snap. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Module Mount (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050); Build UI (globalgrid2050); Design UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export rayFromScreen(px, py, width, height, eye, yaw, pitch, fovy)`; `export CURV(1 - 0.13)`; `export pickGround(ray, groundAt, { maxDistance = 2000, step = 0.5, curv = CURV } = {})`; `export snapToGrid(point, spacing)`; `nx(2 * px)`; `below(t)`; `mid(lo + hi)`; `t(lo + hi)`; `snap(v)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Pile Rules - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/pile-rules.mjs (JavaScript, 120 lines) · role render · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/pile-rules.mjs#L1-L120 - Page: https://code.globalgrid2050.com/explore-code/s/0190.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with tracker hub (`trackerHub`) and reveal band (`revealBand`), covering solar. - What it achieves (comment): It is built from the rules for helper (`rulesFor`), the reveal at helper (`revealAt`) and the tracker hub helper (`trackerHub`). The one set of pile rules shared by the pile row tool (`piles.mjs`), the plant layout (`plant-piles.mjs`) and the solar block (`block-build.mjs`), with two profiles: fixed tilt and single-axis tracker. - What it does: Defines 8 functions or classes, including rulesFor, revealAt, trackerHub, revealBand, heightFlags. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 6 files: Block Build (globalgrid2050); Piles (globalgrid2050); Plant Pack (globalgrid2050); Plant Piles (globalgrid2050); and 2 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export rulesFor(system)`; `export revealAt({ lowEdgeM, rise, f, railDepthM = PILE_RULES.railDepthM })`; `export trackerHub(R = TRACKER_RULES)`; `export revealBand(nominal, rules = PILE_RULES)`; `export heightFlags(reveal, design, rules = PILE_RULES)`; `export withSoil(rules, soil)`; `export tableLines({ lowEdgeM, rise, posts = 2, eastWest = false, tracker = false, rules = PILE_RULES })`; `export twistDeg(bFront, bRear, len, depth, dz = 0)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Plant Central - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-central.mjs (JavaScript, 46 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-central.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0190.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers. It is built from the central items helper (`centralItems`) and the item solids helper (`itemSolids`). - What it achieves (comment): What a central-inverter plant adds to the drawing. - What it does: It calculates transformers. Defines centralItems, itemSolids. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers. - Downstream impact: Used directly by 1 file: Plant UI (globalgrid2050). - Signatures: `export centralItems(r)`; `export itemSolids(kind, at = [0, 0, 0], id = kind, heading = 0)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Plant Ground - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-ground.mjs (JavaScript, 95 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-ground.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0190.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates site ground (`createSiteGround`), using SHA-256. - What it achieves (comment): It creates site ground (`createSiteGround`) and is built from the start step (`start`) and the site step (`site`). The measured ground under a whole plant boundary, and the mapped water beside it. Its code works with 500 MW. - What it does: It calculates its inputs. Defines 12 functions or classes, including createSiteGround, start, site, extent, loadFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Block UI (globalgrid2050); Plant UI (globalgrid2050). - Signatures: `export createSiteGround({ manifestUrl = './world/manifest.json', fetchImpl } = {})`; `start()`; `cfg(manifest.layers || [])`; `site()`; `extent({ ring = false } = {})`; `loadFor({ e0, n0, e1, n1 }, onTile = () => {}, { ring = false } = {})`; `hit(s)`; `ringAt(e, n)`; `heightAt(e, n)`; `s(t.samples - 1)`; `sampler()`; `ringShare()`; `water()`; `survey()` - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Plant Layout - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-layout.mjs (JavaScript, 374 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-layout.mjs#L1-L374 - Page: https://code.globalgrid2050.com/explore-code/s/0190.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that maps overhead lines (OHL), solar and substations. - What it achieves (comment): It is built from the table geometry helper (`tableGeometry`), the frame of helper (`frameOf`) and the inside step (`inside`). A solar plant laid out on measured ground inside a drawn boundary, from generic rules. Its code works with 33 kV and 5000 MW. - What it does: It maps overhead lines (OHL), solar and substations. Defines 23 functions or classes, including tableGeometry, frameOf, inside, segDist, edgeDist. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), solar, substations, 33kV. - Inputs & outputs: Out: interactive map. Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Build Rules (globalgrid2050); Cmd Model (globalgrid2050); Plant UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export tableGeometry(layout, p, tpl)`; `export frameOf(layout)`; `export inside(poly, x, y)`; `export edgeDist(poly, x, y)`; `export polyArea(poly)`; `export waterIndex(lines, reach, cell = 64)`; `export layoutSteps(input)`; `export layoutPlant(input)`; `export layoutPlantAsync(input, { sliceMs = 12, onProgress = () => {}, now = () => performance.now(), pause } = {})`; `segDist(x, y, ax, ay, bx, by)`; `nearestEdge(poly, x, y)`; `byFields(o.packing ?? LAYOUT_DEFAULTS.packing)`; `tplOf(mw)`; `g(u, v)`; `water(input.water || [])`; `inOhl(u, v)`; `us(us0 + us1)`; `inCompound(ua, ub, va, vb)`; `inAccess(ua, ub, va, vb)`; `avoid(input.avoid || [])`; `alongPts(ua, ub, vs)`; `stretchAt(va, vb, fi = -1)`; `consider(ua, ub, va, vb, m)`; `um(ua + ub)`; `gu(e5 - w5)` (and 5 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [interactive map]; crs []; voltages [33kV] - Edges: uses 6 estate files (import 6); used by 3; mentioned by 0 ### Plant Lod - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-lod.mjs (JavaScript, 224 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-lod.mjs#L1-L224 - Page: https://code.globalgrid2050.com/explore-code/s/0191.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that runs outline (`runOutline`), converts to group (`toGroup`) and calculates planar distances. It runs outline (`runOutline`) and creates lod (`createLod`). - What it achieves (comment): A large plant drawn from its pack (`plant-pack.mjs`) at the detail the distance allows. - What it does: It calculates its inputs. Defines 19 functions or classes, including plantLevel, cellLevel, boxDistance, surfaceOf, outlineOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Plant UI (globalgrid2050). - Signatures: `export plantLevel(h, prev = null)`; `export cellLevel(dist, prev = 1, bands = CELL_BANDS)`; `export boxDistance(p, [x0, y0, z0, x1, y1, z1])`; `export moduleGridOf(pack, i, v, base)`; `export runsOf(pack, ids)`; `export hull(pts)`; `export createLod(pack, { colours, release = () => {}, onPending = () => {}, extra = null, maxBytes = 24 << 20, now = () => performance...)`; `surfaceOf(pack, i)`; `s(a + L)`; `z(1 - t)`; `outlineOf(pack, i, v, base)`; `seg(a, b)`; `runOutline(pack, run, v, base)`; `cellBox(c)`; `get(key, base, colour, fill)`; `evict()`; `K(s)`; `batches(eye, toOrigin)`; `toGroup(c)`; `dispose()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Plant Pack - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-pack.mjs (JavaScript, 154 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-pack.mjs#L1-L154 - Page: https://code.globalgrid2050.com/explore-code/s/0191.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with pack plant (`packPlant`) and index pack (`indexPack`) (units: MW, MVA). - What it achieves (comment): It indexes pack (`indexPack`), encodes pack (`encodePack`) and decodes pack (`decodePack`). A laid-out plant as a compact pack, the one source every overview level is drawn from. Its code works with 500 MW. - What it does: Defines 10 functions or classes, including axesOf, cornersOf, packPlant, allocate, graphOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Plant Lod (globalgrid2050); Plant UI (globalgrid2050). - Signatures: `export axesOf(h)`; `export cornersOf(pack, i)`; `export packPlant(r, { surface = null } = {})`; `export indexPack(pack, cellM = CELL_M)`; `export cellTables(pack, c)`; `export encodePack(pack)`; `export decodePack(buf)`; `export packSize(pack)`; `allocate(n, origin, types)`; `graphOf(r, origin)`; `feeders(r.electrical?.feeders || [])`; `pad(4 - ((12 + head.length) % 4))` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Plant Packing - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-packing.mjs (JavaScript, 137 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-packing.mjs#L1-L137 - Page: https://code.globalgrid2050.com/explore-code/s/0191.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with seg dist (`segDist`) and inside poly (`insidePoly`) and calculates planar distances. - What it achieves (comment): It is built from the seg dist helper (`segDist`), the inside poly helper (`insidePoly`) and the fields of helper (`fieldsOf`). How the tables of a plant fill its land. - What it does: It calculates its inputs. Defines 10 functions or classes, including segDist, insidePoly, fieldsOf, fieldSet, within. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Plant Layout (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export fieldsOf(boundary)`; `export fieldSet(polys, { fenceSetbackM, hedgeSetbackM = fenceSetbackM })`; `export slice(poly, v)`; `export packFields(c)`; `segDist(x, y, ax, ay, bx, by)`; `insidePoly(poly, x, y)`; `within(f, u, v)`; `okIn(i, u, v)`; `intersect(A, B)`; `fits(L)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Plant Piles - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-piles.mjs (JavaScript, 204 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-piles.mjs#L1-L204 - Page: https://code.globalgrid2050.com/explore-code/s/0192.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with ls slope (`lsSlope`) and plan tables (`planTables`). - What it achieves (comment): It is built from the ls slope helper (`lsSlope`), the plan tables helper (`planTables`) and the clear step (`clear`). The piles of every table of a laid-out plant (`plant-layout.mjs`), fixed tilt or single-axis tracker, worked out automatically on the measured ground. - What it does: It calculates its inputs. Defines 18 functions or classes, including lsSlope, planTables, gq, gs, at. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Build Geom (globalgrid2050); Plant Layout (globalgrid2050); Plant UI (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export planTables(tablesIn, { groundAt, system = 'fixed', posts = 2, rules, along = 'ew', pileSpacing, railDepthM } = {})`; `export gradingSuggestions(tables, { rules = PILE_RULES, key = t => t.T.key } = {})`; `export pileSummary(res, { mwp = 0, rules = res.rules || PILE_RULES } = {})`; `export pileBoqItems(id, s, pileType = 'plant')`; `export layoutTables(r)`; `export pilesForLayout(r, groundAt, { posts = 2, rules, soil, mwp = r.built?.mwp ?? 0 } = {})`; `lsSlope(s, g)`; `gq(e, n)`; `gs(e, n)`; `at(f, v)`; `dd(lines[1].f - lines[0].f)`; `sm(f)`; `clear(f)`; `tableResult(T, lines, lr, twist, extra, R, tracker)`; `surf(i, ff)`; `has(f)`; `act(t)`; `acts(a)`; `pct(h)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 0 ### Plant Template - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-template.mjs (JavaScript, 265 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-template.mjs#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0192.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables, solar and 33kV, using IEC 60287 and IEC 60949. - What it achieves (comment): It sizes feeder (`sizeFeeder`) and is built from the auto poc kV helper (`autoPocKv`) and the module cold voc helper (`moduleColdVoc`). A generic, parameterised solar plant block diagram, sized from engineering rules. Its code works with 33 kV, 10 MVA and 5000 kVA. - What it does: It calculates transformers, cables, solar and 33kV. Defines 17 functions or classes, including up, r3, autoPocKv, moduleColdVoc, modulesPerString. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, cables, solar, 33kV, 400kV, 1500V. - Inputs & outputs: Voltage levels named: 400kV, 33kV, 1500V. - Downstream impact: Used directly by 5 files: Block MV (globalgrid2050); Single-Line Diagram (SLD) Plant (globalgrid2050); Cmd Model (globalgrid2050); Plant Layout (globalgrid2050); and 1 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export autoPocKv(mw)`; `export moduleColdVoc(p)`; `export modulesPerString(p)`; `export faultMinArea(kA, s)`; `export plantTemplate(opts = {})`; `export gridChoice(mw, total, fixedUnits = null, feeders = [])`; `export pack(feeders, n)`; `export layoutDiagram(d)`; `up(steps, v)`; `r3(v)`; `node(id, kind, label, rating = {})`; `link(from, to, kind, kv, mva, extra = {})`; `check(name, value, max, min = -Infinity)`; `maxLoad(n)`; `L(i)`; `sizeFeeder(chain, p, cableOpts, minArea)`; `drop()`; `mid(Math.max(0, ...[...pos.values()].map(v => v.x)))` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV, 1500V] - Edges: uses 2 estate files (import 2); used by 5; mentioned by 0 ### Plant UI - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/plant-ui.mjs (JavaScript, 342 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/plant-ui.mjs#L1-L342 - Page: https://code.globalgrid2050.com/explore-code/s/0193.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that draws ground (`drawGround`), sets boundary (`setBoundary`), builds lines (`buildLines`) and calculates planar distances (units: MW, kV). - What it achieves (comment): It creates plant (`createPlant`), draws ground (`drawGround`) and sets boundary (`setBoundary`). Design > Plant layout. The user draws a boundary (the Boundary tool, or the open land around them), picks a capacity and a layout, and the plant is laid out on the measured ground (`plant-layout.mjs`), in slices between frames. Its code works with 33 kV and 500 MW. It responds to click events. - What it does: It draws overhead lines (OHL), substations and transformers. Defines 29 functions or classes, including PAUSE, createPlant, $, say, measured. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), substations, transformers, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Design Sections (globalgrid2050). - Signatures: `export createPlant({ doc, origin, viewer, measuredAt, heightAt, assets = () => [], nearest = null, redraw, release = () => false, ohlZon...)`; `PAUSE()`; `$(id)`; `say(msg, warn = false)`; `measured(fn)`; `drawGround(e, n)`; `formParams()`; `withForm(q = {})`; `setBoundary(path)`; `useOpenLand(params = {})`; `run(params = {})`; `drawPlant(r)`; `buildLines(r, { tables: withTables = true } = {})`; `make()`; `put(L, e, n, z)`; `seg(L, a, b)`; `at(u, v, dz = 0)`; `path(L, pts, dz = 0.05, step = 10)`; `all(r.piles?.summary.piles || 0)`; `c(u, v, z)`; `vm(va + vb)`; `place(kind, u, v, id)`; `w(pc.c > 1 ? 0.8 : 0.45)`; `batches()`; `pilesAuto(opts = {})` (and 8 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 13 estate files (import 13); used by 1; mentioned by 0 ### Procedural Detail - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/procedural-detail.mjs (JavaScript, 114 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/procedural-detail.mjs#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0193.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that generates table (`generateTable`) and converts to local float32 (`toLocalFloat32`). - What it achieves (comment): It generates table (`generateTable`) and is built from the plant record helper (`plantRecord`) and the groups per row helper (`groupsPerRow`). Procedural table detail: every module corner, string and pile of one table generated from its key. - What it does: It calculates its inputs. Defines 15 functions or classes, including plantRecord, groupsPerRow, stringsPerTable, modulesPerTable, pilesPerTable. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Keyset (globalgrid2050). - Signatures: `export plantRecord({ seed = 20260927, headingDeg = 0, table = {} } = {})`; `export groupsPerRow(p)`; `export stringsPerTable(p)`; `export modulesPerTable(p)`; `export pilesPerTable(p)`; `export tableInts(p)`; `export tableBytes(p)`; `export moduleAddress(p, n)`; `export generateTable(p, addr, anchor)`; `export moduleCorners(p, buf, n)`; `export pile(p, buf, n)`; `export stringModules(p, s)`; `export toLocalFloat32(buf)`; `fl(a, b)`; `place(p, ax, ay, lx, ly)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Procedural Key - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/procedural-key.mjs (JavaScript, 82 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/procedural-key.mjs#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0193.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with fnv1a bytes (`fnv1aBytes`) and fnv1a int32 (`fnv1aInt32`). - What it achieves (comment): It parses key (`parseKey`) and is built from the fnv1a step (`fnv1a`) and the fnv1a bytes helper (`fnv1aBytes`). Stable keys and the seeded draw for procedural detail (Kuiper style: computed on arrival, never stored). - What it does: Defines 14 functions or classes, including fnv1a, fnv1aBytes, fnv1aInt32, mulberry32, unit. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Procedural Detail (globalgrid2050). - Signatures: `export fnv1a(str, h = FNV_OFFSET)`; `export fnv1aBytes(bytes, h = FNV_OFFSET)`; `export fnv1aInt32(arr, h = FNV_OFFSET)`; `export mulberry32(seed)`; `export unit(u32)`; `export intIn(u32, lo, hi)`; `export rowKey({ k, s, j, r })`; `export tableKey(a)`; `export stringKey(tKey, n)`; `export moduleKey(tKey, n, m)`; `export parseKey(key)`; `export detailSeed(plantSeed, key, kind = 'detail')`; `export mm(metres)`; `int(v, name)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Senses Mount - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/senses-mount.mjs (JavaScript, 84 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/senses-mount.mjs#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0193.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that calculates planar distances and draws SVG graphics. - What it achieves (comment): It is built from the typing step (`typing`), the mount senses helper (`mountSenses`) and the walking step (`walking`). The jump (Space in Walk) and the binoculars switch (B), mounted just after the first frame. It responds to keydown, keyup and blur events. - What it does: It draws its content. Defines 10 functions or classes, including typing, mountSenses, walking, go, jump. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: SVG drawing. - Signatures: `export mountSenses({ api, world, doc = document })`; `typing(t)`; `walking()`; `go()`; `jump()`; `land()`; `load()`; `mark()`; `set(on)`; `toggle()`; `binoculars({ on, zoom, range })` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 1, dynamic-import 1); used by 0; mentioned by 0 ### Site Checks - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/site-checks.mjs (JavaScript, 48 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/site-checks.mjs#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0193.html#f5 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar. - What it achieves (comment): It is built from the day of helper (`dayOf`), the survey check helper (`surveyCheck`) and the survey note helper (`surveyNote`). A date field as a sortable day number (ms since 1970); '2020', '2020-11' and '' are all read. - What it does: It calculates solar. Defines dayOf, surveyCheck, surveyNote, sourceConflict. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Plant Layout (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export dayOf(v)`; `export surveyCheck(s = {})`; `export surveyNote(s)`; `export sourceConflict(values = [], { tolerance = 0.1, unit = '' } = {})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Rules - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/sld-rules.mjs (JavaScript, 93 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/sld-rules.mjs#L1-L93 - Page: https://code.globalgrid2050.com/explore-code/s/0194.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, transformers, battery storage (BESS) and solar, using IEC 60502-2 and BS 7671. - What it achieves (comment): It groups factor (`groupFactor`) and is built from the economic size helper (`economicSize`) and the cost step (`cost`). The generic electrical rules the single-line diagram generator shares (`sld-plant.mjs`, `block-mv.mjs`, `sld-graph.mjs`): group factors for circuits sharing a trench, an economic step on top of the technical cable size, the switching and protection devices of each functional way. Its code works with 33 kV. - What it does: It calculates cables, transformers, battery storage (BESS) and solar. Defines groupFactor, economicSize, cost, isolationChecks, zOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, transformers, battery storage (BESS), solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 12 files: Block MV (globalgrid2050); Single-Line Diagram (SLD) Calc (globalgrid2050); Single-Line Diagram (SLD) Graph (globalgrid2050); Single-Line Diagram (SLD) Plant (globalgrid2050); and 8 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export groupFactor(n)`; `export economicSize(area, mva, lengthM, opts = {})`; `export isolationChecks(at = INVERTER_ISOLATION)`; `export zOf(mag, xr)`; `pw(1 - (1 + e.rate) ** -e.years)`; `cost(a)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 3 estate files (import 3); used by 12; mentioned by 0 ### Structure Presets - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/structure-presets.mjs (JavaScript, 72 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/structure-presets.mjs#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0194.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with solar and transformers. - What it achieves (comment): It is built from the preset by id helper (`presetById`) and the preset text helper (`presetText`). Generic plant presets from an open-data study of large operational UK solar farms, typed as "preset " (or "structure "). Its code works with 3 MVA, 3 MW and 300 kVA. - What it does: It calculates solar and transformers. Defines presetById, presetText. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, transformers. - Downstream impact: Used directly by 3 files: Cmd Grammar Plant (globalgrid2050); Cmd Grammar (globalgrid2050); Cmd Model (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export presetById(id)`; `export presetText()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Structures - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/structures.mjs (JavaScript, 134 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/structures.mjs#L1-L134 - Page: https://code.globalgrid2050.com/explore-code/s/0194.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that parses format (`parseFormat`) and formats name (`formatName`) and refusal (`formatRefusal`) (units: kVA), using IEC 62548-1. - What it achieves (comment): It parses format (`parseFormat`), formats name (`formatName`) and formats refusal (`formatRefusal`). The mounting structures the typed bar can build, and the structure checks they raise. - What it does: It lists and searches its content. Defines 11 functions or classes, including parseFormat, formatName, formatRefusal, tableShape, halfCols. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Cmd Grammar (globalgrid2050); Cmd Model (globalgrid2050); Hud Checks (globalgrid2050); Plant Layout (globalgrid2050). Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export parseFormat(w)`; `export formatName(tiers, orient, cols)`; `export formatRefusal(layout, tiers, orient)`; `export tableShape(p, mps, layout)`; `export halfCols(cols)`; `export pitchStretch({ depth, rise, elevDeg, fallN, maxStretch = 2 })`; `export winterNoonDeg(latDeg)`; `export structureById(id)`; `export catalogueText()`; `export mpptCap({ mppts = 12, stringsPerMppt = 2 } = {})`; `export structureChecks(f = {})`; `flat(depth * t + rise)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Substrate - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/substrate.mjs (JavaScript, 398 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/substrate.mjs#L1-L398 - Page: https://code.globalgrid2050.com/explore-code/s/0194.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that sets origin (`setOrigin`), writes readout (`writeReadout`), opens panel (`openPanel`) and calculates planar distances (units: kV). - What it achieves (comment): It sets origin (`setOrigin`), writes readout (`writeReadout`) and opens panel (`openPanel`). The substrate: an empty world you can move around in. It reads `./world/data/attribution.json`. It responds to click, resize and close events. - What it does: It draws attribution, overhead lines (OHL), LiDAR terrain and substations. Defines 29 functions or classes, including $, fadeAt, tourPlaying, live, shown. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), LiDAR terrain, substations. - Inputs & outputs: In: JSON file attribution.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `$(id)`; `fadeAt()`; `tourPlaying()`; `live()`; `shown()`; `guarded(l, fn, fallback)`; `baseHeight(x, y)`; `measuredAt(x, y)`; `known(x, y)`; `groundSource(x, y)`; `heightAt(x, y)`; `solids()`; `invalidate({ ground = true } = {})`; `gridAssets()`; `subs(model.substations || [])`; `towers(model.lines || [])`; `knownTowers()`; `setOrigin(e, n)`; `playing()`; `target()`; `moving()`; `flyTo(x, y, opts = {})`; `draw(now, intervalMs)`; `t(now - arrival.t0)`; `collect(pos)` (and 9 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file attribution.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 23 estate files (import 17, dynamic-import 6); used by 1; mentioned by 0 ### Table Solids - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/table-solids.mjs (JavaScript, 85 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/table-solids.mjs#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that creates index (`createIndex`). - What it achieves (comment): It creates index (`createIndex`) and is built from the edges of helper (`edgesOf`) and the face at helper (`faceAt`). Design tables as solids: land on a table's face when jumping (`jump.mjs` `supportAt`), never walk or fly through one (`views.mjs` blocked). Its code works with 500 MW. - What it does: It calculates its inputs. Defines 8 functions or classes, including edgesOf, faceAt, at, tableSlabs, createIndex. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `export tableSlabs(r, { hub = trackerHub().hub, strips = STRIPS } = {})`; `export createIndex(slabs, cell = CELL_M)`; `export boxesNear(slabs, near, origin, [x, y], radius = RADIUS_M)`; `export mountTableSolids({ api, plant, hub = trackerHub().hub })`; `edgesOf(r, q, hub)`; `faceAt(T, [Ea, Em, Eb], fu, fv)`; `at(E)`; `source(pos)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Views - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/views.mjs (JavaScript, 74 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/views.mjs#L1-L74 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that calculates planar distances. - What it achieves (comment): It sets view (`setView`) and is built from the speed of helper (`speedOf`) and the fps of helper (`fpsOf`). Walk and drone, and one movement step. - What it does: It calculates its inputs. Defines 11 functions or classes, including speedOf, fpsOf, step, at, blocked. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 10 files: Xr Pose (globalgrid2050); Xr (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); and 6 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export speedOf(view, slow)`; `export fpsOf(view, slow)`; `export step(state, input, dt, heightAt, solids = [])`; `export blocked([x, y, z], body, solids)`; `export standOn(next, view, solids)`; `export look(state, dYaw, dPitch)`; `export setView(state, view, heightAt)`; `export toggle(current, wanted)`; `at(x, y, z)`; `clamp(v, a, b)`; `wrap(a)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 10; mentioned by 1 ### Layers Panel Policy - File: globalgrid2050/testcode/202609051848/teleprinter/layers-panel-policy.js (JavaScript, 19 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051848/teleprinter/layers-panel-policy.js#L1-L19 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f3 - Synopsis: A JavaScript module in the teleprinter folder of GlobalGrid2050 that works with collapse initial layers (`collapseInitialLayers`). - What it achieves (comment): It is built from the collapse initial layers helper (`collapseInitialLayers`) and the mount layers panel policy helper (`mountLayersPanelPolicy`). Extracted arrival policy: panel visibility is independent of engine layer state. - What it does: Defines collapseInitialLayers, mountLayersPanelPolicy. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 2 files: Codex Layers Panel Policy Test (teleprinter); Teleprinter Bootstrap (globalgrid2050). - Signatures: `export collapseInitialLayers(doc = document)`; `export mountLayersPanelPolicy(doc = document)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Draw Readiness - File: globalgrid2050/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/draw-readiness.js (JavaScript, 32 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/draw-readiness.js#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f4 - Published at: https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/ - Synopsis: A JavaScript file in the module layout folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/. - What it achieves (comment): It is built from the capable step (`capable`), the reflect step (`reflect`) and the guard step (`guard`). Separate guard for the original classic-script Module Layout runtime. It responds to click and pagehide events. - What it does: It draws its content. Defines capable, reflect, guard, attach, dispose. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/. - Signatures: `capable()`; `reflect()`; `guard(event)`; `attach()`; `dispose()` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page - File: globalgrid2050/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/index.html (HTML, 92 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/index.html#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f5 - Published at: https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/ - Synopsis: A web page in the layer apps folder of GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height, covering cables. Published at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 9 estate files (script-src 4, link 3, stylesheet 2); used by 0; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page - File: globalgrid2050/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html (HTML, 508 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html#L1-L508 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f6 - Published at: https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A web page in the layer apps folder of GlobalGrid2050 that reads inputs for loc, mod wp and mod, covering battery storage (BESS), cables, substations and 33kV. Published at https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (name): Its code works with 33 kV, 0.00 MVA and 132 kV. - What it does: It draws battery storage (BESS), cables, substations and 33kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), cables, substations, 33kV, 400kV, 275kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 13 estate files (script-src 12, stylesheet 1); used by 1; mentioned by 0 ### Route State - File: globalgrid2050/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/route-state.js (JavaScript, 22 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/route-state.js#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f2 - Published at: https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/ - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of GlobalGrid2050 that gets snapshot (`getSnapshot`). Served with the page at https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/. - What it achieves (comment): It gets snapshot (`getSnapshot`) and is built from the freeze step (`freeze`) and the clone step (`clone`). Read-only adapter for original GIS SLD route state. - What it does: It calculates its inputs. Defines freeze, clone, coordinate, getSnapshot. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (globalgrid2050, https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/); Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). Reached from 1 other entry point, including Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/. - Signatures: `freeze(value)`; `clone(value)`; `coordinate(p)`; `getSnapshot()`; `routes(source.currentGeoJSON?.features||[])` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Reported Project Panel - File: globalgrid2050/testcode/202609060208/reported-project-panel.mjs (JavaScript, 18 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060208/reported-project-panel.mjs#L1-L18 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f3 - Synopsis: A JavaScript module in the testcode folder of GlobalGrid2050. It shows reported project (`showReportedProject`). - What it achieves (name): Defines `showReportedProject`. - What it does: It draws its content. Defines showReportedProject. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Signatures: `export showReportedProject(host, input)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Control Solar Daily MWh Chart - File: globalgrid2050/uk_energy_tracking_v6/generation_history/control_solar_daily_mwh_chart.js (JavaScript, 33 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_energy_tracking_v6/generation_history/control_solar_daily_mwh_chart.js#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f4 - Synopsis: A JavaScript file in the generation history folder of GlobalGrid2050 that loads fuel daily (`loadFuelDaily`), syncs full period (`syncFullPeriod`) and sets period (`setPeriod`) (units: MWh). - What it achieves (name): It loads solar daily (`loadSolarDaily`), loads fuel daily (`loadFuelDaily`) and syncs full period (`syncFullPeriod`). Defines `cfg`, `get`, `load` and 13 more. It responds to change, resize and DOMContentLoaded events. - What it does: It draws pvlive solar daily browser and generation daily mwh by technology fuelhh. Defines 16 functions or classes, including cfg, get, load, loadSolarDaily, loadFuelDaily. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json; JSON file generation_daily_mwh_by_technology_fuelhh_2016_2026.json. - Signatures: `cfg()`; `get(id)`; `load(key,url)`; `loadSolarDaily()`; `loadFuelDaily()`; `periodDays(p)`; `niceDate(v)`; `years(rows)`; `srcLabel(t)`; `srcStatus(t)`; `techOptions(fuelRows)`; `rowsFor(t,solar,fuel)`; `setYears(rows,t)`; `selectedWindow(rows,t)`; `update()`; `boot()`; `syncFullPeriod()`; `setPeriod(value)`; `nudgePeriod(dir)`; `openFull()`; `closeFull()`; `bind()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json; JSON file generation_daily_mwh_by_technology_fuelhh_2016_2026.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Render Solar Daily MWh Chart - File: globalgrid2050/uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js (JavaScript, 33 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f5 - Synopsis: A JavaScript file in the generation history folder of GlobalGrid2050 that draws season (`drawSeasonKey`) and season line (`drawSeasonLine`) and updates inspect (`updateInspect`) (units: MWh), covering solar. - What it achieves (name): It draws season key (`drawSeasonKey`), draws season line (`drawSeasonLine`) and updates inspect (`updateInspect`). Its name says it renders solar daily MWh chart. Defines `fmt`, `niceDate`, `dateLabel` and 17 more. It responds to click, pointerdown and pointermove events. - What it does: It draws solar. Defines 22 functions or classes, including fmt, niceDate, dateLabel, val, tm. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: Out: canvas drawing. - Signatures: `fmt(n,d)`; `niceDate(v)`; `dateLabel(t,span)`; `val(r)`; `tm(r)`; `rowsOf(result)`; `stats(rows)`; `mm(rows)`; `step(span)`; `points(w,h,pad,scale,t0,t1)`; `seasonName(t)`; `seasonColor(t)`; `drawSeasonKey(g,q,pad)`; `drawSeasonLine(g,rows,p,q)`; `drawTicks(g,w,h,q,scale,pad,t0,t1)`; `eventBox(g,lines,q,x,y,align)`; `pointer(g,point,q,x,y)`; `callout(g,label,value,date,x,y,q,w,h,pad)`; `drawSummary(g,s,q,w,h,pad,isFull)`; `inspectKey(result)`; `nearest(rows,target)`; `ensureInspectState(canvasId,result,rows)`; `ensureInspectControls(canvasId,result)`; `updateInspect(canvasId,result,row,idx,total)`; `attachInspectEvents(canvasId)` (and 4 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Control Solar Daily MWh Chart - File: globalgrid2050/uk_energy_tracking_v6_2/generation_history/control_solar_daily_mwh_chart.js (JavaScript, 27 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_energy_tracking_v6_2/generation_history/control_solar_daily_mwh_chart.js#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f6 - Synopsis: A JavaScript file in the generation history folder of GlobalGrid2050 that syncs full period (`syncFullPeriod`), sets period (`setPeriod`) and opens full (`openFull`) (units: MWh), covering pvlive solar daily browser. - What it achieves (name): It loads solar daily (`loadSolarDaily`), syncs full period (`syncFullPeriod`) and sets period (`setPeriod`). Defines `cfg`, `get`, `loadSolarDaily` and 8 more. It responds to change, resize and DOMContentLoaded events. - What it does: It draws pvlive solar daily browser. Defines 11 functions or classes, including cfg, get, loadSolarDaily, periodDays, niceDate. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file pvlive_solar_daily_browser.json. - Signatures: `cfg()`; `get(id)`; `loadSolarDaily()`; `periodDays(p)`; `niceDate(v)`; `years(rows)`; `setDefaultControls(rows)`; `selectedWindow(rows)`; `update()`; `boot()`; `syncFullPeriod()`; `setPeriod(value)`; `nudgePeriod(dir)`; `openFull()`; `closeFull()`; `bind()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file pvlive_solar_daily_browser.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Render Solar Daily MWh Chart - File: globalgrid2050/uk_energy_tracking_v6_2/generation_history/render_solar_daily_mwh_chart.js (JavaScript, 29 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_energy_tracking_v6_2/generation_history/render_solar_daily_mwh_chart.js#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f7 - Synopsis: A JavaScript file in the generation history folder of GlobalGrid2050 that updates inspect (`updateInspect`) and draws on a canvas (units: MWh), covering solar. - What it achieves (name): It updates inspect (`updateInspect`) and is built from the nice date helper (`niceDate`) and the date label helper (`dateLabel`). Its name says it renders solar daily MWh chart. Defines `fmt`, `niceDate`, `dateLabel` and 13 more. It responds to click, pointerdown and pointermove events. - What it does: It draws solar. Defines 18 functions or classes, including fmt, niceDate, dateLabel, val, tm. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: Out: canvas drawing. - Signatures: `fmt(n,d)`; `niceDate(v)`; `dateLabel(t,span)`; `val(r)`; `tm(r)`; `rowsOf(result)`; `stats(rows)`; `mm(rows)`; `step(span)`; `points(w,h,pad,scale,t0,t1)`; `drawTicks(g,w,h,q,scale,pad,t0,t1)`; `eventBox(g,lines,q,x,y,align)`; `pointer(g,point,q,x,y)`; `callout(g,label,value,date,x,y,q,w,h,pad)`; `drawSummary(g,s,q,w,h,pad,isFull)`; `inspectKey(result)`; `nearest(rows,target)`; `ensureInspectState(canvasId,result,rows)`; `ensureInspectControls(canvasId,result)`; `updateInspect(canvasId,result,row,idx,total)`; `attachInspectEvents(canvasId)`; `drawInspect(g,result,rows,q,w,h,pad,p,canvasId)`; `renderTo(canvasId,result)`; `render(canvas,result)`; `redrawFullscreen(result)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Check Solar1000 V924 - File: globalgrid2050/uk_renewables_pipeline/202611161630/tests/check_solar1000_v924.mjs (JavaScript, 20 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611161630/tests/check_solar1000_v924.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f8 - Synopsis: A JavaScript module in the tests folder of GlobalGrid2050. - What it achieves (name): Its name says it checks Solar1000. It reads `../solar1000/manifest.json`. - What it does: It tests its inputs. Uses libraries node:assert/strict, node:fs/promises. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file candidates.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file candidates.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 0; mentioned by 0 ### Solar1000 V924 - File: globalgrid2050/uk_renewables_pipeline/202611201709/scripts/plugins/solar1000-v924.js (JavaScript, 73 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611201709/scripts/plugins/solar1000-v924.js#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f9 - Synopsis: A JavaScript module in the plugins folder of GlobalGrid2050 that attaches evidence (`attachEvidence`) and refreshes evidence (`refreshEvidence`), covering the Renewable Energy Planning Database (REPD) register and solar. - What it achieves (comment): It attaches evidence (`attachEvidence`) and refreshes evidence (`refreshEvidence`). V9.25 keeps the V9.24 selection, adding evidence to existing UK records. It reads `solar1000/manifest.json`. It responds to pipeline events. - What it does: It draws the REPD register and solar. Defines attachEvidence, refreshEvidence, start. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar. - Inputs & outputs: In: JSON file candidates.json. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050). - Signatures: `attachEvidence()`; `refreshEvidence()`; `start()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file candidates.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Inverter 48 Electrical UI - File: globalgrid2050/ventus/wiring/inverter-48-electrical-ui.mjs (JavaScript, 56 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/ventus/wiring/inverter-48-electrical-ui.mjs#L1-L56 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f10 - Published at: https://globalgrid2050.com/ventus/wiring/ - Synopsis: A JavaScript module in the wiring folder of GlobalGrid2050 that saves field, covering inverter electrical scenario and cables, using IEC 60228 and IEC 62548. Served with the page at https://globalgrid2050.com/ventus/wiring/. - What it achieves (name): It saves field (`saveField`) and is built from the mount electrical helper (`mountElectrical`) and the sync step (`sync`). Defines `fmt`, `mountElectrical`, `effective` and 4 more. It responds to input events. - What it does: It draws inverter electrical scenario and cables. Defines 8 functions or classes, including fmt, mountElectrical, $, effective, sync. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 1500V. - Inputs & outputs: In: form fields (user input). Out: JSON file inverter-48-electrical-scenario.json; downloaded file inverter-48-electrical-scenario.json. Voltage levels named: 1500V. - Downstream impact: Used directly by 1 file: Inverter 48 (globalgrid2050, https://globalgrid2050.com/ventus/wiring/). Reached from 1 other entry point, including GlobalGrid2050 Inverter Flow Check Workflow (globalgrid2050). - Signatures: `export mountElectrical(container,{getModel,getCableLength=h=>h.routeM,onChange=()=>{}})`; `fmt(n,d=2)`; `$(key)`; `effective(cable)`; `sync()`; `saveField(cable,key,value)`; `rows(host,data,keys)`; `update()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [JSON file inverter-48-electrical-scenario.json; downloaded file inverter-48-electrical-scenario.json]; crs []; voltages [1500V] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Inverter 48 Electrical - File: globalgrid2050/ventus/wiring/inverter-48-electrical.mjs (JavaScript, 83 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/ventus/wiring/inverter-48-electrical.mjs#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f11 - Published at: https://globalgrid2050.com/ventus/wiring/ - Synopsis: A JavaScript module in the wiring folder of GlobalGrid2050 that works with cables, using IEC 60228 and BS EN 50618. Served with the page at https://globalgrid2050.com/ventus/wiring/. - What it achieves (comment): It calculates electrical (`calculateElectrical`) and is built from the empty electrical state helper (`emptyElectricalState`) and the number step (`number`). Independent, entered-input DC screening arithmetic. No licensed tables embedded. - What it does: It calculates cables. Defines 6 functions or classes, including emptyElectricalState, number, contactList, sumKnown, contacts. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 1 file: Inverter 48 Electrical UI (globalgrid2050, https://globalgrid2050.com/ventus/wiring/). Reached from 2 other entry points, including Inverter 48 (globalgrid2050, https://globalgrid2050.com/ventus/wiring/); GlobalGrid2050 Inverter Flow Check Workflow (globalgrid2050). - Signatures: `export emptyElectricalState()`; `export number(value, {min=0,max=Infinity,exclusive=false}={})`; `export contactList(value)`; `export calculateElectrical(model,state=emptyElectricalState(),getCableLength=h=>h.routeM)`; `sumKnown(values)`; `contacts(input)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Inverter 48 Model - File: globalgrid2050/ventus/wiring/inverter-48-model.mjs (JavaScript, 63 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/ventus/wiring/inverter-48-model.mjs#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f12 - Published at: https://globalgrid2050.com/ventus/wiring/ - Synopsis: A JavaScript module in the wiring folder of GlobalGrid2050 that works with physical point (`physicalPoint`) and calculates planar distances. Served with the page at https://globalgrid2050.com/ventus/wiring/. - What it achieves (comment): It is built from the distance step (`distance`), the length step (`length`) and the build step (`build`). Generic geometry only. Physical routes and presentation coordinates are separate. Its code works with 352 kVA, 295 kVA and 320 kVA. - What it does: It calculates its inputs. Defines distance, length, build, physicalPoint. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Inverter 48 (globalgrid2050, https://globalgrid2050.com/ventus/wiring/). Reached from 1 other entry point, including GlobalGrid2050 Inverter Flow Check Workflow (globalgrid2050). - Signatures: `export distance(a,b)`; `export length(pts)`; `export build({physicalOffset=2, drawingOffset=30, gap=.02, tilt=8}={})`; `physicalPoint(side,x,y)`; `x(col*30+j)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Inverter 48 Native - File: globalgrid2050/ventus/wiring/inverter-48-native.mjs (JavaScript, 123 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/ventus/wiring/inverter-48-native.mjs#L1-L123 - Page: https://code.globalgrid2050.com/explore-code/s/0196.html#f13 - Published at: https://globalgrid2050.com/ventus/wiring/ - Synopsis: A JavaScript module in GlobalGrid2050 that builds native walks, draws electron flow, creates native adapter and calculates planar distances, covering cables. Served with the page at https://globalgrid2050.com/ventus/wiring/. - What it achieves (comment): It builds native walks (`buildNativeWalks`), draws electron flow (`drawElectronFlow`) and creates native adapter (`createNativeAdapter`). Native multi-string flow adapter. Original renderer files are untouched. - What it does: It draws cables. Defines 9 functions or classes, including map, close, reversed, esc, buildNativeWalks. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: Out: SVG drawing. - Downstream impact: Used directly by 2 files: Inverter 48 (globalgrid2050, https://globalgrid2050.com/ventus/wiring/); GlobalGrid2050 Inverter Flow Check Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/ventus/wiring/. - Signatures: `export buildNativeWalks(w, model)`; `export drawElectronFlow(w, ctx, walks, clock, {selected=null, spacingPx=150, speedPx=48}={})`; `export createNativeAdapter(w, {}={})`; `map(p)`; `close(a,b)`; `reversed(pts)`; `esc(s)`; `path(pts)`; `phase(Number(walk.stringId.slice(1))*.38196601125)`; `head((pulse.phase-clock*speedPx/Math.max(1,pixels))%1+1)`; `spans(head+tail>1?[[head,1],[0,head+tail-1]]:[[head,head+tail]])`; `weight(leg.s?.home?2.2:1.5)`; `sizes(model,project,desired)`; `drawConnectors(ctx,model,{lengthPx}={})`; `svgConnectors(model,project,{lengthPx}={})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Inverter 48 - File: globalgrid2050/ventus/wiring/inverter-48.mjs (JavaScript, 165 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/ventus/wiring/inverter-48.mjs#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f1 - Published at: https://globalgrid2050.com/ventus/wiring/ - Synopsis: A JavaScript module in the wiring folder of GlobalGrid2050 that shows hud (`showHud`), applies lengths (`applyLengths`), draws flow overlay (`drawFlowOverlay`) and calculates planar distances. Served with the page at https://globalgrid2050.com/ventus/wiring/. - What it achieves (name): It shows hud (`showHud`), applies lengths (`applyLengths`) and draws flow overlay (`drawFlowOverlay`). Defines `win`, `map`, `polygon` and 19 more. Its code works with 352 kVA. It responds to pointerdown and pointerup events. - What it does: It draws inverter cable lengths, inverter geometry and cables. Defines 24 functions or classes, including $, win, map, polygon, nativeDrawing. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: CSV file inverter-48-cable-lengths.csv; JSON file inverter-48-geometry.json. Out: canvas drawing; SVG drawing. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Inverter Flow Check Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/ventus/wiring/. - Signatures: `$(id)`; `win()`; `map(p)`; `polygon(x,y,w,h)`; `nativeDrawing()`; `add(role,node,pts,extra={})`; `label(text,x,y,size=11,colour=')`; `fit(bounds)`; `paint()`; `path(pts)`; `summary()`; `save(name,type,body)`; `csv()`; `svg()`; `esc(s)`; `p(q)`; `showHud(show)`; `supplied(h)`; `applyLengths()`; `lengthControls()`; `lengthsChanged()`; `render()`; `activeWalks()`; `drawFlowOverlay()`; `tick(now)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [CSV file inverter-48-cable-lengths.csv; JSON file inverter-48-geometry.json]; out [canvas drawing; SVG drawing]; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Inverter Station - File: globalgrid2050/ventus/wiring/inverter-station.mjs (JavaScript, 84 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/ventus/wiring/inverter-station.mjs#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f2 - Published at: https://globalgrid2050.com/ventus/wiring/ - Synopsis: A JavaScript module in the wiring folder of GlobalGrid2050 that syncs lengths (`syncLengths`) (units: MVA, kVA, mm²), covering transformers, using IEC 60228. Served with the page at https://globalgrid2050.com/ventus/wiring/. - What it achieves (name): It builds station (`buildStation`), syncs lengths (`syncLengths`) and selects station (`selectStation`). Defines `buildStation`, `txt`, `line` and 6 more. Its code works with 352 kVA and 10 MVA. - What it does: It draws transformers. Defines 11 functions or classes, including $, buildStation, el, txt, line. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers. - Inputs & outputs: In: CSV file inverter-station-84-phase-cables.csv. - Signatures: `export buildStation({feedersPerSection=14,transformerMva=5,areaMm2=400,trenchDepthM=.9,kva=352,lengths={},ambient=30,baseAmpacity=null,de...)`; `$(id)`; `el(name,attrs={},text)`; `txt(parent,text,x,y,size=13,fill)`; `line(parent,d,attrs={})`; `render()`; `lossReadout()`; `rebuild()`; `syncLengths()`; `save(name,type,data)`; `svgExport()`; `csv()`; `siteModel()`; `selectStation(id)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [CSV file inverter-station-84-phase-cables.csv]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Cpu Ref - File: gpu-drivers-for-global-grid/cuda-maths/solar-billion/cpu_ref.py (Python, 116 lines) · role ingest · stage transform · entry point - Source: https://github.com/Ventusltd/gpu-drivers-for-global-grid/blob/6c47912a8dde251ffebd92ff129e6a0c11c4ebfe/cuda-maths/solar-billion/cpu_ref.py#L1-L116 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f3 - Synopsis: A Python command-line tool in the solar billion folder of GPU Drivers for Global Grid that works with known answers (`known_answers`) (units: kW), covering cables. - What it achieves (comment): It is built from the decode step (`decode`) and the evaluate step (`evaluate`). The plain scalar reference. Clear and slow. Its code works with 356.07 kW. - What it does: Defines decode, evaluate, known_answers. Uses libraries math, solar_core. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. README: "Files: `solar-billion/` — `cpu_ref.py` (scalar reference), `cpu_vec.py` (vectorised, multiprocess), `gpu_vec.py` (CuPy), `main.py`, plus `FORMULA.txt` and `RESULTS.txt` with the full verdict counts." - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `decode(i)`; `evaluate(idx)`; `known_answers()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Cpu Vec - File: gpu-drivers-for-global-grid/cuda-maths/solar-billion/cpu_vec.py (Python, 137 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gpu-drivers-for-global-grid/blob/6c47912a8dde251ffebd92ff129e6a0c11c4ebfe/cuda-maths/solar-billion/cpu_vec.py#L1-L137 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f4 - Synopsis: A Python module in the solar billion folder of GPU Drivers for Global Grid that builds tables (`build_tables`), aggregates np (`aggregate_np`) and runs multiproc (`run_multiproc`). - What it achieves (comment): It is built from the kernel step (`kernel`). The same arithmetic as `cpu_ref.py`, NumPy-vectorised over mixed-radix indices, and a multi-process driver capped at 12 workers below normal priority. - What it does: It calculates its inputs. Defines 6 functions or classes, including _tab, build_tables, kernel, aggregate_np, _worker. Uses libraries numpy, solar_core, ctypes, concurrent.futures. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "Files: `solar-billion/` — `cpu_ref.py` (scalar reference), `cpu_vec.py` (vectorised, multiprocess), `gpu_vec.py` (CuPy), `main.py`, plus `FORMULA.txt` and `RESULTS.txt` with the full verdict counts." - Downstream impact: Used directly by 1 file: GPU Vec (gpu-drivers-for-global-grid). - Signatures: `_tab(xp, name)`; `build_tables(xp)`; `kernel(xp, T, idx)`; `aggregate_np(idx)`; `_worker(args)`; `run_multiproc(total, workers=12, stride=1, offset=0, chunk=1 << 20)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GPU Vec - File: gpu-drivers-for-global-grid/cuda-maths/solar-billion/gpu_vec.py (Python, 57 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gpu-drivers-for-global-grid/blob/6c47912a8dde251ffebd92ff129e6a0c11c4ebfe/cuda-maths/solar-billion/gpu_vec.py#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f5 - Synopsis: A Python module in the solar billion folder of GPU Drivers for Global Grid that aggregates batch (`aggregate_batch`). - What it achieves (comment): It is built from the tables step (`tables`), the free batch helper (`free_batch`) and the run step (`run`). The SAME arithmetic on the GPU with CuPy (the backend the GPU-bench agent got working on this card: cupy-cuda12x 14.2.0, `sm_120`). float64 throughout so it can be held to 1e-9 of the scalar reference. - What it does: It calculates its inputs. Defines tables, free_batch, aggregate_batch, run, detail. Uses libraries numpy, cupy, solar_core, cupyx. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "Why this one works: the reduction happens on the card (`gpu_vec.py`) so only about 20 kB returns per batch, and the batch is sized from free VRAM at run time rather than hard-coded." - Signatures: `tables()`; `free_batch(target_frac=0.25, cap=1 << 23)`; `aggregate_batch(idx_gpu, counts, best)`; `run(total, stride=1, offset=0, batch=None, report=None)`; `detail(idx_np)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Cuda Maths — Solar Billion - File: gpu-drivers-for-global-grid/cuda-maths/solar-billion/main.py (Python, 6 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/gpu-drivers-for-global-grid/blob/6c47912a8dde251ffebd92ff129e6a0c11c4ebfe/cuda-maths/solar-billion/main.py#L1-L6 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f6 - Synopsis: A Python command-line tool in GPU Drivers for Global Grid. - What it achieves (comment): The entry point. The guard is required on Windows: the worker processes re-import the main module, and without it they would re-run the whole job. - What it does: Uses libraries multiprocessing, run_all. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "Files: `solar-billion/` — `cpu_ref.py` (scalar reference), `cpu_vec.py` (vectorised, multiprocess), `gpu_vec.py` (CuPy), `main.py`, plus `FORMULA.txt` and `RESULTS.txt` with the full verdict counts." - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient16 Responsive Panel - File: gridatlas/atlas/modules/202612031346-orient16-responsive-panel.js (JavaScript, 90 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612031346-orient16-responsive-panel.js#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0197.html#f7 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. - What it achieves (comment): Native controls and route state stay owned by their existing modules. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: user-supplied file (file picker). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### G203 Compact SatNav Panel - File: gridatlas/atlas/modules/g203-compact-satnav-panel.js (JavaScript, 66 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g203-compact-satnav-panel.js#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0198.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. - What it achieves (comment): Native controls and route state stay owned by their existing modules. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: user-supplied file (file picker). - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 13 Panel - File: gridatlas/tools/lightning/src/13-panel.js (JavaScript, 98 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/13-panel.js#L1-L98 - Page: https://code.globalgrid2050.com/explore-code/s/0198.html#f2 - Synopsis: A JavaScript file in the lightning folder of GridAtlas. - What it achieves (comment): The Layers-panel group (main and fullscreen curtain), its label and status line, and the batched repaint pt. It responds to click events. - What it does: It draws its content. Defines q. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). - Signatures: `q(s)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 07 Panel Install - File: gridatlas/tools/offtakers/src/07-panel-install.js (JavaScript, 42 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/07-panel-install.js#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0198.html#f3 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): The Layers group. It responds to click, change and gridatlas events. - What it does: It draws the REPD register and substations. Defines q. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: the REPD register, substations. - Inputs & outputs: In: form fields (user input). - Signatures: `q(s)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Menu Bar Instrument Panel Browser - File: gridatlas/tools/proofs/202609041250-menu-bar-instrument-panel.browser.mjs (JavaScript, 366 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609041250-menu-bar-instrument-panel.browser.mjs#L1-L366 - Page: https://code.globalgrid2050.com/explore-code/s/0198.html#f4 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with ventus box (`ventusBox`) and attrib samples (`attribSamples`), covering cables. - What it achieves (comment): It is built from the fixture HTML helper (`fixtureHtml`), the check step (`check`) and the ventus box helper (`ventusBox`). Proof for: the v8 VENTUS masthead and the SCADA layer panel are restored around the six-menu bar (`atlas/modules/` anything `tools/proofs/menu-bar-attrib-clearance.browser.mjs` or `tools/proofs/menu-bar-mobile-hit.browser.mjs` already prove. - What it does: It lists and searches cables. Defines 7 functions or classes, including fixtureHtml, check, ventusBox, attribSamples, panelRects. Uses libraries node:assert/strict, node:path, node:url, playwright. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `fixtureHtml()`; `check(label, condition, detail)`; `ventusBox(page)`; `attribSamples(page)`; `panelRects(page)`; `gridControlSizes(page)`; `allPanelControlSizes(page)`; `covered(samples || [])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### V8 Layers Panel Restored Proof - File: gridatlas/tools/proofs/v8-layers-panel-restored.proof.mjs (JavaScript, 101 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/v8-layers-panel-restored.proof.mjs#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0198.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. It is built from the composed step (`composed`) and the check step (`check`). - What it achieves (comment): The v8 layers panel is back beneath the menus, asserted against the COMPOSED bytes named by `atlas/current.json` - never against the parts. - What it does: It loads data. Defines composed, check. Uses libraries node:fs/promises, node:path, node:url. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file current.json. - Signatures: `composed(id)`; `check(name, ok)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav G203 Compact Panel Browser - File: gridatlas/tools/satnav/g203-compact-panel-browser.py (Python, 80 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-compact-panel-browser.py#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that compares the two historical SatNav panels with the integrated G203 candidate. - What it achieves (name): Defines `check`. - What it does: It lists and searches its content. Defines check. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check(browser, name, url, w, h, candidate)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav G203 Swarm 03 Panel Continuity - File: gridatlas/tools/satnav/g203-swarm-03-panel-continuity.py (Python, 101 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-swarm-03-panel-continuity.py#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f2 - Synopsis: A Python command-line tool in the tools folder of GridAtlas. It is built from the scenario step (`scenario`). - What it achieves (comment): G203-SWARM-03: candidate-only, real composed application acceptance. - What it does: Defines scenario. Uses libraries json, os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `scenario(browser, engine, w, h)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### BBC RSS Pipeline Panel - File: pipelinenews/cartridges/bbc-rss-pipeline-panel.mjs (JavaScript, 56 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/cartridges/bbc-rss-pipeline-panel.mjs#L1-L56 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f3 - Synopsis: A JavaScript module in the cartridges folder of PipelineNews that works with UK time (`ukTime`), covering the Renewable Energy Planning Database (REPD) register. - What it achieves (name): It is built from the UK time helper (`ukTime`), the options step (`options`) and the render step (`render`). Defines `mount`, `ukTime`, `create` and 3 more. It responds to click events. - What it does: It draws the REPD register. Defines 6 functions or classes, including mount, ukTime, create, options, render. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: the REPD register. - Downstream impact: Used directly by 1 file: Build BBC RSS Package (pipelinenews). - Signatures: `export mount({host,payload,evidence=[],projects=[],official=[],fetcher=fetch})`; `ukTime(value)`; `create(tag,text)`; `options()`; `render(view)`; `update()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Provisional Pipeline Panel - File: pipelinenews/cartridges/provisional-pipeline-panel.mjs (JavaScript, 16 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/cartridges/provisional-pipeline-panel.mjs#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f4 - Synopsis: A JavaScript module in the cartridges folder of PipelineNews covering the Renewable Energy Planning Database (REPD) register. - What it achieves (name): Defines `mount`. - What it does: It draws the REPD register. Defines mount. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: the REPD register. - Downstream impact: Used directly by 1 file: Build Provisional Package (pipelinenews). - Signatures: `export mount({host,payload,official,source})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Array Engine - File: solar-electrical-topology-analysis-engine-text-based/array_engine.py (Python, 3 lines) · role other · stage unknown - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/array_engine.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f5 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for the packaged Build 025 array authority. - What it does: Uses libraries solar_topology.array.array_engine. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Validate Clean Wheel (solar-electrical-topology-analysis-engine-text-based); Test Array Authority Receipts (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based); Test Installed Array API (solar-electrical-topology-analysis-engine-text-based). Reached from 9 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Array Route Geometry - File: solar-electrical-topology-analysis-engine-text-based/array_route_geometry.py (Python, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/array_route_geometry.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f6 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for packaged Build 025 route geometry. - What it does: Uses libraries solar_topology.array.array_route_geometry. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Array Route Types - File: solar-electrical-topology-analysis-engine-text-based/array_route_types.py (Python, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/array_route_types.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f7 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for packaged Build 025 route records. - What it does: Uses libraries solar_topology.array.array_route_types. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Array Routing - File: solar-electrical-topology-analysis-engine-text-based/array_routing.py (Python, 3 lines) · role other · stage unknown - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/array_routing.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f8 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for the packaged Build 025 routing authority. - What it does: Uses libraries solar_topology.array.array_routing. - Why it exists in the grid workflow: Domain stage field_execution (path word 'routing'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 2 files: Test Array Authority Receipts (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Array Topology - File: solar-electrical-topology-analysis-engine-text-based/array_topology.py (Python, 3 lines) · role other · stage unknown - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/array_topology.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f9 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for the packaged Build 025 topology authority. - What it does: Uses libraries solar_topology.array.array_topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Test Array Authority Receipts (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based); Test Array Topology (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/app.js (JavaScript, 581 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/app.js#L1-L581 - Page: https://code.globalgrid2050.com/explore-code/s/0199.html#f10 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/ - Synopsis: A JavaScript module that draws b9 scene. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. It adds text (`addText`), syncs orientation cartridge (`syncOrientationFromCartridge`) and draws module (`drawModule`). - What it achieves (name): Defines `byId`, `numberValue`, `integerValue` and 23 more. It responds to input, change and click events. - What it does: It draws b9 scene. Defines 26 functions or classes, including byId, numberValue, integerValue, textValue, svgElement. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file b9-scene.json; GeoJSON file b9-scene.geojson. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/). Reached from 1 other entry point, including Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - Signatures: `byId(id)`; `numberValue(id, fallback)`; `integerValue(id, fallback)`; `textValue(id)`; `svgElement(name, attributes = {})`; `addText(parent, x, y, text, className = "module-label")`; `clearSvg(svg)`; `inputModel()`; `syncOrientationFromCartridge(cartridge)`; `rebuild()`; `terminalPosition(module, polarity, scale, originX, originY)`; `drawModule(svg, module, scale, originX, originY, compact = false)`; `renderPlan(svg)`; `drawCircuitConnection(svg, from, to, isTurnaround)`; `renderCircuit(svg)`; `renderFixedSide(svg, scene)`; `fraction1(index + 1)`; `renderEastWestSide(svg, scene)`; `f1(index + 1)`; `renderTrackerSide(svg, scene)`; `renderSide(svg)`; `renderStage()`; `setText(id, value, className = "")`; `renderSummary()`; `render()` (and 3 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file b9-scene.json; GeoJSON file b9-scene.geojson]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Cartridges - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/cartridges.js (JavaScript, 71 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/cartridges.js#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0200.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. It gets cartridge (`getCartridge`). - What it achieves (name): Defines `getCartridge`. - What it does: It calculates its inputs. Defines getCartridge. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/). Reached from 2 other entry points, including Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). - Signatures: `export getCartridge(id)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/index.html (HTML, 223 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/index.html#L1-L223 - Page: https://code.globalgrid2050.com/explore-code/s/0200.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/ - Synopsis: A web page that draws SVG graphics and reads inputs for cartridge, orientation and module width (units: mm²). Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - What it achieves (comment): Generic PV array geometry and circuit authoring sandbox. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables. - Inputs & outputs: In: DuckDB queries; form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [DuckDB queries; form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 1; mentioned by 0 ### Model - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/model.js (JavaScript, 281 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/model.js#L1-L281 - Page: https://code.globalgrid2050.com/explore-code/s/0201.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that builds scene (`buildScene`), derives summary (`deriveSummary`) and converts to geo (`toGeoJson`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - What it achieves (name): It makes id (`makeId`), builds scene (`buildScene`) and derives summary (`deriveSummary`). Defines `makeId`, `modulePitch`, `rowSpan` and 4 more. - What it does: It calculates its inputs. Defines 7 functions or classes, including makeId, modulePitch, rowSpan, topologyOrder, buildScene. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/). Reached from 2 other entry points, including Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). - Signatures: `export makeId(prefix, index)`; `export modulePitch(scene)`; `export rowSpan(scene)`; `export topologyOrder(moduleCount, topology, customText = "")`; `export buildScene(input, cartridge)`; `export deriveSummary(scene)`; `export toGeoJson(scene)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Style Sheet - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/styles.css (CSS, 323 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/styles.css#L1-L323 - Page: https://code.globalgrid2050.com/explore-code/s/0201.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/ - Synopsis: A style sheet. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/). Reached from 1 other entry point, including Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Tests - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html (HTML, 72 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/tests.html#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0201.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html. - What it does: It tests its inputs. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (link 1, script-src 1); used by 0; mentioned by 0 ### Tests - File: solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.js (JavaScript, 158 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/b9-sandbox/tests.js#L1-L158 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that works with assert equal (`assertEqual`) and assert close (`assertClose`) (units: mm²). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - What it achieves (name): It is built from the assert equal helper (`assertEqual`), the assert close helper (`assertClose`) and the base input helper (`baseInput`). Defines `assertEqual`, `assertClose` and `baseInput`. - What it does: It tests its inputs. Defines assertEqual, assertClose, baseInput. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. - Signatures: `assertEqual(name, actual, expected)`; `assertClose(name, actual, expected, tolerance = 1e-9)`; `baseInput(overrides = {})` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Geometry Authority - File: solar-electrical-topology-analysis-engine-text-based/geometry_authority.py (Python, 3 lines) · role other · stage unknown - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/geometry_authority.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for the packaged Build 025 geometry authority. - What it does: Uses libraries solar_topology.array.geometry_authority. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Validate Clean Wheel (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based); Test Array Topology (solar-electrical-topology-analysis-engine-text-based); Test Geometry Authority (solar-electrical-topology-analysis-engine-text-based); and 3 more. Reached from 9 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — Index Page - File: solar-electrical-topology-analysis-engine-text-based/index.html (HTML, 135 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/index.html#L1-L135 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A web page that reads inputs for modules along, ranks up and faces (units: Ω, °C, mm²), covering cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - What it achieves (comment): 2D solar DC topology engine modelling sequential and leapfrog string circuits, home-run cables, module leads, connectors, temperature, loop geometry, inductance and capacitance. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 44 files: Geometry Workbench (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html); V7 Development — Feed I Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/); Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html); and 40 more. Reached from 90 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (script-src 3, stylesheet 1); used by 44; mentioned by 0 ### Navigation Buttons - File: solar-electrical-topology-analysis-engine-text-based/navigation-buttons.js (JavaScript, 29 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/navigation-buttons.js#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f4 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that applies view (`applyView`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. It applies view (`applyView`). - What it achieves (name): Defines `applyView`. It responds to click, wheel and pointermove events. - What it does: Defines applyView. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'navigation'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `applyView(zoom)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Physics Generated - File: solar-electrical-topology-analysis-engine-text-based/physics.generated.js (JavaScript, 55 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/physics.generated.js#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f5 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that works with dc resistance (`dcResistance`) and contact resistance (`contactResistance`), using IEC 60228. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - What it achieves (comment): It is built from the conductor diameter from area helper (`conductorDiameterFromArea`), the resistance at temperature helper (`resistanceAtTemperature`) and the dc resistance helper (`dcResistance`). Browser formula library for the V6 complete-string-circuit prototype. It responds to DOMContentLoaded events. - What it does: It draws its content. Defines 11 functions or classes, including conductorDiameterFromArea, resistanceAtTemperature, dcResistance, contactResistance, twoWire. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/); Index V6 Before Leapfrog (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - Signatures: `conductorDiameterFromArea(areaMm2)`; `resistanceAtTemperature(referenceResistance,referenceTemperatureC,targetTemperatureC,alpha=ALPHA_CU20)`; `dcResistance(totalMetalLengthM,areaMm2,temperatureC)`; `contactResistance(baseOhm,referenceTemperatureC,targetTemperatureC,alpha)`; `twoWire(centreSpacingMm,conductorDiameterMm,epsilonR)`; `polygonArea(points)`; `coldVoc(moduleVoc,moduleCount,betaPctPerC,tempC)`; `parallelPlateCap(areaM2,thicknessMm,epsilonR)`; `storedMagnetic(L,I)`; `storedElectric(C,V)`; `installResistanceWarning()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Progress Dashboard - File: solar-electrical-topology-analysis-engine-text-based/progress-dashboard.html (HTML, 89 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/progress-dashboard.html#L1-L89 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f6 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/progress-dashboard.html - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that draws programme state, using SHA-256. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/progress-dashboard.html. - What it achieves (comment): Generated engineering programme state for the Solar Electrical Topology Analysis Engine. Its code works with 352 kVA. - What it does: It draws programme state. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "CI fails if the manifest, this status block or `progress-dashboard.html` drift apart." - Inputs & outputs: In: JSON file programme-state.json. Out: web page. - Downstream impact: Used directly by 2 files: Geometry Workbench (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html); Inverter24 (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/progress-dashboard.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file programme-state.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Pyproject - File: solar-electrical-topology-analysis-engine-text-based/pyproject.toml (TOML, 41 lines) · role docs-config · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/pyproject.toml#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f7 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A configuration file in Solar Electrical Topology Analysis Engine Text Based that reads solar. - What it achieves (comment): Geometry-authoritative topology, routing and evidence kernel for solar DC systems. - What it does: It loads solar. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: DuckDB queries. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Restore Points — 2026 07 29 Before 24 String V10 Page - File: solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/index.html (HTML, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/restore-points/2026-07-29-before-24-string-v10/index.html#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f8 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/ - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that reads inputs for module count, pitch metres and topology (units: °C, Ω). Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/. - What it achieves (comment): It is built from the value step (`value`) and the render step (`render`). Kernel-first photovoltaic DC topology and computation workbench. It responds to click events. - What it does: It draws its content. Defines $, value, render. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/. - Signatures: `$(id)`; `value(id)`; `render()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Index V6 Before Leapfrog - File: solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html (HTML, 125 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0202.html#f9 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that reads inputs for modules along, ranks up and faces, covering cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html. - What it achieves (comment): 2D solar DC topology engine modelling complete string circuits: home-runs, module leads, connectors, temperature, loop geometry, inductance and capacitance. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 3 estate files (script-src 2, stylesheet 1); used by 0; mentioned by 0 ### Index V7 Before Leapfrog - File: solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v7-before-leapfrog.html (HTML, 107 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/restore_points/2026-07-27-v8-leapfrog/index-v7-before-leapfrog.html#L1-L107 - Page: https://code.globalgrid2050.com/explore-code/s/0203.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v7-before-leapfrog.html - Synopsis: A web page in the restore points folder of Solar Electrical Topology Analysis Engine Text Based that draws solar DC topology study and cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v7-before-leapfrog.html. - What it achieves (comment): It sets zoom (`setZoom`) and is built from the bands step (`bands`) and the acosh step (`acosh`). Solar DC String Topology Engine V7 — Independent Development. It responds to input, pointerdown and pointermove events. - What it does: It draws solar DC topology study and cables. Defines 10 functions or classes, including bands, acosh, twoWire, cap, coldVoc. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: JSON file solar-dc-topology-v7-study.json; downloaded file solar-dc-topology-v7-study.json; web page; canvas drawing. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v7-before-leapfrog.html. - Signatures: `bands(id)`; `acosh(x)`; `twoWire(spacingMm,areaMm2,er)`; `cap(area,thickMm,er)`; `coldVoc()`; `moduleCaps()`; `geometry()`; `route(s)`; `pairMppts(strings)`; `cmInductance(s,tw)`; `compute()`; `renderCanvas(d)`; `render()`; `setZoom(next)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [JSON file solar-dc-topology-v7-study.json; downloaded file solar-dc-topology-v7-study.json; web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Index V8 Initial - File: solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v8-initial.html (HTML, 88 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/restore_points/2026-07-27-v8-leapfrog/index-v8-initial.html#L1-L88 - Page: https://code.globalgrid2050.com/explore-code/s/0203.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v8-initial.html - Synopsis: A web page in the restore points folder of Solar Electrical Topology Analysis Engine Text Based that draws leapfrog cable schedule and cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v8-initial.html. - What it achieves (comment): It parses bands (`parseBands`) and parses numbers (`parseNumbers`). Independent V8 development workbench comparing sequential and leapfrog PV string home-run cable schedules. It responds to input and click events. - What it does: It draws leapfrog cable schedule and cables. Defines $, fmt, parseBands, parseNumbers, rowSpan. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: JSON file v8-leapfrog-cable-schedule.json; downloaded file v8-leapfrog-cable-schedule.json; web page; canvas drawing. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v8-initial.html. - Signatures: `$(id)`; `fmt(v,d=2)`; `parseBands(id)`; `parseNumbers(id)`; `inputs()`; `rowSpan(m)`; `rowsFor(m,D=m.distance)`; `totals(m,D=m.distance)`; `drawDiagram(m,t)`; `moduleRow(y,title,leap)`; `render()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [JSON file v8-leapfrog-cable-schedule.json; downloaded file v8-leapfrog-cable-schedule.json; web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Advance Microbuild - File: solar-electrical-topology-analysis-engine-text-based/scripts/advance_microbuild.py (Python, 129 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/advance_microbuild.py#L1-L129 - Page: https://code.globalgrid2050.com/explore-code/s/0203.html#f3 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that loads evidence (`load_evidence`). - What it achieves (comment): It is built from the advancement error class (`AdvancementError`), the require step (`require`) and the manifest evidence record helper (`manifest_evidence_record`). Preview one evidence-bound microbuild advancement without writing files. It accepts `--plan` and `--evidence`. - What it does: It loads data. Defines 6 functions or classes, including AdvancementError, require, load_evidence, manifest_evidence_record, preview_advancement. Uses libraries __future__, argparse, copy, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Test Microbuild Advancement (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class AdvancementError`; `require(condition: bool, message: str)`; `load_evidence(path: Path)`; `manifest_evidence_record(evidence: dict[str, Any])`; `preview_advancement(plan: dict[str, Any], evidence: dict[str, Any])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Build Authority Bundle - File: solar-electrical-topology-analysis-engine-text-based/scripts/build_authority_bundle.py (Python, 92 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/build_authority_bundle.py#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0203.html#f4 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with authority response payload (`authority_response_payload`), covering reference inverter block, using SHA-256. - What it achieves (comment): It writes authority bundle (`write_authority_bundle`) and is built from the canonical JSON helper (`canonical_json`) and the authority response JSON helper (`authority_response_json`). Generate the deterministic reference inverter-block authority bundle. It accepts `--strategy`, `--write` and `--output`. - What it does: Defines canonical_json, authority_response_payload, authority_response_json, write_authority_bundle, main. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file reference-inverter-block.json; command-line arguments. - Downstream impact: Used directly by 9 files: Local Authority Bridge (solar-electrical-topology-analysis-engine-text-based); Run Authority Slice (solar-electrical-topology-analysis-engine-text-based); Validate Authority Bundle (solar-electrical-topology-analysis-engine-text-based); Test Authority Bundle (solar-electrical-topology-analysis-engine-text-based); and 5 more. Reached from 5 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based). - Signatures: `canonical_json(payload: object)`; `authority_response_payload(strategy: str = "leapfrog")`; `authority_response_json(strategy: str = "leapfrog")`; `write_authority_bundle(path: Path = AUTHORITY_BUNDLE_PATH, *, strategy: str = "leapfrog")`; `main(argv: list[str] | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 9; mentioned by 0 ### Build Topology Store - File: solar-electrical-topology-analysis-engine-text-based/scripts/build_topology_store.py (Python, 100 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/build_topology_store.py#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0203.html#f5 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that parses bands (`parse_bands`). It is built from the parser step (`parser`). - What it achieves (comment): Build the deterministic topology segment store. It accepts `--output`, `--inverter-count` and `--string-count`. - What it does: Defines parse_bands, parser, main. Uses libraries __future__, argparse, json, os, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `parse_bands(value: str)`; `parser()`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Check Capsule Links - File: solar-electrical-topology-analysis-engine-text-based/scripts/check_capsule_links.py (Python, 180 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/check_capsule_links.py#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0203.html#f6 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that cleans reference (`clean_reference`), extracts references (`extract_references`) and resolves reference (`resolve_reference`). - What it achieves (comment): It is built from the link issue class (`LinkIssue`), the message step (`message`) and the capsule files helper (`capsule_files`). Validate path references inside Quantum Spawn and Trueself capsules. It accepts `--check`. - What it does: It loads data. Defines 10 functions or classes, including LinkIssue, message, capsule_files, clean_reference, extract_references. Uses libraries __future__, argparse, dataclasses, pathlib, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 2 files: Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class LinkIssue`; `message(self)`; `capsule_files()`; `clean_reference(raw: str)`; `extract_references(text: str)`; `resolve_reference(source: Path, reference: str)`; `canonical_title(path: Path)`; `check_compatibility_pointer(path: Path, text: str)`; `check_capsule_links()`; `main(argv: list[str] | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Check Line Lengths - File: solar-electrical-topology-analysis-engine-text-based/scripts/check_line_lengths.py (Python, 70 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/check_line_lengths.py#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0204.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with active files (`active_files`). It is built from the violations step (`violations`). - What it achieves (comment): Fail when active topology source lines exceed the reviewable limit. - What it does: It loads data. Defines active_files, violations, main. Uses libraries __future__, pathlib, sys. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `active_files()`; `violations(path: Path)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Check Microbuild Plan - File: solar-electrical-topology-analysis-engine-text-based/scripts/check_microbuild_plan.py (Python, 225 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/check_microbuild_plan.py#L1-L225 - Page: https://code.globalgrid2050.com/explore-code/s/0204.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that validates evidence (`validate_evidence`), using SHA-256. It loads plan (`load_plan`) and validates plan (`validate_plan`). - What it achieves (comment): Validate the ordered twenty-step microbuild programme. It accepts `--path` and `--check`. - What it does: It loads data. Defines 6 functions or classes, including PlanValidationError, require, load_plan, validate_evidence, validate_plan. Uses libraries __future__, argparse, json, pathlib, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file microbuild-plan.json; command-line arguments. - Downstream impact: Used directly by 10 files: Advance Microbuild (solar-electrical-topology-analysis-engine-text-based); Microbuild Evidence (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Advancement (solar-electrical-topology-analysis-engine-text-based); and 6 more. Reached from 1 other entry point, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class PlanValidationError`; `require(condition: bool, message: str)`; `load_plan(path: Path = DEFAULT_PLAN_PATH)`; `validate_evidence(evidence: object, *, step_id: str, test_id: str, manifest_revision: int)`; `validate_plan(plan: dict[str, Any], *, root: Path = ROOT)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file microbuild-plan.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 10; mentioned by 0 ### Local Authority Bridge - File: solar-electrical-topology-analysis-engine-text-based/scripts/local_authority_bridge.py (Python, 265 lines) · role other · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/local_authority_bridge.py#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0204.html#f3 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that makes handler, creates server and builds parser, covering reference inverter block. - What it achieves (comment): It makes handler (`make_handler`), creates server (`create_server`) and builds parser (`build_parser`). Serve the Python-owned authority response and existing Studio locally. It accepts `--host`, `--port` and `--strategy`. - What it does: Defines 14 functions or classes, including authority_response_bytes, _json_bytes, _content_type, make_handler, AuthorityBridgeHandler. Uses libraries __future__, argparse, http, http.server, json. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file reference-inverter-block.json; command-line arguments. - Downstream impact: Used directly by 3 files: Run Authority Slice (solar-electrical-topology-analysis-engine-text-based); Test End to End Authority Slice (solar-electrical-topology-analysis-engine-text-based); Test Local Authority Bridge (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `authority_response_bytes(strategy: str = "leapfrog")`; `_json_bytes(payload: object)`; `_content_type(path: Path)`; `make_handler(*, strategy: str = "leapfrog", root: Path = ROOT)`; `class AuthorityBridgeHandler`; `log_message(self, format: str, *args: object)`; `do_HEAD(self)`; `do_GET(self)`; `_send(self, status: HTTPStatus, body: bytes, *, content_type: str, send_body: bool, extra_headers: dict[str, str] | None = ...)`; `_redirect(self, location: str, *, send_body: bool)`; `_handle(self, *, send_body: bool)`; `create_server(*, host: str = DEFAULT_HOST, port: int = DEFAULT_PORT, strategy: str = "leapfrog", root: Path = ROOT)`; `build_parser()`; `main(argv: list[str] | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Microbuild Evidence - File: solar-electrical-topology-analysis-engine-text-based/scripts/microbuild_evidence.py (Python, 181 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/microbuild_evidence.py#L1-L181 - Page: https://code.globalgrid2050.com/explore-code/s/0205.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with evidence validation error (`EvidenceValidationError`) and evidence core payload (`evidence_core_payload`), using SHA-256. - What it achieves (comment): It writes evidence (`write_evidence`) and is built from the evidence validation error class (`EvidenceValidationError`) and the require step (`require`). Create deterministic microbuild evidence with separate runtime metadata. It accepts `--plan`, `--tested-commit` and `--result`. - What it does: Defines 11 functions or classes, including EvidenceValidationError, require, canonical_json, evidence_core_payload, microbuild_evidence_hash. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 5 files: Advance Microbuild (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Advancement (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Evidence (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based); and 1 more. Reached from 4 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class EvidenceValidationError`; `require(condition: bool, message: str)`; `canonical_json(payload: object)`; `evidence_core_payload(*, step_id: str, manifest_revision: int, tested_commit: str, test_id: str, result: str)`; `microbuild_evidence_hash(core: dict[str, object])`; `_runtime_id(value: int | None, name: str)`; `microbuild_evidence_payload(*, step_id: str, manifest_revision: int, tested_commit: str, test_id: str, result: str, workflow_run_id: int | None =...)`; `microbuild_evidence_json(**kwargs: Any)`; `evidence_from_active_plan(*, tested_commit: str, result: str, workflow_run_id: int | None = None, artifact_id: int | None = None, plan_path: Pa...)`; `write_evidence(path: Path, payload: dict[str, object])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 5; mentioned by 0 ### Reference Block Command - File: solar-electrical-topology-analysis-engine-text-based/scripts/reference_block_command.py (Python, 47 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/reference_block_command.py#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0205.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that builds parser (`build_parser`). It is built from the reference block JSON helper (`reference_block_json`). - What it achieves (comment): Print a versioned authoritative reference inverter-block response. It accepts `--strategy` and `--version`. - What it does: It calculates its inputs. Defines reference_block_json, build_parser, main. Uses libraries __future__, argparse, sys, solar_topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 2 files: Build Authority Bundle (solar-electrical-topology-analysis-engine-text-based); Test Reference Block Command (solar-electrical-topology-analysis-engine-text-based). Reached from 14 other entry points, including Authority Bundle Sync Workflow (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `reference_block_json(strategy: str = "leapfrog")`; `build_parser()`; `main(argv: list[str] | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Run Authority Slice - File: solar-electrical-topology-analysis-engine-text-based/scripts/run_authority_slice.py (Python, 238 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/run_authority_slice.py#L1-L238 - Page: https://code.globalgrid2050.com/explore-code/s/0205.html#f3 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that fetches reference inverter block and solar, using SHA-256. - What it achieves (comment): It fetches bytes (`fetch_bytes`), runs browser checks (`run_browser_checks`) and runs clean wheel check (`run_clean_wheel_check`). Exercise the complete command-to-bridge-to-Studio authority slice. It accepts `--strategy`, `--skip-browser-checks` and `--skip-clean-wheel`. - What it does: It fetches reference inverter block and solar. Defines 11 functions or classes, including AuthoritySliceError, require, _sha256, command_response_bytes, running_bridge. Uses libraries __future__, argparse, contextlib, hashlib, json. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: JSON file reference-inverter-block.json; command-line arguments. - Downstream impact: Used directly by 1 file: Test End to End Authority Slice (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class AuthoritySliceError`; `require(condition: bool, message: str)`; `_sha256(data: bytes)`; `command_response_bytes(strategy: str = "leapfrog")`; `running_bridge(*, strategy: str = "leapfrog")`; `fetch_bytes(url: str)`; `run_browser_checks()`; `run_clean_wheel_check()`; `run_authority_slice(*, strategy: str = "leapfrog", browser_checks: bool = True, clean_wheel: bool = True)`; `build_parser()`; `main(argv: list[str] | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 4 estate files (import 3, script-call 1); used by 1; mentioned by 0 ### Run Microbuild - File: solar-electrical-topology-analysis-engine-text-based/scripts/run_microbuild.py (Python, 108 lines) · role other · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/run_microbuild.py#L1-L108 - Page: https://code.globalgrid2050.com/explore-code/s/0205.html#f4 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with active command (`active_command`). - What it achieves (comment): It is built from the unknown test identifier class (`UnknownTestIdentifier`), the command for test helper (`command_for_test`) and the active test id helper (`active_test_id`). Select and optionally execute one repository-controlled microbuild test. It accepts `--plan`, `--test-id` and `--execute`. - What it does: Defines 6 functions or classes, including UnknownTestIdentifier, command_for_test, active_test_id, active_command, execute. Uses libraries __future__, argparse, json, pathlib, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 4 files: Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based); Test Ts005 Handoff (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class UnknownTestIdentifier`; `command_for_test(test_id: str)`; `active_test_id(plan_path: Path = DEFAULT_PLAN_PATH)`; `active_command(plan_path: Path = DEFAULT_PLAN_PATH)`; `execute(command: Sequence[str])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 16 estate files (script-call 15, import 1); used by 4; mentioned by 0 ### Run Ts004 Integration - File: solar-electrical-topology-analysis-engine-text-based/scripts/run_ts004_integration.py (Python, 85 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/run_ts004_integration.py#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0205.html#f5 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that reads validation. It runs gate (`run_gate`). - What it achieves (comment): Run the complete TS-004 integration envelope from repository authority. - What it does: It loads validation. Defines _print_declared_suite_failures, run_gate, main. Uses libraries __future__, json, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file V10_VALIDATION_LATEST.json. - Downstream impact: Used directly by 1 file: Run Microbuild (solar-electrical-topology-analysis-engine-text-based). Reached from 5 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_print_declared_suite_failures()`; `run_gate(name: str, command: tuple[str, ...])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file V10_VALIDATION_LATEST.json]; out []; crs []; voltages [] - Edges: uses 5 estate files (script-call 5); used by 1; mentioned by 0 ### Run V10 Validation - File: solar-electrical-topology-analysis-engine-text-based/scripts/run_v10_validation.py (Python, 180 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/run_v10_validation.py#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0206.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that runs command (`run_command`). - What it achieves (comment): It is built from the utc now helper (`utc_now`) and the markdown report helper (`markdown_report`). Run all declared V10 execution gates and write artifact-ready evidence. - What it does: Defines utc_now, run_command, markdown_report, main. Uses libraries __future__, datetime, json, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file V10_VALIDATION_LATEST.json. - Downstream impact: Used directly by 2 files: Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `utc_now()`; `run_command(name: str, command: list[str], cwd: Path)`; `markdown_report(payload: dict)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file V10_VALIDATION_LATEST.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (script-call 3); used by 2; mentioned by 0 ### Sync Programme State - File: solar-electrical-topology-analysis-engine-text-based/scripts/sync_programme_state.py (Python, 317 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/sync_programme_state.py#L1-L317 - Page: https://code.globalgrid2050.com/explore-code/s/0206.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that reads programme state schema, using SHA-256. - What it achieves (comment): It loads JSON (`load_json`), validates state (`validate_state`) and renders readme block (`render_readme_block`). Validate `programme-state.json` and keep public status projections in sync. Its code works with 352 kVA. It accepts `--check` and `--write`. - What it does: It loads programme state schema. Defines 13 functions or classes, including load_json, decimal, require, validate_state, suite_rows. Uses libraries __future__, argparse, decimal, html, json. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file programme-state.json; JSON file programme-state.schema.json; command-line arguments. - Downstream impact: Used directly by 3 files: Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based); Programme State Sync Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `load_json(path: Path)`; `decimal(value: object)`; `require(condition: bool, message: str)`; `validate_state(state: dict[str, Any])`; `suite_rows(state: dict[str, Any])`; `render_readme_block(state: dict[str, Any])`; `sync_readme(existing: str, block: str)`; `list_items(items: list[str], css_class: str = "")`; `render_dashboard(state: dict[str, Any])`; `expected_outputs(state: dict[str, Any])`; `write_outputs(state: dict[str, Any])`; `check_outputs(state: dict[str, Any])`; `main(argv: list[str] | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file programme-state.json; JSON file programme-state.schema.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Validate Authority Bundle - File: solar-electrical-topology-analysis-engine-text-based/scripts/validate_authority_bundle.py (Python, 366 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/validate_authority_bundle.py#L1-L366 - Page: https://code.globalgrid2050.com/explore-code/s/0207.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that reads authority response schema, using SHA-256. - What it achieves (comment): It loads JSON object (`load_json_object`), validates JSON schema (`validate_json_schema`) and validates authority bundle payload (`validate_authority_bundle_payload`). Validate the reference authority bundle against schema and Python authority. It accepts `--bundle` and `--schema`. - What it does: It loads authority response schema. Defines 11 functions or classes, including AuthorityBundleValidationError, require, load_json_object, _resolve_ref, _matches_type. Uses libraries __future__, argparse, hashlib, json, math. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file authority-response.schema.json; JSON file authority-response.v1.json; command-line arguments. - Downstream impact: Used directly by 2 files: Run Authority Slice (solar-electrical-topology-analysis-engine-text-based); Test Authority Bundle (solar-electrical-topology-analysis-engine-text-based). Reached from 7 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class AuthorityBundleValidationError`; `require(condition: bool, message: str)`; `load_json_object(path: Path)`; `_resolve_ref(root_schema: dict[str, Any], reference: str)`; `_matches_type(value: object, expected: str)`; `_validate_schema_node(value: object, node: dict[str, Any], *, root_schema: dict[str, Any], path: str)`; `validate_json_schema(payload: dict[str, Any], schema: dict[str, Any])`; `_assert_hash(value: object, path: str)`; `validate_authority_bundle_payload(payload: dict[str, Any], *, schema: dict[str, Any] | None = None)`; `validate_authority_bundle_file(bundle_path: Path = AUTHORITY_BUNDLE_PATH, schema_path: Path = AUTHORITY_RESPONSE_SCHEMA_PATH)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file authority-response.schema.json; JSON file authority-response.v1.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Validate Clean Wheel - File: solar-electrical-topology-analysis-engine-text-based/scripts/validate_clean_wheel.py (Python, 406 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/validate_clean_wheel.py#L1-L406 - Page: https://code.globalgrid2050.com/explore-code/s/0208.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with venv python (`venv_python`) (units: kVA, mm²), covering solar, using SHA-256. - What it achieves (comment): It is built from the run step (`run`). Build, install and exercise the public Build 025 API outside the checkout. Its code works with 352 kVA. - What it does: Defines run, venv_python, main. Uses libraries __future__, os, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 3 files: Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based); Run V10 Validation (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based). - Signatures: `run(command: list[str], *, cwd: Path, env: dict[str, str] | None = None)`; `venv_python(venv: Path)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 0 ### Validate Inverter Block Wheel - File: solar-electrical-topology-analysis-engine-text-based/scripts/validate_inverter_block_wheel.py (Python, 199 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/scripts/validate_inverter_block_wheel.py#L1-L199 - Page: https://code.globalgrid2050.com/explore-code/s/0208.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with venv python (`venv_python`), using SHA-256. - What it achieves (comment): It is built from the run step (`run`). Build a wheel and prove the inverter-block contract outside the checkout. - What it does: Defines run, venv_python, main. Uses libraries __future__, os, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Run Authority Slice (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test End to End Authority Slice (solar-electrical-topology-analysis-engine-text-based). - Signatures: `run(command: list[str], *, cwd: Path, env: dict[str, str] | None = None)`; `venv_python(venv: Path)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Spider Navigation - File: solar-electrical-topology-analysis-engine-text-based/spider-navigation.css (CSS, 8 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/spider-navigation.css#L1-L8 - Page: https://code.globalgrid2050.com/explore-code/s/0208.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A style sheet in Solar Electrical Topology Analysis Engine Text Based. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/); Index V6 Before Leapfrog (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Spider Navigation - File: solar-electrical-topology-analysis-engine-text-based/spider-navigation.js (JavaScript, 192 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/spider-navigation.js#L1-L192 - Page: https://code.globalgrid2050.com/explore-code/s/0209.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that sets size (`setSize`) and zooms to (`zoomTo`), covering cables. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - What it achieves (comment): It sets size (`setSize`) and is built from the install technical commentary helper (`installTechnicalCommentary`) and the select step (`select`). Compatibility repair: the current V6/V7 `app.js` lost the `nearest` hit-test function that existed in the last working renderer. It responds to click, pointerdown and pointermove events. - What it does: It draws cables. Defines 11 functions or classes, including installTechnicalCommentary, select, clamp, point, world. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/); Index V6 Before Leapfrog (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - Signatures: `installTechnicalCommentary()`; `select(which)`; `clamp(v)`; `point(e)`; `world(e)`; `label()`; `setSize(s)`; `zoomTo(target,clientX,clientY)`; `vx(clientX==null?rect.left+wrap.clientWidth/2:clientX)`; `vy(clientY==null?rect.top+wrap.clientHeight/2:clientY)`; `anchorX(wrap.scrollLeft+vx)`; `anchorY(wrap.scrollTop+vy)`; `frame(now)`; `finish(e)`; `centre()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — Solar Topology - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/__init__.py (Python, 295 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/__init__.py#L1-L295 - Page: https://code.globalgrid2050.com/explore-code/s/0209.html#f2 - Synopsis: A Python module covering solar. - What it achieves (comment): Solar electrical topology physics, cartridges and fleet data core. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 31 estate files (python-relative 31); used by 0; mentioned by 0 ### Solar Topology — Array - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/__init__.py (Python, 163 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/__init__.py#L1-L163 - Page: https://code.globalgrid2050.com/explore-code/s/0209.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Installed public API for the Build 025 whole-table array authority. - What it does: It calculates its inputs. Defines _authoritative_module. Uses libraries __future__, importlib, sys, types. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Inverter Block (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_authoritative_module(name: str)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (python-relative 4); used by 1; mentioned by 0 ### Array Engine - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/array_engine.py (Python, 473 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/array_engine.py#L1-L473 - Page: https://code.globalgrid2050.com/explore-code/s/0210.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It builds complete table (`build_complete_table`), compares wiring strategies (`compare_wiring_strategies`) and compares reference (`compare_reference_24_by_30`). - What it achieves (comment): Public Build 025 whole-table geometry and topology orchestration. - What it does: It calculates solar. Defines 13 functions or classes, including Build025Receipt, MetricDelta, StrategyComparisonReceipt, _canonical_json, _hash_payload. Uses libraries __future__, dataclasses, hashlib, json, typing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Topology — Array (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class Build025Receipt`; `class MetricDelta`; `class StrategyComparisonReceipt`; `_canonical_json(payload: object)`; `_hash_payload(payload: object)`; `_geometry_summary(geometry: TableGeometryReceipt)`; `build025_payload(receipt: Build025Receipt)`; `_metric_deltas(sequential: TableRouteMetrics, leapfrog: TableRouteMetrics)`; `strategy_comparison_payload(receipt: StrategyComparisonReceipt)`; `compare_reference_24_by_30(*, inverter_position: Point2D = Point2D(-5.0, 27.0), equipment_profile: EquipmentProfile | None = None, routing_confi...)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Array Route Geometry - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/array_route_geometry.py (Python, 809 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/array_route_geometry.py#L1-L809 - Page: https://code.globalgrid2050.com/explore-code/s/0211.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that builds interconnect routes (`build_interconnect_routes`), counts route crossings (`count_route_crossings`) and calculates planar distances. - What it achieves (comment): It builds route (`build_route`) and is built from the local to world helper (`local_to_world`) and the world to local helper (`world_to_local`). Geometry algorithms used by the Build 025 routing authority. - What it does: It calculates its inputs. Defines 26 functions or classes, including local_to_world, world_to_local, _module_offset_point, terminal_points, deduplicate_vertices. Uses libraries __future__, dataclasses, math, typing. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Array Routing (solar-electrical-topology-analysis-engine-text-based). - Signatures: `local_to_world(local: LocalPoint2D, geometry: TableGeometryReceipt)`; `world_to_local(point: Point2D, geometry: TableGeometryReceipt)`; `_module_offset_point(placement: ModulePlacement, offset_u_m: float, offset_v_m: float)`; `terminal_points(geometry: TableGeometryReceipt, layout: ModuleTerminalLayout)`; `deduplicate_vertices(vertices: Iterable[Point2D])`; `_route_class(index: int, count: int, home_run: bool, from_input: bool)`; `build_route(*, route_id: str, string_id: str, polarity: RoutePolarity, conductor_scope: ConductorScope, from_node_id: str, to_nod...)`; `_interconnect_vertices(start: Point2D, end: Point2D, geometry: TableGeometryReceipt, lane_offset_m: float, lane_sign: int)`; `build_interconnect_routes(topology: StringTopology, geometry: TableGeometryReceipt, terminals: Mapping[str, tuple[Point2D, Point2D]], config: R...)`; `module_row_v(module_ids: Sequence[str], placement_by_id: Mapping[str, ModulePlacement], geometry: TableGeometryReceipt)`; `entry_u(collection_u: float, inverter_u: float, offset: float)`; `home_route_vertices(*, free_point: Point2D, input_point: Point2D, exit_lane_v: float, trunk_lane_v: float, collection_u: float, entry_u_m...)`; `_point_to_segment_distance(point: Point2D, start: Point2D, end: Point2D)`; `_point_to_route_distance(point: Point2D, route: ConductorRoute)`; `pole_separation_metrics(positive: ConductorRoute, negative: ConductorRoute)`; `_parallel_overlap(first: RouteSegment, second: RouteSegment, maximum_separation: float)`; `parallel_run_distance(positive: ConductorRoute, negative: ConductorRoute, maximum_separation: float)`; `_orientation(a: Point2D, b: Point2D, c: Point2D)`; `_proper_intersection(a: Point2D, b: Point2D, c: Point2D, d: Point2D)`; `_intersection_point(a: Point2D, b: Point2D, c: Point2D, d: Point2D)`; `count_route_crossings(routes: Sequence[ConductorRoute])`; `signed_polygon_area(vertices: Sequence[Point2D])`; `_winding_number(point: Point2D, vertices: Sequence[Point2D])`; `absolute_winding_area(vertices: Sequence[Point2D])`; `circuit_loop_vertices(topology: StringTopology, positive_route: ConductorRoute, negative_route: ConductorRoute, interconnect_routes: Sequen...)` (and 1 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Array Route Types - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/array_route_types.py (Python, 370 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/array_route_types.py#L1-L370 - Page: https://code.globalgrid2050.com/explore-code/s/0212.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It routes polarity (`RoutePolarity`), routes class (`RouteClass`) and routes segment (`RouteSegment`). - What it achieves (comment): Immutable records for Build 025 route and length authority. - What it does: It calculates solar. Defines 28 functions or classes, including RoutePolarity, RouteClass, InstallationMethod, ConductorScope, LocalPoint2D. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: solar. - Downstream impact: Used directly by 3 files: Solar Topology — Array (solar-electrical-topology-analysis-engine-text-based); Array Route Geometry (solar-electrical-topology-analysis-engine-text-based); Array Routing (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class RoutePolarity`; `class RouteClass`; `class InstallationMethod`; `class ConductorScope`; `class LocalPoint2D`; `__post_init__(self)`; `class InverterPlacement`; `class ModuleTerminalLayout`; `class RoutingConfig`; `class RouteSegment`; `class ConductorRoute`; `class StringRouteMetrics`; `class StringRoutingReceipt`; `class TableRouteMetrics`; `class TableRoutingReceipt`; `class InstalledLengthPolicy`; `class RouteInstalledLength`; `class InstalledLengthReceipt`; `canonical_float(value: float)`; `canonical_json(payload: object)`; `hash_payload(payload: object)`; `same_point(first: Point2D, second: Point2D)`; `method_flags(method: InstallationMethod)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 0 ### Array Routing - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/array_routing.py (Python, 641 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/array_routing.py#L1-L641 - Page: https://code.globalgrid2050.com/explore-code/s/0213.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that builds table routes (`build_table_routes`) and calculates installed length (`calculate_installed_length`). - What it achieves (comment): It is built from the routing payload helper (`routing_payload`) and the installed length payload helper (`installed_length_payload`). Build 025 explicit conductor geometry, comparison and length receipts. - What it does: It calculates its inputs. Defines 8 functions or classes, including _build_string_routing, _table_metrics, routing_payload, build_table_routes, _field_routes. Uses libraries __future__, dataclasses, math, typing. - Why it exists in the grid workflow: Domain stage field_execution (path word 'routing'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Array Engine (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_table_metrics(strings: Sequence[StringRoutingReceipt])`; `routing_payload(receipt: TableRoutingReceipt)`; `build_table_routes(geometry: TableGeometryReceipt, string_allocation: StringAllocationReceipt, topology: TableTopologyReceipt, input_all...)`; `_field_routes(receipt: TableRoutingReceipt)`; `_factory_routes(receipt: TableRoutingReceipt)`; `installed_length_payload(receipt: InstalledLengthReceipt)`; `calculate_installed_length(routing: TableRoutingReceipt, *, policy: InstalledLengthPolicy = InstalledLengthPolicy())` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (import 4); used by 1; mentioned by 0 ### Array Topology - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/array_topology.py (Python, 1109 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/array_topology.py#L1-L1109 - Page: https://code.globalgrid2050.com/explore-code/s/0214.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It builds table topology (`build_table_topology`), attaches input topology (`attach_input_topology`) and adds node (`add_node`). - What it achieves (comment): Build 025C topology and physical-input allocation. - What it does: It calculates solar. Defines 37 functions or classes, including WiringStrategy, NodeKind, EdgeKind, Build025Limits, __post_init__. Uses libraries __future__, collections, dataclasses, enum, hashlib. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 5 files: Solar Topology — Array (solar-electrical-topology-analysis-engine-text-based); Array Engine (solar-electrical-topology-analysis-engine-text-based); Array Route Geometry (solar-electrical-topology-analysis-engine-text-based); Array Route Types (solar-electrical-topology-analysis-engine-text-based); and 1 more. - Signatures: `class WiringStrategy`; `class NodeKind`; `class EdgeKind`; `class Build025Limits`; `__post_init__(self)`; `class TopologyNode`; `class TopologyEdge`; `class StringTopology`; `class TableTopologyReceipt`; `class PhysicalInputSpec`; `class EquipmentProfile`; `class InputAssignment`; `class InputAllocationReceipt`; `_canonical_json(payload: object)`; `_hash_payload(payload: object)`; `allocation_payload(receipt: StringAllocationReceipt)`; `allocate_strings(geometry: TableGeometryReceipt, *, string_count: int, modules_per_string: int, explicit_module_groups: Sequence[Seque...)`; `electrical_module_order(physical_module_ids: Sequence[str], strategy: WiringStrategy | str)`; `_node(node_id: str, kind: NodeKind, string_id: str, module_id: str | None = None)`; `_build_string_topology(assignment: StringAssignment, strategy: WiringStrategy)`; `_validate_string_topology(topology: StringTopology)`; `_node_payload(node: TopologyNode)`; `_edge_payload(edge: TopologyEdge)`; `_topology_basis(*, table_id: str, assignment_hash: str, strategy: WiringStrategy, strings: Sequence[StringTopology], equipment_nodes:...)`; `topology_payload(receipt: TableTopologyReceipt)` (and 9 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 5; mentioned by 0 ### Geometry Authority - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/geometry_authority.py (Python, 293 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/geometry_authority.py#L1-L293 - Page: https://code.globalgrid2050.com/explore-code/s/0216.html#f1 - Synopsis: A Python module in the array folder of Solar Electrical Topology Analysis Engine Text Based that generates table geometry (`generate_table_geometry`), using SHA-256. - What it achieves (comment): It is built from the point2 d class (`Point2D`), the module dimensions class (`ModuleDimensions`) and the oriented step (`oriented`). Deterministic, geometry-authoritative PV table placement. - What it does: It calculates its inputs. Defines 17 functions or classes, including Point2D, __post_init__, ModuleDimensions, __post_init__, oriented. Uses libraries __future__, dataclasses, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 8 files: Solar Topology — Array (solar-electrical-topology-analysis-engine-text-based); Array Engine (solar-electrical-topology-analysis-engine-text-based); Array Route Geometry (solar-electrical-topology-analysis-engine-text-based); Array Route Types (solar-electrical-topology-analysis-engine-text-based); and 4 more. - Signatures: `class Point2D`; `__post_init__(self)`; `class ModuleDimensions`; `oriented(self, orientation: Orientation)`; `class TableLayoutRequest`; `class ModulePlacement`; `class TableBounds`; `class TableGeometryReceipt`; `_canonical_float(value: float)`; `_rotate_translate(local_x: float, local_y: float, request: TableLayoutRequest)`; `_corners(placement: ModulePlacement)`; `_canonical_payload(request: TableLayoutRequest, placements: tuple[ModulePlacement, ...], bounds: TableBounds)`; `generate_table_geometry(request: TableLayoutRequest)`; `receipt_as_dict(receipt: TableGeometryReceipt)`; `reference_24_by_30_table(*, table_id: str = "TABLE-001", origin: Point2D = Point2D(0.0, 0.0), rotation_deg: float = 0.0)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 8; mentioned by 0 ### Table String Assignment - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/table_string_assignment.py (Python, 220 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/table_string_assignment.py#L1-L220 - Page: https://code.globalgrid2050.com/explore-code/s/0216.html#f2 - Synopsis: A Python module in the array folder of Solar Electrical Topology Analysis Engine Text Based that assigns modules to strings (`assign_modules_to_strings`), using SHA-256. - What it achieves (comment): It is built from the string free terminal class (`StringFreeTerminal`), the ordered string membership class (`OrderedStringMembership`) and the physical module ids helper (`physical_module_ids`). Deterministic module-to-string membership for Build 025B. - What it does: It calculates its inputs. Defines 10 functions or classes, including StringFreeTerminal, __post_init__, OrderedStringMembership, __post_init__, physical_module_ids. Uses libraries __future__, dataclasses, hashlib, json, typing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Array Topology (solar-electrical-topology-analysis-engine-text-based); Table String Hashing (solar-electrical-topology-analysis-engine-text-based); Table String Validation (solar-electrical-topology-analysis-engine-text-based); Table String Assignment (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class StringFreeTerminal`; `__post_init__(self)`; `class OrderedStringMembership`; `physical_module_ids(self)`; `class TableStringAssignmentReceipt`; `assignments(self)`; `_canonical_payload(*, geometry: TableGeometryReceipt, string_count: int, modules_per_string: int, strings: tuple[OrderedStringMembership...)`; `assign_modules_to_strings(geometry: TableGeometryReceipt, *, string_count: int, modules_per_string: int)`; `assignment_as_dict(receipt: TableStringAssignmentReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Table String Hashing - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/table_string_hashing.py (Python, 51 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/table_string_hashing.py#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0216.html#f3 - Synopsis: A Python module in the array folder of Solar Electrical Topology Analysis Engine Text Based that calculates assignment hash (`calculate_assignment_hash`), using SHA-256. - What it achieves (comment): It is built from the assignment payload helper (`assignment_payload`). Independent canonical hashing for Build 025B assignment receipts. - What it does: It calculates its inputs. Defines assignment_payload, calculate_assignment_hash. Uses libraries __future__, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Table String Validation (solar-electrical-topology-analysis-engine-text-based); Table String Hashing (solar-electrical-topology-analysis-engine-text-based). - Signatures: `assignment_payload(receipt: TableStringAssignmentReceipt)`; `calculate_assignment_hash(receipt: TableStringAssignmentReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Table String Validation - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/array/table_string_validation.py (Python, 144 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/array/table_string_validation.py#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/0217.html#f1 - Synopsis: A Python module in the array folder of Solar Electrical Topology Analysis Engine Text Based that validates table assignment (`validate_table_string_assignment`). - What it achieves (comment): It is built from the string assignment validation issue class (`StringAssignmentValidationIssue`), the string assignment validation result class (`StringAssignmentValidationResult`) and the add step (`add`). Independent structural validation for Build 025B string membership. - What it does: It calculates its inputs. Defines StringAssignmentValidationIssue, StringAssignmentValidationResult, validate_table_string_assignment, add. Uses libraries __future__, dataclasses. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Array Topology (solar-electrical-topology-analysis-engine-text-based); Table String Validation (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class StringAssignmentValidationIssue`; `class StringAssignmentValidationResult`; `validate_table_string_assignment(geometry: TableGeometryReceipt, assignment: TableStringAssignmentReceipt)`; `add(code: str, message: str)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Calculation Receipts - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/calculation_receipts.py (Python, 179 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/calculation_receipts.py#L1-L179 - Page: https://code.globalgrid2050.com/explore-code/s/0217.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It is built from the segment calculation result class (`SegmentCalculationResult`), the ordered circuit calculation receipt class (`OrderedCircuitCalculationReceipt`) and the resistance registry hash helper (`resistance_registry_hash`). Immutable deterministic calculation receipts for validated V10 circuits. - What it does: It calculates solar. Defines 8 functions or classes, including SegmentCalculationResult, OrderedCircuitCalculationReceipt, resistance_registry_hash, _evidence_payload, _segment_payload. Uses libraries __future__, dataclasses, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 4 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based); Kernel Authority (solar-electrical-topology-analysis-engine-text-based); Uncertainty (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class SegmentCalculationResult`; `class OrderedCircuitCalculationReceipt`; `resistance_registry_hash(self)`; `_evidence_payload(descriptor: EvidenceDescriptor)`; `_segment_payload(result: SegmentCalculationResult)`; `calculation_receipt_payload(receipt: OrderedCircuitCalculationReceipt)`; `calculation_receipt_json(receipt: OrderedCircuitCalculationReceipt)`; `calculation_receipt_hash(receipt: OrderedCircuitCalculationReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (python-relative 3); used by 4; mentioned by 0 ### Cartridges - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/cartridges.py (Python, 643 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/cartridges.py#L1-L643 - Page: https://code.globalgrid2050.com/explore-code/s/0217.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that builds segments (`build_segments`) and fleet segments (`build_fleet_segments`) and validates segment chains (`validate_segment_chains`) (units: Ω), using SHA-256. - What it achieves (comment): It is built from the topology cartridge class (`TopologyCartridge`), the feasibility step (`feasibility`) and the module order helper (`module_order`). Topology cartridges that emit one shared ordered segment schema. - What it does: It calculates its inputs. Defines 28 functions or classes, including TopologyCartridge, feasibility, module_order, build_segments, manifest. Uses libraries __future__, abc, collections, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Circuit Adapters (solar-electrical-topology-analysis-engine-text-based); Fleet Store (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class TopologyCartridge`; `feasibility(self, inputs: TopologyInputs)`; `module_order(self, module_count: int)`; `build_segments(self, inputs: TopologyInputs, definition: StringDefinition)`; `manifest(self, inputs: TopologyInputs, segments: Sequence[SegmentRow], source_commit: str = "unknown")`; `_point_at_module(definition: StringDefinition, inputs: TopologyInputs, module_index: int)`; `_midpoint(first: Point3D, second: Point3D)`; `_near_terminal(definition: StringDefinition)`; `_far_terminal(definition: StringDefinition)`; `_inverter_terminal(definition: StringDefinition)`; `_build_module_chain(*, builder: SegmentBuilder, inputs: TopologyInputs, definition: StringDefinition, order: Sequence[int], first_termina...)`; `_append_positive_home_run(builder: SegmentBuilder, inputs: TopologyInputs, definition: StringDefinition)`; `_append_negative_home_run(builder: SegmentBuilder, inputs: TopologyInputs, definition: StringDefinition, from_node_id: str, start: Point3D)`; `class SequentialCartridge`; `class LeapfrogCartridge`; `build_fleet_segments(inputs: TopologyInputs, cartridges: Iterable[TopologyCartridge] = INITIAL_CARTRIDGES)`; `validate_segment_chains(segments: Iterable[SegmentRow])`; `validate_cross_cartridge_invariants(segments: Iterable[SegmentRow])`; `factory_total(items: Sequence[SegmentRow])`; `ordinary_connectors(items: Sequence[SegmentRow])`; `math_isclose(first: float, second: float, tolerance: float = 1e-12)`; `segments_as_json(segments: Iterable[SegmentRow])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 3; mentioned by 0 ### Circuit - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/circuit.py (Python, 185 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/circuit.py#L1-L185 - Page: https://code.globalgrid2050.com/explore-code/s/0218.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It is built from the object kind class (`ObjectKind`), the terminal polarity class (`TerminalPolarity`) and the connection kind class (`ConnectionKind`). Canonical V10 physical-object, terminal and connection records. - What it does: It calculates solar. Defines 12 functions or classes, including ObjectKind, TerminalPolarity, ConnectionKind, EvidenceClass, Terminal. Uses libraries __future__, dataclasses, enum, json, typing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 12 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Calculation Receipts (solar-electrical-topology-analysis-engine-text-based); Circuit Adapters (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based); and 8 more. - Signatures: `class ObjectKind`; `class TerminalPolarity`; `class ConnectionKind`; `class EvidenceClass`; `class Terminal`; `class PhysicalObject`; `class Connection`; `class CircuitModel`; `_point_payload(point: Point3D | None)`; `_attribute_payload(items: AttributeItems)`; `canonical_circuit_payload(model: CircuitModel)`; `canonical_circuit_json(model: CircuitModel)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 12; mentioned by 0 ### Circuit Adapters - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/circuit_adapters.py (Python, 450 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/circuit_adapters.py#L1-L450 - Page: https://code.globalgrid2050.com/explore-code/s/0219.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It builds sequential circuit (`build_sequential_circuit`) and builds leapfrog circuit (`build_leapfrog_circuit`). - What it achieves (comment): Adapt ordered cartridge segment chains into the canonical V10 circuit model. - What it does: It calculates solar. Defines 19 functions or classes, including _point, _points_match, _evidence_class, _object_kind, _terminal_polarity. Uses libraries __future__, collections, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_point(x: float, y: float, z: float)`; `_points_match(first: Point3D, second: Point3D)`; `_evidence_class(row: SegmentRow)`; `_object_kind(row: SegmentRow)`; `_terminal_polarity(row: SegmentRow)`; `_source_payload(rows: Sequence[SegmentRow])`; `segment_chain_hash(rows: Iterable[SegmentRow])`; `_normalise_segment_chain(rows: Iterable[SegmentRow])`; `_node_coordinates(rows: Sequence[SegmentRow])`; `_node_object_id(string_id: str, node_id: str)`; `_node_terminal_id(string_id: str, node_id: str)`; `_segment_object_id(segment_id: str)`; `_segment_terminal_id(segment_id: str, end: str)`; `_metadata_dict(model: CircuitModel)`; `circuit_boundary_terminal_ids(model: CircuitModel)`; `source_segment_ids(rows: Iterable[SegmentRow])`; `adapt_segment_chain_to_circuit(rows: Iterable[SegmentRow], *, model_id: str | None = None)`; `build_sequential_circuit(inputs: TopologyInputs, definition: StringDefinition)`; `build_leapfrog_circuit(inputs: TopologyInputs, definition: StringDefinition)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (python-relative 3); used by 2; mentioned by 0 ### Circuit Calculations - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/circuit_calculations.py (Python, 430 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/circuit_calculations.py#L1-L430 - Page: https://code.globalgrid2050.com/explore-code/s/0220.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that calculates complete circuit (`calculate_complete_circuit`) (units: Ω), using SHA-256. - What it achieves (comment): Complete-circuit steady-state calculations gated by V10 validation and traversal. - What it does: It calculates its inputs. Defines 7 functions or classes, including _attributes, _required_text, _finite_number, _non_negative_integer, _segment_object_by_id. Uses libraries __future__, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Uncertainty (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_attributes(obj: PhysicalObject)`; `_required_text(attributes: dict[str, object], key: str, segment_id: str)`; `_finite_number(attributes: dict[str, object], key: str, segment_id: str, *, minimum: float | None = None, strictly_positive: bool = ...)`; `_non_negative_integer(attributes: dict[str, object], key: str, segment_id: str)`; `_segment_object_by_id(model: CircuitModel)`; `_receipt_id(circuit_hash: str, current_a: float, current_evidence: EvidenceDescriptor, resistance_evidence_set_hash: str)`; `calculate_complete_circuit(model: CircuitModel, traversal: OrderedCircuitTraversal, *, current_a: float, current_evidence: EvidenceDescriptor, r...)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 7 estate files (python-relative 7); used by 2; mentioned by 0 ### Circuit Traversal - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/circuit_traversal.py (Python, 342 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/circuit_traversal.py#L1-L342 - Page: https://code.globalgrid2050.com/explore-code/s/0221.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. It sorts key (`sort_key`) and verifies ordered circuit (`verify_ordered_circuit`). - What it achieves (comment): Independent ordered-circuit traversal verification for V10. - What it does: It calculates solar. Defines 9 functions or classes, including TraversalIssue, sort_key, OrderedCircuitTraversal, valid, error_codes. Uses libraries __future__, collections, dataclasses. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 5 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based); Diagnostic Bridges (solar-electrical-topology-analysis-engine-text-based); Topology Authority (solar-electrical-topology-analysis-engine-text-based); and 1 more. - Signatures: `class TraversalIssue`; `sort_key(self)`; `class OrderedCircuitTraversal`; `valid(self)`; `error_codes(self)`; `raise_for_errors(self)`; `_other_terminal(connection: Connection, terminal_id: str)`; `_empty_result(start_terminal_id: str, end_terminal_id: str, issues: list[TraversalIssue])`; `verify_ordered_circuit(model: CircuitModel, start_terminal_id: str, end_terminal_id: str, *, expected_segment_ids: tuple[str, ...] | None = ...)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 5; mentioned by 0 ### Circuit Validation - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/circuit_validation.py (Python, 587 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/circuit_validation.py#L1-L587 - Page: https://code.globalgrid2050.com/explore-code/s/0221.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that validates circuit model (`validate_circuit_model`), using SHA-256. - What it achieves (comment): It sorts key (`sort_key`) and is built from the issue severity class (`IssueSeverity`) and the validation issue class (`ValidationIssue`). Independent validation for the canonical V10 circuit model. - What it does: It calculates its inputs. Defines 13 functions or classes, including IssueSeverity, ValidationIssue, sort_key, CircuitValidationResult, valid. Uses libraries __future__, collections, dataclasses, enum, hashlib. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 6 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based); Circuit Traversal (solar-electrical-topology-analysis-engine-text-based); Diagnostic Adapters (solar-electrical-topology-analysis-engine-text-based); and 2 more. - Signatures: `class IssueSeverity`; `class ValidationIssue`; `sort_key(self)`; `class CircuitValidationResult`; `valid(self)`; `error_codes(self)`; `raise_for_errors(self)`; `_has_text(value: object)`; `_valid_scalar(value: object)`; `_check_attribute_items(items: tuple[tuple[str, ScalarValue], ...], *, owner_label: str, issue_factory)`; `_parent_cycle_issues(parent_by_object: dict[str, str | None])`; `validate_circuit_model(model: CircuitModel)`; `validated_circuit_hash(model: CircuitModel)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 6; mentioned by 0 ### Contradictions - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/contradictions.py (Python, 151 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/contradictions.py#L1-L151 - Page: https://code.globalgrid2050.com/explore-code/s/0222.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It builds contradiction register (`build_contradiction_register`) and is built from the contradiction status class (`ContradictionStatus`) and the contradiction severity class (`ContradictionSeverity`). Deterministic contradiction register for evidence-bearing V10 claims. - What it does: It calculates solar. Defines 13 functions or classes, including ContradictionStatus, ContradictionSeverity, Claim, __post_init__, Contradiction. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class ContradictionStatus`; `class ContradictionSeverity`; `class Claim`; `__post_init__(self)`; `class Contradiction`; `class ContradictionRegister`; `build_contradiction_register(contradictions: tuple[Contradiction, ...] | list[Contradiction])`; `contradiction_register_payload(register: ContradictionRegister)`; `claim_payload(claim: Claim)`; `contradiction_register_json(register: ContradictionRegister)`; `contradiction_register_hash(register: ContradictionRegister)`; `unresolved_contradictions(register: ContradictionRegister, *, minimum_severity: ContradictionSeverity | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 1; mentioned by 0 ### Diagnostic Adapters - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/diagnostic_adapters.py (Python, 80 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/diagnostic_adapters.py#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0222.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It is built from the circuit validation diagnostics helper (`circuit_validation_diagnostics`) and the coverage for unperformed studies helper (`coverage_for_unperformed_studies`). Adapters from existing V10 validation results to unified diagnostics. - What it does: It calculates solar. Defines circuit_validation_diagnostics, coverage_for_unperformed_studies. Uses libraries __future__, collections.abc. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `circuit_validation_diagnostics(result: CircuitValidationResult, *, study_id: str = "canonical-circuit-validation", subject_id: str | None = None)`; `coverage_for_unperformed_studies(studies: Iterable[tuple[str, str]], *, subject_id: str | None = None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 1; mentioned by 0 ### Diagnostic Bridges - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/diagnostic_bridges.py (Python, 166 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/diagnostic_bridges.py#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0222.html#f4 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It builds validation diagnostic report (`build_validation_diagnostic_report`) and is built from the diagnostics from circuit validation helper (`diagnostics_from_circuit_validation`) and the diagnostics from traversal helper (`diagnostics_from_traversal`). Adapters from existing V10 validators into the unified diagnostic contract. - What it does: It calculates solar. Defines _severity, diagnostics_from_circuit_validation, diagnostics_from_traversal, guarded_diagnostic_call, build_validation_diagnostic_report. Uses libraries __future__, collections.abc. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_severity(value: IssueSeverity)`; `diagnostics_from_circuit_validation(result: CircuitValidationResult, *, subject_id: str | None = None)`; `diagnostics_from_traversal(traversal: OrderedCircuitTraversal, *, subject_id: str | None = None)`; `guarded_diagnostic_call(function, *args, code: str, category: DiagnosticCategory, subject_id: str | None = None, field: str | None = None, pu...)`; `build_validation_diagnostic_report(*, circuit: CircuitValidationResult | None = None, traversal: OrderedCircuitTraversal | None = None, extra_diagnostic...)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (python-relative 3); used by 1; mentioned by 0 ### Diagnostics - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/diagnostics.py (Python, 270 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/diagnostics.py#L1-L270 - Page: https://code.globalgrid2050.com/explore-code/s/0223.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It builds diagnostic report (`build_diagnostic_report`) and is built from the diagnostic severity class (`DiagnosticSeverity`) and the diagnostic category class (`DiagnosticCategory`). Structured, deterministic diagnostics for V10 engineering studies. - What it does: It calculates solar. Defines 22 functions or classes, including DiagnosticSeverity, DiagnosticCategory, StudyState, Diagnostic, __post_init__. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 6 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Diagnostic Adapters (solar-electrical-topology-analysis-engine-text-based); Diagnostic Bridges (solar-electrical-topology-analysis-engine-text-based); Electrical Studies (solar-electrical-topology-analysis-engine-text-based); and 2 more. - Signatures: `class DiagnosticSeverity`; `class DiagnosticCategory`; `class StudyState`; `class Diagnostic`; `__post_init__(self)`; `blocking(self)`; `class StudyCoverage`; `class DiagnosticReport`; `error_count(self)`; `warning_count(self)`; `_diagnostic_key(item: Diagnostic)`; `_coverage_key(item: StudyCoverage)`; `build_diagnostic_report(diagnostics: Iterable[Diagnostic] = (), coverage: Iterable[StudyCoverage] = (), *, report_id: str | None = None)`; `diagnostic_payload(item: Diagnostic, *, public: bool)`; `coverage_payload(item: StudyCoverage)`; `diagnostic_report_payload(report: DiagnosticReport, *, public: bool = False)`; `diagnostic_report_json(report: DiagnosticReport, *, public: bool = False)`; `diagnostic_report_hash(report: DiagnosticReport)`; `require_non_blocking(report: DiagnosticReport)`; `diagnostic_from_exception(error: Exception, *, code: str, category: DiagnosticCategory, subject_id: str | None = None, field: str | None = None...)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### DuckDB Segments - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/duckdb_segments.py (Python, 125 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/duckdb_segments.py#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0223.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that reads solar, using SHA-256. It creates segment table (`create_segment_table`), writes segment rows (`write_segment_rows`) and reads segment rows (`read_segment_rows`). - What it achieves (comment): Deterministic DuckDB persistence for canonical segment rows. - What it does: It loads solar. Defines 8 functions or classes, including _sql_type, create_segment_table, write_segment_rows, read_segment_rows, segment_rows_payload. Uses libraries __future__, dataclasses, hashlib, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: DuckDB queries. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_sql_type(name: str)`; `create_segment_table(connection: duckdb.DuckDBPyConnection)`; `write_segment_rows(connection: duckdb.DuckDBPyConnection, rows: Iterable[SegmentRow])`; `read_segment_rows(connection: duckdb.DuckDBPyConnection)`; `segment_rows_payload(rows: Iterable[SegmentRow])`; `segment_rows_hash(rows: Iterable[SegmentRow])`; `export_segment_parquet(connection: duckdb.DuckDBPyConnection, destination: str | Path)`; `read_segment_parquet(path: str | Path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [DuckDB queries]; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 1; mentioned by 0 ### Electrical Studies - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/electrical_studies.py (Python, 244 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/electrical_studies.py#L1-L244 - Page: https://code.globalgrid2050.com/explore-code/s/0223.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It calculates cold voc study (`calculate_cold_voc_study`) and is built from the electrical study receipt class (`ElectricalStudyReceipt`) and the evaluate numeric study helper (`evaluate_numeric_study`). Evidence-controlled electrical study receipts for V10. - What it does: It calculates solar. Defines 8 functions or classes, including ElectricalStudyReceipt, __post_init__, _criterion_diagnostics, calculate_cold_voc_study, evaluate_numeric_study. Uses libraries __future__, dataclasses, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Signatures: `class ElectricalStudyReceipt`; `__post_init__(self)`; `_criterion_diagnostics(*, study_id: str, subject_id: str, value: float, unit: str, criterion: AcceptanceCriterion | None)`; `calculate_cold_voc_study(*, subject_id: str, module_voc_v: float, modules_per_string: int, beta_voc_percent_per_k: float, cold_cell_temperatur...)`; `evaluate_numeric_study(*, study_id: str, study_kind: StudyKind, subject_id: str, value: float, unit: str, input_values: tuple[tuple[str, flo...)`; `electrical_study_payload(receipt: ElectricalStudyReceipt)`; `electrical_study_json(receipt: ElectricalStudyReceipt)`; `electrical_study_hash(receipt: ElectricalStudyReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (python-relative 3); used by 0; mentioned by 0 ### Equipment Profiles - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/equipment_profiles.py (Python, 648 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/equipment_profiles.py#L1-L648 - Page: https://code.globalgrid2050.com/explore-code/s/0224.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It builds generic reference equipment contract (`build_generic_reference_equipment_contract`) and validates reference equipment contract (`validate_reference_equipment_contract`). - What it achieves (comment): Generic, evidence-qualified equipment profiles for the reference inverter block. - What it does: It calculates solar. Defines 31 functions or classes, including ModuleTechnology, InternalDcTopology, ReverseCurrentBlockingState, ConnectorCompatibilityState, QualifiedValue. Uses libraries __future__, dataclasses, decimal, enum, hashlib. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Inverter Block (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class ModuleTechnology`; `class InternalDcTopology`; `class ReverseCurrentBlockingState`; `class ConnectorCompatibilityState`; `class QualifiedValue`; `resolved(self)`; `verified(self)`; `validate(self)`; `class ModuleEquipmentProfile`; `class DcInputProfile`; `class InverterEquipmentProfile`; `class ConnectorEquipmentProfile`; `class FactoryLeadSetProfile`; `class FieldConductorProfile`; `class ReferenceEquipmentContract`; `module_count(self)`; `string_rated_power_kwp(self)`; `dc_nameplate_power_kwp(self)`; `dc_ac_nameplate_ratio(self)`; `_known(value: ScalarValue, unit: str | None)`; `_unknown(unit: str | None, note: str)`; `_unknown_enum(enum_value: StrEnum, note: str)`; `_dc_inputs(count: int)`; `build_generic_reference_equipment_contract()`; `_qualified_value_payload(item: QualifiedValue)` (and 6 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (python-relative 4); used by 2; mentioned by 0 ### Evidence - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/evidence.py (Python, 181 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/evidence.py#L1-L181 - Page: https://code.globalgrid2050.com/explore-code/s/0225.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It is built from the verification state class (`VerificationState`), the evidence descriptor class (`EvidenceDescriptor`) and the segment provenance descriptor helper (`segment_provenance_descriptor`). Canonical evidence vocabulary and source-vocabulary reconciliation for V10. - What it does: It calculates solar. Defines 7 functions or classes, including VerificationState, EvidenceDescriptor, _descriptor, segment_provenance_descriptor, javascript_provenance_descriptor. Uses libraries __future__, dataclasses, enum. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 6 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Calculation Receipts (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based); Equipment Profiles (solar-electrical-topology-analysis-engine-text-based); and 2 more. - Signatures: `class VerificationState`; `class EvidenceDescriptor`; `_descriptor(mapping: dict[str, tuple[EvidenceClass, VerificationState]], value: str, *, source_reference: str | None, source_voca...)`; `segment_provenance_descriptor(value: str, *, source_reference: str | None = None)`; `javascript_provenance_descriptor(value: str, *, source_reference: str | None = None)`; `canonical_evidence_descriptor(evidence_class: EvidenceClass, *, verification_state: VerificationState = VerificationState.UNVERIFIED, source_refere...)`; `weakest_evidence_class(evidence_classes: tuple[EvidenceClass, ...] | list[EvidenceClass])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 6; mentioned by 0 ### Evidence Boundary - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/evidence_boundary.py (Python, 145 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/evidence_boundary.py#L1-L145 - Page: https://code.globalgrid2050.com/explore-code/s/0225.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It is built from the rights status class (`RightsStatus`), the publication permission class (`PublicationPermission`) and the evidence source class (`EvidenceSource`). Publication-boundary controls for V10 engineering evidence. - What it does: It calculates solar. Defines 7 functions or classes, including RightsStatus, PublicationPermission, EvidenceSource, __post_init__, PublicationDecision. Uses libraries __future__, dataclasses, enum. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 3 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Evidence Register (solar-electrical-topology-analysis-engine-text-based); Public Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class RightsStatus`; `class PublicationPermission`; `class EvidenceSource`; `__post_init__(self)`; `class PublicationDecision`; `assess_publication_boundary(sources: tuple[EvidenceSource, ...] | list[EvidenceSource])`; `require_publication_boundary(sources: tuple[EvidenceSource, ...] | list[EvidenceSource])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 3; mentioned by 0 ### Evidence Register - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/evidence_register.py (Python, 144 lines) · role energy-data · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/evidence_register.py#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/0225.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It is built from the evidence maturity class (`EvidenceMaturity`), the requirement status class (`RequirementStatus`) and the evidence register entry class (`EvidenceRegisterEntry`). Engineering requirement-to-evidence register for V10 assurance outputs. - What it does: It calculates solar. Defines 9 functions or classes, including EvidenceMaturity, RequirementStatus, EvidenceRegisterEntry, __post_init__, EngineeringEvidenceRegister. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class EvidenceMaturity`; `class RequirementStatus`; `class EvidenceRegisterEntry`; `__post_init__(self)`; `class EngineeringEvidenceRegister`; `build_evidence_register(register_id: str, entries: tuple[EvidenceRegisterEntry, ...] | list[EvidenceRegisterEntry], sources: Mapping[str, Evi...)`; `evidence_register_payload(register: EngineeringEvidenceRegister)`; `evidence_register_json(register: EngineeringEvidenceRegister)`; `evidence_register_hash(register: EngineeringEvidenceRegister)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 1; mentioned by 0 ### Fleet Store - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/fleet_store.py (Python, 876 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/fleet_store.py#L1-L876 - Page: https://code.globalgrid2050.com/explore-code/s/0226.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that reads strings, mppts, inverters and site summary, using SHA-256. It builds store (`build_store`) and builds deterministic store (`build_deterministic_store`). - What it achieves (comment): Authoritative deterministic DuckDB and Parquet topology fleet store. - What it does: It loads strings, mppts, inverters and site summary. Defines 19 functions or classes, including _duckdb_module, _sql_path, _csv_record, _write_segment_csv, _scalar. Uses libraries __future__, csv, dataclasses, hashlib, json. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: Parquet file strings.parquet; Parquet file mppts.parquet; Parquet file inverters.parquet; Parquet file site.parquet; Parquet file comparison.parquet; CSV file segments.csv; DuckDB queries. Out: JSON file site-summary.json; JSON file selected-string.json; JSON file build-summary.json. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_duckdb_module()`; `_sql_path(path: Path)`; `_csv_record(segment: SegmentRow)`; `_write_segment_csv(inputs: TopologyInputs, path: Path)`; `_scalar(connection, query: str, parameters=None)`; `_records(connection, query: str, parameters=None)`; `_run_data_law(connection)`; `_create_segment_results(connection)`; `_copy_query(connection, query: str, target: Path, *, partitioned: bool = False)`; `_write_aggregates(connection, root: Path)`; `_write_browser_slices(connection, root: Path)`; `_sha256(path: Path)`; `_file_hashes(root: Path)`; `_topology_file_hashes(root: Path, topology: str)`; `_write_manifests(connection, root: Path, inputs: TopologyInputs, source_commit: str, data_law: dict[str, int])`; `_load_segments(connection, csv_path: Path)`; `build_store(inputs: TopologyInputs, output_root: Path, source_commit: str = "unknown")`; `_determinism_error(first_hashes: dict[str, str], second_hashes: dict[str, str])`; `build_deterministic_store(inputs: TopologyInputs, output_root: Path, source_commit: str = "unknown")` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [Parquet file strings.parquet; Parquet file mppts.parquet; Parquet file inverters.parquet; Parquet file site.parquet; Parquet file comparison.parquet; CSV file segments.csv; DuckDB queries]; out [JSON file site-summary.json; JSON file selected-string.json; JSON file build-summary.json]; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 1; mentioned by 0 ### Formulas - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/formulas.py (Python, 175 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/formulas.py#L1-L175 - Page: https://code.globalgrid2050.com/explore-code/s/0227.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with cables. - What it achieves (comment): It is built from the two wire parameters class (`TwoWireParameters`), the dc resistance helper (`dc_resistance`) and the two wire parameters helper (`two_wire_parameters`). Authoritative closed-form Tier 1 formulae with explicit units and guards. - What it does: It calculates cables. Defines 8 functions or classes, including TwoWireParameters, dc_resistance, two_wire_parameters, module_frame_capacitance, cold_string_voc. Uses libraries __future__, dataclasses, math, pint. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 3 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Electrical Studies (solar-electrical-topology-analysis-engine-text-based); Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class TwoWireParameters`; `dc_resistance(length, r20_per_length, temperature=Q_(20, ureg.degC))`; `two_wire_parameters(centre_spacing, conductor_diameter, epsilon_r: float = 1.0)`; `module_frame_capacitance(effective_area, dielectric_thickness, epsilon_r: float)`; `cold_string_voc(module_voc, module_count: int, beta_voc_percent_per_c: float, cell_temperature)`; `derived_route_length(near_end_distance, rank_index: int, rank_pitch, inverter_drop)`; `stored_magnetic_energy(inductance, current)`; `stored_electric_energy(capacitance, voltage)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Geometry Receipts - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/geometry_receipts.py (Python, 163 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/geometry_receipts.py#L1-L163 - Page: https://code.globalgrid2050.com/explore-code/s/0227.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It calculates geometry receipt (`calculate_geometry_receipt`) and is built from the segment geometry result class (`SegmentGeometryResult`) and the geometry receipt class (`GeometryReceipt`). Deterministic geometry screening receipts from ordered segment rows. - What it does: It calculates solar. Defines 6 functions or classes, including SegmentGeometryResult, GeometryReceipt, calculate_geometry_receipt, geometry_receipt_payload, geometry_receipt_json. Uses libraries __future__, dataclasses, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class SegmentGeometryResult`; `class GeometryReceipt`; `calculate_geometry_receipt(rows: Iterable[SegmentRow])`; `geometry_receipt_payload(receipt: GeometryReceipt)`; `geometry_receipt_json(receipt: GeometryReceipt)`; `geometry_receipt_hash(receipt: GeometryReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 1; mentioned by 0 ### Identifiers - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/identifiers.py (Python, 105 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/identifiers.py#L1-L105 - Page: https://code.globalgrid2050.com/explore-code/s/0227.html#f4 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with entity level (`EntityLevel`) and canonical identifier (`CanonicalIdentifier`), covering solar. - What it achieves (comment): It parses identifier (`parse_identifier`) and is built from the entity level class (`EntityLevel`) and the canonical identifier class (`CanonicalIdentifier`). Canonical hierarchical identifiers for V10 engineering records. - What it does: Defines 8 functions or classes, including EntityLevel, CanonicalIdentifier, __post_init__, value, child. Uses libraries __future__, dataclasses, enum, re. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 4 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Contradictions (solar-electrical-topology-analysis-engine-text-based); Evidence Register (solar-electrical-topology-analysis-engine-text-based); Public Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class EntityLevel`; `class CanonicalIdentifier`; `__post_init__(self)`; `value(self)`; `child(self, level: EntityLevel, local_id: str)`; `project_id(local_id: str)`; `parse_identifier(value: str)`; `require_unique_identifiers(identifiers: tuple[CanonicalIdentifier, ...] | list[CanonicalIdentifier])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Inverter Block - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/inverter_block.py (Python, 321 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/inverter_block.py#L1-L321 - Page: https://code.globalgrid2050.com/explore-code/s/0228.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It validates inverter block receipt (`validate_inverter_block_receipt`) and builds reference inverter block (`build_reference_inverter_block`). - What it achieves (comment): Deterministic inverter-block aggregate over existing engineering receipts. Its code works with 352 kVA. - What it does: It calculates solar. Defines 13 functions or classes, including InverterBlockEvidenceState, InverterBlockReceipt, _canonical_json, _hash_payload, _qualified_state. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class InverterBlockEvidenceState`; `class InverterBlockReceipt`; `_canonical_json(payload: object)`; `_hash_payload(payload: object)`; `_qualified_state(value: object)`; `_table_binding(receipt: Build025Receipt)`; `inverter_block_payload(receipt: InverterBlockReceipt)`; `inverter_block_json(receipt: InverterBlockReceipt)`; `inverter_block_hash(receipt: InverterBlockReceipt)`; `_normalise_receipts(table_receipts: Iterable[Build025Receipt])`; `build_inverter_block(*, block_id: str, equipment_contract: ReferenceEquipmentContract, table_receipts: Iterable[Build025Receipt])`; `validate_inverter_block_receipt(receipt: InverterBlockReceipt)`; `build_reference_inverter_block(*, strategy: WiringStrategy | str = WiringStrategy.LEAPFROG)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 1; mentioned by 0 ### Kernel Authority - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/kernel_authority.py (Python, 134 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/kernel_authority.py#L1-L134 - Page: https://code.globalgrid2050.com/explore-code/s/0228.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It is built from the kernel authority status class (`KernelAuthorityStatus`), the kernel authority assessment class (`KernelAuthorityAssessment`) and the authoritative step (`authoritative`). Authority assessment for deterministic steady-state calculation receipts. - What it does: It calculates solar. Defines 6 functions or classes, including KernelAuthorityStatus, KernelAuthorityAssessment, authoritative, require_authoritative, _close. Uses libraries __future__, dataclasses, enum, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Signatures: `class KernelAuthorityStatus`; `class KernelAuthorityAssessment`; `authoritative(self)`; `require_authoritative(self)`; `_close(first: float, second: float)`; `assess_steady_state_receipt(receipt: OrderedCircuitCalculationReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 0; mentioned by 0 ### Persistence - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/persistence.py (Python, 136 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/persistence.py#L1-L136 - Page: https://code.globalgrid2050.com/explore-code/s/0228.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that builds deterministic record store (`build_deterministic_record_store`) and reads back store (`read_back_store`), covering solar, using SHA-256. - What it achieves (comment): It is built from the persisted record class (`PersistedRecord`), the deterministic store class (`DeterministicStore`) and the canonical payload JSON helper (`canonical_payload_json`). Deterministic persistence envelopes and independent read-back verification. - What it does: Defines 10 functions or classes, including PersistedRecord, __post_init__, DeterministicStore, canonical_payload_json, persist_record. Uses libraries __future__, dataclasses, hashlib, json, typing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class PersistedRecord`; `__post_init__(self)`; `class DeterministicStore`; `canonical_payload_json(payload: Mapping[str, object])`; `persist_record(record_id: str, record_type: str, source_schema_version: str, payload: Mapping[str, object])`; `build_deterministic_record_store(records: tuple[PersistedRecord, ...] | list[PersistedRecord])`; `deterministic_store_payload(store: DeterministicStore)`; `deterministic_store_json(store: DeterministicStore)`; `deterministic_store_hash(store: DeterministicStore)`; `read_back_store(serialised: str)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Products - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/products.py (Python, 158 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/products.py#L1-L158 - Page: https://code.globalgrid2050.com/explore-code/s/0229.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with conductor spec (`ConductorSpec`) and envelope fill factor (`envelope_fill_factor`) (units: mm², Ω), using IEC 60228. - What it achieves (comment): It is built from the conductor spec class (`ConductorSpec`), the resolved resistance helper (`resolved_resistance`) and the validate step (`validate`). Generic conductor products with independently resolved resistance evidence. - What it does: It calculates its inputs. Defines ConductorSpec, envelope_fill_factor, resolved_resistance, validate, as_dict. Uses libraries __future__, dataclasses, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Equipment Profiles (solar-electrical-topology-analysis-engine-text-based); Segments (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class ConductorSpec`; `envelope_fill_factor(self)`; `resolved_resistance(self)`; `validate(self)`; `as_dict(self)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 3; mentioned by 0 ### Public API - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/public_api.py (Python, 176 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/public_api.py#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0229.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It builds public API inventory (`build_public_api_inventory`) and is built from the API status class (`ApiStatus`) and the explicitly classified public names helper (`explicitly_classified_public_names`). Canonical classification manifest for the package-level public API. - What it does: It calculates solar. Defines ApiStatus, explicitly_classified_public_names, public_api_status, build_public_api_inventory. Uses libraries __future__, enum. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class ApiStatus`; `explicitly_classified_public_names()`; `public_api_status(name: str)`; `build_public_api_inventory(exported_names: tuple[str, ...] | list[str])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Public Topology - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/public_topology.py (Python, 110 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/public_topology.py#L1-L110 - Page: https://code.globalgrid2050.com/explore-code/s/0229.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It builds public topology manifest (`build_public_topology_manifest`) and is built from the public topology record class (`PublicTopologyRecord`) and the public topology manifest class (`PublicTopologyManifest`). Evidence-bearing public topology manifests for V10. - What it does: It calculates solar. Defines 7 functions or classes, including PublicTopologyRecord, __post_init__, PublicTopologyManifest, build_public_topology_manifest, public_topology_payload. Uses libraries __future__, dataclasses, hashlib, json, typing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class PublicTopologyRecord`; `__post_init__(self)`; `class PublicTopologyManifest`; `build_public_topology_manifest(project_identifier: CanonicalIdentifier, records: tuple[PublicTopologyRecord, ...] | list[PublicTopologyRecord], sour...)`; `public_topology_payload(manifest: PublicTopologyManifest)`; `public_topology_json(manifest: PublicTopologyManifest)`; `public_topology_hash(manifest: PublicTopologyManifest)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (python-relative 2); used by 1; mentioned by 0 ### Resistance Evidence - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/resistance_evidence.py (Python, 368 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/resistance_evidence.py#L1-L368 - Page: https://code.globalgrid2050.com/explore-code/s/0230.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. It registers conductor resistance (`register_conductor_resistance`) and resolves conductor resistance (`resolve_conductor_resistance`). - What it achieves (comment): Evidence-bound finished-conductor resistance records for V10 calculations. - What it does: It calculates solar. Defines 19 functions or classes, including ResistanceBasis, ResistanceValueKind, ResolvedConductorResistance, __post_init__, evidence_class. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 4 files: Calculation Receipts (solar-electrical-topology-analysis-engine-text-based); Circuit Calculations (solar-electrical-topology-analysis-engine-text-based); Products (solar-electrical-topology-analysis-engine-text-based); Resistance Qualification (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class ResistanceBasis`; `class ResistanceValueKind`; `class ResolvedConductorResistance`; `__post_init__(self)`; `evidence_class(self)`; `legacy_provenance(self)`; `resistance_evidence_payload(record: ResolvedConductorResistance)`; `resistance_evidence_json(record: ResolvedConductorResistance)`; `resistance_evidence_hash(record: ResolvedConductorResistance)`; `resistance_records_payload(records: Iterable[ResolvedConductorResistance])`; `resistance_records_hash(records: Iterable[ResolvedConductorResistance])`; `register_conductor_resistance(record: ResolvedConductorResistance)`; `registered_conductor_resistance(product_id: str)`; `resistance_registry_payload()`; `resistance_registry_hash()`; `_fallback_basis(provenance: str)`; `resolve_conductor_resistance(*, product_id: str, r20_ohm_per_m: float, legacy_provenance: str, legacy_source_reference: str)`; `strongest_resistance_record(records: Iterable[ResolvedConductorResistance])`; `with_resistance_warning(record: ResolvedConductorResistance, warning: str)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 4; mentioned by 0 ### Resistance Qualification - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/resistance_qualification.py (Python, 162 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/resistance_qualification.py#L1-L162 - Page: https://code.globalgrid2050.com/explore-code/s/0230.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It is built from the resistance source status class (`ResistanceSourceStatus`), the resistance source assessment class (`ResistanceSourceAssessment`) and the promotable step (`promotable`). Deterministic promotion gate for conductor-resistance evidence sources. - What it does: It calculates solar. Defines 8 functions or classes, including ResistanceSourceStatus, ResistanceSourceAssessment, promotable, require_verified, resistance_source_assessment_payload. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Equipment Profiles (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class ResistanceSourceStatus`; `class ResistanceSourceAssessment`; `promotable(self)`; `require_verified(self)`; `resistance_source_assessment_payload(assessment: ResistanceSourceAssessment)`; `resistance_source_assessment_json(assessment: ResistanceSourceAssessment)`; `resistance_source_assessment_hash(assessment: ResistanceSourceAssessment)`; `assess_resistance_source(record: ResolvedConductorResistance)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 2; mentioned by 0 ### Segments - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/segments.py (Python, 448 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/segments.py#L1-L448 - Page: https://code.globalgrid2050.com/explore-code/s/0231.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that ranks plan pitch (`rank_plan_pitch_m`) (units: Ω, mm²), using SHA-256. - What it achieves (comment): It is built from the point3 d class (`Point3D`), the feasibility result class (`FeasibilityResult`) and the topology inputs class (`TopologyInputs`). Shared segment rows and deterministic fleet geometry definitions. - What it does: It calculates its inputs. Defines 19 functions or classes, including Point3D, FeasibilityResult, TopologyInputs, module_pitch_m, row_span_m. Uses libraries __future__, dataclasses, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Cartridges (solar-electrical-topology-analysis-engine-text-based); Circuit (solar-electrical-topology-analysis-engine-text-based); Circuit Adapters (solar-electrical-topology-analysis-engine-text-based); and 3 more. - Signatures: `class Point3D`; `class FeasibilityResult`; `class TopologyInputs`; `module_pitch_m(self)`; `row_span_m(self)`; `rank_plan_pitch_m(self)`; `archetype_string_count(self)`; `validate(self)`; `class StringDefinition`; `near_route_m(self)`; `class SegmentRow`; `as_dict(self)`; `class SegmentBuilder`; `canonical_input_hash(inputs: TopologyInputs)`; `archetype_strings(inputs: TopologyInputs)`; `string_counts_per_inverter(total_string_count: int, inverter_count: int, maximum_strings: int)`; `fleet_string_definitions(inputs: TopologyInputs)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 7; mentioned by 0 ### Study Applicability - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/study_applicability.py (Python, 166 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/study_applicability.py#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0231.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It is built from the study kind class (`StudyKind`), the criterion operator class (`CriterionOperator`) and the acceptance criterion class (`AcceptanceCriterion`). Applicability and acceptance-criterion controls for engineering studies. - What it does: It calculates solar. Defines 11 functions or classes, including StudyKind, CriterionOperator, AcceptanceCriterion, __post_init__, StudyApplicability. Uses libraries __future__, dataclasses, enum, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based); Electrical Studies (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class StudyKind`; `class CriterionOperator`; `class AcceptanceCriterion`; `__post_init__(self)`; `class StudyApplicability`; `executable(self)`; `verdict_capable(self)`; `build_study_applicability(study_kind: StudyKind, *, subject_id: str | None = None, required_input_ids: tuple[str, ...] = (), available_input_id...)`; `applicability_coverage(item: StudyApplicability)`; `evaluate_criterion(value: float, unit: str, criterion: AcceptanceCriterion)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 2; mentioned by 0 ### Study Registry - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/study_registry.py (Python, 253 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/study_registry.py#L1-L253 - Page: https://code.globalgrid2050.com/explore-code/s/0232.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It is built from the study category class (`StudyCategory`), the study definition class (`StudyDefinition`) and the study assessment class (`StudyAssessment`). Applicability and coverage registry for V10 engineering studies. - What it does: It calculates solar. Defines 11 functions or classes, including StudyCategory, _validate_sorted_unique, StudyDefinition, __post_init__, StudyAssessment. Uses libraries __future__, dataclasses, enum, hashlib, json. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class StudyCategory`; `_validate_sorted_unique(values: tuple[str, ...], *, study_id: str, field_name: str)`; `class StudyDefinition`; `__post_init__(self)`; `class StudyAssessment`; `class StudyRegistry`; `build_study_registry(assessments: Iterable[StudyAssessment])`; `study_registry_payload(registry: StudyRegistry)`; `study_registry_json(registry: StudyRegistry)`; `study_registry_hash(registry: StudyRegistry)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 1; mentioned by 0 ### Topology - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/topology.py (Python, 295 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/topology.py#L1-L295 - Page: https://code.globalgrid2050.com/explore-code/s/0232.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that builds segments (`build_string_segments`) and site model (`build_site_model`) and builds export (`build_export`). - What it achieves (comment): It is built from the point3 d class (`Point3D`), the segment class (`Segment`) and the string topology class (`StringTopology`). Headless geometry-to-segment topology generation. - What it does: It calculates its inputs. Defines 12 functions or classes, including Point3D, Segment, StringTopology, installed_conductor_length_m, GeometryConfig. Uses libraries __future__, dataclasses, math, typing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class Point3D`; `class Segment`; `class StringTopology`; `installed_conductor_length_m(self)`; `class GeometryConfig`; `class FormationConfig`; `_polyline_length(points: Sequence[Point3D])`; `_segment(*, string_id: str, sequence_index: int, segment_type: str, points: Sequence[Point3D], installed_length_m: float | Non...)`; `build_string_segments(string_id: str, face: str, band_index: int, rank_index: int, band_x0_m: float, geometry: GeometryConfig, formations: ...)`; `build_site_model(geometry: GeometryConfig = GeometryConfig(), formations: FormationConfig = FormationConfig())`; `build_export(strings: Sequence[StringTopology], geometry: GeometryConfig, formations: FormationConfig)`; `validate_no_user_route_lengths(export: dict)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (python-relative 1); used by 1; mentioned by 0 ### Topology Authority - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/topology_authority.py (Python, 88 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/topology_authority.py#L1-L88 - Page: https://code.globalgrid2050.com/explore-code/s/0232.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar. - What it achieves (comment): It is built from the authoritative topology receipt class (`AuthoritativeTopologyReceipt`), the issue topology receipt helper (`issue_topology_receipt`) and the require topology receipt helper (`require_topology_receipt`). Authoritative topology receipts for calculation entry-point gating. - What it does: It calculates solar. Defines AuthoritativeTopologyReceipt, issue_topology_receipt, require_topology_receipt. Uses libraries __future__, dataclasses. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Signatures: `class AuthoritativeTopologyReceipt`; `issue_topology_receipt(model: CircuitModel, start_terminal_id: str, end_terminal_id: str, *, expected_segment_ids: tuple[str, ...] | None = ...)`; `require_topology_receipt(model: CircuitModel, receipt: AuthoritativeTopologyReceipt)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (python-relative 3); used by 0; mentioned by 0 ### Uncertainty - File: solar-electrical-topology-analysis-engine-text-based/src/solar_topology/uncertainty.py (Python, 440 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/solar_topology/uncertainty.py#L1-L440 - Page: https://code.globalgrid2050.com/explore-code/s/0233.html#f1 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based that works with solar, using SHA-256. - What it achieves (comment): It calculates complete circuit uncertainty (`calculate_complete_circuit_with_uncertainty`) and is built from the interval class (`Interval`) and the exact step (`exact`). Conservative interval propagation for validated V10 steady-state circuits. - What it does: It calculates solar. Defines 18 functions or classes, including Interval, __post_init__, exact, OperatingState, __post_init__. Uses libraries __future__, dataclasses, hashlib, json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Solar Topology (solar-electrical-topology-analysis-engine-text-based). - Signatures: `class Interval`; `__post_init__(self)`; `exact(cls, value: float, unit: str)`; `class OperatingState`; `class SegmentInputIntervals`; `class SegmentUncertaintyResult`; `class UncertainCircuitCalculationReceipt`; `_attributes(obj: PhysicalObject)`; `_segment_objects(model: CircuitModel)`; `_number(attributes: dict[str, object], key: str, segment_id: str)`; `_declared_or_exact(declared: Interval | None, nominal: float, unit: str, *, non_negative: bool = False, strictly_positive: bool = False)`; `_resistance_bounds(length: Interval, r20: Interval, temperature: Interval, *, temperature_coefficient_per_c: float)`; `_interval_payload(interval: Interval)`; `uncertainty_receipt_payload(receipt: UncertainCircuitCalculationReceipt)`; `uncertainty_receipt_json(receipt: UncertainCircuitCalculationReceipt)`; `uncertainty_receipt_hash(receipt: UncertainCircuitCalculationReceipt)`; `calculate_complete_circuit_with_uncertainty(model: CircuitModel, traversal: OrderedCircuitTraversal, *, operating_state: OperatingState, segment_intervals: Mappi...)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 5 estate files (python-relative 5); used by 1; mentioned by 0 ### Table String Assignment - File: solar-electrical-topology-analysis-engine-text-based/src/table_string_assignment.py (Python, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/table_string_assignment.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0233.html#f2 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for packaged Build 025 string assignment. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Table String Hashing - File: solar-electrical-topology-analysis-engine-text-based/src/table_string_hashing.py (Python, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/table_string_hashing.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0233.html#f3 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for packaged Build 025 assignment hashing. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Table String Validation - File: solar-electrical-topology-analysis-engine-text-based/src/table_string_validation.py (Python, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/src/table_string_validation.py#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0233.html#f4 - Synopsis: A Python module in Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Compatibility import for packaged Build 025 assignment validation. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Check V8 Source Width - File: solar-electrical-topology-analysis-engine-text-based/tests/check_v8_source_width.py (Python, 55 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/check_v8_source_width.py#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0233.html#f5 - Synopsis: A Python command-line tool in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (comment): Fail CI when editable V8 source returns to mega-line formatting. - What it does: It tests its inputs. Defines main. Uses libraries __future__, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: V8 Tests Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Array Authority Receipts - File: solar-electrical-topology-analysis-engine-text-based/tests/test_array_authority_receipts.py (Python, 33 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_array_authority_receipts.py#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0233.html#f6 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Array Engine and Array Routing. - What it achieves (name): Defines `test_topology_payload_contains_the_equipment_graph` and `test_routing_payload_contains_terminal_evidence_metadata`. - What it does: It tests its inputs. Defines test_topology_payload_contains_the_equipment_graph, test_routing_payload_contains_terminal_evidence_metadata. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_topology_payload_contains_the_equipment_graph()`; `test_routing_payload_contains_terminal_evidence_metadata()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Test Array Engine - File: solar-electrical-topology-analysis-engine-text-based/tests/test_array_engine.py (Python, 381 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_array_engine.py#L1-L381 - Page: https://code.globalgrid2050.com/explore-code/s/0234.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Geometry Authority and Array Engine. - What it achieves (name): Defines `comparison`, `test_reference_build_is_deterministic`, `test_every_reported_route_length_is_the_sum_of_stored_segments` and 11 more. - What it does: It tests its inputs. Defines 14 functions or classes, including comparison, test_reference_build_is_deterministic, test_every_reported_route_length_is_the_sum_of_stored_segments, test_strategy_comparison_preserves_common_authority_inputs, test_comparison_reports_length_and_loop_geometry_independently. Uses libraries math, pytest. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `comparison()`; `test_reference_build_is_deterministic()`; `test_every_reported_route_length_is_the_sum_of_stored_segments(comparison)`; `test_strategy_comparison_preserves_common_authority_inputs(comparison)`; `test_comparison_reports_length_and_loop_geometry_independently(comparison)`; `test_moving_inverter_changes_only_dependent_home_geometry()`; `test_home_run_segments_preserve_same_string_pole_identity(comparison)`; `test_every_route_endpoint_is_an_authoritative_topology_node()`; `test_reference_topology_contains_input_mppt_and_bus_terminals()`; `test_installed_and_procurement_length_layers_are_receipted()`; `test_installation_classification_is_carried_by_each_segment()`; `test_parametric_small_rotated_table_uses_same_engine()`; `test_terminal_geometry_outside_module_envelope_is_rejected()`; `test_terminal_geometry_provenance_is_part_of_routing_receipt()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 4 estate files (import 4); used by 1; mentioned by 0 ### Test Array Topology - File: solar-electrical-topology-analysis-engine-text-based/tests/test_array_topology.py (Python, 265 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_array_topology.py#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0234.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Geometry Authority and Array Topology. - What it achieves (name): Defines `test_reference_allocation_is_a_complete_720_module_partition`, `test_allocation_hash_is_membership_deterministic`, `test_explicit_groups_must_be_complete_and_unique` and 5 more. - What it does: It tests its inputs. Defines 8 functions or classes, including test_reference_allocation_is_a_complete_720_module_partition, test_allocation_hash_is_membership_deterministic, test_explicit_groups_must_be_complete_and_unique, test_leapfrog_order_is_one_complete_permutation, test_each_string_has_terminals_connectors_and_free_ends. Uses libraries pytest. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_reference_allocation_is_a_complete_720_module_partition()`; `test_allocation_hash_is_membership_deterministic()`; `test_explicit_groups_must_be_complete_and_unique()`; `test_leapfrog_order_is_one_complete_permutation()`; `test_each_string_has_terminals_connectors_and_free_ends()`; `test_strategy_changes_topology_not_physical_membership()`; `test_physical_inputs_are_distinct_from_mppt_labels()`; `test_duplicate_physical_input_assignment_fails_before_routing()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Test Authority Bundle - File: solar-electrical-topology-analysis-engine-text-based/tests/test_authority_bundle.py (Python, 168 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_authority_bundle.py#L1-L168 - Page: https://code.globalgrid2050.com/explore-code/s/0235.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Build Authority Bundle and Validate Authority Bundle, using SHA-256. - What it achieves (name): Defines `test_authority_bundle_regeneration_matches_committed_file_exactly`, `test_authority_bundle_regeneration_candidate_matches_generator`, `test_authority_bundle_regeneration_binds_receipts_and_hash` and 6 more. - What it does: It tests its inputs. Defines 9 functions or classes, including test_authority_bundle_regeneration_matches_committed_file_exactly, test_authority_bundle_regeneration_candidate_matches_generator, test_authority_bundle_regeneration_binds_receipts_and_hash, test_bundle_schema_accepts_canonical_reference_authority, test_bundle_schema_rejects_missing_authority_hashes. Uses libraries __future__, copy, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file reference-inverter-block.json. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_authority_bundle_regeneration_matches_committed_file_exactly()`; `test_authority_bundle_regeneration_candidate_matches_generator()`; `test_authority_bundle_regeneration_binds_receipts_and_hash()`; `test_bundle_schema_accepts_canonical_reference_authority()`; `test_bundle_schema_rejects_missing_authority_hashes(path: tuple[str | int, ...])`; `test_bundle_schema_rejects_invented_input_evidence(field: str, invented: object)`; `test_bundle_schema_rejects_changed_product_boundary_arithmetic()`; `test_bundle_schema_rejects_tampered_response_hash()`; `test_bundle_schema_rejects_broken_child_hash_binding()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Test Batch 011 013 - File: solar-electrical-topology-analysis-engine-text-based/tests/test_batch_011_013.py (Python, 150 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_batch_011_013.py#L1-L150 - Page: https://code.globalgrid2050.com/explore-code/s/0235.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_duckdb_round_trip_and_parquet_are_deterministic`, `test_duckdb_primary_key_rejects_duplicate_rows`, `test_evidence_register_requires_strong_evidence_for_satisfied_status` and 3 more. - What it does: It tests its inputs. Defines 8 functions or classes, including _rows, _public_source, test_duckdb_round_trip_and_parquet_are_deterministic, test_duckdb_primary_key_rejects_duplicate_rows, test_evidence_register_requires_strong_evidence_for_satisfied_status. Uses libraries dataclasses, duckdb, pytest, solar_topology.cartridges, solar_topology.circuit. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: Parquet file segments.parquet; DuckDB queries. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_rows()`; `_public_source(source_id="public-layout")`; `test_duckdb_round_trip_and_parquet_are_deterministic(tmp_path)`; `test_duckdb_primary_key_rejects_duplicate_rows()`; `test_evidence_register_requires_strong_evidence_for_satisfied_status()`; `test_public_evidence_register_blocks_restricted_source()`; `test_geometry_receipt_is_deterministic_and_segment_based()`; `test_geometry_receipt_rejects_mixed_strings_and_index_gaps()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Parquet file segments.parquet; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Build023 Topology Invariants - File: solar-electrical-topology-analysis-engine-text-based/tests/test_build023_topology_invariants.py (Python, 188 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_build023_topology_invariants.py#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/0235.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_valid_model_requires_independent_validation_and_complete_traversal`, `test_payload_and_traversal_do_not_trust_input_tuple_order`, `test_duplicate_identifiers_are_blocking` and 3 more. - What it does: It tests its inputs. Defines 9 functions or classes, including _terminal, _object, _valid_path, test_valid_model_requires_independent_validation_and_complete_traversal, test_payload_and_traversal_do_not_trust_input_tuple_order. Uses libraries __future__, solar_topology.circuit, solar_topology.circuit_traversal, solar_topology.circuit_validation. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_terminal(object_id: str, suffix: str, polarity: TerminalPolarity)`; `_object(object_id: str, left: Terminal, right: Terminal)`; `_valid_path()`; `test_valid_model_requires_independent_validation_and_complete_traversal()`; `test_payload_and_traversal_do_not_trust_input_tuple_order()`; `test_duplicate_identifiers_are_blocking()`; `test_missing_endpoint_blocks_traversal_before_graph_walk()`; `test_branch_and_disconnected_island_are_explicit_failures()`; `test_segment_reference_cannot_substitute_for_terminal_connectivity()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Build023 Topology Receipt - File: solar-electrical-topology-analysis-engine-text-based/tests/test_build023_topology_receipt.py (Python, 69 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_build023_topology_receipt.py#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0235.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_receipt_is_issued_only_for_complete_valid_topology`, `test_receipt_rejects_foreign_model_identity`, `test_receipt_rejects_stale_circuit_hash` and 1 more. - What it does: It tests its inputs. Defines _model, test_receipt_is_issued_only_for_complete_valid_topology, test_receipt_rejects_foreign_model_identity, test_receipt_rejects_stale_circuit_hash, test_receipt_rejects_tampered_order. Uses libraries __future__, dataclasses, pytest, solar_topology.circuit, solar_topology.topology_authority. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_model(model_id: str = "receipt-model")`; `test_receipt_is_issued_only_for_complete_valid_topology()`; `test_receipt_rejects_foreign_model_identity()`; `test_receipt_rejects_stale_circuit_hash()`; `test_receipt_rejects_tampered_order()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Build024 Kernel Authority - File: solar-electrical-topology-analysis-engine-text-based/tests/test_build024_kernel_authority.py (Python, 113 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_build024_kernel_authority.py#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0235.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_consistent_receipt_is_authoritative_and_hashed`, `test_modified_total_is_rejected`, `test_modified_formula_contract_is_rejected` and 1 more. - What it does: It tests its inputs. Defines 7 functions or classes, including _evidence, _resistance_evidence, _receipt, test_consistent_receipt_is_authoritative_and_hashed, test_modified_total_is_rejected. Uses libraries dataclasses, solar_topology.calculation_receipts, solar_topology.circuit, solar_topology.evidence, solar_topology.kernel_authority. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_evidence()`; `_resistance_evidence()`; `_receipt()`; `test_consistent_receipt_is_authoritative_and_hashed()`; `test_modified_total_is_rejected()`; `test_modified_formula_contract_is_rejected()`; `test_invalid_type_is_rejected_without_hash()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Build 020 Validation Gate - File: solar-electrical-topology-analysis-engine-text-based/tests/test_build_020_validation_gate.py (Python, 50 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_build_020_validation_gate.py#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0236.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_package_import_smoke`, `test_initial_studies_have_sorted_unique_contract_fields` and `test_malformed_definition_reports_study_and_field`. - What it does: It tests its inputs. Defines test_package_import_smoke, test_initial_studies_have_sorted_unique_contract_fields, test_malformed_definition_reports_study_and_field. Uses libraries importlib, pytest, solar_topology.study_registry. - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_package_import_smoke()`; `test_initial_studies_have_sorted_unique_contract_fields()`; `test_malformed_definition_reports_study_and_field(field_name, values)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Capsule Links - File: solar-electrical-topology-analysis-engine-text-based/tests/test_capsule_links.py (Python, 84 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_capsule_links.py#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0236.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `load_checker`, `test_title_verified_compatibility_pointer_mapping`, `test_all_quantum_spawn_and_trueself_markdown_links_resolve` and 1 more. - What it does: It tests its inputs. Defines load_checker, test_title_verified_compatibility_pointer_mapping, test_all_quantum_spawn_and_trueself_markdown_links_resolve, test_capsule_link_check_command_passes. Uses libraries __future__, importlib.util, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `load_checker()`; `test_title_verified_compatibility_pointer_mapping()`; `test_all_quantum_spawn_and_trueself_markdown_links_resolve()`; `test_capsule_link_check_command_passes()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Cartridges - File: solar-electrical-topology-analysis-engine-text-based/tests/test_cartridges.py (Python, 301 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_cartridges.py#L1-L301 - Page: https://code.globalgrid2050.com/explore-code/s/0236.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `external_cable_total`, `factory_lead_total`, `connector_count` and 14 more. - What it does: It tests its inputs. Defines 17 functions or classes, including external_cable_total, factory_lead_total, connector_count, test_declared_conductor_records_are_not_recreated_from_csa, test_default_row_span_canary_is_39_67_metres. Uses libraries pytest, solar_topology.cartridges, solar_topology.products, solar_topology.segments. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `external_cable_total(rows)`; `factory_lead_total(rows)`; `connector_count(rows)`; `test_declared_conductor_records_are_not_recreated_from_csa()`; `test_default_row_span_canary_is_39_67_metres()`; `test_fleet_distribution_uses_actual_string_count()`; `test_archetype_and_full_fleet_are_headless_and_deterministic()`; `test_arbitrary_odd_and_asymmetric_band_lists_are_supported()`; `test_leapfrog_order_returns_to_the_near_end()`; `test_leapfrog_factory_lead_length_gate()`; `test_cartridges_emit_one_shared_segment_contract()`; `test_pair_physics_is_weighted_once_not_once_per_conductor()`; `test_connector_resistance_is_carried_by_connector_rows()`; `test_factory_copper_and_connectors_are_cartridge_invariants()`; `test_only_external_row_return_creates_theoretical_saving()`; `test_infeasible_leapfrog_rows_cannot_claim_available_saving()`; `test_measured_reach_override_is_explicit()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Circuit - File: solar-electrical-topology-analysis-engine-text-based/tests/test_circuit.py (Python, 277 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_circuit.py#L1-L277 - Page: https://code.globalgrid2050.com/explore-code/s/0237.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_valid_series_circuit_has_deterministic_hash`, `test_unresolved_terminal_reference_is_rejected`, `test_duplicate_terminal_id_is_rejected_globally` and 5 more. - What it does: It tests its inputs. Defines 10 functions or classes, including _terminal, _two_module_series_model, test_valid_series_circuit_has_deterministic_hash, test_unresolved_terminal_reference_is_rejected, test_duplicate_terminal_id_is_rejected_globally. Uses libraries dataclasses, pytest, solar_topology.circuit, solar_topology.circuit_validation, solar_topology.segments. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_terminal(object_id, suffix, polarity, *, required=True, max_connections=1)`; `_two_module_series_model(*, reverse_records=False)`; `test_valid_series_circuit_has_deterministic_hash()`; `test_unresolved_terminal_reference_is_rejected()`; `test_duplicate_terminal_id_is_rejected_globally()`; `test_required_dangling_terminal_is_rejected()`; `test_terminal_connection_capacity_is_enforced()`; `test_parent_cycles_are_rejected()`; `test_non_finite_terminal_coordinates_are_rejected()`; `test_invalid_circuit_cannot_receive_authority_hash()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Circuit Adapters - File: solar-electrical-topology-analysis-engine-text-based/tests/test_circuit_adapters.py (Python, 217 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_circuit_adapters.py#L1-L217 - Page: https://code.globalgrid2050.com/explore-code/s/0237.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_cartridge_chain_adapts_to_valid_ordered_circuit`, `test_adapter_is_deterministic_under_reversed_input_records`, `test_adapter_preserves_source_segment_numbers_and_evidence` and 5 more. - What it does: It tests its inputs. Defines 10 functions or classes, including _cartridge_rows, test_cartridge_chain_adapts_to_valid_ordered_circuit, test_adapter_is_deterministic_under_reversed_input_records, test_adapter_preserves_source_segment_numbers_and_evidence, test_adapter_rejects_inconsistent_coordinates_for_one_source_node. Uses libraries dataclasses, pytest, solar_topology.cartridges, solar_topology.circuit, solar_topology.circuit_adapters. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_cartridge_rows(cartridge)`; `test_cartridge_chain_adapts_to_valid_ordered_circuit(cartridge)`; `test_adapter_is_deterministic_under_reversed_input_records()`; `test_adapter_preserves_source_segment_numbers_and_evidence()`; `test_adapter_rejects_inconsistent_coordinates_for_one_source_node()`; `test_adapter_rejects_mixed_cartridge_chains()`; `_replace_terminal_capacity(model, terminal_ids, capacity)`; `test_independent_traversal_rejects_a_branch_even_when_base_model_valid()`; `test_independent_traversal_rejects_expected_order_mismatch()`; `test_traversal_rejects_disconnected_but_individually_connected_component()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Circuit Calculations - File: solar-electrical-topology-analysis-engine-text-based/tests/test_circuit_calculations.py (Python, 275 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_circuit_calculations.py#L1-L275 - Page: https://code.globalgrid2050.com/explore-code/s/0238.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_provenance_vocabularies_reconcile_without_silent_promotion`, `test_complete_circuit_known_answer_includes_all_series_elements`, `test_calculation_receipt_is_deterministic` and 3 more. - What it does: It tests its inputs. Defines 9 functions or classes, including _rows, _model_and_traversal, _current_evidence, test_provenance_vocabularies_reconcile_without_silent_promotion, test_complete_circuit_known_answer_includes_all_series_elements. Uses libraries dataclasses, inspect, json, pathlib, pytest. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file steady_state_cross_language_v1.json. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_rows(cartridge, *, modules=30)`; `_model_and_traversal(rows)`; `_current_evidence()`; `test_provenance_vocabularies_reconcile_without_silent_promotion()`; `test_complete_circuit_known_answer_includes_all_series_elements(cartridge, expected_resistance, expected_drop, expected_loss)`; `test_calculation_receipt_is_deterministic()`; `test_calculation_refuses_invalid_or_forged_traversal()`; `test_calculation_api_has_no_free_total_length_input()`; `test_python_matches_shared_javascript_formula_fixture()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file steady_state_cross_language_v1.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Contradictions - File: solar-electrical-topology-analysis-engine-text-based/tests/test_contradictions.py (Python, 95 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_contradictions.py#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0238.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_register_is_deterministic_under_input_reordering`, `test_equal_values_are_not_a_contradiction`, `test_closed_contradiction_requires_resolution_note` and 2 more. - What it does: It tests its inputs. Defines 7 functions or classes, including _subject, _claim, test_register_is_deterministic_under_input_reordering, test_equal_values_are_not_a_contradiction, test_closed_contradiction_requires_resolution_note. Uses libraries pytest, solar_topology.contradictions, solar_topology.identifiers. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_subject()`; `_claim(claim_id, value, source_id="public-source")`; `test_register_is_deterministic_under_input_reordering()`; `test_equal_values_are_not_a_contradiction()`; `test_closed_contradiction_requires_resolution_note()`; `test_duplicate_claim_pair_is_rejected_even_when_reversed()`; `test_unresolved_filter_honours_severity_threshold()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Diagnostic Public API - File: solar-electrical-topology-analysis-engine-text-based/tests/test_diagnostic_public_api.py (Python, 20 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_diagnostic_public_api.py#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0238.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_diagnostic_and_applicability_public_api_is_exported`. - What it does: It tests its inputs. Defines test_diagnostic_and_applicability_public_api_is_exported. Uses libraries solar_topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_diagnostic_and_applicability_public_api_is_exported()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Diagnostics - File: solar-electrical-topology-analysis-engine-text-based/tests/test_diagnostics.py (Python, 180 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_diagnostics.py#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0238.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_accumulates_sorts_and_counts_diagnostics`, `test_public_payload_omits_internal_detail_and_is_deterministic`, `test_not_checked_and_blocked_require_reasons` and 5 more. - What it does: It tests its inputs. Defines 9 functions or classes, including test_accumulates_sorts_and_counts_diagnostics, test_public_payload_omits_internal_detail_and_is_deterministic, test_not_checked_and_blocked_require_reasons, test_exception_bridge_does_not_publish_internal_exception_detail, test_circuit_validation_adapter_preserves_all_issues. Uses libraries json, pytest, solar_topology.circuit_validation, solar_topology.diagnostic_adapters, solar_topology.diagnostics. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: Excel file source.xlsx. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_accumulates_sorts_and_counts_diagnostics()`; `test_public_payload_omits_internal_detail_and_is_deterministic()`; `test_not_checked_and_blocked_require_reasons()`; `test_exception_bridge_does_not_publish_internal_exception_detail()`; `test_circuit_validation_adapter_preserves_all_issues()`; `_criterion()`; `test_applicability_distinguishes_missing_inputs_from_no_criterion()`; `test_criterion_evaluation_is_unit_safe_and_source_declared()`; `test_duplicate_diagnostics_and_coverage_are_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Excel file source.xlsx]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Diagnostics and Studies - File: solar-electrical-topology-analysis-engine-text-based/tests/test_diagnostics_and_studies.py (Python, 248 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_diagnostics_and_studies.py#L1-L248 - Page: https://code.globalgrid2050.com/explore-code/s/0239.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. It is built from the fail step (`fail`). - What it achieves (name): Defines `test_diagnostic_report_accumulates_and_sorts_all_findings`, `test_public_payload_omits_internal_detail_and_is_deterministic`, `test_validation_bridge_preserves_multiple_circuit_and_traversal_issues` and 7 more. - What it does: It tests its inputs. Defines 10 functions or classes, including test_diagnostic_report_accumulates_and_sorts_all_findings, test_public_payload_omits_internal_detail_and_is_deterministic, test_validation_bridge_preserves_multiple_circuit_and_traversal_issues, test_missing_validator_results_are_explicitly_not_checked, test_legacy_exception_is_public_safe. Uses libraries json, pytest, solar_topology.circuit, solar_topology.circuit_traversal, solar_topology.circuit_validation. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_diagnostic_report_accumulates_and_sorts_all_findings()`; `test_public_payload_omits_internal_detail_and_is_deterministic()`; `test_validation_bridge_preserves_multiple_circuit_and_traversal_issues()`; `test_missing_validator_results_are_explicitly_not_checked()`; `test_legacy_exception_is_public_safe()`; `fail()`; `test_study_registry_blocks_missing_inputs_and_undeclared_criteria()`; `test_study_states_distinguish_ready_not_run_pass_warning_and_fail()`; `test_initial_registry_is_unique_and_deterministic()`; `test_duplicate_diagnostics_and_coverage_are_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test End to End Authority Slice - File: solar-electrical-topology-analysis-engine-text-based/tests/test_end_to_end_authority_slice.py (Python, 86 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_end_to_end_authority_slice.py#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0239.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Local Authority Bridge and Run Authority Slice, using SHA-256. - What it achieves (name): Defines `test_end_to_end_authority_slice`, `test_authority_slice_cli_can_run_without_heavy_subgates` and `test_end_to_end_harness_uses_existing_authority_paths`. - What it does: It tests its inputs. Defines test_end_to_end_authority_slice, test_authority_slice_cli_can_run_without_heavy_subgates, test_end_to_end_harness_uses_existing_authority_paths. Uses libraries __future__, json, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_end_to_end_authority_slice()`; `test_authority_slice_cli_can_run_without_heavy_subgates()`; `test_end_to_end_harness_uses_existing_authority_paths()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 2, script-call 1); used by 2; mentioned by 0 ### Test Equipment Profile Exact Arithmetic - File: solar-electrical-topology-analysis-engine-text-based/tests/test_equipment_profile_exact_arithmetic.py (Python, 22 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_equipment_profile_exact_arithmetic.py#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0239.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_reference_block_payload_uses_exact_declared_decimal_values`. - What it does: It tests its inputs. Defines test_reference_block_payload_uses_exact_declared_decimal_values. Uses libraries __future__, solar_topology.equipment_profiles. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_reference_block_payload_uses_exact_declared_decimal_values()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Equipment Profiles - File: solar-electrical-topology-analysis-engine-text-based/tests/test_equipment_profiles.py (Python, 229 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_equipment_profiles.py#L1-L229 - Page: https://code.globalgrid2050.com/explore-code/s/0239.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_reference_equipment_contract_has_exact_product_boundary`, `test_reference_inverter_exposes_24_unique_physical_input_pairs`, `test_internal_input_relationships_remain_explicitly_unresolved` and 7 more. - What it does: It tests its inputs. Defines 10 functions or classes, including test_reference_equipment_contract_has_exact_product_boundary, test_reference_inverter_exposes_24_unique_physical_input_pairs, test_internal_input_relationships_remain_explicitly_unresolved, test_connector_leads_dimensions_and_electrical_module_data_remain_missing, test_conductor_products_are_referenced_without_silent_promotion. Uses libraries __future__, dataclasses, json, math, pytest. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_reference_equipment_contract_has_exact_product_boundary()`; `test_reference_inverter_exposes_24_unique_physical_input_pairs()`; `test_internal_input_relationships_remain_explicitly_unresolved()`; `test_connector_leads_dimensions_and_electrical_module_data_remain_missing()`; `test_conductor_products_are_referenced_without_silent_promotion()`; `test_missing_evidence_is_deterministic_and_includes_input_mapping()`; `test_contract_serialisation_and_hash_are_deterministic()`; `test_hash_changes_when_a_bound_equipment_value_changes()`; `test_unresolved_value_cannot_claim_verified_evidence()`; `test_serialised_contract_contains_no_identity_fields()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Equipment Profiles Public API - File: solar-electrical-topology-analysis-engine-text-based/tests/test_equipment_profiles_public_api.py (Python, 72 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_equipment_profiles_public_api.py#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0239.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_equipment_contract_is_exposed_by_supported_package_api`, `test_equipment_contract_exports_are_explicitly_provisional` and `test_top_level_equipment_contract_reproduces_exact_authority_output`. - What it does: It tests its inputs. Defines test_equipment_contract_is_exposed_by_supported_package_api, test_equipment_contract_exports_are_explicitly_provisional, test_top_level_equipment_contract_reproduces_exact_authority_output. Uses libraries __future__, solar_topology, solar_topology.equipment_profiles. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_equipment_contract_is_exposed_by_supported_package_api()`; `test_equipment_contract_exports_are_explicitly_provisional()`; `test_top_level_equipment_contract_reproduces_exact_authority_output()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Evidence Boundary - File: solar-electrical-topology-analysis-engine-text-based/tests/test_evidence_boundary.py (Python, 127 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_evidence_boundary.py#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0240.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_public_observation_is_publishable`, `test_confidential_source_cannot_be_marked_public`, `test_confidential_only_result_is_blocked` and 2 more. - What it does: It tests its inputs. Defines 6 functions or classes, including _source, test_public_observation_is_publishable, test_confidential_source_cannot_be_marked_public, test_confidential_only_result_is_blocked, test_confidential_context_can_coexist_with_independent_public_support. Uses libraries pytest, solar_topology.circuit, solar_topology.evidence, solar_topology.evidence_boundary. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_source(source_id, evidence_class, rights_status, permission, *, independent_public_support=False)`; `test_public_observation_is_publishable()`; `test_confidential_source_cannot_be_marked_public()`; `test_confidential_only_result_is_blocked()`; `test_confidential_context_can_coexist_with_independent_public_support()`; `test_restricted_source_without_public_path_blocks_mixed_export()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Formulas - File: solar-electrical-topology-analysis-engine-text-based/tests/test_formulas.py (Python, 203 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_formulas.py#L1-L203 - Page: https://code.globalgrid2050.com/explore-code/s/0240.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_nominal_csa_is_not_used_to_invent_conductor_diameter`, `test_two_wire_internal_inductance_is_low_frequency_energy_only`, `test_velocity_identity_uses_external_inductance_only` and 8 more. - What it does: It tests its inputs. Defines 11 functions or classes, including test_nominal_csa_is_not_used_to_invent_conductor_diameter, test_two_wire_internal_inductance_is_low_frequency_energy_only, test_velocity_identity_uses_external_inductance_only, test_acosh_domain_guard_rejects_overlapping_conductors, test_rank_pitch_has_no_walkway_allowance. Uses libraries inspect, math, pytest, solar_topology.formulas. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_nominal_csa_is_not_used_to_invent_conductor_diameter()`; `test_two_wire_internal_inductance_is_low_frequency_energy_only()`; `test_velocity_identity_uses_external_inductance_only()`; `test_acosh_domain_guard_rejects_overlapping_conductors()`; `test_rank_pitch_has_no_walkway_allowance()`; `test_route_length_is_derived_from_geometry_only()`; `test_user_cannot_supply_final_route_length()`; `test_declared_finished_cable_resistance_at_temperature()`; `test_declared_complete_circuit_canary_worst_case_compliant()`; `test_module_frame_capacitance_parallel_plate()`; `test_cold_voc_30_module_default()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Geometry Authority - File: solar-electrical-topology-analysis-engine-text-based/tests/test_geometry_authority.py (Python, 105 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_geometry_authority.py#L1-L105 - Page: https://code.globalgrid2050.com/explore-code/s/0240.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Geometry Authority. - What it achieves (name): Defines `test_reference_table_places_720_unique_modules`, `test_reference_geometry_is_deterministic`, `test_moving_origin_changes_coordinates_and_hash` and 6 more. - What it does: It tests its inputs. Defines 9 functions or classes, including test_reference_table_places_720_unique_modules, test_reference_geometry_is_deterministic, test_moving_origin_changes_coordinates_and_hash, test_rotation_changes_geometry_without_changing_module_count, test_landscape_orientation_swaps_module_envelope. Uses libraries math, pytest. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_reference_table_places_720_unique_modules()`; `test_reference_geometry_is_deterministic()`; `test_moving_origin_changes_coordinates_and_hash()`; `test_rotation_changes_geometry_without_changing_module_count()`; `test_landscape_orientation_swaps_module_envelope()`; `test_partial_final_row_is_supported()`; `test_public_request_type_exists()`; `test_invalid_capacity_is_rejected()`; `test_non_finite_geometry_is_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Test Identifiers - File: solar-electrical-topology-analysis-engine-text-based/tests/test_identifiers.py (Python, 67 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_identifiers.py#L1-L67 - Page: https://code.globalgrid2050.com/explore-code/s/0240.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_identifier_builds_deterministic_contiguous_path`, `test_identifier_round_trip`, `test_identifier_rejects_noncanonical_tokens` and 4 more. - What it does: It tests its inputs. Defines 8 functions or classes, including _full_identifier, test_identifier_builds_deterministic_contiguous_path, test_identifier_round_trip, test_identifier_rejects_noncanonical_tokens, test_identifier_rejects_skipped_hierarchy_level. Uses libraries pytest, solar_topology.identifiers. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_full_identifier()`; `test_identifier_builds_deterministic_contiguous_path()`; `test_identifier_round_trip()`; `test_identifier_rejects_noncanonical_tokens()`; `test_identifier_rejects_skipped_hierarchy_level()`; `test_parser_rejects_noncontiguous_hierarchy()`; `test_uniqueness_gate_rejects_duplicates()`; `test_identical_local_ids_are_allowed_under_distinct_parents()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Installed Array API - File: solar-electrical-topology-analysis-engine-text-based/tests/test_installed_array_api.py (Python, 94 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_installed_array_api.py#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0240.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Array Engine and Geometry Authority, using SHA-256. - What it achieves (name): Defines `test_installed_array_api_exposes_build_025_authority`, `test_legacy_module_names_resolve_to_packaged_authority`, `test_compatibility_files_cannot_contain_independent_authority` and 1 more. - What it does: It tests its inputs. Defines test_installed_array_api_exposes_build_025_authority, test_legacy_module_names_resolve_to_packaged_authority, test_compatibility_files_cannot_contain_independent_authority, test_installed_array_api_reconciles_strategy_accounting. Uses libraries __future__, pathlib, sys, pytest, solar_topology.array. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_installed_array_api_exposes_build_025_authority()`; `test_legacy_module_names_resolve_to_packaged_authority()`; `test_compatibility_files_cannot_contain_independent_authority()`; `test_installed_array_api_reconciles_strategy_accounting()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Test Inverter Block - File: solar-electrical-topology-analysis-engine-text-based/tests/test_inverter_block.py (Python, 153 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_inverter_block.py#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0241.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_reference_inverter_block_binds_exact_product_boundary`, `test_inverter_block_payload_binds_existing_authority_hashes`, `test_inverter_block_preserves_unresolved_input_evidence` and 4 more. - What it does: It tests its inputs. Defines 7 functions or classes, including test_reference_inverter_block_binds_exact_product_boundary, test_inverter_block_payload_binds_existing_authority_hashes, test_inverter_block_preserves_unresolved_input_evidence, test_inverter_block_serialisation_and_hash_are_deterministic, test_wiring_strategy_changes_block_hash_without_changing_product_boundary. Uses libraries __future__, dataclasses, json, math, pytest. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_reference_inverter_block_binds_exact_product_boundary()`; `test_inverter_block_payload_binds_existing_authority_hashes()`; `test_inverter_block_preserves_unresolved_input_evidence()`; `test_inverter_block_serialisation_and_hash_are_deterministic()`; `test_wiring_strategy_changes_block_hash_without_changing_product_boundary()`; `test_duplicate_table_bindings_and_tampered_hash_are_rejected()`; `test_inverter_block_payload_contains_no_identity_or_standards_claims()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Inverter Block Public API - File: solar-electrical-topology-analysis-engine-text-based/tests/test_inverter_block_public_api.py (Python, 60 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_inverter_block_public_api.py#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0241.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_inverter_block_contract_is_exposed_by_supported_package_api`, `test_inverter_block_exports_are_explicitly_provisional` and `test_top_level_inverter_block_reproduces_authority_payload_and_hash`. - What it does: It tests its inputs. Defines test_inverter_block_contract_is_exposed_by_supported_package_api, test_inverter_block_exports_are_explicitly_provisional, test_top_level_inverter_block_reproduces_authority_payload_and_hash. Uses libraries __future__, solar_topology, solar_topology.inverter_block. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_inverter_block_contract_is_exposed_by_supported_package_api()`; `test_inverter_block_exports_are_explicitly_provisional()`; `test_top_level_inverter_block_reproduces_authority_payload_and_hash()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Legacy Resistance Boundaries - File: solar-electrical-topology-analysis-engine-text-based/tests/test_legacy_resistance_boundaries.py (Python, 57 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_legacy_resistance_boundaries.py#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0241.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses IEC 60228. - What it achieves (name): Defines `test_v6_exposes_machine_readable_lower_bound_resistance_model`, `test_v6_injects_visible_resistance_authority_warning`, `test_v9_displays_and_exports_lower_bound_resistance_model` and 1 more. - What it does: It tests its inputs. Defines test_v6_exposes_machine_readable_lower_bound_resistance_model, test_v6_injects_visible_resistance_authority_warning, test_v9_displays_and_exports_lower_bound_resistance_model, test_legacy_warnings_do_not_claim_v10_authority. Uses libraries __future__, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'legacy'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_v6_exposes_machine_readable_lower_bound_resistance_model()`; `test_v6_injects_visible_resistance_authority_warning()`; `test_v9_displays_and_exports_lower_bound_resistance_model()`; `test_legacy_warnings_do_not_claim_v10_authority()` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Local Authority Bridge - File: solar-electrical-topology-analysis-engine-text-based/tests/test_local_authority_bridge.py (Python, 125 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_local_authority_bridge.py#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0241.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Build Authority Bundle and Local Authority Bridge. - What it achieves (name): Defines `running_bridge`, `fetch`, `test_bridge_serves_exact_python_authority_response` and 5 more. - What it does: It tests its inputs. Defines 8 functions or classes, including running_bridge, fetch, test_bridge_serves_exact_python_authority_response, test_bridge_serves_existing_studio_without_browser_recalculation_fork, test_root_redirect_and_health_contract. Uses libraries __future__, contextlib, json, pathlib, threading. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `running_bridge(*, strategy: str = "leapfrog")`; `fetch(url: str, *, method: str = "GET")`; `test_bridge_serves_exact_python_authority_response()`; `test_bridge_serves_existing_studio_without_browser_recalculation_fork()`; `test_root_redirect_and_health_contract()`; `test_head_returns_headers_without_body()`; `test_unknown_route_is_rejected()`; `test_bridge_rejects_invalid_strategy_and_port()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Test Microbuild Advancement - File: solar-electrical-topology-analysis-engine-text-based/tests/test_microbuild_advancement.py (Python, 147 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_microbuild_advancement.py#L1-L147 - Page: https://code.globalgrid2050.com/explore-code/s/0241.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Advance Microbuild and Check Microbuild Plan, using SHA-256. - What it achieves (name): Defines `test_preview_advancement_changes_only_current_next_and_evidence`, `test_final_advancement_closes_the_programme`, `test_preview_never_writes_the_source_manifest` and 4 more. - What it does: It tests its inputs. Defines 9 functions or classes, including _active_plan, _current_evidence, test_preview_advancement_changes_only_current_next_and_evidence, test_final_advancement_closes_the_programme, test_preview_never_writes_the_source_manifest. Uses libraries __future__, copy, pytest. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_active_plan(step_index: int)`; `_current_evidence(plan: dict[str, object], **overrides: object)`; `test_preview_advancement_changes_only_current_next_and_evidence()`; `test_final_advancement_closes_the_programme()`; `test_preview_never_writes_the_source_manifest()`; `test_refusal_rejects_failed_stale_mismatched_or_incomplete_evidence(overrides: dict[str, object], message: str)`; `test_refusal_rejects_tampered_evidence_hash()`; `test_refusal_rejects_skipped_step_even_with_plausible_evidence()`; `test_completed_programme_cannot_advance_again()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Test Microbuild Evidence - File: solar-electrical-topology-analysis-engine-text-based/tests/test_microbuild_evidence.py (Python, 116 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_microbuild_evidence.py#L1-L116 - Page: https://code.globalgrid2050.com/explore-code/s/0241.html#f6 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Check Microbuild Plan and Microbuild Evidence. - What it achieves (name): Defines `test_evidence_hash_is_deterministic_and_excludes_runtime_metadata`, `test_engineering_core_changes_evidence_hash`, `test_active_plan_evidence_uses_current_step_and_test` and 3 more. - What it does: It tests its inputs. Defines 8 functions or classes, including _base, _active_final_plan, test_evidence_hash_is_deterministic_and_excludes_runtime_metadata, test_engineering_core_changes_evidence_hash, test_active_plan_evidence_uses_current_step_and_test. Uses libraries __future__, copy, json, pathlib, pytest. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file active-plan.json. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_base(**overrides: object)`; `_active_final_plan(path: Path)`; `test_evidence_hash_is_deterministic_and_excludes_runtime_metadata()`; `test_engineering_core_changes_evidence_hash()`; `test_active_plan_evidence_uses_current_step_and_test(tmp_path: Path)`; `test_completed_plan_refuses_a_new_evidence_record()`; `test_invalid_core_and_runtime_values_are_rejected()`; `test_worker_uses_canonical_evidence_writer_only_while_active()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file active-plan.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Test Microbuild Plan - File: solar-electrical-topology-analysis-engine-text-based/tests/test_microbuild_plan.py (Python, 113 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_microbuild_plan.py#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Check Microbuild Plan. - What it achieves (name): Defines `test_manifest_contract_has_twenty_ordered_completed_steps`, `test_manifest_still_accepts_one_active_final_gate`, `test_manifest_rejects_multiple_current_steps` and 4 more. - What it does: It tests its inputs. Defines 8 functions or classes, including _active_before_final, test_manifest_contract_has_twenty_ordered_completed_steps, test_manifest_still_accepts_one_active_final_gate, test_manifest_rejects_multiple_current_steps, test_manifest_rejects_incomplete_plan_without_current_step. Uses libraries __future__, copy, json, pathlib, pytest. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_active_before_final()`; `test_manifest_contract_has_twenty_ordered_completed_steps()`; `test_manifest_still_accepts_one_active_final_gate()`; `test_manifest_rejects_multiple_current_steps()`; `test_manifest_rejects_incomplete_plan_without_current_step()`; `test_manifest_rejects_skipped_and_out_of_order_states()`; `test_manifest_rejects_unknown_test_identifiers_and_missing_spawn(tmp_path: Path)`; `test_manifest_file_is_canonical_json_object()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Test Microbuild Runner - File: solar-electrical-topology-analysis-engine-text-based/tests/test_microbuild_runner.py (Python, 73 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_microbuild_runner.py#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Check Microbuild Plan and Run Microbuild. - What it achieves (name): Defines `test_completed_manifest_selects_no_further_command`, `test_all_twenty_manifest_test_identifiers_are_allowlisted`, `test_unknown_identifier_is_rejected_without_shell_execution` and 2 more. - What it does: It tests its inputs. Defines test_completed_manifest_selects_no_further_command, test_all_twenty_manifest_test_identifiers_are_allowlisted, test_unknown_identifier_is_rejected_without_shell_execution, test_cli_reports_completed_programme_without_execution, test_explicit_allowlisted_test_remains_available_after_completion. Uses libraries __future__, json, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file microbuild-plan.json. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 3 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based); Test Ts005 Handoff (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_completed_manifest_selects_no_further_command()`; `test_all_twenty_manifest_test_identifiers_are_allowlisted()`; `test_unknown_identifier_is_rejected_without_shell_execution()`; `test_cli_reports_completed_programme_without_execution()`; `test_explicit_allowlisted_test_remains_available_after_completion()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file microbuild-plan.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Test Microbuild Workflow - File: solar-electrical-topology-analysis-engine-text-based/tests/test_microbuild_workflow.py (Python, 55 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_microbuild_workflow.py#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Check Microbuild Plan and Run Microbuild. - What it achieves (name): Defines `test_microbuild_worker_runs_only_manifest_and_allowlisted_runner`, `test_worker_is_triggerable_by_marker_and_future_authority_files`, `test_worker_never_interpolates_manifest_text_into_shell` and 1 more. - What it does: It tests its inputs. Defines test_microbuild_worker_runs_only_manifest_and_allowlisted_runner, test_worker_is_triggerable_by_marker_and_future_authority_files, test_worker_never_interpolates_manifest_text_into_shell, test_execution_envelope_uses_canonical_writer_and_github_state. Uses libraries __future__, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file microbuild-plan.json; JSON file latest.json. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 3 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Ts005 Handoff (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_microbuild_worker_runs_only_manifest_and_allowlisted_runner()`; `test_worker_is_triggerable_by_marker_and_future_authority_files()`; `test_worker_never_interpolates_manifest_text_into_shell()`; `test_execution_envelope_uses_canonical_writer_and_github_state()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file microbuild-plan.json; JSON file latest.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (script-call 3); used by 2; mentioned by 0 ### Test Parquet Store - File: solar-electrical-topology-analysis-engine-text-based/tests/test_parquet_store.py (Python, 182 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_parquet_store.py#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `read_one`, `test_deterministic_partitioned_store_and_actual_string_count`, `test_infeasible_leapfrog_keeps_theory_but_blocks_available_saving` and 1 more. - What it does: It tests its inputs. Defines read_one, test_deterministic_partitioned_store_and_actual_string_count, test_infeasible_leapfrog_keeps_theory_but_blocks_available_saving, test_route_and_conductor_length_are_separate_columns. Uses libraries json, math, duckdb, pytest, solar_topology.fleet_store. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: Parquet file comparison.parquet; Parquet file site.parquet; Parquet file strings.parquet; DuckDB queries. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `read_one(connection, path, columns="*")`; `test_deterministic_partitioned_store_and_actual_string_count(tmp_path)`; `test_infeasible_leapfrog_keeps_theory_but_blocks_available_saving(tmp_path)`; `test_route_and_conductor_length_are_separate_columns(tmp_path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Parquet file comparison.parquet; Parquet file site.parquet; Parquet file strings.parquet; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Persistence - File: solar-electrical-topology-analysis-engine-text-based/tests/test_persistence.py (Python, 60 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_persistence.py#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_store_is_deterministic_under_record_reordering`, `test_read_back_reconstructs_identical_store`, `test_tampered_payload_is_rejected` and 2 more. - What it does: It tests its inputs. Defines 6 functions or classes, including _record, test_store_is_deterministic_under_record_reordering, test_read_back_reconstructs_identical_store, test_tampered_payload_is_rejected, test_noncanonical_serialisation_is_rejected_on_read_back. Uses libraries json, pytest, solar_topology.persistence. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_record(record_id, value)`; `test_store_is_deterministic_under_record_reordering()`; `test_read_back_reconstructs_identical_store()`; `test_tampered_payload_is_rejected()`; `test_noncanonical_serialisation_is_rejected_on_read_back()`; `test_duplicate_record_identifiers_are_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Programme State - File: solar-electrical-topology-analysis-engine-text-based/tests/test_programme_state.py (Python, 98 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_programme_state.py#L1-L98 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f6 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `load_sync_module`, `test_programme_state_schema_arithmetic_and_capability_boundaries`, `test_readme_and_dashboard_are_exact_manifest_projections` and 2 more. - What it does: It tests its inputs. Defines load_sync_module, test_programme_state_schema_arithmetic_and_capability_boundaries, test_readme_and_dashboard_are_exact_manifest_projections, test_stale_manual_status_claims_are_absent, test_programme_state_check_command_passes. Uses libraries __future__, importlib.util, json, pathlib, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file programme-state.json. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `load_sync_module()`; `test_programme_state_schema_arithmetic_and_capability_boundaries()`; `test_readme_and_dashboard_are_exact_manifest_projections()`; `test_stale_manual_status_claims_are_absent()`; `test_programme_state_check_command_passes()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file programme-state.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Test Public API Inventory - File: solar-electrical-topology-analysis-engine-text-based/tests/test_public_api_inventory.py (Python, 21 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_public_api_inventory.py#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f7 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_public_api_inventory_is_total_unique_and_sorted`, `test_explicit_public_api_classification_has_no_duplicates` and `test_unadjudicated_exports_remain_provisional_not_canonical`. - What it does: It tests its inputs. Defines test_public_api_inventory_is_total_unique_and_sorted, test_explicit_public_api_classification_has_no_duplicates, test_unadjudicated_exports_remain_provisional_not_canonical. Uses libraries solar_topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_public_api_inventory_is_total_unique_and_sorted()`; `test_explicit_public_api_classification_has_no_duplicates()`; `test_unadjudicated_exports_remain_provisional_not_canonical()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Public Topology - File: solar-electrical-topology-analysis-engine-text-based/tests/test_public_topology.py (Python, 97 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_public_topology.py#L1-L97 - Page: https://code.globalgrid2050.com/explore-code/s/0242.html#f8 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_public_manifest_builds_and_hashes_deterministically`, `test_public_manifest_rejects_confidential_source_even_with_public_record_name`, `test_public_manifest_rejects_unknown_source` and 2 more. - What it does: It tests its inputs. Defines 7 functions or classes, including _source, _record, test_public_manifest_builds_and_hashes_deterministically, test_public_manifest_rejects_confidential_source_even_with_public_record_name, test_public_manifest_rejects_unknown_source. Uses libraries pytest, solar_topology.circuit, solar_topology.evidence, solar_topology.evidence_boundary, solar_topology.identifiers. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_source(source_id="planning-layout", public=True)`; `_record(project, source_id="planning-layout")`; `test_public_manifest_builds_and_hashes_deterministically()`; `test_public_manifest_rejects_confidential_source_even_with_public_record_name()`; `test_public_manifest_rejects_unknown_source()`; `test_public_manifest_rejects_record_from_another_project()`; `test_record_requires_sorted_unique_sources_and_attributes()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Reference Block Command - File: solar-electrical-topology-analysis-engine-text-based/tests/test_reference_block_command.py (Python, 90 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_reference_block_command.py#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0243.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Reference Block Command, using SHA-256. - What it achieves (name): Defines `run_command`, `test_reference_block_function_equals_package_authority_exactly`, `test_reference_block_command_emits_one_canonical_json_line` and 4 more. - What it does: It tests its inputs. Defines 7 functions or classes, including run_command, test_reference_block_function_equals_package_authority_exactly, test_reference_block_command_emits_one_canonical_json_line, test_reference_block_command_exposes_exact_product_boundary, test_command_contract_declares_stable_version. Uses libraries __future__, json, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 4 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `run_command(*args: str)`; `test_reference_block_function_equals_package_authority_exactly()`; `test_reference_block_command_emits_one_canonical_json_line()`; `test_reference_block_command_exposes_exact_product_boundary()`; `test_command_contract_declares_stable_version()`; `test_command_contract_supports_deterministic_strategy_selection()`; `test_command_contract_fails_without_authoritative_stdout()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Test Resistance Evidence - File: solar-electrical-topology-analysis-engine-text-based/tests/test_resistance_evidence.py (Python, 303 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_resistance_evidence.py#L1-L303 - Page: https://code.globalgrid2050.com/explore-code/s/0243.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_default_products_use_explicit_standard_maximum_evidence`, `test_resistance_hash_changes_with_basis_source_or_value`, `test_strongest_record_does_not_allow_weak_override` and 5 more. - What it does: It tests its inputs. Defines 13 functions or classes, including _rows, _model_and_traversal, _current_evidence, _calculate, _record. Uses libraries __future__, dataclasses, pytest, solar_topology.calculation_receipts, solar_topology.cartridges. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_rows(modules: int = 6)`; `_model_and_traversal(rows)`; `_current_evidence()`; `_calculate(rows)`; `_record(*, basis: ResistanceBasis, value_kind: ResistanceValueKind, r20: float = 0.003, source_revision: str = "test-v1")`; `test_default_products_use_explicit_standard_maximum_evidence()`; `test_resistance_hash_changes_with_basis_source_or_value()`; `test_strongest_record_does_not_allow_weak_override()`; `test_calculation_receipt_exports_applied_resistance_evidence_hash()`; `test_unrelated_registry_product_cannot_change_existing_receipt()`; `test_r20_override_is_calculated_but_evidence_is_downgraded()`; `test_uncertainty_uses_resolved_product_temperature_coefficient()`; `test_incompatible_basis_and_value_kind_is_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Resistance Qualification - File: solar-electrical-topology-analysis-engine-text-based/tests/test_resistance_qualification.py (Python, 216 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_resistance_qualification.py#L1-L216 - Page: https://code.globalgrid2050.com/explore-code/s/0243.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_current_generic_standard_records_remain_candidates`, `test_revision_controlled_verified_manufacturer_record_is_promotable`, `test_measured_record_requires_measurement_conditions` and 7 more. - What it does: It tests its inputs. Defines 11 functions or classes, including _record, test_current_generic_standard_records_remain_candidates, test_revision_controlled_verified_manufacturer_record_is_promotable, test_measured_record_requires_measurement_conditions, test_assumed_and_ideal_bulk_records_cannot_be_promoted. Uses libraries __future__, dataclasses, json, pytest, solar_topology.products. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_record(*, basis: ResistanceBasis, value_kind: ResistanceValueKind, verification_state: str = "verified", source_revision: st...)`; `test_current_generic_standard_records_remain_candidates()`; `test_revision_controlled_verified_manufacturer_record_is_promotable()`; `test_measured_record_requires_measurement_conditions()`; `test_assumed_and_ideal_bulk_records_cannot_be_promoted()`; `test_unresolved_or_explicitly_rejected_source_is_rejected()`; `test_invalid_object_is_rejected_without_hash()`; `test_assessment_payload_json_and_hash_are_deterministic()`; `test_assessment_hash_binds_all_qualification_fields()`; `test_assessment_serialisation_rejects_invalid_type(function)`; `test_assessment_dataclass_can_be_serialised_directly()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Resistance Qualification Public API - File: solar-electrical-topology-analysis-engine-text-based/tests/test_resistance_qualification_public_api.py (Python, 98 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_resistance_qualification_public_api.py#L1-L98 - Page: https://code.globalgrid2050.com/explore-code/s/0244.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_resistance_qualification_is_exposed_by_supported_package_api`, `test_resistance_qualification_exports_are_explicitly_provisional`, `test_generic_standard_records_remain_candidate_through_public_api` and 1 more. - What it does: It tests its inputs. Defines test_resistance_qualification_is_exposed_by_supported_package_api, test_resistance_qualification_exports_are_explicitly_provisional, test_generic_standard_records_remain_candidate_through_public_api, test_assessment_serialisation_is_exact_through_public_api. Uses libraries __future__, hashlib, json, pytest, solar_topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_resistance_qualification_is_exposed_by_supported_package_api()`; `test_resistance_qualification_exports_are_explicitly_provisional()`; `test_generic_standard_records_remain_candidate_through_public_api()`; `test_assessment_serialisation_is_exact_through_public_api()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Table String Assignment - File: solar-electrical-topology-analysis-engine-text-based/tests/test_table_string_assignment.py (Python, 85 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_table_string_assignment.py#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0244.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Geometry Authority. - What it achieves (name): Defines `test_reference_assignment_covers_all_720_modules_once`, `test_reference_assignment_has_one_free_terminal_per_polarity`, `test_reference_assignment_is_deterministic` and 2 more. - What it does: It tests its inputs. Defines 6 functions or classes, including _reference_assignment, test_reference_assignment_covers_all_720_modules_once, test_reference_assignment_has_one_free_terminal_per_polarity, test_reference_assignment_is_deterministic, test_reference_assignment_preserves_physical_placement_order. Uses libraries pytest, table_string_assignment. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_reference_assignment()`; `test_reference_assignment_covers_all_720_modules_once()`; `test_reference_assignment_has_one_free_terminal_per_polarity()`; `test_reference_assignment_is_deterministic()`; `test_reference_assignment_preserves_physical_placement_order()`; `test_incompatible_string_dimensions_are_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Test Table String Validation - File: solar-electrical-topology-analysis-engine-text-based/tests/test_table_string_validation.py (Python, 94 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_table_string_validation.py#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0244.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Geometry Authority, using SHA-256. - What it achieves (name): Defines `test_reference_assignment_passes_independent_validation`, `test_asserted_assignment_hash_is_independently_recalculated`, `test_cross_string_duplicate_and_omission_are_detected` and 2 more. - What it does: It tests its inputs. Defines 6 functions or classes, including _reference_receipts, test_reference_assignment_passes_independent_validation, test_asserted_assignment_hash_is_independently_recalculated, test_cross_string_duplicate_and_omission_are_detected, test_geometry_binding_mismatch_is_detected. Uses libraries dataclasses, table_string_assignment, table_string_validation. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_reference_receipts()`; `test_reference_assignment_passes_independent_validation()`; `test_asserted_assignment_hash_is_independently_recalculated()`; `test_cross_string_duplicate_and_omission_are_detected()`; `test_geometry_binding_mismatch_is_detected()`; `test_collapsed_free_terminal_identifiers_are_detected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Test Topology - File: solar-electrical-topology-analysis-engine-text-based/tests/test_topology.py (Python, 93 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_topology.py#L1-L93 - Page: https://code.globalgrid2050.com/explore-code/s/0244.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_default_structure_is_two_faces_with_five_five_two_bands_each`, `test_rank_slope_and_plan_projection_are_not_conflated`, `test_string_is_an_ordered_chain_of_typed_segments` and 5 more. - What it does: It tests its inputs. Defines 8 functions or classes, including test_default_structure_is_two_faces_with_five_five_two_bands_each, test_rank_slope_and_plan_projection_are_not_conflated, test_string_is_an_ordered_chain_of_typed_segments, test_coiled_surplus_has_zero_displacement_but_real_length, test_every_segment_has_formation_separation_and_provenance. Uses libraries math, pytest, solar_topology.topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_default_structure_is_two_faces_with_five_five_two_bands_each()`; `test_rank_slope_and_plan_projection_are_not_conflated()`; `test_string_is_an_ordered_chain_of_typed_segments()`; `test_coiled_surplus_has_zero_displacement_but_real_length()`; `test_every_segment_has_formation_separation_and_provenance()`; `test_export_route_length_is_exact_segment_sum_and_derived()`; `test_validation_fails_if_route_length_is_user_supplied()`; `test_headless_scale_target_builds_without_renderer()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Ts005 Handoff - File: solar-electrical-topology-analysis-engine-text-based/tests/test_ts005_handoff.py (Python, 95 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_ts005_handoff.py#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0244.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Check Microbuild Plan and Run Microbuild, using SHA-256. - What it achieves (name): Defines `test_hostile_amnesia_reload_recovers_ts005_handoff`, `test_handoff_files_exist_and_bind_validated_receipt`, `test_handoff_exposes_unresolved_authority_without_inference` and 1 more. - What it does: It tests its inputs. Defines test_hostile_amnesia_reload_recovers_ts005_handoff, test_handoff_files_exist_and_bind_validated_receipt, test_handoff_exposes_unresolved_authority_without_inference, test_completed_programme_exposes_no_active_command. Uses libraries __future__, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'handoff'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file programme-state.json. - Downstream impact: Used directly by 2 files: Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 3 other entry points, including Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_hostile_amnesia_reload_recovers_ts005_handoff()`; `test_handoff_files_exist_and_bind_validated_receipt()`; `test_handoff_exposes_unresolved_authority_without_inference()`; `test_completed_programme_exposes_no_active_command()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file programme-state.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Test Uncertainty - File: solar-electrical-topology-analysis-engine-text-based/tests/test_uncertainty.py (Python, 228 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_uncertainty.py#L1-L228 - Page: https://code.globalgrid2050.com/explore-code/s/0244.html#f6 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that uses SHA-256. - What it achieves (name): Defines `test_interval_requires_ordered_finite_values_and_units`, `test_uncertainty_contains_nominal_and_reports_voltage_drop_percentage`, `test_exact_uncertainty_collapses_to_nominal_across_module_counts` and 3 more. - What it does: It tests its inputs. Defines 11 functions or classes, including _rows, _model_and_traversal, _evidence, _operating_state, _exact_operating_state. Uses libraries dataclasses, pytest, solar_topology.cartridges, solar_topology.circuit, solar_topology.circuit_adapters. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `_rows(modules=6)`; `_model_and_traversal(rows)`; `_evidence(source)`; `_operating_state()`; `_exact_operating_state()`; `test_interval_requires_ordered_finite_values_and_units()`; `test_uncertainty_contains_nominal_and_reports_voltage_drop_percentage()`; `test_exact_uncertainty_collapses_to_nominal_across_module_counts(modules)`; `test_uncertainty_receipt_is_deterministic_under_source_row_reordering()`; `test_uncertainty_rejects_unknown_segments_and_nominal_mismatch()`; `test_invalid_operating_state_is_rejected()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test V10 Public API - File: solar-electrical-topology-analysis-engine-text-based/tests/test_v10_public_api.py (Python, 26 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_v10_public_api.py#L1-L26 - Page: https://code.globalgrid2050.com/explore-code/s/0245.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `test_v10_evidence_and_calculation_public_api_is_exported`. - What it does: It tests its inputs. Defines test_v10_evidence_and_calculation_public_api_is_exported. Uses libraries solar_topology. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `test_v10_evidence_and_calculation_public_api_is_exported()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Zzz B026 Gitignore - File: solar-electrical-topology-analysis-engine-text-based/tests/test_zzz_b026_gitignore.py (Python, 62 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/test_zzz_b026_gitignore.py#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0245.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (name): Defines `run_git`, `test_declared_generated_candidates_are_ignored`, `test_no_tracked_engineering_file_becomes_ignored` and 1 more. - What it does: It tests its inputs. Defines run_git, test_declared_generated_candidates_are_ignored, test_no_tracked_engineering_file_becomes_ignored, test_repository_tree_is_clean_after_python_suite_setup. Uses libraries __future__, pathlib, subprocess, pytest. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file cache.json; JSON file reference-inverter-block.json. - Downstream impact: Used directly by 1 file: Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `run_git(*args: str)`; `test_declared_generated_candidates_are_ignored(candidate: str)`; `test_no_tracked_engineering_file_becomes_ignored()`; `test_repository_tree_is_clean_after_python_suite_setup()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file cache.json; JSON file reference-inverter-block.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### V8 Model Test - File: solar-electrical-topology-analysis-engine-text-based/tests/v8-model.test.js (JavaScript, 187 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/tests/v8-model.test.js#L1-L187 - Page: https://code.globalgrid2050.com/explore-code/s/0245.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Model and Authority Reconciliation. - What it achieves (name): Defines `close`. - What it does: It tests its inputs. Defines close. Uses libraries node:assert/strict. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Run V10 Validation (solar-electrical-topology-analysis-engine-text-based); V8 Tests Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 8 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). - Signatures: `close(actual, expected, tolerance = 1e-9)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (require 2); used by 2; mentioned by 1 ### Authority Evidence - File: solar-electrical-topology-analysis-engine-text-based/v10-development/authority/authority-evidence.js (JavaScript, 165 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/authority/authority-evidence.js#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0245.html#f4 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that works with require object (`requireObject`) and require array (`requireArray`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/. - What it achieves (name): It sets text (`setText`) and is built from the require object helper (`requireObject`) and the require array helper (`requireArray`). Defines `requireObject`, `requireArray`, `requireValue` and 5 more. - What it does: Defines 8 functions or classes, including requireObject, requireArray, requireValue, authorityEvidence, setText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: V10 Development — Authority Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/); Studio Authority Evidence Test (solar-electrical-topology-analysis-engine-text-based). Reached from 132 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/. - Signatures: `export authorityEvidence(bundle)`; `export renderAuthorityEvidence(documentRef, bundle)`; `export loadAuthorityEvidence({ fetchImpl = globalThis.fetch, documentRef = globalThis.document } = {})`; `requireObject(value, name)`; `requireArray(value, name)`; `requireValue(value, name)`; `setText(documentRef, id, value)`; `inputLines(projection)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 1 ### Authority View - File: solar-electrical-topology-analysis-engine-text-based/v10-development/authority/authority-view.js (JavaScript, 219 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/authority/authority-view.js#L1-L219 - Page: https://code.globalgrid2050.com/explore-code/s/0245.html#f5 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/ - Synopsis: A JavaScript module that renders authority geometry and authority bundle and loads authority bundle, covering reference inverter block. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/. - What it achieves (name): It sets text (`setText`), renders authority geometry (`renderAuthorityGeometry`) and renders authority bundle (`renderAuthorityBundle`). Defines `requireObject`, `requireArray`, `requireValue` and 9 more. - What it does: Defines 12 functions or classes, including requireObject, requireArray, requireValue, authoritySummary, projectedPoint. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file reference-inverter-block.json. - Downstream impact: Used directly by 3 files: Authority Evidence (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/); V10 Development — Authority Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/); Studio Authority Test (solar-electrical-topology-analysis-engine-text-based). Reached from 132 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/. - Signatures: `export authoritySummary(bundle)`; `export authorityGeometry(bundle)`; `export renderAuthorityGeometry(documentRef, bundle)`; `export renderAuthorityBundle(documentRef, bundle)`; `export loadAuthorityBundle({ fetchImpl = globalThis.fetch, documentRef = globalThis.document } = {})`; `requireObject(value, name)`; `requireArray(value, name)`; `requireValue(value, name)`; `projectedPoint(value, name)`; `projectedRoute(value, kind, name)`; `setText(documentRef, id, value)`; `pointsAttribute(vertices)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### V10 Development — Authority Page - File: solar-electrical-topology-analysis-engine-text-based/v10-development/authority/index.html (HTML, 94 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/authority/index.html#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/ - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that selects mode (`selectMode`) and draws SVG graphics. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/. It selects mode (`selectMode`). - What it achieves (comment): Solar DC Topology Studio. It responds to click events. - What it does: It draws its content. Defines selectMode. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — V10 Development Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/). Reached from 125 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/authority/. - Signatures: `selectMode(mode)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Geometry Workbench - File: solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html (HTML, 85 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/geometry-workbench.html#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that draws geometry study and cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html. - What it achieves (comment): It routes length (`routeLength`) and is built from the fmt step (`fmt`) and the read step (`read`). Geometry-derived 24-string PV topology workbench with V7 overview and V8 detailed connection modes. It responds to input events. - What it does: It draws geometry study and cables. Defines 8 functions or classes, including $, fmt, read, seq, moduleTerm. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: JSON file v10-geometry-study.json; downloaded file v10-geometry-study.json; web page; SVG drawing. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html. - Signatures: `$(id)`; `fmt(v,d=2)`; `read()`; `seq(count)`; `moduleTerm(x,w,pol)`; `routeLength(points)`; `homeRoute(start,pol,inputIndex,p)`; `compute(p)`; `path(points)`; `overviewSvg(s)`; `detailSvg(s)`; `render()`; `activate(id,on)`; `tests()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [JSON file v10-geometry-study.json; downloaded file v10-geometry-study.json; web page; SVG drawing]; crs []; voltages [] - Edges: uses 4 estate files (link 4); used by 0; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — V10 Development Page - File: solar-electrical-topology-analysis-engine-text-based/v10-development/index.html (HTML, 21 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/index.html#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/ - Synopsis: A web page. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/. - What it achieves (comment): Solar DC Topology Studio — MVP Simulator. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 40 files: Inverter24 (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage Versions — GlobalGrid2050 Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/202608291526-globalgrid2050/); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html); and 36 more. Reached from 85 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 40; mentioned by 0 ### Electrical - File: solar-electrical-topology-analysis-engine-text-based/v10-development/src/electrical.mjs (JavaScript, 103 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/src/electrical.mjs#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f4 - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that works with require unit (`requireUnit`) and conductor resistance (`conductorResistance`) (units: Ω). - What it achieves (name): It is built from the require unit helper (`requireUnit`), the conductor resistance helper (`conductorResistance`) and the voltage drop helper (`voltageDrop`). Defines `requireUnit`, `conductorResistance`, `voltageDrop` and 3 more. - What it does: It calculates its inputs. Defines 6 functions or classes, including requireUnit, conductorResistance, voltageDrop, resistivePowerLoss, coldCorrectedModuleVoc. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Kernel (solar-electrical-topology-analysis-engine-text-based); Cross Language Test (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Restore Points — 2026 07 29 Before 24 String V10 Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/). - Signatures: `export conductorResistance({ resistancePerMetre, length, circuitFactor = 1, id = "conductorResistance" })`; `export voltageDrop({ current, resistance, id = "voltageDrop" })`; `export resistivePowerLoss({ current, resistance, id = "powerLoss" })`; `export coldCorrectedModuleVoc({ vocStc, betaPercentPerKelvin, minimumCellTemperature, id = "moduleVocCold" })`; `export seriesStringVoltage({ moduleVoltage, moduleCount, id = "stringVoltage" })`; `requireUnit(q, unit, name)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Kernel - File: solar-electrical-topology-analysis-engine-text-based/v10-development/src/kernel.mjs (JavaScript, 133 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/src/kernel.mjs#L1-L133 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f5 - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that works with require object (`requireObject`) (units: Ω). It is built from the require object helper (`requireObject`). - What it achieves (name): Defines `requireObject` and `runKernel`. - What it does: Defines requireObject, runKernel. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Restore Points — 2026 07 29 Before 24 String V10 Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/); Kernel Test (solar-electrical-topology-analysis-engine-text-based). - Signatures: `export runKernel(document)`; `requireObject(value, name)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Quantity - File: solar-electrical-topology-analysis-engine-text-based/v10-development/src/quantity.mjs (JavaScript, 95 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/src/quantity.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f6 - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that normalises interval (`normaliseInterval`) (units: Ω). - What it achieves (name): It normalises interval (`normaliseInterval`) and is built from the assert finite helper (`assertFinite`) and the weakest provenance helper (`weakestProvenance`). Defines `assertFinite`, `normaliseInterval`, `quantity` and 3 more. - What it does: It calculates its inputs. Defines 6 functions or classes, including assertFinite, normaliseInterval, quantity, weakestProvenance, intervalBounds. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: Electrical (solar-electrical-topology-analysis-engine-text-based); Kernel (solar-electrical-topology-analysis-engine-text-based); Cross Language Test (solar-electrical-topology-analysis-engine-text-based); Kernel Test (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Restore Points — 2026 07 29 Before 24 String V10 Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/). - Signatures: `export quantity({ id, value, unit, provenance, uncertainty = { kind: "none" }, source = null, evidenceStatus = "unverified", })`; `export weakestProvenance(inputs)`; `export intervalBounds(q)`; `export deriveQuantity({ id, value, unit, inputs, equationId, uncertainty, evidenceStatus = "candidate" })`; `assertFinite(value, name)`; `normaliseInterval(value, uncertainty)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Topology - File: solar-electrical-topology-analysis-engine-text-based/v10-development/src/topology.mjs (JavaScript, 152 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/src/topology.mjs#L1-L152 - Page: https://code.globalgrid2050.com/explore-code/s/0246.html#f7 - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that validates custom order (`validateCustomOrder`), derives ordered segments (`deriveOrderedSegments`) and calculates planar distances. - What it achieves (name): It validates custom order (`validateCustomOrder`), derives ordered segments (`deriveOrderedSegments`) and computes topology geometry (`computeTopologyGeometry`). Defines `assertPositiveInteger`, `assertFiniteNonNegative`, `sequentialOrder` and 6 more. - What it does: It calculates its inputs. Defines 9 functions or classes, including assertPositiveInteger, assertFiniteNonNegative, sequentialOrder, mirroredSequentialOrder, canonicalLeapfrogOrder. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Kernel (solar-electrical-topology-analysis-engine-text-based); Topology Test (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Restore Points — 2026 07 29 Before 24 String V10 Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/). - Signatures: `export sequentialOrder(moduleCount)`; `export mirroredSequentialOrder(moduleCount)`; `export canonicalLeapfrogOrder(moduleCount)`; `export validateCustomOrder(order, moduleCount)`; `export linearModuleCoordinates(moduleCount, pitchMetres, originMetres = 0)`; `export deriveOrderedSegments(order, coordinates)`; `export computeTopologyGeometry({ moduleCount, pitchMetres, topology, customOrder, originMetres = 0, })`; `assertPositiveInteger(value, name)`; `assertFiniteNonNegative(value, name)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Cross Language Test - File: solar-electrical-topology-analysis-engine-text-based/v10-development/tests/cross-language.test.mjs (JavaScript, 59 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/tests/cross-language.test.mjs#L1-L59 - Page: https://code.globalgrid2050.com/explore-code/s/0247.html#f1 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Electrical and Quantity. - What it achieves (name): Defines `close`. - What it does: It tests its inputs. Defines close. Uses libraries node:assert/strict, node:fs, node:test, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file steady_state_cross_language_v1.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `close(actual, expected, tolerance = 1e-12)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file steady_state_cross_language_v1.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Kernel Test - File: solar-electrical-topology-analysis-engine-text-based/v10-development/tests/kernel.test.mjs (JavaScript, 85 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/tests/kernel.test.mjs#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0247.html#f2 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Kernel and Quantity. It is built from the close to helper (`closeTo`). - What it achieves (name): Defines `closeTo`. - What it does: It tests its inputs. Defines closeTo. Uses libraries node:assert/strict, node:test. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `closeTo(actual, expected, tolerance = 1e-9)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Studio Authority Evidence Test - File: solar-electrical-topology-analysis-engine-text-based/v10-development/tests/studio-authority-evidence.test.mjs (JavaScript, 118 lines) · role test · stage output - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/tests/studio-authority-evidence.test.mjs#L1-L118 - Page: https://code.globalgrid2050.com/explore-code/s/0247.html#f3 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Authority Evidence. It is built from the fake document helper (`fakeDocument`). - What it achieves (name): Defines `fakeDocument` and `testEvidenceProjection`. - What it does: It tests its inputs. Defines fakeDocument, testEvidenceProjection. Uses libraries node:assert/strict, node:fs, node:url, node:path. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file reference-inverter-block.json. - Downstream impact: Used directly by 1 file: Run Microbuild (solar-electrical-topology-analysis-engine-text-based). Reached from 5 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based). - Signatures: `fakeDocument()`; `getElementById(id)`; `testEvidenceProjection()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Studio Authority Test - File: solar-electrical-topology-analysis-engine-text-based/v10-development/tests/studio-authority.test.mjs (JavaScript, 215 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/tests/studio-authority.test.mjs#L1-L215 - Page: https://code.globalgrid2050.com/explore-code/s/0247.html#f4 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Authority View. - What it achieves (name): It is built from the fake node class (`FakeNode`), the fake document helper (`fakeDocument`) and the expected route count helper (`expectedRouteCount`). Defines `testModeSeparation`, `FakeNode`, `fakeDocument` and 3 more. Its code works with 352 kVA. - What it does: It tests its inputs. Defines 6 functions or classes, including testModeSeparation, FakeNode, fakeDocument, testBundleProjection, expectedRouteCount. Uses libraries node:assert/strict, node:fs, node:url, node:path. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file reference-inverter-block.json; command-line arguments. - Downstream impact: Used directly by 1 file: Run Microbuild (solar-electrical-topology-analysis-engine-text-based). Reached from 5 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test Microbuild Runner (solar-electrical-topology-analysis-engine-text-based). - Signatures: `testModeSeparation()`; `class FakeNode`; `constructor(id = '')`; `setAttribute(name, value)`; `appendChild(child)`; `replaceChildren(...children)`; `fakeDocument()`; `getElementById(id)`; `createElementNS(_namespace, tagName)`; `testBundleProjection()`; `expectedRouteCount()`; `testGeometryProjection()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file reference-inverter-block.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Topology Test - File: solar-electrical-topology-analysis-engine-text-based/v10-development/tests/topology.test.mjs (JavaScript, 73 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v10-development/tests/topology.test.mjs#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0247.html#f5 - Synopsis: A test in the tests folder of Solar Electrical Topology Analysis Engine Text Based that checks Topology. It is built from the close to helper (`closeTo`). - What it achieves (name): Defines `closeTo`. - What it does: It tests its inputs. Defines closeTo. Uses libraries node:assert/strict, node:test. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `closeTo(actual, expected, tolerance = 1e-9)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### V6 Leapfrog - File: solar-electrical-topology-analysis-engine-text-based/v6-leapfrog.js (JavaScript, 128 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v6-leapfrog.js#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0247.html#f6 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ - Synopsis: A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that draws module row (`drawModuleRow`) and impact (`drawImpact`), covering cables. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - What it achieves (name): It draws module row (`drawModuleRow`) and draws impact (`drawImpact`). Defines `cable`, `drawModuleRow`, `drawImpact` and 1 more. It responds to input and resize events. - What it does: It draws cables. Defines cable, drawModuleRow, drawImpact, redraw. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: Out: canvas drawing. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. - Signatures: `cable(ctx,points,width=4)`; `drawModuleRow(ctx,y,title,leap,m)`; `pitch(rowRight-rowX)`; `drawImpact()`; `redraw()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### V7 Development — Feed I Page - File: solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/index.html (HTML, 108 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v7-development/feed-i/index.html#L1-L108 - Page: https://code.globalgrid2050.com/explore-code/s/0248.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/ - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that reads inputs for length, csa and spacing (units: Ω). Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/. - What it achieves (comment): It is built from the fmt step (`fmt`), the row step (`row`) and the calculate step (`calculate`). V7 FEED I Electromagnetic Workbench. It responds to input events. - What it does: It draws its content. Defines el, fmt, row, calculate. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Geometry Workbench (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html); Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html). Reached from 125 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/. - Signatures: `el(id)`; `fmt(v,u,d=3)`; `row(a,b,c='')`; `calculate()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (link 2); used by 3; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — V7 Development Page - File: solar-electrical-topology-analysis-engine-text-based/v7-development/index.html (HTML, 147 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v7-development/index.html#L1-L147 - Page: https://code.globalgrid2050.com/explore-code/s/0248.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/ - Synopsis: A web page that draws solar DC topology and cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/. It is built from the fmt step (`fmt`), the bands step (`bands`) and the acosh step (`acosh`). - What it achieves (comment): Independent V7 solar DC topology workbench with sequential and leapfrog wiring, geometry-derived inverter distances and electrical comparison. It responds to input, wheel and pointerdown events. - What it does: It draws solar DC topology and cables. Defines 20 functions or classes, including $, fmt, bands, acosh, rTemp. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: JSON file solar-dc-topology-v7.json; downloaded file solar-dc-topology-v7.json; web page; canvas drawing. - Downstream impact: Used directly by 40 files: V7 Development — Feed I Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage Versions — GlobalGrid2050 Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/202608291526-globalgrid2050/); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html); and 36 more. Reached from 89 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/. - Signatures: `$(id)`; `fmt(v,d=2)`; `bands(id)`; `acosh(x)`; `rTemp(r20,t)`; `twoWire(spacingMm,diameterMm,er)`; `inputs()`; `geometry(m)`; `route(s,m)`; `moduleCaps(m)`; `coldVoc(m)`; `breachTemp(m)`; `cmInductance(s,m,tw)`; `compute()`; `pairMppts(strings,limit)`; `bounds(d)`; `resize()`; `transform(d,w,h)`; `cable(ctx,a,b,t,width=1.3)`; `drawModules(ctx,s,m,t,selected)`; `drawLeapfrogInternal(ctx,s,m,t,width)`; `drawScene(d)`; `nearest(wx,wy,d)`; `comparisonCable(ctx,pts,w=4)`; `drawComparison(d)` (and 4 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [JSON file solar-dc-topology-v7.json; downloaded file solar-dc-topology-v7.json; web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 40; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/app.js (JavaScript, 1260 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/app.js#L1-L1260 - Page: https://code.globalgrid2050.com/explore-code/s/0248.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/ - Synopsis: A JavaScript file that reads inputs (`readInputs`), sets input (`setInputValues`) and groups bands (`groupBands`) (units: Ω, kW), covering leapfrog cable comparison and cables. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - What it achieves (name): It sets text (`setText`), reads inputs (`readInputs`) and sets input (`setInputValues`). Defines `fmt`, `available`, `setText` and 36 more. It responds to click, input and change events. - What it does: It draws leapfrog cable comparison and cables. Defines 40 functions or classes, including $, fmt, available, setText, readInputs. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: Out: JSON file v8-leapfrog-cable-comparison.json; downloaded file v8-leapfrog-cable-comparison.json. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/); V8 Tests Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 127 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - Signatures: `$(id)`; `fmt(value, decimals = 2)`; `available(value, suffix, decimals = 2)`; `setText(id, value)`; `readInputs()`; `setInputValues(values)`; `groupBands(strings)`; `renderFeasibilityBanner(study)`; `renderMetrics(study)`; `renderLeadScreen(study)`; `renderBandSchedule(study)`; `renderStringSchedule(study)`; `renderScenarios(raw)`; `svgPath(path, className, width, extra = '')`; `cablePath(path, width = 3, extra = '')`; `svgText(x, y, text, className = 'svg-label', size = 12)`; `buildSequentialSequence(count)`; `buildLeapfrogSequence(count)`; `sequenceConnections(sequence)`; `moduleGeometry(count, x0, y, moduleWidth, moduleHeight, gap)`; `terminalPoint(modules, moduleNumber, polarity)`; `moduleRowHtml(modules, moduleWidth, moduleHeight)`; `connectionArc(modules, connection, rowY, side, index)`; `externalCable(start, endX, endY, laneY)`; `drawInverter(x, y, height, negativeY, positiveY)` (and 15 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file v8-leapfrog-cable-comparison.json; downloaded file v8-leapfrog-cable-comparison.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Authority Reconciliation - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/authority-reconciliation.js (JavaScript, 294 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/authority-reconciliation.js#L1-L294 - Page: https://code.globalgrid2050.com/explore-code/s/0250.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that runs golden, renders browser and applies scope boundary, covering cables. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - What it achieves (name): It runs golden tests (`runGoldenTests`), renders browser (`renderBrowser`) and sets text (`setText`). Defines `buildAuthorityReconciliation`, `calculate`, `nearlyEqual` and 7 more. It responds to input, change and DOMContentLoaded events. - What it does: It draws cables. Defines 10 functions or classes, including buildAuthorityReconciliation, calculate, nearlyEqual, runGoldenTests, format. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: V8 Model Test (solar-electrical-topology-analysis-engine-text-based); Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/). Reached from 137 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - Signatures: `buildAuthorityReconciliation()`; `calculate(reference = BUILD_025_REFERENCE)`; `nearlyEqual(actual, expected, tolerance = 1e-9)`; `runGoldenTests()`; `format(value, decimals)`; `renderBrowser()`; `setText(id, text)`; `applyScopeBoundary()`; `applySummary()`; `applyAll()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/index.html (HTML, 722 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/index.html#L1-L722 - Page: https://code.globalgrid2050.com/explore-code/s/0251.html#f1 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/ - Synopsis: A web page that draws SVG graphics and reads inputs for modules per, module width and along row gap (units: mm², Ω). Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - What it achieves (comment): V8 field-installed external-cable comparison with Build 025 total-conductor reconciliation. - What it does: It draws cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 42 files: Geometry Workbench (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html); Inverter24 (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); and 38 more. Reached from 85 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 7 estate files (link 3, script-src 3, stylesheet 1); used by 42; mentioned by 0 ### Inverter24 - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html (HTML, 191 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/inverter24.html#L1-L191 - Page: https://code.globalgrid2050.com/explore-code/s/0252.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based that adds path (`addPath`), updates readout (`updateReadout`), applies view (`applyView`) and draws SVG graphics, covering cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html. - What it achieves (comment): It adds path (`addPath`), updates readout (`updateReadout`) and applies view (`applyView`). V8 geometry-faithful 24-string inverter topology drawing with deterministic terminal coordinates and no invented cable routes. It responds to click, pointerdown and pointermove events. - What it does: It draws cables. Defines 12 functions or classes, including el, sequence, moduleX, terminal, addPath. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html. - Signatures: `el(name,attrs={},text='')`; `sequence(n,mode)`; `moduleX(number)`; `terminal(number,polarity,y)`; `addPath(group,d,stroke,width=1.6,extra={})`; `stringFace(index)`; `inputLabel(index)`; `rowColour(index)`; `draw()`; `updateReadout()`; `applyView()`; `fit()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 4 estate files (link 3, stylesheet 1); used by 0; mentioned by 0 ### Model - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/model.js (JavaScript, 749 lines) · role electrical · stage transform · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/model.js#L1-L749 - Page: https://code.globalgrid2050.com/explore-code/s/0252.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that parses bands (`parseBands`), builds strings (`buildStrings`) and sums strings (`sumStrings`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - What it achieves (name): It parses number list (`parseNumberList`), parses bands (`parseBands`) and builds strings (`buildStrings`). Defines `buildModel`, `asNumber`, `atLeast` and 15 more. - What it does: It calculates its inputs. Defines 18 functions or classes, including buildModel, asNumber, atLeast, parseNumberList, parseBands. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 4 files: V8 Model Test (solar-electrical-topology-analysis-engine-text-based); Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html); V8 Tests Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 135 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - Signatures: `buildModel()`; `asNumber(value, fallback)`; `atLeast(value, minimum, fallback)`; `parseNumberList(value, fallback)`; `parseBands(value, fallback)`; `normalise(raw = {})`; `modulePitchM(input)`; `rowSpanM(input)`; `cableResistancePerM(input)`; `sequentialPolarities(face, nearRouteM, farRouteM, convention)`; `leadFeasibility(raw = {})`; `buildStrings(raw = {}, distanceOverrideM)`; `sumStrings(strings)`; `calculate(raw = {}, distanceOverrideM)`; `scenarioStudies(raw = {})`; `nearlyEqual(actual, expected, tolerance = 1e-9)`; `testResult(name, pass, actual, expected)`; `runGoldenTests()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Style Sheet - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/styles.css (CSS, 740 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/styles.css#L1-L740 - Page: https://code.globalgrid2050.com/explore-code/s/0253.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/ - Synopsis: A style sheet covering cables. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 3 files: Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/); Inverter24 (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html). Reached from 125 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Tests - File: solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html (HTML, 84 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v8-leapfrog/tests.html#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0254.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html - Synopsis: A web page in Solar Electrical Topology Analysis Engine Text Based. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html. - What it achieves (comment): V8 Leapfrog Golden Tests. - What it does: It tests its inputs. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/). Reached from 126 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 5 estate files (link 3, stylesheet 1, script-src 1); used by 1; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — V9 Sandbox - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/app.js (JavaScript, 182 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/app.js#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0254.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/ - Synopsis: A JavaScript module that draws solar DC computation report and solar DC report, using IEC 60228. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/. - What it achieves (name): It collects input (`collectInput`), downloads JSON (`downloadJson`) and renders tests (`renderTests`). Defines `byId`, `value`, `numeric` and 8 more. It responds to input, change and click events. - What it does: It draws solar DC computation report and solar DC report. Defines 11 functions or classes, including byId, value, numeric, collectInput, downloadJson. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file v9-solar-dc-computation-report.json; JSON file v9-solar-dc-test-report.json. - Downstream impact: Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — V9 Sandbox Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/). Reached from 124 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/. - Signatures: `byId(id)`; `value(id)`; `numeric(id)`; `collectInput()`; `downloadJson(filename, data)`; `renderTests(report)`; `renderWarnings(project)`; `renderString(project)`; `renderProject(project, tests)`; `applyLegacyResistanceBoundary(project)`; `rebuild()` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file v9-solar-dc-computation-report.json; JSON file v9-solar-dc-test-report.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Engine - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/debug/engine.js (JavaScript, 590 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/debug/engine.js#L1-L590 - Page: https://code.globalgrid2050.com/explore-code/s/0255.html#f1 - Synopsis: A JavaScript module in the debug folder of Solar Electrical Topology Analysis Engine Text Based that parses integer (`parseIntegerList`) and builds modules (`buildModules`) and segments (`buildStringSegments`) (units: mm², Ω). - What it achieves (readme): It parses integer list (`parseIntegerList`), builds modules (`buildModules`) and builds string segments (`buildStringSegments`). The README says: Pure computation functions and canonical project report. - What it does: It calculates its inputs. Defines 13 functions or classes, including EngineInputError, integer, finite, parseIntegerList, topologyOrder. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "`engine.js` — pure computation functions and canonical project report." - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — V9 Sandbox (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/); Tests (solar-electrical-topology-analysis-engine-text-based). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). - Signatures: `export class EngineInputError`; `export parseIntegerList(value)`; `export topologyOrder(moduleCount, topology, customOrder = [])`; `export allocateMppts({ mpptCount, defaultInputsPerMppt, allocationOverride = [], })`; `export correctedVoc({ vocStc, vocTempCoefficientPercentPerC, cellTemperatureC, })`; `export conductorResistanceOhm({ lengthM, csaMm2, conductorTemperatureC = 20, })`; `export computeProject(rawInput = {})`; `constructor(message, field)`; `integer(value, field, minimum, maximum)`; `invalid(!Number.isInteger(parsed) || parsed < minimum || parsed > maximum)`; `message(`${field} must be an integer from ${minimum} to ${maximum}.`)`; `finite(value, field, minimum = -Infinity)`; `resistivity(COPPER_RESISTIVITY_20C_OHM_MM2_PER_M * ( 1 + COPPER_TEMP_COEFFICIENT_PER_C * (temperature - 20) ))`; `buildModules(moduleCount, modulePitchM)`; `buildStringSegments({ stringId, modules, order, routeOneWayM, positiveLeadM, negativeLeadM, externalCableCsaMm2, factoryLeadCsaMm2, })`; `sumSegments(segments, type, field)`; `buildString({ stringNumber, mpptNumber, inputNumber, modulesPerString, modulePitchM, order, input, operatingCurrentA, })` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Run Tests - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/debug/run-tests.mjs (JavaScript, 8 lines) · role test · stage unknown - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/debug/run-tests.mjs#L1-L8 - Page: https://code.globalgrid2050.com/explore-code/s/0255.html#f2 - Synopsis: A JavaScript module in the debug folder of Solar Electrical Topology Analysis Engine Text Based. - What it does: It tests its inputs. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Run V10 Validation (solar-electrical-topology-analysis-engine-text-based). Reached from 8 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Tests - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/debug/tests.js (JavaScript, 162 lines) · role test · stage transform - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/debug/tests.js#L1-L162 - Page: https://code.globalgrid2050.com/explore-code/s/0256.html#f1 - Synopsis: A JavaScript module in the debug folder of Solar Electrical Topology Analysis Engine Text Based. - What it achieves (readme): It runs debug tests (`runDebugTests`) and is built from the close step (`close`) and the assert step (`assert`). The README says: Deterministic unit checks and Claude-readable review questions. - What it does: It tests its inputs. Defines close, test, assert, runDebugTests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 1500V. README: "`tests.js` — deterministic unit checks and Claude-readable review questions." - Inputs & outputs: Voltage levels named: 1500V. - Downstream impact: Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — V9 Sandbox (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/); Run Tests (solar-electrical-topology-analysis-engine-text-based). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). - Signatures: `export runDebugTests()`; `close(actual, expected, tolerance = 1e-9)`; `test(name, fn)`; `assert(condition, message)`; `turningSequenceIsCorrect(order[14] === 29 && order[15] === 30 && order.at(-1) === 2)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [1500V] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Solar Electrical Topology Analysis Engine Text Based — V9 Sandbox Page - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/index.html (HTML, 73 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/index.html#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0256.html#f2 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/ - Synopsis: A web page that reads inputs for MPPT count, default inputs per MPPT and allocation override (units: mm², °C), using IEC 60228. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/. - What it achieves (comment): Historical computation-first solar PV DC string, MPPT, segment and voltage debug engine with explicit ideal-bulk resistance limits. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "The public `v9-sandbox/index.html` entry point is live and temporarily reuses the proven B9 renderer and styles so the browser remains operational while the code is extracted safely." - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 39 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage Versions — GlobalGrid2050 Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/202608291526-globalgrid2050/); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html); Homepage V003 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v003.html); and 35 more. Reached from 85 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (script-src 1); used by 39; mentioned by 0 ### Schema - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/schema.js (JavaScript, 117 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/schema.js#L1-L117 - Page: https://code.globalgrid2050.com/explore-code/s/0256.html#f3 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that creates empty scene (`createEmptyScene`) and validates stable (`validateStableId`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/. - What it achieves (readme): It creates empty scene (`createEmptyScene`) and validates stable id (`validateStableId`). The README says: Typed canonical stores, evidence classes, object types and segment types. - What it does: It calculates its inputs. Defines createEmptyScene, validateStableId, assertSceneShape. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "`schema.js`: typed canonical stores, evidence classes, object types and segment types." - Signatures: `export createEmptyScene()`; `export validateStableId(id)`; `export assertSceneShape(scene)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### State - File: solar-electrical-topology-analysis-engine-text-based/v9-sandbox/state.js (JavaScript, 100 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/solar-electrical-topology-analysis-engine-text-based/blob/d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9/v9-sandbox/state.js#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0256.html#f4 - Published at: https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/ - Synopsis: A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that works with stable serialise (`stableSerialise`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v9-sandbox/. - What it achieves (readme): It creates state store (`createStateStore`) and is built from the clone step (`clone`) and the stable serialise helper (`stableSerialise`). The README says: Deterministic state, bounded history, undo, redo and stable serialisation. - What it does: It calculates its inputs. Defines clone, stableSerialise, createStateStore, notify, commit. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "`state.js`: deterministic state, bounded history, undo, redo and stable serialisation." - Signatures: `export stableSerialise(value)`; `export createStateStore(initialScene, maximumHistory = 100)`; `clone(value)`; `notify()`; `commit(nextScene)`; `getScene()`; `getHistoryStatus()`; `update(mutator)`; `undo()`; `redo()`; `subscribe(listener)`; `serialise()` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Contract - File: star-solar-star/create/contract.js (JavaScript, 43 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/create/contract.js#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0256.html#f5 - Synopsis: A JavaScript module in the create folder of Star Solar Star that prepares definition (`prepareDefinition`), using SHA-256. - What it achieves (comment): It prepares definition (`prepareDefinition`) and is built from the valid string helper (`validString`) and the canonical step (`canonical`). RFC 8785 JSON Canonicalization Scheme with an application safe-integer domain. - What it does: It calculates its inputs. Defines validString, canonical, observationBytes, prepareDefinition. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: Star Solar Star — Create Page (star-solar-star). - Signatures: `export canonical(value)`; `export observationBytes(observations)`; `export prepareDefinition(value)`; `validString(value)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Star Solar Star — Create Page - File: star-solar-star/create/index.html (HTML, 53 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/create/index.html#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0256.html#f6 - Synopsis: A web page that reads inputs for editor, using ISO 3166-1 and SHA-256. - What it achieves (name): Its name says it creates page. It responds to click events. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - Signatures: `prepare()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Build Sun - File: star-solar-star/scripts/build_sun.py (Python, 500 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/scripts/build_sun.py#L1-L500 - Page: https://code.globalgrid2050.com/explore-code/s/0257.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Star Solar Star that fetches today, history, UK solar and voices, using SHA-256 from the GlobalGrid2050 repository. - What it achieves (comment): It writes JSON (`write_json`), fetches bytes (`fetch_bytes`) and fetches JSON (`fetch_json`). Build the Sun Star's committed public-data payloads. It accepts `--globalgrid-root`, `--globalgrid-commit` and `--output`. - What it does: It fetches today, history, UK solar and voices. Defines 27 functions or classes, including utc_now, canonical_json, sha256, write_json, SourceLedger. Uses libraries __future__, argparse, datetime, hashlib, html. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: globalgrid2050 data; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file today.json; JSON file history.json; JSON file uk-solar.json; JSON file voices.json; JSON file press.json; JSON file provenance.json. - Downstream impact: Used directly by 4 files: Publish Main (star-solar-star); Validate Sun (star-solar-star); Build Sun Daily Workflow (star-solar-star); Solar Integrity Workflow (star-solar-star). Reached from 4 other entry points, including Publication CI Workflow (star-solar-star); Publish Approved Star Workflow (star-solar-star); Test Integrity (star-solar-star). - Signatures: `utc_now()`; `canonical_json(value: Any)`; `sha256(data: bytes)`; `write_json(path: Path, value: Any)`; `class SourceLedger`; `__init__(self, fetched_utc: str)`; `add(self, *, name: str, url: str, data: bytes, kind: str, **extra: Any)`; `fetch_bytes(url: str, timeout: int = 45)`; `fetch_json(url: str, ledger: SourceLedger, name: str)`; `read_pinned(root: Path, commit: str, key: str, ledger: SourceLedger)`; `require_checkout_commit(root: Path, expected: str)`; `pv_url(as_of: dt.date, history_days: int)`; `interval_end(timestamp: Any)`; `finite_power(value: Any)`; `summarize_pv_day(date_text: str, day_rows: list[dict[str, Any]])`; `parse_pvlive(payload: dict[str, Any], as_of: dt.date)`; `load_geometry(root: Path, as_of: dt.date)`; `decode_dictionary(dictionaries: dict[str, Any], field: str, value: Any)`; `build_uk_solar(raw: bytes, release: str = "202609050309")`; `build_voices(markdown: str)`; `parse_markdown_scan(markdown: str)`; `robots_allows(robots_raw: bytes, robots_url: str, target_url: str)`; `child_text(item: ET.Element, name: str)`; `parse_feed(raw: bytes, source_name: str, feed_url: str, limit: int = 20)`; `build_press(ledger: SourceLedger)` (and 2 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: globalgrid2050 data; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file today.json; JSON file history.json; JSON file uk-solar.json; JSON file voices.json; JSON file press.json; JSON file provenance.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Issue to Star - File: star-solar-star/scripts/issue_to_star.py (Python, 40 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/scripts/issue_to_star.py#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/0257.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Star Solar Star that extracts an approved star definition from an issue and write its stable path. - What it achieves (name): Defines `extract` and `publish`. It accepts `--body-file` and `--output-dir`. - What it does: It loads data. Defines extract, publish. Uses libraries __future__, argparse, json, re, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 2 files: Publish Main (star-solar-star); Test Publication (star-solar-star). Reached from 3 other entry points, including Build Sun Daily Workflow (star-solar-star); Publication CI Workflow (star-solar-star); Publish Approved Star Workflow (star-solar-star). - Signatures: `extract(body: str)`; `publish(star: dict, output_dir: Path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of star-solar-star/testcode/202609150040/issue_to_star.py) · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Publish Main - File: star-solar-star/scripts/publish_main.py (Python, 92 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/scripts/publish_main.py#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0257.html#f3 - Synopsis: A Python command-line tool in the scripts folder of Star Solar Star that publishes regenerated, validated outputs with bounded non-fast-forward recovery. - What it achieves (name): Its name says it publishes main. Defines `run`, `publish` and `regenerate`. It accepts `--as-of`, `--globalgrid-root` and `--globalgrid-commit`. - What it does: Defines run, publish, main, regenerate. Uses libraries __future__, argparse, json, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 3 files: Test Publication (star-solar-star); Build Sun Daily Workflow (star-solar-star); Publish Approved Star Workflow (star-solar-star). Reached from 1 other entry point, including Publication CI Workflow (star-solar-star). - Signatures: `run(*args: str, check: bool = True)`; `publish(regenerate, message: str, attempts: int = 3)`; `main()`; `regenerate()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 4 estate files (script-call 4); used by 3; mentioned by 0 ### Star Contract - File: star-solar-star/scripts/star_contract.py (Python, 182 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/scripts/star_contract.py#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0258.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Star Solar Star that reads solar, using ISO 3166-1 and SHA-256. - What it achieves (comment): It writes JSON (`write_json`) and is built from the canonical bytes helper (`canonical_bytes`) and the observation bytes helper (`observation_bytes`). Dependency-free validator and seed compiler for public solar star definitions. - What it does: It loads solar. Defines 9 functions or classes, including canonical_bytes, _jcs_domain, observation_bytes, seed_for, _require. Uses libraries __future__, argparse, datetime, hashlib, ipaddress. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 3 files: Issue to Star (star-solar-star); Publish Main (star-solar-star); Country Star CI Workflow (star-solar-star). Reached from 4 other entry points, including Build Sun Daily Workflow (star-solar-star); Publication CI Workflow (star-solar-star); Publish Approved Star Workflow (star-solar-star). - Signatures: `canonical_bytes(value: Any)`; `_jcs_domain(value: Any)`; `observation_bytes(observations: list[dict[str, Any]], canonicalization: str = CANONICALIZATION)`; `seed_for(observations: list[dict[str, Any]], canonicalization: str = CANONICALIZATION)`; `_require(condition: bool, message: str)`; `_date_like(value: Any, label: str)`; `_public_https_url(value: Any, label: str)`; `validate(star: dict[str, Any])`; `write_json(path: Path, value: Any)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Validate Sun - File: star-solar-star/scripts/validate_sun.py (Python, 117 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/scripts/validate_sun.py#L1-L117 - Page: https://code.globalgrid2050.com/explore-code/s/0258.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Star Solar Star that reads today, history, UK solar and voices, using SHA-256. - What it achieves (comment): It is built from the load step (`load`) and the validate step (`validate`). Fail-closed validation for the six committed Sun Star payloads. - What it does: It loads today, history, UK solar and voices. Defines load, validate. Uses libraries __future__, argparse, datetime, json, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file today.json; JSON file history.json; JSON file uk-solar.json; JSON file voices.json; JSON file press.json; JSON file provenance.json; command-line arguments. - Downstream impact: Used directly by 4 files: Publish Main (star-solar-star); Test Integrity (star-solar-star); Build Sun Daily Workflow (star-solar-star); Solar Integrity Workflow (star-solar-star). Reached from 3 other entry points, including Publication CI Workflow (star-solar-star); Publish Approved Star Workflow (star-solar-star); Test Publication (star-solar-star). - Signatures: `load(root: Path, name: str)`; `validate(root: Path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file today.json; JSON file history.json; JSON file uk-solar.json; JSON file voices.json; JSON file press.json; JSON file provenance.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Verify Pages - File: star-solar-star/scripts/verify_pages.py (Python, 114 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/scripts/verify_pages.py#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0258.html#f3 - Synopsis: A Python command-line tool in the scripts folder of Star Solar Star that verifies build (`verify_build`) and served (`verify_served`), using SHA-256. - What it achieves (comment): It is built from the API step (`api`), the git step (`git`) and the committed payloads helper (`committed_payloads`). Request a Pages build and prove its committed publication is served byte-for-byte. It accepts `--publication`, `--result` and `--timeout`. - What it does: It fetches data. Defines 6 functions or classes, including api, git, committed_payloads, verify_build, verify_served. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 3 files: Test Publication (star-solar-star); Build Sun Daily Workflow (star-solar-star); Publish Approved Star Workflow (star-solar-star). Reached from 1 other entry point, including Publication CI Workflow (star-solar-star). - Signatures: `api(endpoint: str, method: str = "GET")`; `git(*args: str)`; `committed_payloads(commit: str, paths: list[str])`; `verify_build(build: dict, published: str, expected: dict[str, bytes])`; `verify_served(base_url: str, expected: dict[str, bytes], commit: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Build Sun - File: star-solar-star/testcode/202609150030/build_sun.py (Python, 467 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150030/build_sun.py#L1-L467 - Page: https://code.globalgrid2050.com/explore-code/s/0259.html#f1 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that fetches today, history, UK solar and voices, using SHA-256 from the GlobalGrid2050 repository. - What it achieves (comment): It writes JSON (`write_json`), fetches bytes (`fetch_bytes`) and fetches JSON (`fetch_json`). Build the Sun Star's committed public-data payloads. It accepts `--globalgrid-root`, `--globalgrid-commit` and `--output`. - What it does: It fetches today, history, UK solar and voices. Defines 24 functions or classes, including utc_now, canonical_json, sha256, write_json, SourceLedger. Uses libraries __future__, argparse, datetime, hashlib, html. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: data source: globalgrid2050 data; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file today.json; JSON file history.json; JSON file uk-solar.json; JSON file voices.json; JSON file press.json; JSON file provenance.json. - Downstream impact: Used directly by 2 files: Test Integrity (star-solar-star); Sun Star Candidate Workflow (star-solar-star). Reached from 1 other entry point, including Solar Integrity Workflow (star-solar-star). - Signatures: `utc_now()`; `canonical_json(value: Any)`; `sha256(data: bytes)`; `write_json(path: Path, value: Any)`; `class SourceLedger`; `__init__(self, fetched_utc: str)`; `add(self, *, name: str, url: str, data: bytes, kind: str, **extra: Any)`; `fetch_bytes(url: str, timeout: int = 45)`; `fetch_json(url: str, ledger: SourceLedger, name: str)`; `read_pinned(root: Path, commit: str, key: str, ledger: SourceLedger)`; `require_checkout_commit(root: Path, expected: str)`; `pv_url(as_of: dt.date, history_days: int)`; `parse_pvlive(payload: dict[str, Any], as_of: dt.date)`; `load_geometry(root: Path, as_of: dt.date)`; `decode_dictionary(dictionaries: dict[str, Any], field: str, value: Any)`; `build_uk_solar(raw: bytes, release: str = "202609050309")`; `build_voices(markdown: str)`; `parse_markdown_scan(markdown: str)`; `robots_allows(robots_raw: bytes, robots_url: str, target_url: str)`; `child_text(item: ET.Element, name: str)`; `parse_feed(raw: bytes, source_name: str, feed_url: str, limit: int = 20)`; `build_press(ledger: SourceLedger)`; `build(args: argparse.Namespace)`; `parse_args(argv: list[str] | None = None)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: globalgrid2050 data; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file today.json; JSON file history.json; JSON file uk-solar.json; JSON file voices.json; JSON file press.json; JSON file provenance.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Test Build Sun - File: star-solar-star/testcode/202609150030/test_build_sun.py (Python, 99 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150030/test_build_sun.py#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0259.html#f2 - Synopsis: A test in the testcode folder of Star Solar Star covering wind, using SHA-256. It is built from the sun builder tests class (`SunBuilderTests`). - What it achieves (name): Defines `SunBuilderTests`, `test_pvlive_seed_is_order_independent_and_full_sha256`, `test_pipeline_keeps_missing_geometry_explicit` and 6 more. - What it does: It tests wind. Defines 9 functions or classes, including SunBuilderTests, test_pvlive_seed_is_order_independent_and_full_sha256, test_pipeline_keeps_missing_geometry_explicit, test_markdown_tables_remain_source_strings, test_feed_retains_metadata_only. Uses libraries datetime, importlib.util, json, tempfile, unittest. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: wind. - Inputs & outputs: In: JSON file x.json. - Downstream impact: Used directly by 1 file: Sun Star Candidate Workflow (star-solar-star). - Signatures: `class SunBuilderTests`; `test_pvlive_seed_is_order_independent_and_full_sha256(self)`; `test_pipeline_keeps_missing_geometry_explicit(self)`; `test_markdown_tables_remain_source_strings(self)`; `test_feed_retains_metadata_only(self)`; `test_robot_disallow_is_fail_closed(self)`; `test_writer_uses_stable_json_format(self)`; `test_lane_merge_fails_closed_on_divergence(self)`; `test_checkout_commit_mismatch_fails_closed(self)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file x.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Global Star - File: star-solar-star/testcode/202609150040/build_global_star.py (Python, 211 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/build_global_star.py#L1-L211 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f1 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that fetches iea audited statements, solar and wind, using SHA-256 from the GlobalGrid2050 repository. - What it achieves (comment): It is built from the fetch step (`fetch`), the digest step (`digest`) and the visible text helper (`visible_text`). Build a global solar definition from dated IRENA/IEA public sources. Its code works with 600 GW and 800 GW. It accepts `--output`, `--accessed-utc` and `--allow-audited-iea-fixture-on-403`. - What it does: It fetches iea audited statements, solar and wind. Defines 7 functions or classes, including fetch, digest, visible_text, source, iea_payload. Uses libraries __future__, argparse, datetime, hashlib, html. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar, wind. - Inputs & outputs: In: data source: globalgrid2050 data; JSON file iea-audited-statements.json; command-line arguments. - Downstream impact: Used directly by 3 files: Test Country Star (star-solar-star); Country Star Candidate Workflow (star-solar-star); Country Star CI Workflow (star-solar-star). - Signatures: `fetch(url: str)`; `digest(raw: bytes)`; `visible_text(raw: bytes)`; `source(source_id: str, publisher: str, title: str, url: str, published: str, accessed: str, raw: bytes, **extra)`; `iea_payload(source_id: str, url: str, allow_audited_fixture_on_403: bool)`; `iea_source(source_id: str, title: str, url: str, accessed: str, raw: bytes | None, evidence: dict | None)`; `build(accessed_utc: str | None = None, allow_audited_fixture_on_403: bool = False)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: globalgrid2050 data; JSON file iea-audited-statements.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Testcode — Create Page - File: star-solar-star/testcode/202609150040/create/index.html (HTML, 53 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/create/index.html#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f2 - Synopsis: A web page in Star Solar Star that reads inputs for editor, using ISO 3166-1 and SHA-256. - What it achieves (name): Its name says it creates page. Defines `canonical`, `hex` and `seed`. It responds to click events. - What it does: It draws its content. Defines canonical, hex, seed. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - Signatures: `canonical(value)`; `hex(bytes)`; `seed(observations)`; `prepare()` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Issue to Star - File: star-solar-star/testcode/202609150040/issue_to_star.py (Python, 38 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/issue_to_star.py#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f3 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that extracts an approved star definition from an issue and write its stable path. - What it achieves (readme): It is built from the extract step (`extract`) and the publish step (`publish`). The README says: `issue_to_star.py` is the fail-closed conversion step after approval. It accepts `--body-file` and `--output-dir`. - What it does: It loads data. Defines extract, publish. Uses libraries __future__, argparse, json, re, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "`issue_to_star.py` is the fail-closed conversion step after approval." - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 2 files: Test Country Star (star-solar-star); Test Integrity (star-solar-star). Reached from 3 other entry points, including Country Star CI Workflow (star-solar-star); Country Star Candidate Workflow (star-solar-star); Solar Integrity Workflow (star-solar-star). - Signatures: `extract(body: str)`; `publish(star: dict, output_dir: Path)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Make Publication - File: star-solar-star/testcode/202609150040/make_publication.py (Python, 34 lines) · role other · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/make_publication.py#L1-L34 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f4 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star covering global solar star, iea audited statements and star schema, using SHA-256. - What it achieves (comment): Create a deterministic manifest for the candidate implementation. It writes `publication.json`. - What it does: Uses libraries __future__, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file global-solar.star.json; JSON file iea-audited-statements.json; JSON file star.schema.json; JSON file publication.json. - Downstream impact: Used directly by 3 files: Country Star Candidate Workflow (star-solar-star); Country Star CI Workflow (star-solar-star); Sun Star Candidate Workflow (star-solar-star). - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file global-solar.star.json; JSON file iea-audited-statements.json; JSON file star.schema.json; JSON file publication.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Merge Results - File: star-solar-star/testcode/202609150040/merge_results.py (Python, 42 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/merge_results.py#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f5 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that reads solar, using SHA-256. It is built from the load step (`load`). - What it achieves (comment): Fail closed unless local and GitHub lanes report identical stable facts. It accepts `--local`, `--ci` and `--output`. - What it does: It loads solar. Defines load. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar. README: "`write_result.py` reduces each lane to stable facts, and `merge_results.py` refuses promotion unless local and GitHub facts and code commits match exactly." - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Country Star CI Workflow (star-solar-star). - Signatures: `load(path: Path)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Star Contract - File: star-solar-star/testcode/202609150040/star_contract.py (Python, 156 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/star_contract.py#L1-L156 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f6 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that reads solar, using ISO 3166-1 and SHA-256. - What it achieves (comment): It writes JSON (`write_json`) and is built from the canonical bytes helper (`canonical_bytes`) and the seed for helper (`seed_for`). Dependency-free validator and seed compiler for public solar star definitions. - What it does: It loads solar. Defines 7 functions or classes, including canonical_bytes, seed_for, _require, _date_like, _public_https_url. Uses libraries __future__, argparse, datetime, hashlib, ipaddress. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 9 files: Build Global Star (star-solar-star); Issue to Star (star-solar-star); Make Publication (star-solar-star); Merge Results (star-solar-star); and 5 more. Reached from 4 other entry points, including Country Star CI Workflow (star-solar-star); Solar Integrity Workflow (star-solar-star); Sun Star Candidate Workflow (star-solar-star). - Signatures: `canonical_bytes(value: Any)`; `seed_for(observations: list[dict[str, Any]])`; `_require(condition: bool, message: str)`; `_date_like(value: Any, label: str)`; `_public_https_url(value: Any, label: str)`; `validate(star: dict[str, Any])`; `write_json(path: Path, value: Any)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 9; mentioned by 0 ### Test Country Star - File: star-solar-star/testcode/202609150040/test_country_star.py (Python, 102 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/test_country_star.py#L1-L102 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f7 - Synopsis: A test in the testcode folder of Star Solar Star that checks Issue to Star and Star Contract, using SHA-256. - What it achieves (name): It sets up class (`setUpClass`) and is built from the star contract tests class (`StarContractTests`). Defines `StarContractTests`, `setUpClass`, `test_global_record_validates` and 9 more. Its code works with 600 GW. - What it does: It tests its inputs. Defines 12 functions or classes, including StarContractTests, setUpClass, test_global_record_validates, test_observation_order_does_not_change_seed, test_modified_measurement_is_rejected_without_new_seed. Uses libraries __future__, copy, importlib.util, json, sys. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file global-solar.star.json. - Downstream impact: Used directly by 2 files: Country Star Candidate Workflow (star-solar-star); Country Star CI Workflow (star-solar-star). - Signatures: `class StarContractTests`; `setUpClass(cls)`; `test_global_record_validates(self)`; `test_observation_order_does_not_change_seed(self)`; `test_modified_measurement_is_rejected_without_new_seed(self)`; `test_private_work_language_is_rejected(self)`; `test_source_url_must_be_public_https_without_credentials_or_fragment(self)`; `test_existing_id_cannot_be_replaced_with_different_content(self)`; `test_text_outside_json_fence_is_never_parsed_as_code(self)`; `test_issue_parser_accepts_one_json_fence(self)`; `test_creator_is_mobile_and_deterministic(self)`; `test_iea_fixture_is_used_only_for_explicit_403_policy(self)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file global-solar.star.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Write Result - File: star-solar-star/testcode/202609150040/write_result.py (Python, 43 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150040/write_result.py#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0260.html#f8 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that reads solar, using SHA-256. It is built from the result for helper (`result_for`). - What it achieves (comment): Write the stable evidence used to compare independent execution lanes. It accepts `--star`, `--output` and `--lane`. - What it does: It loads solar. Defines result_for. Uses libraries __future__, argparse, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar. README: "`write_result.py` reduces each lane to stable facts, and `merge_results.py` refuses promotion unless local and GitHub facts and code commits match exactly." - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 3 files: Country Star Candidate Workflow (star-solar-star); Country Star CI Workflow (star-solar-star); Sun Star Candidate Workflow (star-solar-star). - Signatures: `result_for(star: dict, lane: str, code_commit: str)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Browser - File: star-solar-star/testcode/202609150503/browser.mjs (JavaScript, 77 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150503/browser.mjs#L1-L77 - Page: https://code.globalgrid2050.com/explore-code/s/0261.html#f1 - Synopsis: A JavaScript module in the testcode folder of Star Solar Star. - What it does: It loads data. Uses libraries node:assert/strict, node:http, node:fs/promises, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Solar Integrity Workflow (star-solar-star). - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### Test Integrity - File: star-solar-star/testcode/202609150503/test_integrity.py (Python, 149 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150503/test_integrity.py#L1-L149 - Page: https://code.globalgrid2050.com/explore-code/s/0261.html#f2 - Synopsis: A test in the testcode folder of Star Solar Star that checks Build Sun and Star Contract. - What it achieves (comment): It is built from the PV day helper (`pv_day`) and the production integrity class (`ProductionIntegrity`). Exercise published production modules, never historical candidate copies. - What it does: It tests its inputs. Defines 13 functions or classes, including pv_day, ProductionIntegrity, test_imports_are_production, test_legacy_reference_identity_and_immutable_publication, test_jcs_known_bytes_and_version. Uses libraries copy, datetime, json, sys, tempfile. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file global-solar-2025.star.json; JSON file history.json; JSON file today.json; JSON file uk-solar.json. - Downstream impact: Used directly by 1 file: Solar Integrity Workflow (star-solar-star). - Signatures: `pv_day(date=dt.date(2026, 9, 14))`; `class ProductionIntegrity`; `test_imports_are_production(self)`; `test_legacy_reference_identity_and_immutable_publication(self)`; `test_jcs_known_bytes_and_version(self)`; `test_jcs_rejects_invalid_domain(self)`; `test_interval_end_day_and_reordering(self)`; `test_request_bounds_follow_official_interval_end_convention(self)`; `test_duplicate_missing_and_off_grid_intervals_fail(self)`; `test_nonfinite_invalid_power_and_capacity_fail(self)`; `test_fallback_distinguishes_requested_and_observation_dates(self)`; `test_validator_recomputes_all_summary_fields(self)`; `test_preserves_real_project_null_geometry(self)` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file global-solar-2025.star.json; JSON file history.json; JSON file today.json; JSON file uk-solar.json]; out []; crs []; voltages [] - Edges: uses 4 estate files (import 3, sys-path 1); used by 1; mentioned by 0 ### Vectors - File: star-solar-star/testcode/202609150503/vectors.py (Python, 41 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/testcode/202609150503/vectors.py#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0261.html#f3 - Synopsis: A Python command-line tool in the testcode folder of Star Solar Star that reads global solar star, using SHA-256. It is built from the vectors step (`vectors`). - What it achieves (comment): Expected bytes/seeds computed by the production Python contract. - What it does: It loads global solar star. Defines vectors. Uses libraries copy, json, sys, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file global-solar-2025.star.json. - Downstream impact: Used directly by 1 file: Browser (star-solar-star). Reached from 1 other entry point, including Solar Integrity Workflow (star-solar-star). - Signatures: `vectors()` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file global-solar-2025.star.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Test Publication - File: star-solar-star/tests/test_publication.py (Python, 188 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/star-solar-star/blob/4ac16c0c2297c4b6022afc4d6f921faf091bb74e/tests/test_publication.py#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/0261.html#f4 - Synopsis: A test in the tests folder of Star Solar Star that checks Issue to Star and Publish Main, using SHA-256. It sets up (`setUp`) and writes other (`write_other`). - What it achieves (comment): Exercise production publication against a real temporary Git remote. It writes `unrelated.txt`. - What it does: It tests its inputs. Defines 20 functions or classes, including at, git, PublicationTests, setUp, write_other. Uses libraries contextlib, functools, http.server, json, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file data.json; JSON file example.star.json; JSON file publication.json; JSON file proof.json. Out: JSON file data.json. - Downstream impact: Used directly by 1 file: Publication CI Workflow (star-solar-star). - Signatures: `at(path)`; `git(path, *args)`; `class PublicationTests`; `setUp(self)`; `write_other(self, path, content)`; `test_concurrent_push_rebuilds_against_fresh_main(self)`; `regenerate()`; `test_identical_immutable_record_is_idempotent(self)`; `test_concurrent_immutable_id_collision_rejected(self)`; `test_dirty_tracked_checkout_rejected(self)`; `test_push_failures_are_bounded(self)`; `run(*args, **kwargs)`; `test_pages_requires_built_descendant_with_same_bytes(self)`; `test_served_bytes_must_match(self)`; `test_pages_resolves_new_build_and_writes_success_proof(self)`; `test_pages_error_writes_failed_proof_and_raises(self)`; `pages_orchestration(self, status)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file data.json; JSON file example.star.json; JSON file publication.json; JSON file proof.json]; out [JSON file data.json]; crs []; voltages [] - Edges: uses 3 estate files (sys-path 3); used by 1; mentioned by 0 ### Codex Layers Panel Policy Test - File: teleprinter/drivers/codex/layers-panel-policy.test.mjs (JavaScript, 13 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/codex/layers-panel-policy.test.mjs#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0261.html#f5 - Synopsis: A test in the drivers folder of Teleprinter that checks Layers Panel Policy. - What it does: It tests its inputs. Uses libraries node:test, node:assert/strict. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page - File: testcode/sandbox/202609052028/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html (HTML, 509 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609052028/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html#L1-L509 - Page: https://code.globalgrid2050.com/explore-code/s/0262.html#f1 - Synopsis: A web page in the layer apps folder of Testcode that reads inputs for loc, mod wp and mod, covering battery storage (BESS), cables, substations and 33kV. - What it achieves (readme): The README says: The publication checkout is sparse: `index.html` and the complete `uk_renewables_pipeline/` tree. Its code works with 33 kV, 0.00 MVA and 132 kV. - What it does: It draws battery storage (BESS), cables, substations and 33kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), cables, substations, 33kV, 400kV, 275kV. README: "The publication checkout is sparse: `index.html` and the complete `uk_renewables_pipeline/` tree." - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV] - Edges: uses 14 estate files (script-src 13, stylesheet 1); used by 0; mentioned by 0 ### Map Frame - File: testcode/sandbox/202609052028/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/map-frame.js (JavaScript, 32 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609052028/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/map-frame.js#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0262.html#f2 - Synopsis: A JavaScript file in the GIS SLD financial sandbox folder of Testcode that copies the current map drawing during its own render event; no display permission. - What it achieves (name): It is built from the cancel step (`cancel`) and the drawn step (`drawn`). Defines `capture`, `cleanup`, `fail` and 2 more. It responds to abort events. - What it does: Defines capture, cleanup, fail, cancel, drawn. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (testcode). - Signatures: `capture({signal,timeout=5000}={})`; `cleanup()`; `fail(error)`; `cancel()`; `drawn()` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0