# Cables and conductors — 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/cables.html. Sizing, derating, geometry and prices of AC and DC cables. 105 files. ### Calculations - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/calculations.js (JavaScript, 166 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/calculations.js#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0001.html#f1 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that clamps integer (`clampInteger`), formats mm (`formatMm`) and gets burial depth computation (`getBurialDepthForComputation`), covering cables. - What it achieves (name): It clamps integer (`clampInteger`), formats mm (`formatMm`) and gets burial depth computation (`getBurialDepthForComputation`). Defines `byId`, `clampInteger`, `formatMm` and 8 more. Its code works with 33 kV. - What it does: Defines 11 functions or classes, including byId, clampInteger, formatMm, effectiveGap, getBurialDepthForComputation. 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. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 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). - Signatures: `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)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/data.js (JavaScript, 428 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/data.js#L1-L428 - Page: https://code.globalgrid2050.com/explore-code/s/0001.html#f2 - Synopsis: A JavaScript file in Cable Trench or Drill that works with cables, 33kV, 66kV and 110kV, using IEC 60502-2 and BS EN 60502-1. It looks up od (`lookupOD`). - What it achieves (comment): Model coefficients (single core, fitted to Utility/Manufacturer data). Its code works with 1 kV, 33 kV and 66 kV. - What it does: It calculates cables, 33kV, 66kV and 110kV. Defines lookupOD. - 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, 66kV, 110kV, 132kV, 20kV. - Inputs & outputs: Voltage levels named: 132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 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). - Signatures: `lookupOD(voltageKey, csaMm2, isThreeCore)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Export - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/export.js (JavaScript, 28 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/export.js#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0001.html#f3 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that works with copy snapshot (`copySnapshot`). It exports JSON (`exportJson`) and copies snapshot (`copySnapshot`). - What it achieves (name): Defines `exportJson` and `copySnapshot`. - What it does: It draws its content. Defines exportJson, copySnapshot. 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: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 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). - Signatures: `exportJson()`; `base(byId("route_name").value.trim() || "geometry_capture")`; `copySnapshot()` - 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 2; mentioned by 0 ### Rendering - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/rendering.js (JavaScript, 416 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/rendering.js#L1-L416 - Page: https://code.globalgrid2050.com/explore-code/s/0002.html#f1 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that renders status (`renderStatus`) and issues (`renderIssues`) and renders stats (`renderStats`), covering cables. - What it achieves (name): It renders status (`renderStatus`), renders issues (`renderIssues`) and renders stats (`renderStats`). Defines `renderStatus`, `renderIssues`, `renderStats` and 7 more. - What it does: It draws cables. Defines 10 functions or classes, including renderStatus, renderIssues, renderStats, getServiceColours, drawGroup. 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: Out: canvas drawing. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 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). - Signatures: `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)`; `buildSnapshot(inputs, layout, review)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Style Sheet - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/style.css (CSS, 830 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/style.css#L1-L830 - Page: https://code.globalgrid2050.com/explore-code/s/0003.html#f1 - Synopsis: A style sheet in Cable Trench or Drill. - 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: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 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). - 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 2; mentioned by 0 ### UI - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/ui.js (JavaScript, 404 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/ui.js#L1-L404 - Page: https://code.globalgrid2050.com/explore-code/s/0004.html#f2 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that syncs spacing inputs and burial depth note and applies lookup, covering cables. - What it achieves (name): It syncs spacing inputs (`syncSpacingInputs`), syncs burial depth note (`syncBurialDepthNote`) and applies lookup (`applyLookup`). Defines `populateFormationOptions`, `syncSpacingInputs`, `syncBurialDepthNote` and 14 more. Its code works with 33 kV, 1 kV and 132 kV. It responds to focus, click and touchend events. - What it does: It draws cables, 33kV and solar. Defines 17 functions or classes, including populateFormationOptions, syncSpacingInputs, syncBurialDepthNote, populateLookupCSA, applyLookup. 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, solar, 132kV, 66kV, 1500V. - Inputs & outputs: Voltage levels named: 132kV, 66kV, 33kV, 1500V, 1000V, 1kV. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 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). - Signatures: `populateFormationOptions(serviceType, preferredValue)`; `syncSpacingInputs()`; `syncBurialDepthNote(force = false)`; `populateLookupCSA()`; `applyLookup()`; `armour(vk === "lv_cu_sc" || vk === "lv_al_sc")`; `updateFromLookup()`; `renderAll()`; `debounce(fn, delay)`; `handleInput(event)`; `handleChange(event)`; `handleBlur(event)`; `updateViewportMode()`; `toggleDrawingView()`; `bindNumericFieldUX()`; `sel()`; `bindEvents()`; `init()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 66kV, 33kV, 1500V, 1000V, 1kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page - File: cable-trench-or-drill/releases/202609052001/solar-bess-topology-v7/cable-geometry-visualiser/index.html (HTML, 280 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609052001/solar-bess-topology-v7/cable-geometry-visualiser/index.html#L1-L280 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f1 - Synopsis: A web page in Cable Trench or Drill covering cables, 132kV, 33kV and solar, using BS EN 50618 and BS 7671, and uses data from UK Power Networks open data. - What it achieves (name): Its code works with 1 kV, 132 kV and 33 kV. - What it does: It draws cables, 132kV, 33kV 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: cables, 132kV, 33kV, solar, 110kV, 66kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV. - 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 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). - 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 [132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV] - Edges: uses 7 estate files (script-src 6, stylesheet 1); used by 4; mentioned by 0 ### Render Readiness - File: cable-trench-or-drill/releases/202609052001/solar-bess-topology-v7/cable-geometry-visualiser/render-readiness.js (JavaScript, 32 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609052001/solar-bess-topology-v7/cable-geometry-visualiser/render-readiness.js#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f2 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill covering cables, using SHA-256. - What it achieves (comment): It is built from the publish step (`publish`), the pending step (`pending`) and the on input helper (`onInput`). Observe completed original render snapshots; never invoke or replace calculations. It responds to input, change and resize events. - What it does: Defines publish, pending, onInput, onChange, completed. 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. README: "`src/cable-geometry/render-readiness.js` observes the original snapshot after the three geometry canvases are drawn." - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Render Readiness Test (cable-trench-or-drill). 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). - Signatures: `publish(value)`; `pending()`; `onInput(event)`; `onChange(event)`; `completed()` - 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 2; mentioned by 0 ### Route Constraints - File: cable-trench-or-drill/src/route-constraints/route-constraints.js (JavaScript, 190 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/src/route-constraints/route-constraints.js#L1-L190 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f3 - Synopsis: A JavaScript module in Cable Trench or Drill that works with sha256 hex (`sha256Hex`) and direct first pass (`directFirstPass`), covering engine pin, using SHA-256. - What it achieves (comment): It is built from the sha256 hex helper (`sha256Hex`), the load step (`load`) and the reset step (`reset`). The constraint-aware SECOND result. - What it does: Defines sha256Hex, load, reset, directFirstPass, assess. - 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: JSON file engine-pin.json. - Downstream impact: Used directly by 1 file: Route Constraints Test (cable-trench-or-drill). Reached from 1 other entry point, including Verify Route Constraints Workflow (cable-trench-or-drill). - Signatures: `export load({ fetchImpl = fetch, importImpl } = {})`; `export reset()`; `export directFirstPass({ straightLineKm })`; `export assess({ straightLineKm, crossings = [], corridorFactor, loaded = null })`; `sha256Hex(text)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file engine-pin.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Derive Cable - File: cable-trench-or-drill/tools/derive_cable.py (Python, 47 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/derive_cable.py#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f4 - Synopsis: A Python command-line tool in the tools folder of Cable Trench or Drill covering cables, using SHA-256. It is built from the blob step (`blob`) and the sha step (`sha`). - What it achieves (comment): Compose one immutable Cable render-readiness release from committed original bytes. It accepts `--generation`. - What it does: Defines blob, sha, main. Uses libraries pathlib, argparse, datetime, hashlib, json. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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: "`tools/derive_cable.py` composes a fresh, unique UTC-minute release from the committed baseline" - Inputs & outputs: In: command-line arguments. Out: JSON file derived-latest.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `blob(path)`; `sha(raw)`; `main()` - 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 [JSON file derived-latest.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Import Original - File: cable-trench-or-drill/tools/import_original.py (Python, 83 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/import_original.py#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f5 - Synopsis: A Python command-line tool in the tools folder of Cable Trench or Drill covering grid substations, Renewable Energy Planning Database (REPD) master, cables and solar, using SHA-256. - What it achieves (comment): It is built from the git step (`git`). Import an immutable original runtime from an explicit GlobalGrid Git revision. It accepts `--source`, `--commit` and `--generation`. - What it does: Defines git, main. Uses libraries argparse, datetime, hashlib, json, re. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): 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: GeoJSON file grid_substations.geojson; JSON file repd_master.json; command-line arguments. Out: JSON file latest.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `git(repo, *args)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; JSON file repd_master.json; command-line arguments]; out [JSON file latest.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Render Readiness Test - File: cable-trench-or-drill/tools/render-readiness.test.mjs (JavaScript, 62 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/render-readiness.test.mjs#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f6 - Synopsis: A test in the tools folder of Cable Trench or Drill that checks Render Readiness. - What it achieves (readme): It is built from the settle step (`settle`), the fixture step (`fixture`) and the target class (`Target`). The README says: `src/cable-geometry/render-readiness.js` observes the original snapshot after the three geometry canvases are drawn. - What it does: It tests its inputs. Defines settle, fixture, Target, Observer, event. Uses libraries node:test, node:assert/strict, node:fs, node:vm. 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 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`src/cable-geometry/render-readiness.js` observes the original snapshot after the three geometry canvases are drawn." - Downstream impact: Used directly by 1 file: Verify Derived Workflow (cable-trench-or-drill). - Signatures: `settle()`; `fixture()`; `class Target`; `addEventListener(type,listener,options)`; `removeEventListener(type,listener,options)`; `class Observer`; `event(type,id)` - 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 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### Route Constraints Test - File: cable-trench-or-drill/tools/route-constraints.test.mjs (JavaScript, 180 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/route-constraints.test.mjs#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f1 - Synopsis: A test in the tools folder of Cable Trench or Drill that checks Route Constraints, using SHA-256. - What it achieves (comment): It is built from the check step (`check`), the stub engine helper (`stubEngine`) and the fetch for helper (`fetchFor`). The second result must never become the first. - What it does: It tests its inputs. Defines check, stubEngine, fetchFor. Uses libraries node:fs, node:url, node:path, node:crypto. Side effects: reads or writes files; starts processes. - 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: JSON file engine-pin.json. - Downstream impact: Used directly by 1 file: Verify Route Constraints Workflow (cable-trench-or-drill). - Signatures: `check(n, c)`; `stubEngine({ blocked = false } = {})`; `routeEstimate({ straightLineKm, crossings, corridorFactor })`; `fetchFor({ source = STUB_SOURCE, sha = STUB_SHA, status = 200 } = {})` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file engine-pin.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Test Verify - File: cable-trench-or-drill/tools/test_verify.py (Python, 62 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/test_verify.py#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f2 - Synopsis: A test in the tools folder of Cable Trench or Drill that uses SHA-256. It sets up (`setUp`) and is built from the original runtime class (`OriginalRuntime`). - What it achieves (name): Defines `OriginalRuntime`, `setUp`, `test_original_and_query_resource_pass` and 4 more. - What it does: It tests its inputs. Defines 7 functions or classes, including OriginalRuntime, setUp, test_original_and_query_resource_pass, test_changed_formula_bytes_fail, test_missing_dependency_fails. Uses libraries hashlib, importlib.util, tempfile, unittest, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): 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: Verify Original Workflow (cable-trench-or-drill). - Signatures: `class OriginalRuntime`; `setUp(self)`; `test_original_and_query_resource_pass(self)`; `test_changed_formula_bytes_fail(self)`; `test_missing_dependency_fails(self)`; `test_invalid_javascript_is_not_excused_by_matching_digest(self)`; `test_cross_owner_navigation_requires_explicit_pin(self)` - 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 ### Test Verify Derived - File: cable-trench-or-drill/tools/test_verify_derived.py (Python, 101 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/test_verify_derived.py#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f3 - Synopsis: A test in the tools folder of Cable Trench or Drill that checks Verify Derived, using SHA-256. - What it achieves (name): It sets up (`setUp`) and is built from the derived release class (`DerivedRelease`) and the encode step (`encode`). Defines `DerivedRelease`, `setUp`, `git` and 16 more. It writes `latest.json`. - What it does: It tests its inputs. Defines 19 functions or classes, including DerivedRelease, setUp, git, encode, sha. Uses libraries copy, hashlib, json, subprocess, tempfile. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file latest.json; JSON file derived-latest.json. - Downstream impact: Used directly by 1 file: Verify Derived Workflow (cable-trench-or-drill). - Signatures: `class DerivedRelease`; `setUp(self)`; `git(*args)`; `encode(value)`; `sha(raw)`; `write(self, path, raw)`; `record(self, path, raw)`; `pin(self)`; `replace(self, path, raw)`; `refused(self, text)`; `test_valid_release_passes_despite_dirty_unrelated_baseline_worktree(self)`; `test_formula_change_fails_even_with_rehashed_manifest(self)`; `test_extra_entry_change_fails_even_with_rehashed_manifest(self)`; `test_cartridge_must_match_maintained_source(self)`; `test_unknown_role_traversal_duplicate_and_missing_member_fail(self)`; `test_missing_or_unpinned_sibling_fails(self)`; `test_github_repository_url_is_supported_but_other_host_is_not(self)`; `test_baseline_and_pointer_hashes_are_checked(self)`; `test_syntax_is_checked_even_when_cartridge_matches_source(self)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file latest.json; JSON file derived-latest.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Verify - File: cable-trench-or-drill/tools/verify.py (Python, 127 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/verify.py#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f4 - Synopsis: A Python command-line tool in the tools folder of Cable Trench or Drill that verifies original bytes, JavaScript syntax and local HTML dependency paths, using SHA-256. - What it achieves (name): It is built from the resources class (`Resources`), the handle endtag helper (`handle_endtag`) and the verify step (`verify`). Defines `Resources`, `handle_starttag`, `handle_data` and 2 more. It accepts `--root`, `--source` and `--expected-origin`. - What it does: Defines 7 functions or classes, including Resources, __init__, handle_starttag, handle_data, handle_endtag. Uses libraries argparse, hashlib, json, subprocess, tempfile. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file latest.json; command-line arguments. - Downstream impact: Used directly by 2 files: Verify Derived (cable-trench-or-drill); Verify Original Workflow (cable-trench-or-drill). Reached from 2 other entry points, including Verify Derived Workflow (cable-trench-or-drill); Test Verify Derived (cable-trench-or-drill). - Signatures: `class Resources`; `__init__(self)`; `handle_starttag(self, tag, attrs)`; `handle_data(self, data)`; `handle_endtag(self, tag)`; `verify(root, manifest, source=None)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file latest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Verify Derived - File: cable-trench-or-drill/tools/verify_derived.py (Python, 127 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/verify_derived.py#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f5 - Synopsis: A Python command-line tool in the tools folder of Cable Trench or Drill that works with git bytes (`git_bytes`), covering cables, using SHA-256. - What it achieves (comment): It is built from the digest step (`digest`), the safe step (`safe`) and the verify step (`verify`). Verify an explicit Cable derived release without weakening the original baseline gate. It accepts `--root` and `--out`. - What it does: Defines digest, safe, git_bytes, verify, require. Uses libraries argparse, hashlib, json, re, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): 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 derived-latest.json; JSON file latest.json; command-line arguments. - Downstream impact: Used directly by 2 files: Test Verify Derived (cable-trench-or-drill); Verify Derived Workflow (cable-trench-or-drill). - Signatures: `digest(raw)`; `safe(root, name)`; `git_bytes(repo, commit, path)`; `verify(repo)`; `require(ok, text)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file derived-latest.json; JSON file latest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### AC Trenches - File: energy-transition-simulator/prototype/mod/ac-trenches.js (JavaScript, 450 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/ac-trenches.js#L1-L450 - Page: https://code.globalgrid2050.com/explore-code/s/0007.html#f1 - Synopsis: A JavaScript file in the prototype folder of Energy Transition Simulator that maps single-line diagram (SLD), cables and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It picks duct (`pickDuct`), adds plan (`addPlan`) and removes plan (`removePlan`). Ac-trenches v2: every LV AC trench at REPD 6502, drawn to scale from `mod/ac-trenches-6502.json`, for two illustrative scenarios at the same stations (author's reference design: 28 three-phase inverters per 10MVA station, 84 phase cables). Its code works with 10 MVA. - What it does: It maps SLD, cables and the REPD register. Defines 58 functions or classes, including jamBand, clearance, ductCheck, pickDuct, over. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, the REPD register. - Inputs & outputs: In: JSON file ac-trenches-6502.json; JSON file sld-layer.json. Out: interactive map; SVG drawing. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `BASE(document.currentScript && document.currentScript.src.replace(/[^/]*$/, ''))`; `jamBand(J)`; `clearance(D, d)`; `ductCheck(D, d)`; `pickDuct(table, od)`; `over(t, key)`; `params(d, which)`; `width(pp, n, L = 1)`; `layersFor(pp, n, avail)`; `llOf(d)`; `ll(e, n)`; `caseOf(d, i, s)`; `edgesOf(d, c)`; `hull(pts)`; `cr(o, a, b)`; `evaluate(d, i, s)`; `holesOf(d, c)`; `planGeo(d, i, s)`; `fc(features)`; `addPlan(map)`; `L(spec)`; `removePlan(map)`; `clearMarks()`; `labelView()`; `onAdd(m, gl)` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file ac-trenches-6502.json; JSON file sld-layer.json]; out [interactive map; SVG drawing]; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Block Trenches - File: energy-transition-simulator/prototype/mod/engine/block-trenches.mjs (JavaScript, 161 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/block-trenches.mjs#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0007.html#f2 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with 33kV, transformers and cables. - What it achieves (comment): It is built from the sum step (`sum`), the stretches step (`stretches`) and the HV section helper (`hvSection`). The solar block's trenches, laid out from what each stretch of route really carries, then sized by rating (`trench-plan.mjs`). Its code works with 33 kV. - What it does: It calculates 33kV, transformers and cables. Defines 10 functions or classes, including sum, f2, stretches, hvSection, blockTrenches. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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: 33kV, transformers, cables. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Cmd Trench (energy-transition-simulator); Block Build (energy-transition-simulator). - Signatures: `export stretches(iv, minM = BLOCK_TRENCH.minStretchM)`; `export hvSection(kv)`; `export blockTrenches(st, mv, E, N, odMv, env = {}, s = SD)`; `sum(a)`; `f2(x)`; `envFor(g)`; `mvaOf(id)`; `whole(r)`; `half(r)`; `toEn(w)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271853-site-world/world/block-trenches.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 1 ### Cable IEC - File: energy-transition-simulator/prototype/mod/engine/cable-iec.mjs (JavaScript, 259 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/cable-iec.mjs#L1-L259 - Page: https://code.globalgrid2050.com/explore-code/s/0008.html#f1 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, solar and 33kV, using IEC 60287 and IEC 60287-1-1. - What it achieves (comment): It makes cable (`makeCable`) and is built from the rdc at helper (`rdcAt`) and the skin y helper (`skinY`). One buried single-core cable by the IEC 60287 thermal method: its build, losses and thermal resistances. Its code works with 33 kV, 1 kV and 1.5 kV. - What it does: It calculates cables, solar and 33kV. Defines 16 functions or classes, including makeCable, rdcAt, skinY, acResistance, dielectricLoss. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, solar, 33kV, 1.5kV, 1kV. - Inputs & outputs: Voltage levels named: 33kV, 1.5kV, 1kV. - Downstream impact: Used directly by 2 files: Cmd Trench (energy-transition-simulator); Trench Plan (energy-transition-simulator). - Signatures: `export makeCable(spec)`; `export rdcAt(cable, theta)`; `export acResistance(cable, theta, sMm, freq = 50)`; `export dielectricLoss(cable, freq = 50)`; `export screenLossFactors(cable, { R, sMm, formation = 'trefoil', bonding = 'solid', thetaS = 70, freq = 50 })`; `export internalThermal(cable)`; `export selfG(Lm, DeMm)`; `export mutualG(a, b)`; `export trefoilTouchingG(Lm, DeMm)`; `export cyclicSelfG(Lm, DeMm, mu, diffusivityM2h)`; `export airGapT4(DeMm, DbMm, W, thetaM, uvy = null, eps = 0.9)`; `export bundleDiameter(n, d)`; `export solarDayProfile({ sunrise = 6, sunset = 18, clip = 1, stepH = 0.25 } = {})`; `export lossLoadFactor(profile)`; `skinY(x2)`; `tail(beta1 * ts)`; `eddy(l0, d1, d2)`; `x(t + stepH / 2 - sunrise)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/cable-iec.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 1.5kV, 1kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Cable Rating - File: energy-transition-simulator/prototype/mod/engine/cable-rating.mjs (JavaScript, 96 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/cable-rating.mjs#L1-L96 - Page: https://code.globalgrid2050.com/explore-code/s/0008.html#f2 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables and 33kV, using IEC 60287-1-1 and IEC 60287-2-1. - What it achieves (comment): It is built from the al r20 helper (`alR20`), the cu r20 helper (`cuR20`) and the build step (`build`). Continuous current rating of a 33kV single-core aluminium XLPE cable laid direct in trefoil, by the steady-state method of IEC 60287-1-1 (losses) and IEC 60287-2-1 (thermal resistances), and the size a feeder segment needs for the load it carries. Its code works with 33 kV. - What it does: It calculates cables and 33kV. Defines 7 functions or classes, including alR20, cuR20, build, rating, impedance. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 7 files: Cmd Trench (energy-transition-simulator); Plant Feeders (energy-transition-simulator); Single-Line Diagram (SLD) Rules (energy-transition-simulator); Block Build (energy-transition-simulator); and 3 more. - Signatures: `export alR20(area)`; `export cuR20(area)`; `export build(area, p = RATING_DEFAULTS, odMm = null)`; `export rating(area, opts = {})`; `export impedance(area, opts = {})`; `export dropPercent(area, lengthM, mva, { pf = 0.95, ...opts } = {})`; `export sizeFor(mva, opts = {})`; `rdc(opts.r20OhmKm || alR20(area))`; `xs4(8 * PI * p.freq / rdc * 1e-7)`; `dMean(b.di + b.ds)` - VEDIC: PERCENT (GG2050-VEDIC-000025): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. drop_volts, nominal_volts -> drop_percent - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/cable-rating.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Cable Route - File: energy-transition-simulator/prototype/mod/engine/cable-route.mjs (JavaScript, 209 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/cable-route.mjs#L1-L209 - Page: https://code.globalgrid2050.com/explore-code/s/0008.html#f3 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables. It routes cable (`routeCable`) and draws lines (`drawLines`). - What it achieves (comment): A buried cable laid along a plan polyline. - What it does: It calculates cables. Defines 13 functions or classes, including sub, norm, unit, turn, planSegments. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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. - Downstream impact: Used directly by 1 file: Connect Here (energy-transition-simulator). - Signatures: `export routeCable({ points, minBendRadius = 0, depthBelowGround = 0, groundAt = () => 0, formation = 'flat', spacing = 0, step = 1, } = {})`; `sub(a, b)`; `norm(v)`; `unit(v)`; `turn(d1, d2)`; `planSegments(pts, R)`; `line(a, b)`; `at(seg, u)`; `coreOffsets(formation, spacing)`; `zAt(x, y)`; `walk(lat, vert)`; `ds(q.s - prev.s)`; `bendRadiusAt(chainage)`; `drawLines({ includeCores = true, includeCentreline = true } = {})` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/cable-route.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cmd Grammar Trench - File: energy-transition-simulator/prototype/mod/engine/cmd-grammar-trench.mjs (JavaScript, 87 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/cmd-grammar-trench.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0008.html#f4 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator covering cables, solar and 33kV. It parses trench (`parseTrench`) and is built from the is num helper (`isNum`). - What it achieves (comment): The trench and cable words of the command line (trench, cable, load, xray), split out of `cmd-grammar.mjs` to keep each cartridge under 400 lines. Its code works with 33 kV. - What it does: It lists and searches cables, solar and 33kV. Defines isNum, parseTrench. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Cmd Grammar (energy-transition-simulator). - Signatures: `export parseTrench(v, rest, out, { has, after, num, put, bad, guard })`; `isNum(t)` - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/cmd-grammar-trench.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cmd Trench - File: energy-transition-simulator/prototype/mod/engine/cmd-trench.mjs (JavaScript, 121 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/cmd-trench.mjs#L1-L121 - Page: https://code.globalgrid2050.com/explore-code/s/0009.html#f1 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, solar and 33kV, using BS 7671 and IEC 60287. - What it achieves (comment): It rates text (`rateText`) and is built from the trench env helper (`trenchEnv`) and the env for helper (`envFor`). The command line's trench and cable words, as text. Its code works with 33 kV and 132 kV. - What it does: It calculates cables, solar and 33kV. Defines 12 functions or classes, including trenchEnv, envFor, f, pct, tight. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, solar, 33kV, 132kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Cmd Model (energy-transition-simulator). - Signatures: `export trenchEnv(st)`; `export specOf(kind, size, metal, loadA)`; `export rateText({ size, metal = 'al', circuits = 1, pitchM = null, kind = 'lv' }, st)`; `export designText(st, rows = null)`; `envFor(st, kind)`; `f(v, d = 2)`; `pct(v)`; `tight(z)`; `basis(st)`; `blockPlan(st)`; `line([k, v, cls])`; `busiest(g)` - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/cmd-trench.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 33kV] - Edges: uses 9 estate files (import 9); used by 1; mentioned by 0 ### Trench Design - File: energy-transition-simulator/prototype/mod/engine/trench-design.mjs (JavaScript, 400 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/trench-design.mjs#L1-L400 - Page: https://code.globalgrid2050.com/explore-code/s/0009.html#f2 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, using IEC 60287-1-1 and IEC 60287-2-1. It solves gap (`solveGap`) and checks drawn (`checkDrawn`). - What it achieves (comment): A trench cross-section designed from the cables it has to carry. - What it does: It calculates cables. Defines 22 functions or classes, including cable, ductAirT, footprint, place, rowW. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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. - Downstream impact: Used directly by 1 file: Trench Plan (energy-transition-simulator). - Signatures: `export cable(c)`; `export ductAirT(DeM, p = DEFAULTS, meanC = 60)`; `export footprint(ct)`; `export place(circuits, g)`; `export temperatures(layout, env = {})`; `export solveGap(circuits, g, env = {}, { maxGapM = 3 } = {})`; `export section(solved, circuits, env = {})`; `export designOptions({ circuits, landUse = 'farmland', env = {}, upsize = null, maxTrenches = 6, coverM = null })`; `export checkDrawn(circuits, { cover, pitchM }, env = {})`; `export pullPlan(route, ct, { ducted = true, pull = PULL } = {})`; `radial(od - dc)`; `T1(c.insulationKmW || 3.5)`; `T3(c.sheathKmW || 5.0)`; `side(g.sideClearM ?? p.sideClearMm / 1000)`; `rowW(row)`; `hMax(row)`; `cyclicSelf(self, z, De, p)`; `at(gap)`; `worstClass(circuits)`; `round(x, q)`; `r3(x)`; `add(name, cs, g, extra = {})`; `sumPerMetre(sec)`; `r1(x)`; `turn(i)` (and 1 more) - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271853-site-world/world/trench-design.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Trench Plan - File: energy-transition-simulator/prototype/mod/engine/trench-plan.mjs (JavaScript, 265 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/trench-plan.mjs#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0010.html#f1 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, solar and 33kV, using IEC 60287. - What it achieves (comment): It sizes trench (`sizeTrench`), checks as drawn (`checkAsDrawn`) and turns deg (`turnDeg`). Loss-load factor by load profile: continuous (the default, conservative) or a clear solar day, unclipped. Its code works with 33 kV. - What it does: It calculates cables, solar and 33kV. Defines 14 functions or classes, including splitOf, coverOf, r2, sizeTrench, optionFor. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Block Trenches (energy-transition-simulator); Cmd Trench (energy-transition-simulator); Plant Feeders (energy-transition-simulator). - Signatures: `export sizeTrench(kind, n, spec, env = {})`; `export checkAsDrawn(kind, n, spec, pitchM, env = {})`; `export corridorCheck(parts, env = {})`; `export offsetPath(pts, d)`; `export planTrenches(runs, env = {}, { hops = [] } = {})`; `export planRows(plan, extra = {})`; `splitOf(split, group)`; `coverOf(e, kind)`; `r2(x)`; `optionFor(circuits, trenches, cover, tenv)`; `foot(kind === 'dc' ? spec.ductOdMm ?? 90 : 2 * (spec.odMm ?? 37.4))`; `worst(pi)`; `turnDeg(a, b, c)`; `at(pts, s)`; `pctOf(v)` - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/trench-plan.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 1 ### Trench Measure - File: energy-transition-simulator/prototype/mod/trench-measure.js (JavaScript, 361 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/trench-measure.js#L1-L361 - Page: https://code.globalgrid2050.com/explore-code/s/0010.html#f2 - Synopsis: A JavaScript file in the prototype folder of Energy Transition Simulator that maps trench sections, cables, 132kV and 33kV, using OSTN15. - What it achieves (comment): It adds layer (`addLayer`), measures rib (`measureRib`) and draws panel (`drawPanel`). The connect-here cable route drawn as a real trench at TRUE SCALE, below the ground, with its cables or ducts in their formation, the protection tile, and a cross-section panel (the X-ray). Its code works with 132 kV and 33 kV. It responds to keydown events. - What it does: It maps trench sections, cables, 132kV and 33kV. Defines 31 functions or classes, including ready, init, sections, WIDTH_TAG, fromSection. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): 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, 132kV, 33kV. - Inputs & outputs: In: JSON file trench-sections.json; form fields (user input). Out: SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 132kV, 33kV. - Signatures: `ready()`; `init()`; `sections()`; `WIDTH_TAG(src)`; `fromSection(s)`; `od(s.duct_od_mm || s.phase_spacing_mm)`; `typed(line)`; `validate(s)`; `formation(s)`; `oc(c - (s.circuits - 1) / 2)`; `connectRoute()`; `planar(a, b)`; `groundAt(lon, lat)`; `circle(L, cx, cy, gz, nx, ny, f, r)`; `build(route, s)`; `grp(L)`; `withAnchor(m, o)`; `onAdd(m, gl)`; `sh(t, src)`; `render(gl, args)`; `addLayer()`; `vtx(b, grp, li, v)`; `measureRib(rb, s)`; `bngWidth(rb, m)`; `E(t[0].e + t[1].e)` (and 11 more) - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file trench-sections.json; form fields (user input)]; out [SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [132kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### AC Trenches Smoke - File: energy-transition-simulator/tests/ac-trenches-smoke.cjs (JavaScript, 150 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/tests/ac-trenches-smoke.cjs#L1-L150 - Page: https://code.globalgrid2050.com/explore-code/s/0011.html#f1 - Synopsis: A JavaScript module in the tests folder of Energy Transition Simulator that tests AC trenches fixture, cables and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It is built from the near step (`near`) and the mper step (`mper`). Smoke check for `prototype/mod/ac-trenches.js` v2, with a synthetic fixture (no network, no browser). - What it does: It tests AC trenches fixture, cables and the REPD register. Defines el, near, mper. Uses libraries fs, path, vm. 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 '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, the REPD register. - Inputs & outputs: In: JSON file ac-trenches-6502.json; JSON file ac-trenches-fixture.json. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `addControl()`; `el()`; `near(a, b, t)`; `mper(lat)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file ac-trenches-6502.json; JSON file ac-trenches-fixture.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Trench Measure - File: energy-transition-simulator/tests/trench-measure.cjs (JavaScript, 110 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/tests/trench-measure.cjs#L1-L110 - Page: https://code.globalgrid2050.com/explore-code/s/0011.html#f2 - Synopsis: A JavaScript module in the tests folder of Energy Transition Simulator that tests 132kV and 33kV. It is built from the launch step (`launch`). - What it achieves (comment): Trench-measure test: serves `prototype/` with a scratch module list (the page's own `index.json` plus trench-measure), opens `overlay.html`, runs connect-here (straight route, so no road router is called), draws the trench with the cited section. Its code works with 132 kV and 33 kV. - What it does: It tests 132kV and 33kV. Defines launch. Uses libraries http, fs, path, playwright. 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 'trench'): 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, 33kV. - Inputs & outputs: In: JSON file index.json. Out: JSON file results.json. Voltage levels named: 132kV, 33kV. - Signatures: `launch()` - 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 [JSON file results.json]; crs []; voltages [132kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Cable Cases - File: faraday/bench/cable_cases.py (Python, 71 lines) · role electrical · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/cable_cases.py#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0011.html#f3 - Synopsis: A Python module in the bench folder of Faraday that works with cables, using IEC 60228. - What it achieves (comment): It is built from the t withstand helper (`t_withstand`), the t run helper (`t_run`) and the t selfcheck helper (`t_selfcheck`). CABLE CHECK: the four questions every cable sizing study asks, as cases that can fail. Its code works with 17.39 kA. - What it does: It calculates cables. Defines t_withstand, t_run, t_selfcheck, registry. Uses libraries json, math. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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: Tests (faraday). Reached from 1 other entry point, including One (faraday). - Signatures: `t_withstand(metal, size, seconds, fault_ka)`; `t_run(metal, size, amps, metres, kv, derate)`; `t_selfcheck()`; `registry()` - 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 ### Data Core - File: globalgrid2050/cable_geometry/data-core.js (JavaScript, 316 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cable_geometry/data-core.js#L1-L316 - Page: https://code.globalgrid2050.com/explore-code/s/0011.html#f4 - Published at: https://globalgrid2050.com/cable_geometry/ - Synopsis: A JavaScript file in the cable geometry folder of GlobalGrid2050 covering 11kV, 33kV, cables and 110kV, using BS 7870-4 and IEC 60840. Served with the page at https://globalgrid2050.com/cable_geometry/. - What it achieves (comment): Core reference data: burial depths, conductor labels, voltage class definitions, CSA ranges, dropdown groups, and formation library. Its code works with 11 kV, 33 kV and 1 kV. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 33kV, cables, 110kV, 1kV. - Inputs & outputs: Voltage levels named: 110kV, 33kV, 11kV, 1kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — Cable Geometry Page (globalgrid2050, https://globalgrid2050.com/cable_geometry/). Reached from 95 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/cable_geometry/. - 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 [110kV, 33kV, 11kV, 1kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Data LV - File: globalgrid2050/cable_geometry/data-lv.js (JavaScript, 39 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cable_geometry/data-lv.js#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0011.html#f5 - Published at: https://globalgrid2050.com/cable_geometry/ - Synopsis: A JavaScript file in the cable geometry folder of GlobalGrid2050 covering cables, using BS 5467 and BS 6724. Served with the page at https://globalgrid2050.com/cable_geometry/. - What it achieves (comment): `OD_LV` — Low Voltage Cable OD and MBR Schedule 0.6/1kV Cu XLPE — single core and 3 core Source: Generic UK LV schedule (BS 5467 / BS 6724 basis). Its code works with 1 kV. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 1kV. - Inputs & outputs: Voltage levels named: 1kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — Cable Geometry Page (globalgrid2050, https://globalgrid2050.com/cable_geometry/). Reached from 95 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/cable_geometry/. - 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 [1kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Data MV HV - File: globalgrid2050/cable_geometry/data-mv-hv.js (JavaScript, 55 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cable_geometry/data-mv-hv.js#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0012.html#f1 - Published at: https://globalgrid2050.com/cable_geometry/ - Synopsis: A JavaScript file in the cable geometry folder of GlobalGrid2050 covering 11kV, 33kV and 110kV, using IEC 60840. Served with the page at https://globalgrid2050.com/cable_geometry/. - What it achieves (name): Its code works with 11 kV, 110 kV and 33 kV. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 33kV, 110kV. - Inputs & outputs: Voltage levels named: 110kV, 33kV, 11kV. - Downstream impact: Used directly by 2 files: GlobalGrid2050 — Cable Geometry Page (globalgrid2050, https://globalgrid2050.com/cable_geometry/); Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 95 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/cable_geometry/. - 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 [110kV, 33kV, 11kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Data Solar - File: globalgrid2050/cable_geometry/data-solar.js (JavaScript, 65 lines) · role energy-data · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cable_geometry/data-solar.js#L1-L65 - Page: https://code.globalgrid2050.com/explore-code/s/0012.html#f2 - Published at: https://globalgrid2050.com/cable_geometry/ - Synopsis: A JavaScript file in the cable geometry folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/cable_geometry/. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 — Cable Geometry Page (globalgrid2050, https://globalgrid2050.com/cable_geometry/); Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 95 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/cable_geometry/. - 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 — Cable Geometry Page - File: globalgrid2050/cable_geometry/index.html (HTML, 554 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/cable_geometry/index.html#L1-L554 - Page: https://code.globalgrid2050.com/explore-code/s/0012.html#f3 - Published at: https://globalgrid2050.com/cable_geometry/ - Synopsis: A web page that reads inputs for route name, section length and installation condition, covering cables. Published at https://globalgrid2050.com/cable_geometry/. - What it achieves (comment): Cable Geometry Visualiser v1.6.0. Its code works with 11 kV, 110 kV and 33 kV. - What it does: It draws cables. Uses libraries app.js. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 110kV, 33kV, 11kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 110kV, 33kV, 11kV. - Downstream impact: Used directly by 12 files: Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); and 8 more. Reached from 90 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/cable_geometry/. - 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 [110kV, 33kV, 11kV] - Edges: uses 4 estate files (script-src 4); used by 12; mentioned by 0 ### Block Trenches - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/block-trenches.mjs (JavaScript, 161 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/block-trenches.mjs#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0013.html#f1 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with 33kV, transformers and cables. - What it achieves (comment): It is built from the sum step (`sum`), the stretches step (`stretches`) and the HV section helper (`hvSection`). The solar block's trenches, laid out from what each stretch of route really carries, then sized by rating (`trench-plan.mjs`). Its code works with 33 kV. - What it does: It calculates 33kV, transformers and cables. Defines 10 functions or classes, including sum, f2, stretches, hvSection, blockTrenches. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 33kV (all 33kV or below)): 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, transformers, cables. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Cmd Trench (globalgrid2050); Block Build (globalgrid2050). - Signatures: `export stretches(iv, minM = BLOCK_TRENCH.minStretchM)`; `export hvSection(kv)`; `export blockTrenches(st, mv, E, N, odMv, env = {}, s = SD)`; `sum(a)`; `f2(x)`; `envFor(g)`; `mvaOf(id)`; `whole(r)`; `half(r)`; `toEn(w)` - 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/block-trenches.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Cable IEC - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/cable-iec.mjs (JavaScript, 259 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/cable-iec.mjs#L1-L259 - Page: https://code.globalgrid2050.com/explore-code/s/0013.html#f2 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, solar and 33kV, using IEC 60287 and IEC 60287-1-1. - What it achieves (comment): It makes cable (`makeCable`) and is built from the rdc at helper (`rdcAt`) and the skin y helper (`skinY`). One buried single-core cable by the IEC 60287 thermal method: its build, losses and thermal resistances. Its code works with 33 kV, 1 kV and 1.5 kV. - What it does: It calculates cables, solar and 33kV. Defines 16 functions or classes, including makeCable, rdcAt, skinY, acResistance, dielectricLoss. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 1.5kV, 1kV. - Inputs & outputs: Voltage levels named: 33kV, 1.5kV, 1kV. - Downstream impact: Used directly by 2 files: Cmd Trench (globalgrid2050); Trench Plan (globalgrid2050). - Signatures: `export makeCable(spec)`; `export rdcAt(cable, theta)`; `export acResistance(cable, theta, sMm, freq = 50)`; `export dielectricLoss(cable, freq = 50)`; `export screenLossFactors(cable, { R, sMm, formation = 'trefoil', bonding = 'solid', thetaS = 70, freq = 50 })`; `export internalThermal(cable)`; `export selfG(Lm, DeMm)`; `export mutualG(a, b)`; `export trefoilTouchingG(Lm, DeMm)`; `export cyclicSelfG(Lm, DeMm, mu, diffusivityM2h)`; `export airGapT4(DeMm, DbMm, W, thetaM, uvy = null, eps = 0.9)`; `export bundleDiameter(n, d)`; `export solarDayProfile({ sunrise = 6, sunset = 18, clip = 1, stepH = 0.25 } = {})`; `export lossLoadFactor(profile)`; `skinY(x2)`; `tail(beta1 * ts)`; `eddy(l0, d1, d2)`; `x(t + stepH / 2 - sunrise)` - 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/cable-iec.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 1.5kV, 1kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Cable Rating - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/cable-rating.mjs (JavaScript, 96 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/cable-rating.mjs#L1-L96 - Page: https://code.globalgrid2050.com/explore-code/s/0013.html#f3 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables and 33kV, using IEC 60287-1-1 and IEC 60287-2-1. - What it achieves (comment): It is built from the al r20 helper (`alR20`), the cu r20 helper (`cuR20`) and the build step (`build`). Continuous current rating of a 33kV single-core aluminium XLPE cable laid direct in trefoil, by the steady-state method of IEC 60287-1-1 (losses) and IEC 60287-2-1 (thermal resistances), and the size a feeder segment needs for the load it carries. Its code works with 33 kV. - What it does: It calculates cables and 33kV. Defines 7 functions or classes, including alR20, cuR20, build, rating, impedance. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 7 files: Cmd Trench (globalgrid2050); Plant Feeders (globalgrid2050); Single-Line Diagram (SLD) Rules (globalgrid2050); Block Build (globalgrid2050); and 3 more. - Signatures: `export alR20(area)`; `export cuR20(area)`; `export build(area, p = RATING_DEFAULTS, odMm = null)`; `export rating(area, opts = {})`; `export impedance(area, opts = {})`; `export dropPercent(area, lengthM, mva, { pf = 0.95, ...opts } = {})`; `export sizeFor(mva, opts = {})`; `rdc(opts.r20OhmKm || alR20(area))`; `xs4(8 * PI * p.freq / rdc * 1e-7)`; `dMean(b.di + b.ds)` - VEDIC: PERCENT (GG2050-VEDIC-000025): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. drop_volts, nominal_volts -> drop_percent - 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/cable-rating.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Cable Route - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/cable-route.mjs (JavaScript, 209 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/cable-route.mjs#L1-L209 - Page: https://code.globalgrid2050.com/explore-code/s/0014.html#f1 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables. It routes cable (`routeCable`) and draws lines (`drawLines`). - What it achieves (comment): A buried cable laid along a plan polyline. - What it does: It calculates cables. Defines 13 functions or classes, including sub, norm, unit, turn, planSegments. - 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. - Downstream impact: Used directly by 1 file: Connect Here (globalgrid2050). - Signatures: `export routeCable({ points, minBendRadius = 0, depthBelowGround = 0, groundAt = () => 0, formation = 'flat', spacing = 0, step = 1, } = {})`; `sub(a, b)`; `norm(v)`; `unit(v)`; `turn(d1, d2)`; `planSegments(pts, R)`; `line(a, b)`; `at(seg, u)`; `coreOffsets(formation, spacing)`; `zAt(x, y)`; `walk(lat, vert)`; `ds(q.s - prev.s)`; `bendRadiusAt(chainage)`; `drawLines({ includeCores = true, includeCentreline = true } = {})` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/cable-route.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cmd Grammar Trench - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/cmd-grammar-trench.mjs (JavaScript, 87 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/cmd-grammar-trench.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0014.html#f2 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 covering cables, solar and 33kV. It parses trench (`parseTrench`) and is built from the is num helper (`isNum`). - What it achieves (comment): The trench and cable words of the command line (trench, cable, load, xray), split out of `cmd-grammar.mjs` to keep each cartridge under 400 lines. Its code works with 33 kV. - What it does: It lists and searches cables, solar and 33kV. Defines isNum, parseTrench. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'trench'): 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: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Cmd Grammar (globalgrid2050). - Signatures: `export parseTrench(v, rest, out, { has, after, num, put, bad, guard })`; `isNum(t)` - 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/cmd-grammar-trench.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cmd Trench - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/cmd-trench.mjs (JavaScript, 121 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/cmd-trench.mjs#L1-L121 - Page: https://code.globalgrid2050.com/explore-code/s/0014.html#f3 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, solar and 33kV, using BS 7671 and IEC 60287. - What it achieves (comment): It rates text (`rateText`) and is built from the trench env helper (`trenchEnv`) and the env for helper (`envFor`). The command line's trench and cable words, as text. Its code works with 33 kV and 132 kV. - What it does: It calculates cables, solar and 33kV. Defines 12 functions or classes, including trenchEnv, envFor, f, pct, tight. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'trench'): 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, 132kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Cmd Model (globalgrid2050). - Signatures: `export trenchEnv(st)`; `export specOf(kind, size, metal, loadA)`; `export rateText({ size, metal = 'al', circuits = 1, pitchM = null, kind = 'lv' }, st)`; `export designText(st, rows = null)`; `envFor(st, kind)`; `f(v, d = 2)`; `pct(v)`; `tight(z)`; `basis(st)`; `blockPlan(st)`; `line([k, v, cls])`; `busiest(g)` - 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/cmd-trench.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 33kV] - Edges: uses 9 estate files (import 9); used by 1; mentioned by 0 ### Trench Design - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/trench-design.mjs (JavaScript, 400 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/trench-design.mjs#L1-L400 - Page: https://code.globalgrid2050.com/explore-code/s/0015.html#f1 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, using IEC 60287-1-1 and IEC 60287-2-1. It solves gap (`solveGap`) and checks drawn (`checkDrawn`). - What it achieves (comment): A trench cross-section designed from the cables it has to carry. - What it does: It calculates cables. Defines 22 functions or classes, including cable, ductAirT, footprint, place, rowW. - 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: Trench Plan (globalgrid2050). - Signatures: `export cable(c)`; `export ductAirT(DeM, p = DEFAULTS, meanC = 60)`; `export footprint(ct)`; `export place(circuits, g)`; `export temperatures(layout, env = {})`; `export solveGap(circuits, g, env = {}, { maxGapM = 3 } = {})`; `export section(solved, circuits, env = {})`; `export designOptions({ circuits, landUse = 'farmland', env = {}, upsize = null, maxTrenches = 6, coverM = null })`; `export checkDrawn(circuits, { cover, pitchM }, env = {})`; `export pullPlan(route, ct, { ducted = true, pull = PULL } = {})`; `radial(od - dc)`; `T1(c.insulationKmW || 3.5)`; `T3(c.sheathKmW || 5.0)`; `side(g.sideClearM ?? p.sideClearMm / 1000)`; `rowW(row)`; `hMax(row)`; `cyclicSelf(self, z, De, p)`; `at(gap)`; `worstClass(circuits)`; `round(x, q)`; `r3(x)`; `add(name, cs, g, extra = {})`; `sumPerMetre(sec)`; `r1(x)`; `turn(i)` (and 1 more) - 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/trench-design.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Trench Plan - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/trench-plan.mjs (JavaScript, 265 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/trench-plan.mjs#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0015.html#f2 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, solar and 33kV, using IEC 60287. - What it achieves (comment): It sizes trench (`sizeTrench`), checks as drawn (`checkAsDrawn`) and turns deg (`turnDeg`). Loss-load factor by load profile: continuous (the default, conservative) or a clear solar day, unclipped. Its code works with 33 kV. - What it does: It calculates cables, solar and 33kV. Defines 14 functions or classes, including splitOf, coverOf, r2, sizeTrench, optionFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'trench'): 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: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Block Trenches (globalgrid2050); Cmd Trench (globalgrid2050); Plant Feeders (globalgrid2050). - Signatures: `export sizeTrench(kind, n, spec, env = {})`; `export checkAsDrawn(kind, n, spec, pitchM, env = {})`; `export corridorCheck(parts, env = {})`; `export offsetPath(pts, d)`; `export planTrenches(runs, env = {}, { hops = [] } = {})`; `export planRows(plan, extra = {})`; `splitOf(split, group)`; `coverOf(e, kind)`; `r2(x)`; `optionFor(circuits, trenches, cover, tenv)`; `foot(kind === 'dc' ? spec.ductOdMm ?? 90 : 2 * (spec.odMm ?? 37.4))`; `worst(pi)`; `turnDeg(a, b, c)`; `at(pts, s)`; `pctOf(v)` - 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/trench-plan.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 0 ### Conductor Round - File: globalgrid2050/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor-round.html (HTML, 259 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor-round.html#L1-L259 - Page: https://code.globalgrid2050.com/explore-code/s/0016.html#f1 - Published at: https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor-round.html - Synopsis: A web page in the kuiper grid folder of GlobalGrid2050 that measures bundle, calculates planar distances and draws on a canvas, covering cables. Published at https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor-round.html. - What it achieves (name): It measures bundle (`measureBundle`) and is built from the compacted step (`compacted`) and the keystone step (`keystone`). Defines `settle`, `measureBundle`, `geometry` and 6 more. It responds to resize events. - What it does: It draws cables. Defines 9 functions or classes, including settle, measureBundle, geometry, compacted, keystone. Side effects: changes the web page (DOM). - 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: Out: web page; canvas drawing. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor-round.html. - Signatures: `settle(n, d, D, iters)`; `measureBundle(w, d, D)`; `geometry(c)`; `compacted(c, o)`; `keystone(cx, cy, S, k)`; `hatchShape(px, py, r, metal)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `insideBand(cy - R)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Conductor - File: globalgrid2050/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor.html (HTML, 406 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor.html#L1-L406 - Page: https://code.globalgrid2050.com/explore-code/s/0016.html#f2 - Published at: https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor.html - Synopsis: A web page in the kuiper grid folder of GlobalGrid2050 that measures bundle, draws settled and calculates planar distances, covering cables, using IEC 60228 and ISO 128. Published at https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor.html. - What it achieves (name): It measures bundle (`measureBundle`) and draws settled (`drawSettled`). Defines `FOOTSRC`, `settle`, `measureBundle` and 9 more. It responds to resize events. - What it does: It draws cables. Defines 12 functions or classes, including FOOTSRC, settle, measureBundle, geometry, compacted. Side effects: changes the web page (DOM). - 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, 1500V. - Inputs & outputs: Out: web page; canvas drawing. Voltage levels named: 1500V. - Downstream impact: Used directly by 1 file: Phone (globalgrid2050, https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/phone.html). It is itself an entry point, published at https://globalgrid2050.com/kuiper-grid/i0073/releases/003100000000-kuiper-shell/conductor.html. - Signatures: `FOOTSRC(c)`; `settle(n, d, D, iters)`; `measureBundle(w, d, D)`; `geometry(c)`; `compacted(c, o)`; `keystone(cx, cy, S, k)`; `hatchShape(px, py, r, metal)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `fold(t)`; `insideBand(cy - R)`; `drawSettled()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [1500V] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Fetch Subsea Data Cables v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/fetch_subsea_data_cablesv6.yml (YAML, 49 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/fetch_subsea_data_cablesv6.yml#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0017.html#f1 - Synopsis: A configuration file in GlobalGrid2050 covering cables. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_subsea_data_cables.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): 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: cables. - domain_stage: upstream_foresight · commercial_user: IPP_developer, 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 ### Update 11kV UKPN v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update_11kv_ukpnv6.yml (YAML, 46 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update_11kv_ukpnv6.yml#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0017.html#f2 - Synopsis: A configuration file in GlobalGrid2050 covering 11kV and substations. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_11kv_ukpn.py`. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word '11kv'): 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, substations. - Inputs & outputs: Voltage levels named: 11kV. - domain_stage: sub33kv_design · commercial_user: IPP_developer, EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch 11kV UKPN v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_11kv_ukpnv6.py (Python, 96 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_11kv_ukpnv6.py#L1-L96 - Page: https://code.globalgrid2050.com/explore-code/s/0017.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches grid 11kV UKPN and substations from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches 11kV UKPN. Defines `fetch_11kv_substations`. Its code works with 11 kV. - What it does: It fetches grid 11kV UKPN and substations. Defines fetch_11kv_substations. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word '11kv'): 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, 11kV. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file grid_11kv_ukpn.geojson. Out: JSON file. Voltage levels named: 11kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_11kv_substations()` - domain_stage: sub33kv_design · commercial_user: IPP_developer, EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file grid_11kv_ukpn.geojson]; out [JSON file]; crs []; voltages [11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch 33kV Data v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_33kv_datav6.py (Python, 87 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_33kv_datav6.py#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0017.html#f4 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches 33kV from OpenStreetMap (Overpass). It fetches region (`fetch_region`). - What it achieves (comment): Define the UK regions using Bounding Boxes [`min_lat`, `min_lon`, `max_lat`, `max_lon`]. Its code works with 33 kV. - What it does: It fetches 33kV. Defines fetch_region. Uses libraries requests, json, time, os. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word '33kv'): 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 (Overpass). Out: JSON file. Voltage levels named: 33kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_region(name, bbox)` - domain_stage: sub33kv_design · commercial_user: IPP_developer, EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [JSON file]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Subsea Data Cables v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_subsea_data_cablesv6.py (Python, 109 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_subsea_data_cablesv6.py#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0017.html#f5 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches subsea cables from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches subsea data cables. Defines `build_query` and `process_data`. It writes `subsea_data_cables.geojson`. - What it does: It fetches subsea cables. Defines build_query, process_data, main. Uses libraries requests, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): 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: data source: OpenStreetMap (Overpass). Out: GeoJSON file subsea_data_cables.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `build_query()`; `process_data(data: dict)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file subsea_data_cables.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GlobalGrid2050 Modularise V6 Cable Geometry - File: globalgrid2050/scripts/modularise_v6_cable_geometry.py (Python, 231 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/modularise_v6_cable_geometry.py#L1-L231 - Page: https://code.globalgrid2050.com/explore-code/s/0017.html#f6 - Synopsis: A Python command-line tool in the scripts folder that reads cables, solar and battery storage (BESS), using SHA-256. - What it achieves (name): It extracts style (`extract_style`), extracts inline scripts (`extract_inline_scripts`) and extracts main script (`extract_main_script`). Defines `sha256`, `read`, `write` and 8 more. - What it does: It loads cables, solar and battery storage (BESS). Defines 12 functions or classes, including sha256, read, write, extract_style, extract_inline_scripts. Uses libraries pathlib, hashlib, re, datetime. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 V6 Cable Geometry Modularise Workflow (globalgrid2050). - Signatures: `sha256(text: str)`; `read(path: Path)`; `write(path: Path, text: str)`; `extract_style(html: str)`; `extract_inline_scripts(html: str)`; `extract_main_script(html: str)`; `find_anchor(js: str, anchor: str)`; `split_js(js: str)`; `replace_block(text: str, match: re.Match, replacement: str)`; `normalise_for_compare(text: str)`; `make_report(css_v6: str, js_v6: str, parts: dict[str, str], rebuilt_css: str, rebuilt_js: str, v5_css: str | None, v5_js: str | N...)`; `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 ### Cable Geometry Visualiser V5 - File: globalgrid2050/solar-bess-topology-v5/cable-geometry-visualiser-v5.html (HTML, 2051 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v5/cable-geometry-visualiser-v5.html#L1-L2051 - Page: https://code.globalgrid2050.com/explore-code/s/0018.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v5/cable-geometry-visualiser-v5.html - Synopsis: A web page in GlobalGrid2050 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-v5/cable-geometry-visualiser-v5.html. - 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: Used directly by 13 files: Module Layout V5 (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v5/module-layout-v5.html); Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); and 9 more. Reached from 94 other entry points, including 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); 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/cable-geometry-visualiser-v5.html. - 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 2 estate files (link 2); used by 13; mentioned by 0 ### Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page - File: globalgrid2050/solar-bess-topology-v6/cable-geometry-visualiser/index.html (HTML, 279 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-bess-topology-v6/cable-geometry-visualiser/index.html#L1-L279 - Page: https://code.globalgrid2050.com/explore-code/s/0021.html#f1 - Published at: https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/ - Synopsis: A web page in GlobalGrid2050 covering cables, 132kV, 33kV 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-v6/cable-geometry-visualiser/. - What it achieves (name): Its code works with 1 kV, 132 kV and 33 kV. - What it does: It draws cables, 132kV, 33kV 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: cables, 132kV, 33kV, solar, 110kV, 66kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV. - Downstream impact: Used directly by 2 files: 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 — 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/cable-geometry-visualiser/. - 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 [132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV] - Edges: uses 8 estate files (script-src 5, link 2, stylesheet 1); used by 2; mentioned by 0 ### Cable Route - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/cable-route.mjs (JavaScript, 207 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/cable-route.mjs#L1-L207 - Page: https://code.globalgrid2050.com/explore-code/s/0021.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It routes cable (`routeCable`) and draws lines (`drawLines`). - What it achieves (comment): A buried cable laid along a plan polyline. - What it does: It calculates cables. Defines 13 functions or classes, including sub, norm, unit, turn, planSegments. - 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. - Downstream impact: Used directly by 6 files: Design UI (globalgrid2050); Layers (globalgrid2050); Layers (globalgrid2050); Design UI (globalgrid2050); and 2 more. Reached from 7 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/); Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/). - Signatures: `export routeCable({ points, minBendRadius = 0, depthBelowGround = 0, groundAt = () => 0, formation = 'flat', spacing = 0, step = 1, } = {})`; `sub(a, b)`; `norm(v)`; `unit(v)`; `turn(d1, d2)`; `planSegments(pts, R)`; `line(a, b)`; `at(seg, u)`; `coreOffsets(formation, spacing)`; `zAt(x, y)`; `walk(lat, vert)`; `ds(q.s - prev.s)`; `bendRadiusAt(chainage)`; `drawLines({ includeCores = true, includeCentreline = true } = {})` - 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 6; mentioned by 1 ### Cable Rating - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/cable-rating.mjs (JavaScript, 87 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/cable-rating.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0021.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and 33kV, using IEC 60287-1-1 and IEC 60287-2-1. - What it achieves (comment): It is built from the build step (`build`), the rating step (`rating`) and the impedance step (`impedance`). Continuous current rating of a 33kV single-core aluminium XLPE cable laid direct in trefoil, by the steady-state method of IEC 60287-1-1 (losses) and IEC 60287-2-1 (thermal resistances), and the size a feeder segment needs for the load it carries. Its code works with 33 kV. - What it does: It calculates cables and 33kV. Defines build, rating, impedance, dropPercent, sizeFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 4 files: Block Build (globalgrid2050); Block MV (globalgrid2050); Plant Feeders (globalgrid2050); Plant Template (globalgrid2050). - Signatures: `export build(area, p = RATING_DEFAULTS, odMm = null)`; `export rating(area, opts = {})`; `export impedance(area, opts = {})`; `export dropPercent(area, lengthM, mva, { pf = 0.95, ...opts } = {})`; `export sizeFor(mva, opts = {})`; `xs4(8 * PI * p.freq / rdc * 1e-7)`; `dMean(b.di + b.ds)` - VEDIC: PERCENT (GG2050-VEDIC-000025): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. drop_volts, nominal_volts -> drop_percent - 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 4; mentioned by 0 ### Trench Section - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/trench-section.mjs (JavaScript, 148 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/trench-section.mjs#L1-L148 - Page: https://code.globalgrid2050.com/explore-code/s/0022.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 formation of helper (`formationOf`), the cross section helper (`crossSection`) and the half at helper (`halfAt`). A trench drawn as a true cross-section, and cables drawn at their real outside diameter. - What it does: It calculates cables. Defines 9 functions or classes, including formationOf, crossSection, halfAt, sectionLines, 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 3 files: 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 formationOf(section)`; `export crossSection(section, eff, { cableOdMm = null, tapeAboveM = 0.25 } = {})`; `export sectionLines({ trench, groundAt, cs, eye, near = 25, spacing = 2, ringSides = 16 })`; `export tubeLines(polyline, od, { eye = null, near = 20, every = 1, sides = 8 } = {})`; `halfAt(z)`; `bed((section.bedding && section.bedding.thickness_mm) || 75)`; `circuitGap(Number(section.circuit_spacing_mm) || 0)`; `push(a, b)`; `rail(key, uz)`; `frame(i)`; `off(p, [nx, ny], du, dz)` - 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 ### Trench - File: globalgrid2050/solar-design-studio/202609270330-site-world-v3/world/trench.mjs (JavaScript, 301 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270330-site-world-v3/world/trench.mjs#L1-L301 - Page: https://code.globalgrid2050.com/explore-code/s/0022.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cut height (`cutHeight`) and offset line (`offsetLine`) and calculates planar distances. - What it achieves (comment): It is built from the point at helper (`pointAt`), the candidates step (`candidates`) and the floor at helper (`floorAt`). A trench is a function laid over the ground, never a stored mesh. - What it does: It calculates its inputs. Defines 20 functions or classes, including createTrench, pointAt, candidates, floorAt, inside. - 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: Hdd (globalgrid2050); Design UI (globalgrid2050); Design Sections (globalgrid2050); Layers (globalgrid2050); and 4 more. 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 createTrench({ path, width, depth, benchSlope = 0, groundAt = null })`; `export composeGround(groundAt, trenches)`; `export floorGround(trench, groundAt)`; `dx(bx - ax)`; `pointAt(s)`; `candidates(x, y, limit)`; `floorAt(s, g = groundAt)`; `inside(x, y)`; `cutHeight(x, y, g = groundAt)`; `chainage(x, y)`; `length3dOn(g)`; `spoilVolumeOn(g)`; `dig(x, y)`; `straddles(x, y, i, j)`; `offsetLine(h)`; `mitredOutline(h)`; `pad(p, g, sign)`; `wallLines(g = groundAt)`; `push(a, b)`; `topAt(x, y, floor)`; `get()`; `bisector(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 1 estate file (import 1); used by 8; mentioned by 0 ### Cable Checks UI - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/cable-checks-ui.mjs (JavaScript, 90 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/cable-checks-ui.mjs#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0022.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that loads staged (`loadStaged`) and line (`loadLine`) (units: mm²), covering cables and solar, using IEC 60364-5-52 and IEC 60287-1-1. - What it achieves (comment): It loads staged (`loadStaged`) and loads line (`loadLine`). The Cable checks fold under Design > Plant > Solar block. It responds to change events. - What it does: It draws cables and solar. Defines 10 functions or classes, including loadStaged, mountCableChecks, el, note, n. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 3 files: Design Sections (globalgrid2050); Block UI (globalgrid2050); Design Sections (globalgrid2050). - Signatures: `export loadStaged({ manifestUrl = './world/manifest.json', fetchImpl } = {})`; `export mountCableChecks({ doc, box, load = () => loadStaged() })`; `pin(await res.json())`; `el(tag, props = {}, ...kids)`; `note(t)`; `n(x, d)`; `table(heads, rows)`; `dl(target, rows)`; `range(s)`; `loadLine(s)`; `render()` - 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 3; mentioned by 0 ### Cable Checks - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/cable-checks.mjs (JavaScript, 104 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/cable-checks.mjs#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0022.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar. - What it achieves (comment): It parses checks (`parseChecks`) and is built from the value words helper (`valueWords`) and the loading words helper (`loadingWords`). The Solar block's cable schedule as illustrative checks (Design > Plant > Solar block > Cable checks). - What it does: It calculates cables and solar. Defines 14 functions or classes, including valueWords, loadingWords, num, rTheta, round. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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: Cable Checks UI (globalgrid2050). - Signatures: `export valueWords(v)`; `export loadingWords(pct)`; `export parseChecks(doc)`; `export defaultChoice(checks)`; `export caseFor(cases, choice)`; `export acChecks(checks, choice)`; `export dcChecks(checks)`; `export summarise(circuits)`; `export tableRow(c)`; `num(v)`; `rTheta(r20, alpha, theta)`; `round(x, d)`; `rows(k)`; `stat(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 0 estate files; used by 1; mentioned by 1 ### Cable Checks - File: globalgrid2050/solar-design-studio/202609271552-site-world/world/cable-checks.mjs (JavaScript, 113 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/cable-checks.mjs#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0023.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar. It parses checks (`parseChecks`) and checks line (`checkLine`). - What it achieves (comment): The Solar block's cable schedule as illustrative checks (Design > Plant > Solar block > Cable checks). - What it does: It calculates cables and solar. Defines 16 functions or classes, including valueWords, loadingWords, num, rTheta, round. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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: Block UI (globalgrid2050). - Signatures: `export valueWords(v)`; `export loadingWords(pct)`; `export parseChecks(doc)`; `export defaultChoice(checks)`; `export caseFor(cases, choice)`; `export acChecks(checks, choice)`; `export dcChecks(checks)`; `export summarise(circuits)`; `export tableRow(c)`; `export checkLine(checks, choice = defaultChoice(checks))`; `num(v)`; `rTheta(r20, alpha, theta)`; `round(x, d)`; `rows(k)`; `stat(k)`; `part(what, 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 [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cable Group IEC - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cable-group-iec.mjs (JavaScript, 214 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/cable-group-iec.mjs#L1-L214 - Page: https://code.globalgrid2050.com/explore-code/s/0023.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, using IEC 60287 and IEC 60287-2-1. It builds model (`buildModel`) and groups rating (`groupRating`). - What it achieves (comment): Continuous and cyclic current rating of buried single-core cables in groups (AC LV, AC MV, DC), laid direct or in ducts, by the steady-state thermal method of the IEC 60287 family. - What it does: It calculates cables. Defines 12 functions or classes, including expand, buildModel, temperatures, trefoilCentreOffset, cyclicTrefoilG. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 buildModel(circuits, opts = {})`; `export temperatures(model, scale)`; `export groupRating(circuits, opts = {})`; `export circuitRating(circuit, opts = {})`; `export rowLayout({ n, pitchM, depth, rows = 1, rowGapM = 0.3, ...circuit })`; `export pitchForLoad({ n, load, maxPitchM = 2, edgeM = 0.1, ...rest }, opts = {})`; `export soilProblem(result)`; `expand(c, k)`; `s(c.spacingMm || unit)`; `a(c.spacingMm || unit)`; `dT3(w.Wc * (1 + w.lam) + c.Wd)`; `trefoilCentreOffset(e, cables)`; `cyclicTrefoilG(e, cables, o)`; `excess(s)`; `ok(p)`; `unit(rest.duct ? rest.duct.odMm : rest.cable.od)` - 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 ### Cable IEC - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cable-iec.mjs (JavaScript, 257 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/cable-iec.mjs#L1-L257 - Page: https://code.globalgrid2050.com/explore-code/s/0023.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, solar and 33kV, using IEC 60287 and IEC 60287-1-1. - What it achieves (comment): It makes cable (`makeCable`) and is built from the rdc at helper (`rdcAt`) and the skin y helper (`skinY`). One buried single-core cable by the IEC 60287 thermal method: its build, losses and thermal resistances. Its code works with 33 kV, 1 kV and 1.5 kV. - What it does: It calculates cables, solar and 33kV. Defines 16 functions or classes, including makeCable, rdcAt, skinY, acResistance, dielectricLoss. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 1.5kV, 1kV. - Inputs & outputs: Voltage levels named: 33kV, 1.5kV, 1kV. - Downstream impact: Used directly by 3 files: Cable Group IEC (globalgrid2050); Cmd Trench (globalgrid2050); Trench Plan (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 makeCable(spec)`; `export rdcAt(cable, theta)`; `export acResistance(cable, theta, sMm, freq = 50)`; `export dielectricLoss(cable, freq = 50)`; `export screenLossFactors(cable, { R, sMm, formation = 'trefoil', bonding = 'solid', thetaS = 70, freq = 50 })`; `export internalThermal(cable)`; `export selfG(Lm, DeMm)`; `export mutualG(a, b)`; `export trefoilTouchingG(Lm, DeMm)`; `export cyclicSelfG(Lm, DeMm, mu, diffusivityM2h)`; `export airGapT4(DeMm, DbMm, W, thetaM, uvy = null, eps = 0.9)`; `export bundleDiameter(n, d)`; `export solarDayProfile({ sunrise = 6, sunset = 18, clip = 1, stepH = 0.25 } = {})`; `export lossLoadFactor(profile)`; `skinY(x2)`; `tail(beta1 * ts)`; `eddy(l0, d1, d2)`; `x(t + stepH / 2 - sunrise)` - 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, 1.5kV, 1kV] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Cable Rating - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cable-rating.mjs (JavaScript, 94 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/cable-rating.mjs#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0023.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and 33kV, using IEC 60287-1-1 and IEC 60287-2-1. - What it achieves (comment): It is built from the al r20 helper (`alR20`), the cu r20 helper (`cuR20`) and the build step (`build`). Continuous current rating of a 33kV single-core aluminium XLPE cable laid direct in trefoil, by the steady-state method of IEC 60287-1-1 (losses) and IEC 60287-2-1 (thermal resistances), and the size a feeder segment needs for the load it carries. Its code works with 33 kV. - What it does: It calculates cables and 33kV. Defines 7 functions or classes, including alR20, cuR20, build, rating, impedance. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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 9 files: Cmd Trench (globalgrid2050); Block MV (globalgrid2050); Single-Line Diagram (SLD) Graph (globalgrid2050); Single-Line Diagram (SLD) Plant (globalgrid2050); and 5 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 alR20(area)`; `export cuR20(area)`; `export build(area, p = RATING_DEFAULTS, odMm = null)`; `export rating(area, opts = {})`; `export impedance(area, opts = {})`; `export dropPercent(area, lengthM, mva, { pf = 0.95, ...opts } = {})`; `export sizeFor(mva, opts = {})`; `rdc(opts.r20OhmKm || alR20(area))`; `xs4(8 * PI * p.freq / rdc * 1e-7)`; `dMean(b.di + b.ds)` - VEDIC: PERCENT (GG2050-VEDIC-000025): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. drop_volts, nominal_volts -> drop_percent - 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 9; mentioned by 0 ### Cmd Grammar Trench - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cmd-grammar-trench.mjs (JavaScript, 85 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/cmd-grammar-trench.mjs#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0024.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 covering cables, solar and 33kV. It parses trench (`parseTrench`) and is built from the is num helper (`isNum`). - What it achieves (comment): The trench and cable words of the command line (trench, cable, load, xray), split out of `cmd-grammar.mjs` to keep each cartridge under 400 lines. Its code works with 33 kV. - What it does: It lists and searches cables, solar and 33kV. Defines isNum, parseTrench. - 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: Voltage levels named: 33kV. - 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 parseTrench(v, rest, out, { has, after, num, put, bad, guard })`; `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 [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Cmd Trench - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/cmd-trench.mjs (JavaScript, 119 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/cmd-trench.mjs#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0024.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, solar and 33kV, using BS 7671 and IEC 60287. - What it achieves (comment): It rates text (`rateText`) and is built from the trench env helper (`trenchEnv`) and the env for helper (`envFor`). The command line's trench and cable words, as text. Its code works with 33 kV and 132 kV. - What it does: It calculates cables, solar and 33kV. Defines 12 functions or classes, including trenchEnv, envFor, f, pct, tight. - 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, 132kV. - Inputs & outputs: Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: 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 trenchEnv(st)`; `export specOf(kind, size, metal, loadA)`; `export rateText({ size, metal = 'al', circuits = 1, pitchM = null, kind = 'lv' }, st)`; `export designText(st, rows = null)`; `envFor(st, kind)`; `f(v, d = 2)`; `pct(v)`; `tight(z)`; `basis(st)`; `blockPlan(st)`; `line([k, v, cls])`; `busiest(g)` - 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 [132kV, 33kV] - Edges: uses 9 estate files (import 9); used by 1; mentioned by 0 ### Trench Plan - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/trench-plan.mjs (JavaScript, 263 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/trench-plan.mjs#L1-L263 - Page: https://code.globalgrid2050.com/explore-code/s/0024.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, solar and 33kV, using IEC 60287. - What it achieves (comment): It sizes trench (`sizeTrench`), checks as drawn (`checkAsDrawn`) and turns deg (`turnDeg`). Loss-load factor by load profile: continuous (the default, conservative) or a clear solar day, unclipped. Its code works with 33 kV. - What it does: It calculates cables, solar and 33kV. Defines 14 functions or classes, including splitOf, coverOf, r2, sizeTrench, optionFor. - 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: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Cmd Trench (globalgrid2050); Block Trenches (globalgrid2050); Plant Feeders (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 sizeTrench(kind, n, spec, env = {})`; `export checkAsDrawn(kind, n, spec, pitchM, env = {})`; `export corridorCheck(parts, env = {})`; `export offsetPath(pts, d)`; `export planTrenches(runs, env = {}, { hops = [] } = {})`; `export planRows(plan, extra = {})`; `splitOf(split, group)`; `coverOf(e, kind)`; `r2(x)`; `optionFor(circuits, trenches, cover, tenv)`; `foot(kind === 'dc' ? spec.ductOdMm ?? 90 : 2 * (spec.odMm ?? 37.4))`; `worst(pi)`; `turnDeg(a, b, c)`; `at(pts, s)`; `pctOf(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 [33kV] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 0 ### Block Trenches - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/block-trenches.mjs (JavaScript, 159 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/block-trenches.mjs#L1-L159 - Page: https://code.globalgrid2050.com/explore-code/s/0024.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with 33kV, transformers, cables and solar. - What it achieves (comment): It is built from the sum step (`sum`), the stretches step (`stretches`) and the HV section helper (`hvSection`). The solar block's trenches, laid out from what each stretch of route really carries, then sized by rating (`trench-plan.mjs`). Its code works with 33 kV. - What it does: It calculates 33kV, transformers, cables and solar. Defines 10 functions or classes, including sum, f2, stretches, hvSection, blockTrenches. - 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, transformers, cables, solar. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Cmd Trench (globalgrid2050); Block Build (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 stretches(iv, minM = BLOCK_TRENCH.minStretchM)`; `export hvSection(kv)`; `export blockTrenches(st, mv, E, N, odMv, env = {}, s = SD)`; `sum(a)`; `f2(x)`; `envFor(g)`; `mvaOf(id)`; `whole(r)`; `half(r)`; `toEn(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 [33kV] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Trench Design - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/trench-design.mjs (JavaScript, 398 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/trench-design.mjs#L1-L398 - Page: https://code.globalgrid2050.com/explore-code/s/0025.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables and solar, using IEC 60287-1-1 and IEC 60287-2-1. It solves gap (`solveGap`) and checks drawn (`checkDrawn`). - What it achieves (comment): A trench cross-section designed from the cables it has to carry. - What it does: It calculates cables and solar. Defines 22 functions or classes, including cable, ductAirT, footprint, place, rowW. - 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: Trench Plan (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 cable(c)`; `export ductAirT(DeM, p = DEFAULTS, meanC = 60)`; `export footprint(ct)`; `export place(circuits, g)`; `export temperatures(layout, env = {})`; `export solveGap(circuits, g, env = {}, { maxGapM = 3 } = {})`; `export section(solved, circuits, env = {})`; `export designOptions({ circuits, landUse = 'farmland', env = {}, upsize = null, maxTrenches = 6, coverM = null })`; `export checkDrawn(circuits, { cover, pitchM }, env = {})`; `export pullPlan(route, ct, { ducted = true, pull = PULL } = {})`; `radial(od - dc)`; `T1(c.insulationKmW || 3.5)`; `T3(c.sheathKmW || 5.0)`; `side(g.sideClearM ?? p.sideClearMm / 1000)`; `rowW(row)`; `hMax(row)`; `cyclicSelf(self, z, De, p)`; `at(gap)`; `worstClass(circuits)`; `round(x, q)`; `r3(x)`; `add(name, cs, g, extra = {})`; `sumPerMetre(sec)`; `r1(x)`; `turn(i)` (and 1 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 ### Data Core - File: globalgrid2050/testcode/202609060432/cable/data-core.js (JavaScript, 308 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060432/cable/data-core.js#L1-L308 - Page: https://code.globalgrid2050.com/explore-code/s/0026.html#f1 - Published at: https://globalgrid2050.com/testcode/202609060432/cable/ - Synopsis: A JavaScript file in the cable folder of GlobalGrid2050 covering 11kV, 33kV, cables and 110kV, using BS 7870-4 and IEC 60840. Served with the page at https://globalgrid2050.com/testcode/202609060432/cable/. - What it achieves (comment): Core reference data: burial depths, conductor labels, voltage class definitions, CSA ranges, dropdown groups, and formation library. Its code works with 11 kV, 33 kV and 1 kV. - 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: 11kV, 33kV, cables, 110kV, 1kV. - Inputs & outputs: Voltage levels named: 110kV, 33kV, 11kV, 1kV. - Downstream impact: Used directly by 1 file: Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 16 other entry points, including Homepage V077 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v077.html); Homepage V078 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v078.html); Homepage V079 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v079.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609060432/cable/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [110kV, 33kV, 11kV, 1kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Data LV - File: globalgrid2050/testcode/202609060432/cable/data-lv.js (JavaScript, 37 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060432/cable/data-lv.js#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0026.html#f2 - Published at: https://globalgrid2050.com/testcode/202609060432/cable/ - Synopsis: A JavaScript file in the cable folder of GlobalGrid2050 covering cables, using BS 5467 and BS 6724. Served with the page at https://globalgrid2050.com/testcode/202609060432/cable/. - What it achieves (comment): `OD_LV` — Low Voltage Cable OD and MBR Schedule 0.6/1kV Cu XLPE — single core and 3 core Source: Generic UK LV schedule (BS 5467 / BS 6724 basis). Its code works with 1 kV. - 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, 1kV. - Inputs & outputs: Voltage levels named: 1kV. - Downstream impact: Used directly by 1 file: Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 16 other entry points, including Homepage V077 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v077.html); Homepage V078 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v078.html); Homepage V079 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v079.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609060432/cable/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [1kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Drawing View Exit - File: globalgrid2050/testcode/202609060432/cable/drawing-view-exit.js (JavaScript, 16 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060432/cable/drawing-view-exit.js#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0026.html#f3 - Published at: https://globalgrid2050.com/testcode/202609060432/cable/ - Synopsis: A JavaScript file in the cable folder of GlobalGrid2050 that keeps the existing Drawing View toggle reachable while its parent panel is hidden. Served with the page at https://globalgrid2050.com/testcode/202609060432/cable/. - What it achieves (name): Defines `sync` and `leave`. It responds to click and keydown events. - What it does: It draws its content. Defines sync, leave. 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: Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 16 other entry points, including Homepage V077 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v077.html); Homepage V078 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v078.html); Homepage V079 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v079.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609060432/cable/. - Signatures: `sync()`; `leave()` - 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 ### Testcode — Cable Page - File: globalgrid2050/testcode/202609060432/cable/index.html (HTML, 555 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060432/cable/index.html#L1-L555 - Page: https://code.globalgrid2050.com/explore-code/s/0027.html#f1 - Published at: https://globalgrid2050.com/testcode/202609060432/cable/ - Synopsis: A web page in GlobalGrid2050 that reads inputs for route name, section length and installation condition, covering cables. Published at https://globalgrid2050.com/testcode/202609060432/cable/. - What it achieves (comment): Cable Geometry Visualiser v1.6.0. Its code works with 11 kV, 110 kV and 33 kV. - What it does: It draws cables. Uses libraries app.js. 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, 110kV, 33kV, 11kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 110kV, 33kV, 11kV. - Downstream impact: Used directly by 16 files: Homepage V077 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v077.html); Homepage V078 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v078.html); Homepage V079 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v079.html); Homepage V080 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v080.html); and 12 more. It is itself an entry point, published at https://globalgrid2050.com/testcode/202609060432/cable/. - 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 [110kV, 33kV, 11kV] - Edges: uses 5 estate files (script-src 5); used by 16; mentioned by 0 ### Testcode — V01 Spider Drill Page - File: globalgrid2050/testcode/202609141522/v01-spider-drill/index.html (HTML, 69 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141522/v01-spider-drill/index.html#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0027.html#f2 - Published at: https://globalgrid2050.com/testcode/202609141522/v01-spider-drill/ - Synopsis: A web page in GlobalGrid2050 that shows cat (`showCat`) and block (`showBlock`) and opens family (`openFamily`). Published at https://globalgrid2050.com/testcode/202609141522/v01-spider-drill/. It shows cat (`showCat`), shows block (`showBlock`) and opens family (`openFamily`). - What it achieves (name): Defines `card`, `clear`, `showCat` and 2 more. - What it does: It draws its content. Defines card, clear, showCat, showBlock, openFamily. 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: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141522/v01-spider-drill/. - Signatures: `card(label, sub, colour, arrow, onClick)`; `clear()`; `showCat(id)`; `showBlock(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (script-src 1); used by 0; mentioned by 0 ### Code Map — V01 Dependency Drill Page - File: globalgrid2050/testcode/202609141754/code-map/v01-dependency-drill/index.html (HTML, 70 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v01-dependency-drill/index.html#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0027.html#f3 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v01-dependency-drill/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that shows cat (`showCat`) and block (`showBlock`) and opens family (`openFamily`). Published at https://globalgrid2050.com/testcode/202609141754/code-map/v01-dependency-drill/. - What it achieves (name): It shows cat (`showCat`), shows block (`showBlock`) and opens family (`openFamily`). Defines `card`, `clear`, `showCat` and 2 more. - What it does: It draws its content. Defines card, clear, showCat, showBlock, openFamily. 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: Out: web page. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v01-dependency-drill/. - Signatures: `card(label, sub, colour, arrow, onClick)`; `clear()`; `showCat(id)`; `showBlock(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: EPC_contractor · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Wafer Development Environment — Cable Cross Sections - File: globalgrid2050/testcode/wafer-development-environment/202609190330-cable-cross-sections/app.mjs (JavaScript, 980 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609190330-cable-cross-sections/app.mjs#L1-L980 - Page: https://code.globalgrid2050.com/explore-code/s/0028.html#f1 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/ - Synopsis: A JavaScript module in the testcode folder of GlobalGrid2050 that draws lines meta and families, using SHA-256. Served with the page at https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - What it achieves (comment): It indexes key (`indexOfKey`), builds gl (`buildGL`) and draws marks (`drawMarks`). WHAT THIS IS. Every line of code in the estate that has been given a permanent number is one point on one surface. It responds to pointerdown, pointermove and pointerup events. - What it does: It draws lines meta and families. Defines 63 functions or classes, including $, indexOfKey, bin, tier1, tier2. Side effects: changes the web page (DOM); 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. - Inputs & outputs: In: JSON file all-lines.meta.json; JSON file families.json; JSON file line-index.json. Out: WebGL/WebGPU drawing. - Downstream impact: Used directly by 1 file: Wafer Development Environment — Cable Cross Sections Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/). 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://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - Signatures: `$(id)`; `indexOfKey(key)`; `bin(name, Kind)`; `tier1()`; `tier2()`; `compile(g, type, src)`; `initGL()`; `fallback2d()`; `buildGL()`; `put(data, name, size, Kind, norm, usage)`; `resize()`; `ensureOverlay()`; `drawMarks()`; `toScreen([x, y])`; `render()`; `x(U.posB[i * 2] - view.x)`; `draw()`; `home()`; `flyTo(key, zoom)`; `waferR()`; `clearPupil(buf)`; `rimStart()`; `partition(keys)`; `fullTargets(scopeTargets)`; `lawTargets()` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file all-lines.meta.json; JSON file families.json; JSON file line-index.json]; out [WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Wafer Development Environment — Cable Cross Sections Page - File: globalgrid2050/testcode/wafer-development-environment/202609190330-cable-cross-sections/index.html (HTML, 160 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609190330-cable-cross-sections/index.html#L1-L160 - Page: https://code.globalgrid2050.com/explore-code/s/0029.html#f2 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 covering cables, substations, 400kV and 132kV, using IEC 60909. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. It is built from the close all helper (`closeAll`). - What it achieves (name): Defines `closeAll`. Its code works with 132 kV and 400 kV. It responds to click and keydown events. - What it does: It draws cables, substations, 400kV and 132kV. Defines closeAll. 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, substations, 400kV, 132kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 5 files: GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage Versions — Before Refresh Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/20260922-before-refresh/); Homepage V123 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v123.html); Homepage V124 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v124.html); and 1 more. Reached from 83 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.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://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - Signatures: `closeAll(except)` - 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, 132kV] - Edges: uses 4 estate files (script-src 3, stylesheet 1); used by 5; mentioned by 0 ### Kuiper Weigh - File: globalgrid2050/testcode/wafer-development-environment/202609190330-cable-cross-sections/kuiper-weigh.mjs (JavaScript, 73 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609190330-cable-cross-sections/kuiper-weigh.mjs#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0029.html#f3 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/ - Synopsis: A JavaScript module in the testcode folder of GlobalGrid2050 that reads estate bodies and Kuiper network, using SHA-256. Served with the page at https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - What it achieves (comment): Join the measured copy count onto every station of `kuiper-network.json`. - What it does: It loads estate bodies and Kuiper network. Uses libraries node:fs, node:path, node:crypto, node:url. 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 estate-bodies.json; JSON file bodies.json; JSON file kuiper-network.json; command-line arguments. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file estate-bodies.json; JSON file bodies.json; JSON file kuiper-network.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Pilot - File: globalgrid2050/testcode/wafer-development-environment/202609190330-cable-cross-sections/pilot.mjs (JavaScript, 499 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609190330-cable-cross-sections/pilot.mjs#L1-L499 - Page: https://code.globalgrid2050.com/explore-code/s/0030.html#f1 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/ - Synopsis: A JavaScript module in the testcode folder of GlobalGrid2050 that draws electron, using IEC 60909 and uses data from the ventus-grid-engine repository. Served with the page at https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - What it achieves (comment): It describes line (`describeLine`) and loads net (`loadNet`). Quantum Twin — primary key to actual code flights. Its code works with 132 kV, 400 kV and 33 kV. It responds to click, pointerdown and pointermove events. - What it does: It draws electron, qubit and entangle. Defines 36 functions or classes, including $, here, hash32, mulberry32, atomOf. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - 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: 400kV, 132kV, 33kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: gridatlas data; data source: pipelinenews data; data source: grid-dictionary data; data source: spiders data; data source: star-solar-star data; data source: code-generator data; data source: testcode data. Out: browser storage (setItem); canvas drawing. Voltage levels named: 400kV, 132kV, 33kV. - Downstream impact: Used directly by 1 file: Wafer Development Environment — Cable Cross Sections Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/). 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://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - Signatures: `$(id)`; `here(() => { const m = document.querySelector('meta[name="wafer-data"]'); return m ? new URL(m.content, location.href).hre...)`; `hash32(str)`; `mulberry32(a)`; `atomOf(k)`; `twinOf(k)`; `log(s)`; `say(html)`; `esc(s)`; `fly(a, b)`; `gh(t)`; `signal(o)`; `plainLabel(mod, fn, args)`; `describeLine(line)`; `help()`; `block(k)`; `twin(k)`; `read(k)`; `showCode(k, t, verb)`; `state(k)`; `qubit(k)`; `measure(rest)`; `connect(ab)`; `apps()`; `app(name)` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: gridatlas data; data source: pipelinenews data; data source: grid-dictionary data; data source: spiders data; data source: star-solar-star data; data source: code-generator data; data source: testcode data]; out [browser storage (setItem); canvas drawing]; crs []; voltages [400kV, 132kV, 33kV] - Edges: uses 6 estate files (estate-url 6); used by 1; mentioned by 0 ### Kuiper Pulse Check - File: globalgrid2050/testcode/wafer-development-environment/202609190330-cable-cross-sections/proof/kuiper-pulse.check.mjs (JavaScript, 110 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609190330-cable-cross-sections/proof/kuiper-pulse.check.mjs#L1-L110 - Page: https://code.globalgrid2050.com/explore-code/s/0030.html#f2 - Synopsis: A JavaScript module in the proof folder of GlobalGrid2050 that reads Kuiper network. It is built from the cut step (`cut`) and the load step (`load`). - What it achieves (comment): `proof/kuiper-pulse.check`.mjs — the Kuiper belt's pulse, checked without a browser. - What it does: It loads Kuiper network. Defines cut, load, ok, no. Uses libraries node:fs, node:path, node:url. Side effects: 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. - Inputs & outputs: In: JSON file -network.json; JSON file kuiper-network.json; command-line arguments. - Signatures: `cut(name, kind)`; `load(f)`; `ok(c, m)`; `no(m)`; `u(d[q] - Rf)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file -network.json; JSON file kuiper-network.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Wafer Development Environment — Cable Cross Sections Style Sheet - File: globalgrid2050/testcode/wafer-development-environment/202609190330-cable-cross-sections/style.css (CSS, 182 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609190330-cable-cross-sections/style.css#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0031.html#f1 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/ - Synopsis: A style sheet in the testcode folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - What it achieves (comment): Designed at 430 px first; the desktop is the same layout with more room. - What it does: 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: Wafer Development Environment — Cable Cross Sections Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/). 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://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/. - 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 ### Conductor - File: globalgrid2050/testcode/wafer-development-environment/202609191315-proof-4/conductor.html (HTML, 110 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609191315-proof-4/conductor.html#L1-L110 - Page: https://code.globalgrid2050.com/explore-code/s/0031.html#f2 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609191315-proof-4/conductor.html - Synopsis: A web page in the testcode folder of GlobalGrid2050 that draws on a canvas (units: mm²), covering cables, using IEC 60228 and ISO 128. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191315-proof-4/conductor.html. - What it achieves (name): It is built from the draw step (`draw`). Defines `geometry`, `hatch`, `dim` and 1 more. It responds to resize events. - What it does: It draws cables. Defines geometry, hatch, dim, draw. 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: Out: web page; canvas drawing. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191315-proof-4/conductor.html. - Signatures: `geometry(c)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Conductor - File: globalgrid2050/testcode/wafer-development-environment/202609191335-proof-6/conductor.html (HTML, 151 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609191335-proof-6/conductor.html#L1-L151 - Page: https://code.globalgrid2050.com/explore-code/s/0031.html#f3 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609191335-proof-6/conductor.html - Synopsis: A web page in the testcode folder of GlobalGrid2050 that draws on a canvas (units: mm²), covering cables, using IEC 60228 and ISO 128. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191335-proof-6/conductor.html. - What it achieves (name): It is built from the draw step (`draw`). Defines `geometry`, `hatch`, `dim` and 1 more. It responds to resize events. - What it does: It draws cables. Defines geometry, hatch, dim, draw. 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: Out: web page; canvas drawing. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191335-proof-6/conductor.html. - Signatures: `geometry(c)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `insideBand(cy - R)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Conductor - File: globalgrid2050/testcode/wafer-development-environment/202609191345-proof-7/conductor.html (HTML, 183 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609191345-proof-7/conductor.html#L1-L183 - Page: https://code.globalgrid2050.com/explore-code/s/0031.html#f4 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609191345-proof-7/conductor.html - Synopsis: A web page in the testcode folder of GlobalGrid2050 that draws on a canvas (units: mm², °C, Ω), covering cables, using IEC 60228 and ISO 128. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191345-proof-7/conductor.html. - What it achieves (name): It is built from the draw step (`draw`). Defines `geometry`, `hatch`, `dim` and 1 more. It responds to resize events. - What it does: It draws cables. Defines geometry, hatch, dim, draw. 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: Out: web page; canvas drawing. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191345-proof-7/conductor.html. - Signatures: `geometry(c)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `insideBand(cy - R)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Conductor - File: globalgrid2050/testcode/wafer-development-environment/202609191547-proof-k0003/conductor.html (HTML, 297 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609191547-proof-k0003/conductor.html#L1-L297 - Page: https://code.globalgrid2050.com/explore-code/s/0032.html#f1 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609191547-proof-k0003/conductor.html - Synopsis: A web page in the testcode folder of GlobalGrid2050 that measures bundle, calculates planar distances and draws on a canvas, covering cables. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191547-proof-k0003/conductor.html. - What it achieves (name): It measures bundle (`measureBundle`) and is built from the compacted step (`compacted`) and the keystone step (`keystone`). Defines `settle`, `measureBundle`, `geometry` and 6 more. It responds to resize events. - What it does: It draws cables. Defines 9 functions or classes, including settle, measureBundle, geometry, compacted, keystone. 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, 1500V. - Inputs & outputs: Out: web page; canvas drawing. Voltage levels named: 1500V. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191547-proof-k0003/conductor.html. - Signatures: `settle(n, d, D, iters)`; `measureBundle(w, d, D)`; `geometry(c)`; `compacted(c, o)`; `keystone(cx, cy, S, k)`; `hatchShape(px, py, r, metal)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `insideBand(cy - R)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [1500V] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Conductor - File: globalgrid2050/testcode/wafer-development-environment/202609191608-proof-k0005/conductor.html (HTML, 315 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609191608-proof-k0005/conductor.html#L1-L315 - Page: https://code.globalgrid2050.com/explore-code/s/0032.html#f2 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609191608-proof-k0005/conductor.html - Synopsis: A web page in the testcode folder of GlobalGrid2050 that measures bundle, calculates planar distances and draws on a canvas, covering cables. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191608-proof-k0005/conductor.html. - What it achieves (name): It measures bundle (`measureBundle`) and is built from the compacted step (`compacted`) and the keystone step (`keystone`). Defines `settle`, `measureBundle`, `geometry` and 6 more. It responds to resize events. - What it does: It draws cables. Defines 9 functions or classes, including settle, measureBundle, geometry, compacted, keystone. 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, 1500V. - Inputs & outputs: Out: web page; canvas drawing. Voltage levels named: 1500V. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191608-proof-k0005/conductor.html. - Signatures: `settle(n, d, D, iters)`; `measureBundle(w, d, D)`; `geometry(c)`; `compacted(c, o)`; `keystone(cx, cy, S, k)`; `hatchShape(px, py, r, metal)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `insideBand(cy - R)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [1500V] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Conductor - File: globalgrid2050/testcode/wafer-development-environment/202609191739-proof-k0009/conductor.html (HTML, 380 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609191739-proof-k0009/conductor.html#L1-L380 - Page: https://code.globalgrid2050.com/explore-code/s/0033.html#f1 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609191739-proof-k0009/conductor.html - Synopsis: A web page in the testcode folder of GlobalGrid2050 that measures bundle, calculates planar distances and draws on a canvas, covering cables. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191739-proof-k0009/conductor.html. - What it achieves (name): It measures bundle (`measureBundle`) and is built from the geometry step (`geometry`) and the compacted step (`compacted`). Defines `FOOTSRC`, `settle`, `measureBundle` and 8 more. It responds to resize events. - What it does: It draws cables. Defines 11 functions or classes, including FOOTSRC, settle, measureBundle, geometry, compacted. 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, 1500V. - Inputs & outputs: Out: web page; canvas drawing. Voltage levels named: 1500V. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609191739-proof-k0009/conductor.html. - Signatures: `FOOTSRC(c)`; `settle(n, d, D, iters)`; `measureBundle(w, d, D)`; `geometry(c)`; `compacted(c, o)`; `keystone(cx, cy, S, k)`; `hatchShape(px, py, r, metal)`; `hatch(x, y, r, metal)`; `dim(x1, x2, y, label, colour)`; `draw()`; `fold(t)`; `insideBand(cy - R)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [1500V] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Trench - File: graphics-engines-open-source/web/versions/202609262227-site-world/world/trench.mjs (JavaScript, 343 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/versions/202609262227-site-world/world/trench.mjs#L1-L343 - Page: https://code.globalgrid2050.com/explore-code/s/0034.html#f1 - Synopsis: A JavaScript module in the world folder of Graphics Engines Open Source that works with cut height (`cutHeight`) and offset line (`offsetLine`) and calculates planar distances. - What it achieves (comment): It is built from the point at helper (`pointAt`), the candidates step (`candidates`) and the floor at helper (`floorAt`). A trench is a function laid over the ground, never a stored mesh. - What it does: It calculates its inputs. Defines 20 functions or classes, including createTrench, pointAt, candidates, floorAt, inside. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'trench'): 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 (graphics-engines-open-source); Layers (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 createTrench({ path, width, depth, benchSlope = 0, groundAt = null })`; `export composeGround(groundAt, trenches)`; `dx(bx - ax)`; `pointAt(s)`; `candidates(x, y, limit)`; `floorAt(s, g = groundAt)`; `inside(x, y)`; `cutHeight(x, y, g = groundAt)`; `chainage(x, y)`; `length3dOn(g)`; `spoilVolumeOn(g)`; `dig(x, y)`; `offsetLine(h)`; `mitredOutline(h)`; `pad(p, g, sign)`; `wallLines(g = groundAt)`; `push(a, b)`; `topAt(x, y, floor)`; `get()`; `bisector(a, b)`; `spoilStrips(path, width, depth, g, { nt = 6, du = 0.25 } = {})`; `bis(s, t)`; `t((k + 0.5) / nt - 0.5)` - 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 2; mentioned by 1 ### LiDAR Cable Sweep - File: lidar/src/cable_sweep.py (Python, 454 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/cable_sweep.py#L1-L454 - Page: https://code.globalgrid2050.com/explore-code/s/0034.html#f2 - Synopsis: A Python command-line tool that reads cable sweep receipt, cables and 132kV, using SHA-256. It loads cables (`load_cables`), routes meta (`route_meta`) and writes receipt (`write_receipt`). - What it achieves (comment): How long is a buried cable over real ground, counted two ways? Its code works with 132 kV and 33 kV. It accepts `--tiles`, `--seed` and `--routes`. - What it does: It loads cable sweep receipt, cables and 132kV. Defines 21 functions or classes, including to_host, Ground, __init__, h, ground_from. Uses libraries argparse, hashlib, json, math, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 132kV, 33kV. - Inputs & outputs: In: JSON file cable_sweep_receipt.json; JSON file cables.json; JSON file source.json; command-line arguments. Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Test Cable Sweep (lidar). - Signatures: `to_host(a)`; `class Ground`; `__init__(self, grid, oe, on, sp, xp)`; `h(self, x, y)`; `ground_from(tiles_dir, xp)`; `min_radius(cables, kv, csa=CSA, when="installation")`; `plan(x0, y0, h0, legs, turns, R)`; `arc_point(x, y, h, kap, u, xp)`; `ragged(xp, counts)`; `electron(P, depth, G, ds=DS_E)`; `_F(u, xp)`; `crossings(P, G)`; `_stable_argsort_int(a, xp)`; `positron(P, G)`; `draw(rng, n, G, rule, margin=3.0, leg=(3.0, 300.0))`; `pair(D, G)`; `load_cables(path)`; `sweep(tiles_dir, seed=SEED, routes=40000, seconds=60.0, batch=2000, use_gpu=True, witness=32, cables=None, cables_path=CABLES)`; `route_meta(D, R, i, G)`; `write_receipt(tiles_dir, r)`; `main(argv=None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file cable_sweep_receipt.json; JSON file cables.json; JSON file source.json; command-line arguments]; out []; crs []; voltages [132kV, 33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Cable Sweep - File: lidar/tests/test_cable_sweep.py (Python, 174 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_cable_sweep.py#L1-L174 - Page: https://code.globalgrid2050.com/explore-code/s/0035.html#f2 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Cable Sweep. It is built from the ground step (`ground`), the grid step (`grid`) and the routes step (`routes`). - What it achieves (comment): Tests for `src/cable_sweep.py` on synthetic ground with known lengths. Its code works with 132 kV and 33 kV. It writes `source.json`. - What it does: It tests cables. Defines 12 functions or classes, including ground, grid, routes, close, test_min_radius_rule. Uses libraries inspect, json, math, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): 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, 132kV, 33kV. - Inputs & outputs: Out: JSON file source.json. Voltage levels named: 132kV, 33kV. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `ground(xp, z)`; `grid(n=401)`; `routes(rows, R=3.0, depth=1.0)`; `close(v, want, rel=1e-6)`; `test_min_radius_rule()`; `test_flat_plan_lengths()`; `test_plane_straight_and_arc()`; `test_ridge_kink_on_grid_line()`; `test_short_legs_shrink_fillet()`; `hilly(tmp_path, n=601, seed=5)`; `test_sweep_hilly(tmp_path)`; `test_bounded_by_seconds(tmp_path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [JSON file source.json]; crs []; voltages [132kV, 33kV] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Baseline - File: seed-data/experiments/economical-seeds/next-invention/cable-screen/baseline.mjs (JavaScript, 124 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/economical-seeds/next-invention/cable-screen/baseline.mjs#L1-L124 - Page: https://code.globalgrid2050.com/explore-code/s/0035.html#f3 - Synopsis: A JavaScript module in the cable screen folder of Seed Data that adds count (`addCount`) and calculates planar distances (units: Ω). - What it achieves (name): It adds count (`addCount`) and is built from the require record helper (`requireRecord`) and the finite output helper (`finiteOutput`). Defines `requireRecord`, `positive`, `nonnegative` and 5 more. - What it does: It calculates its inputs. Defines 8 functions or classes, including requireRecord, positive, nonnegative, finiteOutput, addCount. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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 4 files: Baseline Test (seed-data); Benchmark (seed-data); Route Screen Test (seed-data); Parity (seed-data). Reached from 1 other entry point, including Seed Regressions Workflow (seed-data). - Signatures: `export screen(input)`; `requireRecord(value, name)`; `positive(value, name)`; `nonnegative(value, name)`; `finiteOutput(value, name)`; `addCount(value, count)`; `crossingsReport(crossings)`; `electricalModel(electrical)` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Baseline Test - File: seed-data/experiments/economical-seeds/next-invention/cable-screen/baseline.test.mjs (JavaScript, 97 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/economical-seeds/next-invention/cable-screen/baseline.test.mjs#L1-L97 - Page: https://code.globalgrid2050.com/explore-code/s/0035.html#f4 - Synopsis: A test in the cable screen folder of Seed Data that checks Baseline. - What it achieves (name): Defines `input` and `option`. - What it does: It tests its inputs. Defines input, option. Uses libraries node:assert/strict, node:test. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: Seed Regressions Workflow (seed-data). - Signatures: `input(options, electrical = {})`; `option(id = "A", extra = {})` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Benchmark - File: seed-data/experiments/economical-seeds/next-invention/cable-screen/benchmark.mjs (JavaScript, 98 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/economical-seeds/next-invention/cable-screen/benchmark.mjs#L1-L98 - Page: https://code.globalgrid2050.com/explore-code/s/0035.html#f5 - Synopsis: A JavaScript module in the cable screen folder of Seed Data that reads fixture and cables, using SHA-256. - What it achieves (name): Defines `normalized` and `sample`. - What it does: It loads fixture and cables. Defines normalized, sample. Uses libraries node:assert/strict, node:child_process, node:crypto, node:fs, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: JSON file fixture.json; command-line arguments. - Signatures: `normalized(value)`; `sample(mode, repo)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file fixture.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (script-call 2); used by 0; mentioned by 0 ### Route Screen - File: seed-data/experiments/economical-seeds/next-invention/cable-screen/route-screen.mjs (JavaScript, 128 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/economical-seeds/next-invention/cable-screen/route-screen.mjs#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f1 - Synopsis: A JavaScript module in the cable screen folder of Seed Data that reads cables. - What it achieves (name): It loads instruments (`loadInstruments`) and is built from the has step (`has`) and the screen step (`screen`). Defines `loadInstruments`, `positive`, `nonnegative` and 2 more. - What it does: It loads cables. Defines loadInstruments, positive, nonnegative, has, screen. Uses libraries node:child_process, node:crypto, node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: command-line arguments. - Downstream impact: Used directly by 6 files: Benchmark (seed-data); Route Screen Test (seed-data); Invoke (seed-data); Measure (seed-data); and 2 more. Reached from 1 other entry point, including Seed Regressions Workflow (seed-data). - Signatures: `export loadInstruments(repo)`; `export screen(input, { obstacles, corridor, voltage })`; `positive(value)`; `nonnegative(value)`; `has(row, key)` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Route Screen Test - File: seed-data/experiments/economical-seeds/next-invention/cable-screen/route-screen.test.mjs (JavaScript, 86 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/economical-seeds/next-invention/cable-screen/route-screen.test.mjs#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f2 - Synopsis: A test in the cable screen folder of Seed Data that checks Route Screen and Baseline. - What it achieves (name): Defines `composed` and `equivalent`. It reads `./fixture.json`. - What it does: It tests its inputs. Defines composed, equivalent. Uses libraries node:fs, node:test. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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 fixture.json. - Downstream impact: Used directly by 1 file: Seed Regressions Workflow (seed-data). - Signatures: `composed(input)`; `equivalent(actual, expected, at = 'result')` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file fixture.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Explain - File: seed-data/experiments/explain-cable-screen-change/followup/explain.mjs (JavaScript, 87 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/followup/explain.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f3 - Synopsis: A JavaScript module in the followup folder of Seed Data that reads cables, using SHA-256. - What it achieves (name): It is built from the result step (`result`), the describe step (`describe`) and the exact step (`exact`). Defines `num`, `bounds`, `validate` and 5 more. - What it does: It loads cables. Defines 8 functions or classes, including num, bounds, validate, result, describe. Uses libraries node:crypto, node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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. - Downstream impact: Used directly by 1 file: Trial (seed-data). - Signatures: `export explain(input, session, version = 'v1')`; `num(v)`; `bounds(n, low, high)`; `validate(input)`; `result(side)`; `describe(r)`; `exact(a,b)`; `metres(v)` - 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 1 ### Session - File: seed-data/experiments/explain-cable-screen-change/followup/session.mjs (JavaScript, 57 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/followup/session.mjs#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f4 - Synopsis: A JavaScript module in the followup folder of Seed Data that reads cables, using SHA-256. It is built from the open step (`open`) and the next step (`next`). - What it achieves (name): Defines `here`, `hash`, `packet` and 2 more. - What it does: It loads cables. Defines here, hash, packet, open, next. Uses libraries node:child_process, node:crypto, node:events, node:readline, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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. - Downstream impact: Used directly by 2 files: Explain (seed-data); Trial (seed-data). - Signatures: `export packet(flags, version = 'v1', scope = '')`; `export open(mode)`; `here(rel)`; `hash(value)`; `next()`; `exchange(value)`; `close()` - 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 (script-call 1); used by 2; mentioned by 0 ### Trial - File: seed-data/experiments/explain-cable-screen-change/followup/trial.mjs (JavaScript, 104 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/followup/trial.mjs#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f5 - Synopsis: A JavaScript module in the followup folder of Seed Data that reads acceptance and after length, using SHA-256. - What it achieves (name): Defines `acceptance`, `work` and `measurement`. It reads `../original/acceptance.json`. - What it does: It loads acceptance and after length. Defines acceptance, work, measurement. Uses libraries node:child_process, node:crypto, node:fs, node:url, node:perf_hooks. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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 acceptance.json; JSON file after_length.json; command-line arguments. - Signatures: `acceptance(mode)`; `work(rows)`; `measurement(mode)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file acceptance.json; JSON file after_length.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (script-call 2); used by 0; mentioned by 0 ### Worker - File: seed-data/experiments/explain-cable-screen-change/followup/worker.py (Python, 110 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/followup/worker.py#L1-L110 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f6 - Synopsis: A Python command-line tool in the followup folder of Seed Data covering cables, using SHA-256. It is built from the adapter class (`Adapter`) and the reply step (`reply`). - What it achieves (name): Defines `sha`, `emit`, `Adapter` and 1 more. - What it does: Defines 6 functions or classes, including sha, emit, Adapter, __init__, reply. Uses libraries collections, hashlib, json, pathlib, sys. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `sha(data)`; `emit(data)`; `class Adapter`; `__init__(self, source, reuse)`; `reply(self, packet)`; `main()` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · 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 - File: seed-data/experiments/explain-cable-screen-change/original/check.mjs (JavaScript, 38 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/original/check.mjs#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f7 - Synopsis: A JavaScript module in the original folder of Seed Data that reads acceptance and request, using SHA-256. - What it achieves (name): It reads `acceptance.json`. - What it does: It loads acceptance and request. Uses libraries node:child_process, node:crypto, node:fs, node:os, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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 acceptance.json; JSON file request.json; command-line arguments. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file acceptance.json; JSON file request.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Evidence Adapter - File: seed-data/experiments/explain-cable-screen-change/original/evidence_adapter.py (Python, 51 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/original/evidence_adapter.py#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0036.html#f8 - Synopsis: A Python module in the original folder of Seed Data covering cables, using SHA-256. - What it achieves (name): Defines `encode` and `sha`. - What it does: Defines encode, sha. Uses libraries hashlib, json, pathlib, sys, tempfile. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: command-line arguments. - Downstream impact: Used directly by 1 file: Reuse (seed-data). - Signatures: `encode(value)`; `sha(raw)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Measure - File: seed-data/experiments/explain-cable-screen-change/original/measure.mjs (JavaScript, 42 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/original/measure.mjs#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0037.html#f1 - Synopsis: A JavaScript module in the original folder of Seed Data that reads acceptance. - What it achieves (name): It reads `acceptance.json`. - What it does: It loads acceptance. Uses libraries node:child_process, node:fs, node:url, node:perf_hooks. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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 acceptance.json; command-line arguments. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file acceptance.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Reuse - File: seed-data/experiments/explain-cable-screen-change/original/reuse.mjs (JavaScript, 97 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/original/reuse.mjs#L1-L97 - Page: https://code.globalgrid2050.com/explore-code/s/0037.html#f2 - Synopsis: A JavaScript module in the original folder of Seed Data that reads cables, using SHA-256. - What it achieves (name): It is built from the result step (`result`), the describe step (`describe`) and the exact step (`exact`). Defines `num`, `bounds`, `validate` and 5 more. - What it does: It loads cables. Defines 8 functions or classes, including num, bounds, validate, result, describe. Uses libraries node:crypto, node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: command-line arguments. - Signatures: `export explain(input)`; `num(v)`; `bounds(n, low, high)`; `validate(input)`; `result(side)`; `describe(r)`; `exact(a,b)`; `metres(v)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of seed-data/experiments/explain-cable-screen-change/followup/explain.mjs) · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 0; mentioned by 0 ### Standalone - File: seed-data/experiments/explain-cable-screen-change/original/standalone.mjs (JavaScript, 115 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/seed-data/blob/e4af7ee340a38d94f21ddbba147395b569ccce11/experiments/explain-cable-screen-change/original/standalone.mjs#L1-L115 - Page: https://code.globalgrid2050.com/explore-code/s/0037.html#f3 - Synopsis: A JavaScript module in the original folder of Seed Data that checks object (`checkObject`) (units: Ω). It checks object (`checkObject`) and checks case (`checkCase`). - What it achieves (name): Defines `checkObject`, `numberInRange`, `checkCase` and 4 more. - What it does: It loads data. Defines 7 functions or classes, including checkObject, numberInRange, checkCase, model, format. Uses libraries node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): 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: command-line arguments. - Signatures: `export explain(input)`; `checkObject(value, fields)`; `numberInRange(value, lower, upper, field)`; `checkCase(value)`; `model({ currentA, lengthM })`; `format(value, unit)`; `amount(result)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Sandbox — Cable - File: testcode/sandbox/202609060432/cable/app.js (JavaScript, 1213 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609060432/cable/app.js#L1-L1213 - Page: https://code.globalgrid2050.com/explore-code/s/0037.html#f4 - Synopsis: A JavaScript file in Testcode that clamps integer (`clampInteger`), formats mm (`formatMm`), gets min burial depth (`getMinBurialDepth`) and draws on a canvas (units: mm², kV). - What it achieves (name): It clamps integer (`clampInteger`), formats mm (`formatMm`) and gets min burial depth (`getMinBurialDepth`). Defines `byId`, `clampInteger`, `formatMm` and 47 more. It responds to focus, click and touchend events. - What it does: It draws cables. Defines 50 functions or classes, including byId, clampInteger, formatMm, effectiveGap, getMinBurialDepth. 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, 1500V. - Inputs & outputs: Out: canvas drawing. Voltage levels named: 1500V. - Signatures: `byId(id)`; `clampInteger(value, fallback, minValue)`; `formatMm(v)`; `effectiveGap(basis, spacing, od)`; `getMinBurialDepth(serviceType)`; `getVoltageRuntimeMeta(voltageKey)`; `getSelectedCore()`; `getBurialDepthForComputation()`; `normaliseBurialDepthFieldOnBlur()`; `normaliseIntegerFields()`; `getInputs()`; `populateFormationOptions(serviceType, preferredValue)`; `syncFormationToLookupCore()`; `populateVoltageOptions()`; `getLookupKey(voltageKey, csaMm2, selectedCore)`; `lookupOD(voltageKey, csaMm2, selectedCore)`; `getVoltageDisplayName(voltageKey)`; `getConductorShapeText(voltageKey)`; `populateLookupCSA()`; `applyLookup()`; `updateFromLookup()`; `getGroupGeometry(inputs)`; `computeLayout(inputs)`; `formationWidth(maxRowCount * geom.width)`; `formationDepth(rows * geom.depth)` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [1500V] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Cable Candidate - File: testcode/sandbox/tools/build-cable-candidate.py (Python, 47 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/tools/build-cable-candidate.py#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0039.html#f2 - Synopsis: A Python module in the tools folder of Testcode covering publication and cables, using SHA-256. - What it achieves (name): Its name says it builds cable candidate. Defines `blob`, `sha` and `write`. It writes `source-manifest.json`. It accepts `--owner`, `--commit` and `--generation`. - What it does: Defines blob, sha, write. Uses libraries argparse, hashlib, html, json, pathlib. Side effects: reads or writes files; starts processes. - 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: JSON file source-manifest.json; JSON file publication.json; command-line arguments. - Signatures: `blob(name)`; `sha(data)`; `write(name, data)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file source-manifest.json; JSON file publication.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0