In this section
- Table Solids transform · globalgrid2050 / solar-design-studio/202609271853-site-world/world/table-solids.mjs lines 1–85
- Views transform · globalgrid2050 / solar-design-studio/202609271853-site-world/world/views.mjs lines 1–74
- Layers Panel Policy render · globalgrid2050 / testcode/202609051848/teleprinter/layers-panel-policy.js lines 1–19
- Draw Readiness interaction · globalgrid2050 / testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/draw-readiness.js lines 1–32
- Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page render · globalgrid2050 / testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/index.html lines 1–92
- Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page render · globalgrid2050 / testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html lines 1–398
Table Solids
A JavaScript module in the world folder of GlobalGrid2050 that creates index (`createIndex`).
transformglobalgrid2050 / solar-design-studio/202609271853-site-world/world/table-solids.mjs · lines 1–85 of 85 · version 2026-09-27 18:53 · Not reached from any entry point (candidate for review) · pattern boxesNear (shared by 2 files)
- What it does
- It calculates its inputs. Defines 8 functions or classes, including edgesOf, faceAt, at, tableSlabs, createIndex.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- What it achieves
- It creates index (`createIndex`) and is built from the edges of helper (`edgesOf`) and the face at helper (`faceAt`). Design tables as solids: land on a table's face when jumping (`jump.mjs` `supportAt`), never walk or fly through one (`views.mjs` blocked). Its code works with 500 MW.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · solar-design-studio/202609271853-site-world/world · JavaScript module
- Uses
- Pile Rules (import)
- Used by
- none found
- Produces
- STRIPS, tableSlabs, createIndex, boxesNear, mountTableSolids
- Defines here
- edgesOf, faceAt, at, tableSlabs, createIndex, boxesNear, mountTableSolids, source
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 solar-design-studio/202609271853-site-world/world/table-solids.mjs:1-85 · blob b87f9c35b4e7f08ce9a609dd43818a6151b95b31 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
// Design tables as solids: land on a table's face when jumping (jump.mjs supportAt), never walk or fly through one
// (views.mjs blocked). Each table of the plant layout is cut into STRIPS thin slabs across its depth; a slab's top is
// the highest point of the module face over that strip, THICK_M deep, so the feet follow the tilt to within a strip.
// Axis-aligned boxes fit exactly in plan: the layout frame is north-south or east-west (plant-layout.mjs frameOf).
// Near the viewer only: tables are indexed once per layout in CELL_M cells and a frame asks for those within RADIUS_M,
// so a 500 MW plant costs a few dozen boxes a frame. Face heights: the piles' fitted surface where piled, else the
// drawn rule (low edge over the ground, the rise to the high edge), as plant-ui.mjs draws them. ILLUSTRATIVE geometry.
import { trackerHub } from './pile-rules.mjs';
export const STRIPS = 4, THICK_M = 0.08, RADIUS_M = 40, CELL_M = 50;
// Heights of the face at the low edge (a), the middle (m) and the far edge (b) of a table, each [at ua, at ub].
function edgesOf(r, q, hub) {
const T = r.table, P = r.params, t = r.tables, lo = P.lowEdgeM, hi = lo + T.rise, pr = r.piles?.tables?.[q / 6];
const [h0, h1, h2, h3] = [t[q + 2], t[q + 3], t[q + 4], t[q + 5]];
if (pr?.edges) return pr.edges;
if (T.tracker) { const z = [(h0 + h3) / 2 + hub, (h1 + h2) / 2 + hub]; return [z, z, z]; }
return [[h0 + lo, h1 + lo], [(h0 + h3) / 2 + hi, (h1 + h2) / 2 + hi], T.south ? [h3 + hi, h2 + hi] : [h3 + lo, h2 + lo]];
}
// The face height at fraction fu along the row and fv across it: linear low to high edge (south), up to the ridge and
// down again (east-west), flat (tracker at stow).
function faceAt(T, [Ea, Em, Eb], fu, fv) {
const at = E => E[0] + (E[1] - E[0]) * fu;
if (T.south) return at(Ea) + (at(Eb) - at(Ea)) * fv;
return fv <= 0.5 ? at(Ea) + (at(Em) - at(Ea)) * fv * 2 : at(Em) + (at(Eb) - at(Em)) * (fv - 0.5) * 2;
}
/** tableSlabs(r, { hub }) -> Float64Array of slabs [e0, n0, e1, n1, top] in national-grid metres (plan box and top). */
export function tableSlabs(r, { hub = trackerHub().hub, strips = STRIPS } = {}) {
const T = r?.table, t = r?.tables, F = r?.frame;
if (!T || !t || !F) return new Float64Array(0);
const out = new Float64Array(t.length / 6 * strips * 5);
let k = 0;
for (let q = 0; q < t.length; q += 6) {
const ua = t[q], va = t[q + 1], ub = ua + (r.tableLen?.[q / 6] ?? T.lenU), E = edgesOf(r, q, hub);
for (let s = 0; s < strips; s++) {
const f0 = s / strips, f1 = (s + 1) / strips, v0 = va + T.depth * f0, v1 = va + T.depth * f1;
const top = Math.max(...[f0, f1, 0.5].filter(f => f >= f0 && f <= f1).flatMap(f => [faceAt(T, E, 0, f), faceAt(T, E, 1, f)]));
const [e0, n0] = F.en(ua, v0), [e1, n1] = F.en(ub, v1);
out.set([Math.min(e0, e1), Math.min(n0, n1), Math.max(e0, e1), Math.max(n0, n1), top], k); k += 5;
}
}
return out;
}
/** createIndex(slabs) -> near(e, n, radius) -> the slab offsets (into slabs) whose plan box comes within radius. */
export function createIndex(slabs, cell = CELL_M) {
const cells = new Map(), key = (i, j) => `${i},${j}`;
for (let k = 0; k < slabs.length; k += 5) {
for (let i = Math.floor(slabs[k] / cell); i <= Math.floor(slabs[k + 2] / cell); i++)
for (let j = Math.floor(slabs[k + 1] / cell); j <= Math.floor(slabs[k + 3] / cell); j++) {
const c = cells.get(key(i, j)); if (c) c.push(k); else cells.set(key(i, j), [k]);
}
}
return (e, n, radius) => {
const seen = new Set();
for (let i = Math.floor((e - radius) / cell); i <= Math.floor((e + radius) / cell); i++)
for (let j = Math.floor((n - radius) / cell); j <= Math.floor((n + radius) / cell); j++)
for (const k of cells.get(key(i, j)) || [])
if (slabs[k] <= e + radius && slabs[k + 2] >= e - radius && slabs[k + 1] <= n + radius && slabs[k + 3] >= n - radius) seen.add(k);
return [...seen];
};
}
/** Boxes { min, max } in local metres (x = e - origin.e, y = n - origin.n; z absolute) within radius of local (x, y). */
export function boxesNear(slabs, near, origin, [x, y], radius = RADIUS_M) {
return near(x + origin.e, y + origin.n, radius).map(k => ({
min: [slabs[k] - origin.e, slabs[k + 1] - origin.n, slabs[k + 4] - THICK_M],
max: [slabs[k + 2] - origin.e, slabs[k + 3] - origin.n, slabs[k + 4]], kind: 'table' }));
}
/** mountTableSolids({ api, plant }): adds the plant's tables to the substrate's solids (api.hooks.solids). */
export function mountTableSolids({ api, plant, hub = trackerHub().hub }) {
let built = { version: -1, slabs: null, near: null };
const source = pos => {
const v = plant?.version?.() ?? 0, r = plant?.result?.();
if (!r) return [];
if (built.version !== v) { const slabs = tableSlabs(r, { hub }); built = { version: v, slabs, near: createIndex(slabs) }; }
return boxesNear(built.slabs, built.near, api.origin(), pos);
};
(api.hooks.solids ||= new Set()).add(source);
return { source, slabs: () => built.slabs };
}Views
A JavaScript module in the world folder of GlobalGrid2050 that calculates planar distances.
transformglobalgrid2050 / solar-design-studio/202609271853-site-world/world/views.mjs · lines 1–74 of 74 · version 2026-09-27 18:53 · Entry point · pattern blocked (shared by 5 files)
- What it does
- It calculates its inputs. Defines 11 functions or classes, including speedOf, fpsOf, step, at, blocked.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 10 files: Xr Pose (globalgrid2050); Xr (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); and 6 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/).
- What it achieves
- It sets view (`setView`) and is built from the speed of helper (`speedOf`) and the fps of helper (`fpsOf`). Walk and drone, and one movement step.
- Why it matters
- Loaded by the Site World V3 page at https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/ and 1 other page. Also imported by 8 files, including Xr Pose, Xr and Substrate, from Graphics Engines Open Source.
- Application
- globalgrid2050 · solar-design-studio/202609271853-site-world/world · JavaScript module
- Uses
- none found
- Used by
- imported by Xr Pose (import), imported by Xr (import), preloaded by Solar Design Studio — Site World V3 Page (modulepreload), imported by Substrate (import), preloaded by Solar Design Studio — Site World Page (modulepreload), imported by Buggy Physics (import), imported by Buggy UI (import), imported by Jump (import), and 2 more, mentioned in Standalone (comment link)
- Produces
- VIEWS, AERIAL_MIN_CLEARANCE, PITCH_LIMIT, speedOf, fpsOf, step, blocked, standOn, look, setView, toggle
- Defines here
- speedOf, fpsOf, step, at, blocked, standOn, look, setView, toggle, clamp, wrap
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 solar-design-studio/202609271853-site-world/world/views.mjs:1-74 · blob d41c9d4f4b705bc185415d7cd6e9e2bdcce81eb7 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
// Walk and drone, and one movement step. Pure: the same state, input, time and solids give the same result.
// eye: metres above the ground (null = drone, free height). speed and slow: metres per second, normal
// and with the precise key held. fps and slowFps: frame targets while moving.
// body: the space the viewer occupies, so nothing passes through a solid a real person or drone could not.
export const VIEWS = Object.freeze({
standing: { label: 'Walk', eye: 1.7, speed: 8, slow: 1.4, fps: 30, slowFps: 20, body: { radius: 0.3, below: 1.7, above: 0.1 } },
aerial: { label: 'Drone', eye: null, speed: 25, slow: 5, fps: 30, slowFps: 20, body: { radius: 0.25, below: 0.15, above: 0.15 } }
});
export const AERIAL_MIN_CLEARANCE = 0.3; // low enough to pass under a table, never into the ground
export const PITCH_LIMIT = Math.PI / 2 - 0.01;
export const speedOf = (view, slow) => (slow ? view.slow : view.speed);
export const fpsOf = (view, slow) => (slow ? view.slowFps : view.fps);
// solids: [{ min: [x, y, z], max: [x, y, z] }] boxes in local metres (tables, stations, fences).
// A move that would put the body inside a solid slides along it if it can, otherwise it stops.
export function step(state, input, dt, heightAt, solids = []) {
const view = VIEWS[state.view] || VIEWS.standing;
const fwd = clamp(input.forward || 0, -1, 1), side = clamp(input.strafe || 0, -1, 1);
const speed = speedOf(view, input.slow), len = Math.hypot(fwd, side) || 1, k = (speed * dt) / Math.max(1, len);
const s = Math.sin(state.yaw), c = Math.cos(state.yaw);
const [x0, y0, z0] = state.pos;
const x1 = x0 + (s * fwd + c * side) * k, y1 = y0 + (c * fwd - s * side) * k;
const rise = view.eye === null ? clamp(input.rise || 0, -1, 1) * speed * dt : 0;
const at = (x, y, z) => {
const ground = heightAt(x, y);
return view.eye === null ? [x, y, Math.max(ground + AERIAL_MIN_CLEARANCE, z)] : [x, y, ground + view.eye];
};
const tries = [at(x1, y1, z0 + rise), at(x1, y0, z0 + rise), at(x0, y1, z0 + rise), at(x1, y1, z0), at(x0, y0, z0 + rise)];
for (const p of tries) if (!blocked(p, view.body, solids)) return { ...state, pos: p };
return state;
}
export function blocked([x, y, z], body, solids) {
for (const b of solids) {
if (x > b.min[0] - body.radius && x < b.max[0] + body.radius &&
y > b.min[1] - body.radius && y < b.max[1] + body.radius &&
z - body.below < b.max[2] && z + body.above > b.min[2]) return true;
}
return false;
}
// Changing to a view over a solid (a design table, a roof): stand on the highest top under the body when the body is
// clear there; null when it is still blocked (the view change is refused). Views without an eye height are only checked.
export function standOn(next, view, solids) {
if (!blocked(next.pos, view.body, solids)) return next;
if (view.eye == null) return null;
const [x, y] = next.pos, r = view.body.radius;
let top = -Infinity;
for (const b of solids) if (x > b.min[0] - r && x < b.max[0] + r && y > b.min[1] - r && y < b.max[1] + r) top = Math.max(top, b.max[2]);
const up = { ...next, pos: [x, y, top + 1e-4 + view.eye] };
return top > -Infinity && !blocked(up.pos, view.body, solids) ? up : null;
}
export function look(state, dYaw, dPitch) {
return { ...state, yaw: wrap(state.yaw + dYaw), pitch: clamp(state.pitch + dPitch, -PITCH_LIMIT, PITCH_LIMIT) };
}
// Changing view snaps to the new eye height; the drone keeps its height unless that is below the ground.
export function setView(state, view, heightAt) {
const v = VIEWS[view];
if (!v) throw Error('Unknown view ' + view);
const ground = heightAt(state.pos[0], state.pos[1]);
const z = v.eye === null ? Math.max(ground + AERIAL_MIN_CLEARANCE, state.pos[2]) : ground + v.eye;
return { ...state, view, pos: [state.pos[0], state.pos[1], z] };
}
// Pressing the drone key again returns to walking.
export const toggle = (current, wanted) => (current === wanted ? 'standing' : wanted);
const clamp = (v, a, b) => Math.max(a, Math.min(b, v));
const wrap = a => Math.atan2(Math.sin(a), Math.cos(a));Layers Panel Policy
A JavaScript module in the teleprinter folder of GlobalGrid2050 that works with collapse initial layers (`collapseInitialLayers`).
renderglobalgrid2050 / testcode/202609051848/teleprinter/layers-panel-policy.js · lines 1–19 of 19 · version 2026-09-05 18:48 · Not reached from any entry point (candidate for review)
- What it does
- Defines collapseInitialLayers, mountLayersPanelPolicy. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Downstream impact
- Used directly by 2 files: Codex Layers Panel Policy Test (teleprinter); Teleprinter Bootstrap (globalgrid2050).
- What it achieves
- It is built from the collapse initial layers helper (`collapseInitialLayers`) and the mount layers panel policy helper (`mountLayersPanelPolicy`). Extracted arrival policy: panel visibility is independent of engine layer state.
- Why it matters
- Imported by Teleprinter Bootstrap. Checked by Codex Layers Panel Policy Test.
- Application
- globalgrid2050 · testcode/202609051848/teleprinter · JavaScript module
- Uses
- none found
- Used by
- imported by Codex Layers Panel Policy Test (import), imported by Teleprinter Bootstrap (import)
- Produces
- collapseInitialLayers, mountLayersPanelPolicy
- Defines here
- collapseInitialLayers, mountLayersPanelPolicy
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609051848/teleprinter/layers-panel-policy.js:1-19 · blob 9310754cbe6f433704a32c5c532cd1eeb9a424b2 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: unreached_review
/** Extracted arrival policy: panel visibility is independent of engine layer state. */
export function collapseInitialLayers(doc = document) {
const panel = doc.querySelector('.scada-wrapper');
const toggle = doc.getElementById('gridatlas-dash-toggle');
if (!panel || !toggle) return false;
if (panel.getAttribute('data-gridatlas-collapsed') !== '1') toggle.click();
doc.documentElement.dataset.codexLayersArrival = 'collapsed';
return true;
}
export function mountLayersPanelPolicy(doc = document) {
if (doc.documentElement.dataset.codexLayersArrival) return () => {};
if (collapseInitialLayers(doc)) return () => {};
const observer = new MutationObserver(() => {
if (collapseInitialLayers(doc)) { observer.disconnect(); clearTimeout(timer); }
});
const timer = setTimeout(() => observer.disconnect(), 60000);
observer.observe(doc.body, {childList:true,subtree:true});
return () => { clearTimeout(timer); observer.disconnect(); };
}Draw Readiness
A JavaScript file in the module layout folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/.
interactionglobalgrid2050 / testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/draw-readiness.js · lines 1–32 of 32 · version 2026-09-05 19:58 · Entry point · pattern dispose (shared by 3 files)
- What it does
- It draws its content. Defines capable, reflect, guard, attach, dispose. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Downstream impact
- Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/.
- What it achieves
- It is built from the capable step (`capable`), the reflect step (`reflect`) and the guard step (`guard`). Separate guard for the original classic-script Module Layout runtime. It responds to click and pagehide events.
- Why it matters
- Loaded by the Module Layout page at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/.
- Application
- globalgrid2050 · testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout · script
- Uses
- none found
- Used by
- loaded by Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (script src)
- Produces
- capable, reflect, guard, attach, dispose
- Defines here
- capable, reflect, guard, attach, dispose
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/draw-readiness.js:1-32 · blob e0d79e60ec7e95d64ae1a4b034767e133914a014 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
/* Separate guard for the original classic-script Module Layout runtime. */
(() => {
'use strict';
const ids=['ml_draw_center','ml_pick_site'];
const layers=['ml-boundary-fill','ml-boundary-line','ml-modules-fill','ml-modules-line'];
const buttons=ids.map(id=>document.getElementById(id)).filter(Boolean);
if(buttons.length!==ids.length)return;
const note=document.createElement('p');note.id='ml-draw-readiness';note.setAttribute('role','status');
buttons.at(-1).after(note);
let map, timer, disposed=false;
const capable=()=>{
try {return typeof mlState!=='undefined' && !!mlState.map?.isStyleLoaded() && !!mlState.map.getSource('module-layout') && layers.every(id=>!!mlState.map.getLayer(id));}
catch {return false;}
};
const reflect=()=>{
const ready=capable();for(const button of buttons)button.disabled=!ready;
note.textContent=ready?'Map ready for drawing':'Loading map before drawing';
note.dataset.ready=String(ready);
};
const guard=event=>{
const target=event.target.closest?.('button');
if(!target || !ids.includes(target.id) || capable())return;
event.preventDefault();event.stopImmediatePropagation();reflect();
};
const attach=()=>{
if(disposed)return;
if(typeof mlState!=='undefined' && mlState.map){map=mlState.map;map.on('styledata',reflect);map.on('idle',reflect);reflect();}
else timer=setTimeout(attach,100);
};
const dispose=()=>{disposed=true;clearTimeout(timer);document.removeEventListener('click',guard,true);map?.off('styledata',reflect);map?.off('idle',reflect);note.remove();};
document.addEventListener('click',guard,true);window.addEventListener('pagehide',event=>{if(!event.persisted)dispose();});reflect();attach();
})();Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page
A web page in the layer apps folder of GlobalGrid2050 that reads inputs for ml total modules, ml module width and ml module height, covering cables. Published at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/.
renderglobalgrid2050 / testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/index.html · lines 1–92 of 92 · version 2026-09-05 19:58 · Entry point
- What it does
- It draws cables. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables.
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- It is itself an entry point, published at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout · page
- Uses
- GIS Single-Line Diagram (SLD) V4 (stylesheet), Module Layout V5 (stylesheet), Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page (link), Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (link), Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (link), GIS Single-Line Diagram (SLD) V5 Config (script src), GIS Single-Line Diagram (SLD) V5 Helpers (script src), Module Layout V3 (script src), and 1 more, https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.js, https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css, https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/index.html:1-92 · blob 5cbd99c77d980a6035bd193ac9ad0f7a348f2d17 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Module Layout V7 | GlobalGrid2050</title>
<script src="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js"></script>
<link rel="stylesheet" href="./gis-sld-v5.css" />
<link rel="stylesheet" href="./module-layout-v5.css" />
</head>
<body>
<div class="module-app-shell">
<header class="module-header">
<div>
<div class="module-kicker">GlobalGrid2050 V7</div>
<h1>Physical Solar Module Layout</h1>
<p>Separate non breaking app for testing physical module footprint, portrait or landscape orientation and exact module count visualisation.</p>
</div>
<div class="topo-header-links">
<button id="ml_print_report" class="module-link print-btn" type="button" onclick="window.print()">Print</button><a class="module-link" href="../dc-ac-lv-topology-review/index.html">DC AC LV Topology Review</a><a class="module-link" href="../cable-geometry-visualiser/index.html">Cable Geometry Visualiser V7</a><a class="module-link" href="../gis-sld-financial-sandbox/index.html">Back to GIS SLD V7< … [line shortened here: 409 characters; full line on GitHub]
</header>
<main class="module-main">
<section class="module-panel">
<h2>Module Inputs</h2>
<label>Total Modules</label>
<input id="ml_total_modules" type="number" value="1200" min="1" step="1" />
<label>Module Width m</label>
<input id="ml_module_width_m" type="number" value="1.134" min="0.1" step="0.001" />
<label>Module Height m</label>
<input id="ml_module_height_m" type="number" value="2.278" min="0.1" step="0.001" />
<label>Orientation</label>
<select id="ml_orientation">
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
<label>Modules Per Row</label>
<input id="ml_modules_per_row" type="number" value="60" min="1" step="1" />
<label>Row Pitch m</label>
<input id="ml_row_pitch_m" type="number" value="6.0" min="0.1" step="0.1" />
<label>Module Gap m</label>
<input id="ml_module_gap_m" type="number" value="0.03" min="0" step="0.01" />
<label>Array Rotation degrees</label>
<input id="ml_rotation_deg" type="number" value="0" step="5" />
<div class="module-button-row">
<button id="ml_draw_center" class="btn">Draw at Map Centre</button>
<button id="ml_pick_site" class="btn secondary">Pick Site on Map</button>
<button id="ml_clear" class="btn danger">Clear</button>
</div>
<h2>Results</h2>
<div class="module-stat"><span>Rows</span><strong id="ml_out_rows">0</strong></div>
<div class="module-stat"><span>Layout Width</span><strong id="ml_out_width">0 m</strong></div>
<div class="module-stat"><span>Layout Length</span><strong id="ml_out_length">0 m</strong></div>
<div class="module-stat"><span>Footprint Area</span><strong id="ml_out_area">0 ha</strong></div>
<div class="module-stat"><span>Rendered Modules</span><strong id="ml_out_rendered">0</strong></div>
<div id="ml_status" class="module-status">Ready.</div>
<div class="module-note">
This app is for physical GIS visualisation only. It does not replace paid EPC design, cable schedules, structural layout, shading study or IFC drawings.
</div>
</section>
<section class="module-map-card">
<div id="module_map"></div>
<div class="module-map-toolbar">
<button id="ml_satellite" class="btn small">Satellite View</button>
<button id="ml_zoom_layout" class="btn small secondary">Zoom to Layout</button>
</div>
</section>
</main>
</div>
<script src="./gis-sld-v5-config.js"></script>
<script src="./gis-sld-v5-helpers.js"></script>
<script src="./module-layout-v5.js"></script>
<script src="./draw-readiness.js"></script>
</body>
</html>Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page
A web page in the layer apps folder of GlobalGrid2050 that reads inputs for loc, mod wp and mod, covering battery storage (BESS), cables, substations and 33kV. Published at https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/.
Set aside from the main view: 100% of its lines are the same as sandbox/202609052028/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html (testcode), which stays. (near-copy-of, proposed by families.py). 99% of lines shared with Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.9973 to testcode@a8a215982b13d6e2f6019b40bf0bef5755719773 sandbox/202609052028/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html:1-509 30df4d7eb32d3c14a584c088ea0573be9118c636
- sha256 6bb283ecc6adad3c5749b37933a0027705e8d339154bc388de0735dd6837e79b
- target sha256 8c7fa15728bcd1edf03706b599472089dbdb506bc39e526c9e195a448f354747
- group of 3 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
renderglobalgrid2050 / testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html · lines 1–398 of 508 · version 2026-09-05 20:11 · Entry point
- What it does
- It draws battery storage (BESS), cables, substations and 33kV. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: battery storage (BESS), cables, substations, 33kV, 400kV, 275kV.
- Inputs & outputs
- In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV.
- Downstream impact
- Used directly by 1 file: Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/.
- What it achieves
- Its code works with 33 kV, 0.00 MVA and 132 kV.
- Why it matters
- Loaded by the Module Layout page at https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/.
- Application
- globalgrid2050 · testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox · page
- Uses
- GIS Single-Line Diagram (SLD) V5 Config (script src), GIS Single-Line Diagram (SLD) V5 Helpers (script src), GIS Single-Line Diagram (SLD) V5 State (script src), GIS Single-Line Diagram (SLD) V5 Substations (script src), GIS Single-Line Diagram (SLD) V5 (stylesheet), GIS Single-Line Diagram (SLD) V5 Map (script src), GIS Single-Line Diagram (SLD) V5 Calculations (script src), GIS Single-Line Diagram (SLD) V4 Finance (script src), and 5 more, https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css, https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.js, https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js
- Used by
- linked from Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (link)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609052011/layer-apps/solar-bess-topology-v7/gis-sld-financial-sandbox/index.html:1-398 · blob 3d025b61add03f69b50660d8f9cb4f99ac9bed3a · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GIS SLD Financial Sandbox V7</title>
<link href="https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js" defer></script>
<script src="gis-sld-v5-config.js"></script>
<script src="gis-sld-v5-helpers.js"></script>
<script src="gis-sld-v5-state.js"></script>
<script src="gis-sld-v5-substations.js"></script>
<link rel="stylesheet" href="gis-sld-v5.css">
</head>
<body>
<div class="dashboard">
<div class="panel panel-left">
<h2>Solar Photovoltaic (PV) Development, Engineering, Procurement and Construction (EPC) and Grid Analysis</h2>
<div class="search-box">
<input type="text" id="loc_search" placeholder="Enter location (e.g. London)..." />
<button id="btn_search">FLY</button>
</div>
<div class="tab-container">
<button class="tab-btn active" id="tabbtn_string" data-tab="string">String</button>
<button class="tab-btn" id="tabbtn_central" data-tab="central">Central</button>
</div>
<div id="string_tab" class="tab-content active">
<h3>Dimensions & Physics</h3>
<div class="input-group"><label>Module Rating (Wp)</label><input type="number" id="mod_wp" value="660" min="1" /></div>
<div class="input-group">
<label>Mod L x W (m)</label>
<div style="display: flex; gap: 4px;">
<input type="number" id="mod_l" value="2.38" step="0.01" min="0.01" style="width: 45px;" />
<input type="number" id="mod_w" value="1.30" step="0.01" min="0.01" style="width: 45px;" />
</div>
</div>
<div class="input-group">
<label>Mounting & GCR</label>
<select id="mounting_type">
<option value="0.75">East-West Dome (~75%)</option>
<option value="0.45" selected>Fixed Tilt South (~45%)</option>
<option value="0.35">Tracker (~35%)</option>
</select>
</div>
<div class="input-group"><label>Gross Site Factor</label><input type="number" id="gross_factor" value="1.35" step="0.05" min="1.0" /></div>
<h3>Array Hierarchy (String)</h3>
<div class="input-group array-size-control"><label>Target DC Capacity MWp</label><input type="number" id="target_dc_mwp" value="" placeholder="Optional" step="1" min="0.1" /></div>
<div class="ux-note array-size-note">Optional sizing helper. Enter a target MWp DC and the sandbox will resize by whole skid and ring main steps. Module rating, modules per string, strings per inverter and inverter rating remain user controlled.</div>
<div class="input-group"><label>DC/AC Ratio</label><input type="number" id="dc_ac_ratio" value="1.20" step="0.05" min="0.01" /></div>
<div class="input-group"><label>String Inverter Rating kVA</label><input type="number" id="string_inv_kva" value="352" step="1" min="1" /></div>
<div class="input-group"><label>String Skid Transformer Rating MVA</label><input type="number" id="string_skid_mva" value="8.96" step="0.01" min="0.1" /></div>
<div class="input-group"><label>Modules per String</label><input type="number" id="x_mods" value="28" min="1" /></div>
<div class="input-group"><label>Strings per String Inverter</label><input type="number" id="z_strings" value="18" min="1" /></div>
<div class="input-group"><label>String Inverters per Skid</label><input type="number" id="y_invs" value="28" min="1" /></div>
<div class="input-group"><label>Skids per 33 kV Ring Main</label><input type="number" id="s_subs" value="5" min="1" /></div>
<div class="input-group"><label>Number of 33 kV Ring Main Circuits</label><input type="number" id="b_cols" value="6" min="1" /></div>
<h3>Module Logistics</h3>
<div class="input-group">
<label>Packaging Preset</label>
<select id="logistics_preset" data-suffix="">
<option value="high_density" selected>High Density (33/box, 594/40ft)</option>
<option value="legacy">Standard Legacy (31/box, 620/40ft)</option>
<option value="manual">Manual Entry</option>
</select>
</div>
<div class="input-group"><label>Modules / Packing Unit</label><input type="number" id="mods_pallet" value="33" min="1" /></div>
<div class="input-group"><label>Mods / 40ft Container</label><input type="number" id="mods_container" value="594" min="1" /></div>
<div class="input-group"><label>Spare Allowance %</label><input type="number" id="spare_pct" value="1.0" step="0.1" min="0" /></div>
<details class="finance-box">
<summary>Baseline Project Economics</summary>
<div class="finance-headline">
<div class="stat-row"><span>Year 1 Revenue Projection</span><span class="stat-val" id="fin_string_annual_rev">£0</span></div>
<div class="stat-row"><span>25 Year Revenue Projection</span><span class="stat-val" id="fin_string_25_rev">£0</span></div>
<div class="stat-row"><span>35 Year Revenue Projection</span><span class="stat-val" id="fin_string_35_rev">£0</span></div>
<div class="stat-row"><span>Total CAPEX</span><span class="stat-val" id="fin_string_capex">£0</span></div>
<div class="stat-row"><span>CAPEX per Wp</span><span class="stat-val" id="fin_string_capex_wp">£0.00/Wp</span></div>
<div class="stat-row"><span>Undiscounted 25 Year Cash Surplus</span><span class="stat-val" id="fin_string_surplus_25">£0</span></div>
<div class="stat-row"><span>Undiscounted 35 Year Cash Surplus</span><span class="stat-val" id="fin_string_surplus_35">£0</span></div>
</div>
<h3>Revenue</h3>
<div class="input-group"><label>Energy Price £/MWh</label><input type="number" id="fin_string_price" value="65" step="1" min="0"></div>
<div class="input-group"><label>Other Income £/MWh</label><input type="number" id="fin_string_other" value="0" step="1" min="0"></div>
<div class="input-group"><label>Base Yield kWh/kWp</label><input type="number" id="fin_string_yield" value="1000" step="10" min="0"></div>
<div class="input-group"><label>Bifacial Gain %</label><input type="number" id="fin_string_bifacial" value="5" step="0.5" min="0" max="15"></div>
<div class="input-group"><label>Base Losses %</label><input type="number" id="fin_string_losses" value="2" step="0.1" min="0"></div>
<div class="input-group"><label>Degradation % (Yr 2+)</label><input type="number" id="fin_string_deg" value="0.4" step="0.01" min="0"></div>
<div class="input-group"><label>OPEX £/MWac/yr</label><input type="number" id="fin_string_opex" value="25000" step="1000" min="0"></div>
<h3>Development Financials</h3>
<div class="finance-headline">
<div class="stat-row"><span>Development Capital at Risk</span><span class="stat-val" id="fin_string_dev_capital">£0</span></div>
<div class="stat-row"><span>Module Supply Cost</span><span class="stat-val" id="fin_string_dev_module_cost">£0</span></div>
<div class="stat-row"><span>EPC Cost</span><span class="stat-val" id="fin_string_dev_epc_cost">£0</span></div>
<div class="stat-row"><span>Other Owner Costs</span><span class="stat-val" id="fin_string_dev_owner_cost">£0</span></div>
<div class="stat-row"><span>Grid Connection Cost</span><span class="stat-val" id="fin_string_dev_grid_cost">£0</span></div>
<div class="stat-row"><span>Total Build Cost</span><span class="stat-val" id="fin_string_dev_total_cost">£0</span></div>
<div class="stat-row"><span>Target Exit Value</span><span class="stat-val" id="fin_string_dev_exit_value">£0</span></div>
<div class="stat-row"><span>Operating Asset Net Present Value (NPV)</span><span class="stat-val" id="fin_string_dev_operating_npv">£0</span></div>
<div class="stat-row"><span>Gross Development Margin</span><span class="stat-val" id="fin_string_dev_margin">£0</span></div>
<div class="stat-row"><span>Risk Adjusted Development Value</span><span class="stat-val" id="fin_string_dev_risk_value">£0</span></div>
<div class="stat-row"><span>Development Equity Money Multiple</span><span class="stat-val" id="fin_string_dev_multiple">0.00x</span></div>
</div>
<div class="input-group" style="display: block; margin-bottom: 8px;">
<label style="margin-bottom: 4px; display: block;">Development Stage</label>
<select id="fin_string_dev_stage" data-dev-stage-prefix="fin_string" style="width: 100%;">
<option value="3000">Land Option Signed</option>
<option value="15000">Grid Connection Application Accepted</option>
<option value="35000">Planning Application Submitted</option>
<option value="55000">Planning Permission Granted</option>
<option value="70000">Grid Connection Terms Reviewed and Agreed</option>
<option value="80000">Buyer or Revenue Agreement Reviewed (Power Purchase Agreement (PPA) / Offtaker)</option>
<option value="100000" selected>Construction Contract Signed and Finance Committed (Financial Close)</option>
</select>
</div>
<div class="input-group"><label>Development Cost £/MW</label><input type="number" id="fin_string_dev_cost_mw" value="100000" step="5000" min="0"></div>
<div class="input-group"><label>Module Supply Cost £/MWp</label><input type="number" id="fin_string_dev_module_mwp" value="150000" step="10000" min="0"></div>
<div class="input-group"><label>EPC Cost £/MW</label><input type="number" id="fin_string_dev_epc_mw" value="500000" step="25000" min="0"></div>
<div class="input-group"><label>Other Owner Costs £/MW</label><input type="number" id="fin_string_dev_owner_mw" value="100000" step="25000" min="0"></div>
<div class="input-group"><label>Grid Connection Cost £ per Megawatt (MW)</label><input type="number" id="fin_string_dev_grid_mw" value="100000" step="25000" min="0"></div>
<div class="input-group"><label>Target Exit Value £/MWp</label><input type="number" id="fin_string_dev_exit_mwp" value="1350000" step="50000" min="0"></div>
<div class="input-group"><label>Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp)</label><input type="number" id="fin_string_dev_npv_mwp" value="1200000" step="50000" min="0"></div>
<div class="input-group"><label>Development Success Probability %</label><input type="number" id="fin_string_dev_success" value="15" step="1" min="0" max="100"></div>
<div class="input-group"><label>Development Years</label><input type="number" id="fin_string_dev_years" value="4" step="0.5" min="0"></div>
<h3>CAPEX</h3>
<div class="input-group"><label>Modules £/Wp</label><input type="number" id="fin_string_modules" value="0.15" step="0.01" min="0"></div>
<div class="input-group"><label>EPC ex Modules £/Wp</label><input type="number" id="fin_string_epc_ex" value="0.30" step="0.01" min="0"></div>
<div class="input-group">
<label>Flood Resilience</label>
<div style="display: flex; gap: 4px; align-items: center;">
<input type="checkbox" id="fin_string_flood" />
<input type="number" id="fin_string_flood_rate" value="0.03" step="0.01" min="0" style="width: 50px;" />
</div>
</div>
<div class="input-group"><label>Other CAPEX £/Wp</label><input type="number" id="fin_string_other_capex" value="0.20" step="0.01" min="0"></div>
<div class="input-group"><label>Fixed CAPEX £</label><input type="number" id="fin_string_fixed_capex" value="1500000" step="50000" min="0"></div>
<div class="input-group"><label>Contingency %</label><input type="number" id="fin_string_cont" value="7" step="0.5" min="0"></div>
<h3>Loss Allowances</h3>
<div class="input-group"><label>DC String Cable Loss %</label><input type="number" id="fin_string_loss_dc_string" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>LV Main DC Loss %</label><input type="number" id="fin_string_loss_lv_dc" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>LV AC Loss %</label><input type="number" id="fin_string_loss_lv_ac" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>Transformer Loss %</label><input type="number" id="fin_string_loss_tx" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>Other Electrical Loss %</label><input type="number" id="fin_string_loss_other" value="0" step="0.1" min="0"></div>
<h3>BESS Optional</h3>
<div class="input-group"><label>BESS Power MW</label><input type="number" id="fin_string_bess_mw" value="0" step="1" min="0"></div>
<div class="input-group"><label>BESS Energy MWh</label><input type="number" id="fin_string_bess_mwh" value="0" step="1" min="0"></div>
<div class="input-group"><label>BESS CAPEX £/MWh</label><input type="number" id="fin_string_bess_capex" value="0" step="10000" min="0"></div>
<div class="input-group"><label>BESS Cycles / Year</label><input type="number" id="fin_string_bess_cycles" value="0" step="10" min="0"></div>
<div class="input-group"><label>BESS Spread £/MWh</label><input type="number" id="fin_string_bess_spread" value="0" step="1" min="0"></div>
<div class="input-group"><label>BESS Efficiency %</label><input type="number" id="fin_string_bess_eff" value="88" step="1" min="0" max="100"></div>
<div class="warning-box" id="fin_string_warnings"></div>
</details>
</div>
<div id="central_tab" class="tab-content">
<h3>Dimensions & Physics</h3>
<div class="input-group"><label>Module Rating (Wp)</label><input type="number" id="mod_wp_c" value="660" min="1" /></div>
<div class="input-group">
<label>Mod L x W (m)</label>
<div style="display: flex; gap: 4px;">
<input type="number" id="mod_l_c" value="2.38" step="0.01" min="0.01" style="width: 45px;" />
<input type="number" id="mod_w_c" value="1.30" step="0.01" min="0.01" style="width: 45px;" />
</div>
</div>
<div class="input-group">
<label>Mounting & GCR</label>
<select id="mounting_type_c">
<option value="0.75">East-West Dome (~75%)</option>
<option value="0.45" selected>Fixed Tilt South (~45%)</option>
<option value="0.35">Tracker (~35%)</option>
</select>
</div>
<div class="input-group"><label>Gross Site Factor</label><input type="number" id="gross_factor_c" value="1.35" step="0.05" min="1.0" /></div>
<h3>Array Hierarchy (Central)</h3>
<div class="input-group array-size-control"><label>Target DC Capacity MWp</label><input type="number" id="target_dc_mwp_c" value="" placeholder="Optional" step="1" min="0.1" /></div>
<div class="ux-note array-size-note">Optional sizing helper. Enter a target MWp DC and the sandbox will resize by whole central inverter, skid and ring main steps. Module rating, modules per string and central inverter ratings remain user controlled.</div>
<div class="input-group"><label>Central Inverter DC Input Rating MWdc</label><input type="number" id="inv_dc_mw_c" value="5.28" step="0.01" min="0.1" max="30" /></div>
<div class="input-group"><label>Central Inverter AC Output Rating MWac</label><input type="number" id="inv_ac_mw_c" value="4.40" step="0.01" min="0.1" max="20" /></div>
<div class="input-group"><label>Central Skid Transformer Rating MVA</label><input type="number" id="central_skid_mva_c" value="4.40" step="0.01" min="0.1" max="25" /></div>
<div class="ux-note">A skid is a factory assembled power package. It usually combines inverter equipment, transformer, switchgear, protection and auxiliary systems on a transportable base or frame. Finance and non technical teams can treat each skid as one repeatable cost and power block. Values above 10 MWac should be treated as large power block assumptions and require transformer, MV sw … [line shortened here: 473 characters; full line on GitHub]
<div class="input-group"><label>Calculated DC/AC Ratio</label><input type="number" id="dc_ac_ratio_c" value="1.20" step="0.05" min="0.01" /></div>
<div class="input-group"><label>Modules / String</label><input type="number" id="x_mods_c" value="28" min="1" /></div>
<div class="input-group"><label>Strings per Combiner Box</label><input type="number" id="str_per_cb_c" value="24" min="1" /></div>
<div class="input-group"><label>Combiner Box Design Limit kWdc</label><input type="number" id="combiner_limit_kwdc_c" value="500" step="10" min="1" /></div>
<div class="input-group"><label>Central Inverter Units per Skid</label><input type="number" id="inv_per_mv_c" value="1" min="1" /></div>
<div class="input-group"><label>Central Skids per 33 kV Ring Main</label><input type="number" id="mv_per_ring_c" value="4" min="1" /></div>
<div class="input-group"><label>Number of 33 kV Ring Main Circuits</label><input type="number" id="rings_c" value="4" min="1" /></div>
<h3>Module Logistics</h3>
<div class="input-group">
<label>Packaging Preset</label>
<select id="logistics_preset_c" data-suffix="_c">
<option value="high_density" selected>High Density (33/box, 594/40ft)</option>
<option value="legacy">Standard Legacy (31/box, 620/40ft)</option>
<option value="manual">Manual Entry</option>
</select>
</div>
<div class="input-group"><label>Modules / Packing Unit</label><input type="number" id="mods_pallet_c" value="33" min="1" /></div>
<div class="input-group"><label>Mods / 40ft Container</label><input type="number" id="mods_container_c" value="594" min="1" /></div>
<div class="input-group"><label>Spare Allowance %</label><input type="number" id="spare_pct_c" value="1.0" step="0.1" min="0" /></div>
<details class="finance-box">
<summary>Baseline Project Economics</summary>
<div class="finance-headline">
<div class="stat-row"><span>Year 1 Revenue Projection</span><span class="stat-val" id="fin_central_annual_rev">£0</span></div>
<div class="stat-row"><span>25 Year Revenue Projection</span><span class="stat-val" id="fin_central_25_rev">£0</span></div>
<div class="stat-row"><span>35 Year Revenue Projection</span><span class="stat-val" id="fin_central_35_rev">£0</span></div>
<div class="stat-row"><span>Total CAPEX</span><span class="stat-val" id="fin_central_capex">£0</span></div>
<div class="stat-row"><span>CAPEX per Wp</span><span class="stat-val" id="fin_central_capex_wp">£0.00/Wp</span></div>
<div class="stat-row"><span>Undiscounted 25 Year Cash Surplus</span><span class="stat-val" id="fin_central_surplus_25">£0</span></div>
<div class="stat-row"><span>Undiscounted 35 Year Cash Surplus</span><span class="stat-val" id="fin_central_surplus_35">£0</span></div>
</div>
<h3>Revenue</h3>
<div class="input-group"><label>Energy Price £/MWh</label><input type="number" id="fin_central_price" value="65" step="1" min="0"></div>
<div class="input-group"><label>Other Income £/MWh</label><input type="number" id="fin_central_other" value="0" step="1" min="0"></div>
<div class="input-group"><label>Base Yield kWh/kWp</label><input type="number" id="fin_central_yield" value="1000" step="10" min="0"></div>
<div class="input-group"><label>Bifacial Gain %</label><input type="number" id="fin_central_bifacial" value="5" step="0.5" min="0" max="15"></div>
<div class="input-group"><label>Base Losses %</label><input type="number" id="fin_central_losses" value="2" step="0.1" min="0"></div>
<div class="input-group"><label>Degradation % (Yr 2+)</label><input type="number" id="fin_central_deg" value="0.4" step="0.01" min="0"></div>
<div class="input-group"><label>OPEX £/MWac/yr</label><input type="number" id="fin_central_opex" value="25000" step="1000" min="0"></div>
<h3>Development Financials</h3>
<div class="finance-headline">
<div class="stat-row"><span>Development Capital at Risk</span><span class="stat-val" id="fin_central_dev_capital">£0</span></div>
<div class="stat-row"><span>Module Supply Cost</span><span class="stat-val" id="fin_central_dev_module_cost">£0</span></div>
<div class="stat-row"><span>EPC Cost</span><span class="stat-val" id="fin_central_dev_epc_cost">£0</span></div>
<div class="stat-row"><span>Other Owner Costs</span><span class="stat-val" id="fin_central_dev_owner_cost">£0</span></div>
<div class="stat-row"><span>Grid Connection Cost</span><span class="stat-val" id="fin_central_dev_grid_cost">£0</span></div>
<div class="stat-row"><span>Total Build Cost</span><span class="stat-val" id="fin_central_dev_total_cost">£0</span></div>
<div class="stat-row"><span>Target Exit Value</span><span class="stat-val" id="fin_central_dev_exit_value">£0</span></div>
<div class="stat-row"><span>Operating Asset Net Present Value (NPV)</span><span class="stat-val" id="fin_central_dev_operating_npv">£0</span></div>
<div class="stat-row"><span>Gross Development Margin</span><span class="stat-val" id="fin_central_dev_margin">£0</span></div>
<div class="stat-row"><span>Risk Adjusted Development Value</span><span class="stat-val" id="fin_central_dev_risk_value">£0</span></div>
<div class="stat-row"><span>Development Equity Money Multiple</span><span class="stat-val" id="fin_central_dev_multiple">0.00x</span></div>
</div>
<div class="input-group" style="display: block; margin-bottom: 8px;">
<label style="margin-bottom: 4px; display: block;">Development Stage</label>
<select id="fin_central_dev_stage" data-dev-stage-prefix="fin_central" style="width: 100%;">
<option value="3000">Land Option Signed</option>
<option value="15000">Grid Connection Application Accepted</option>
<option value="35000">Planning Application Submitted</option>
<option value="55000">Planning Permission Granted</option>
<option value="70000">Grid Connection Terms Reviewed and Agreed</option>
<option value="80000">Buyer or Revenue Agreement Reviewed (Power Purchase Agreement (PPA) / Offtaker)</option>
<option value="100000" selected>Construction Contract Signed and Finance Committed (Financial Close)</option>
</select>
</div>
<div class="input-group"><label>Development Cost £/MW</label><input type="number" id="fin_central_dev_cost_mw" value="100000" step="5000" min="0"></div>
<div class="input-group"><label>Module Supply Cost £/MWp</label><input type="number" id="fin_central_dev_module_mwp" value="150000" step="10000" min="0"></div>
<div class="input-group"><label>EPC Cost £/MW</label><input type="number" id="fin_central_dev_epc_mw" value="500000" step="25000" min="0"></div>
<div class="input-group"><label>Other Owner Costs £/MW</label><input type="number" id="fin_central_dev_owner_mw" value="100000" step="25000" min="0"></div>
<div class="input-group"><label>Grid Connection Cost £ per Megawatt (MW)</label><input type="number" id="fin_central_dev_grid_mw" value="100000" step="25000" min="0"></div>
<div class="input-group"><label>Target Exit Value £/MWp</label><input type="number" id="fin_central_dev_exit_mwp" value="1350000" step="50000" min="0"></div>
<div class="input-group"><label>Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp)</label><input type="number" id="fin_central_dev_npv_mwp" value="1200000" step="50000" min="0"></div>
<div class="input-group"><label>Development Success Probability %</label><input type="number" id="fin_central_dev_success" value="15" step="1" min="0" max="100"></div>
<div class="input-group"><label>Development Years</label><input type="number" id="fin_central_dev_years" value="4" step="0.5" min="0"></div>
<h3>CAPEX</h3>
<div class="input-group"><label>Modules £/Wp</label><input type="number" id="fin_central_modules" value="0.15" step="0.01" min="0"></div>
<div class="input-group"><label>EPC ex Modules £/Wp</label><input type="number" id="fin_central_epc_ex" value="0.30" step="0.01" min="0"></div>
<div class="input-group">
<label>Flood Resilience</label>
<div style="display: flex; gap: 4px; align-items: center;">
<input type="checkbox" id="fin_central_flood" />
<input type="number" id="fin_central_flood_rate" value="0.03" step="0.01" min="0" style="width: 50px;" />
</div>
</div>
<div class="input-group"><label>Other CAPEX £/Wp</label><input type="number" id="fin_central_other_capex" value="0.20" step="0.01" min="0"></div>
<div class="input-group"><label>Fixed CAPEX £</label><input type="number" id="fin_central_fixed_capex" value="1500000" step="50000" min="0"></div>
<div class="input-group"><label>Contingency %</label><input type="number" id="fin_central_cont" value="7" step="0.5" min="0"></div>
<h3>Loss Allowances</h3>
<div class="input-group"><label>DC String Cable Loss %</label><input type="number" id="fin_central_loss_dc_string" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>LV Main DC Loss %</label><input type="number" id="fin_central_loss_lv_dc" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>LV AC Loss %</label><input type="number" id="fin_central_loss_lv_ac" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>Transformer Loss %</label><input type="number" id="fin_central_loss_tx" value="0" step="0.1" min="0"></div>
<div class="input-group"><label>Other Electrical Loss %</label><input type="number" id="fin_central_loss_other" value="0" step="0.1" min="0"></div>
<h3>BESS Optional</h3>
<div class="input-group"><label>BESS Power MW</label><input type="number" id="fin_central_bess_mw" value="0" step="1" min="0"></div>
<div class="input-group"><label>BESS Energy MWh</label><input type="number" id="fin_central_bess_mwh" value="0" step="1" min="0"></div>
<div class="input-group"><label>BESS CAPEX £/MWh</label><input type="number" id="fin_central_bess_capex" value="0" step="10000" min="0"></div>
<div class="input-group"><label>BESS Cycles / Year</label><input type="number" id="fin_central_bess_cycles" value="0" step="10" min="0"></div>
<div class="input-group"><label>BESS Spread £/MWh</label><input type="number" id="fin_central_bess_spread" value="0" step="1" min="0"></div>
<div class="input-group"><label>BESS Efficiency %</label><input type="number" id="fin_central_bess_eff" value="88" step="1" min="0" max="100"></div>
<div class="warning-box" id="fin_central_warnings"></div>
</details>
</div>
<div class="stat-box" style="border-color: #ff3333; background: rgba(255, 51, 51, 0.05); margin-bottom: 15px;">
<h3 style="margin-top: 0; color: #ff3333; border-bottom-color: #ff3333;">Selected Grid Node</h3>
<div class="stat-row"><span>Substation:</span><span class="stat-val" id="out_selected_sub_name">None selected</span></div>
<div class="stat-row"><span>Voltage:</span><span class="stat-val" id="out_selected_sub_voltage">Unknown</span></div>
<div class="stat-row"><span>Longitude:</span><span class="stat-val" id="out_selected_sub_lon">n/a</span></div>
<div class="stat-row"><span>Latitude:</span><span class="stat-val" id="out_selected_sub_lat">n/a</span></div>
</div>
<div class="stat-box" id="tech_summary_box">
<h3>Technical Quantity Summary</h3>
<div class="stat-row"><span>Total Module Count:</span><span class="stat-val" id="out_module_count">0</span></div>
<div class="stat-row"><span>Total DC Capacity:</span><span class="stat-val cyan" id="out_dc_capacity">0.00 MWp</span></div>
<div class="stat-row"><span>Implied AC Capacity:</span><span class="stat-val" id="out_ac_capacity">0.00 MWac</span></div>
<div class="stat-row"><span>DC/AC Ratio:</span><span class="stat-val" id="out_actual_dcac">1.20</span></div>
<div class="stat-row"><span>String Inverter Rating:</span><span class="stat-val" id="out_string_inv_rating">n/a</span></div>
<div class="stat-row"><span>Inverter ACmax per Skid:</span><span class="stat-val" id="out_inverter_acmax_mva">0.00 MVA</span></div>
<div class="stat-row"><span>Skid Transformer Rating:</span><span class="stat-val" id="out_sub_ac_rating">0.00 MVA</span></div>
<div class="stat-row"><span>33 kV Ring Main AC Rating:</span><span class="stat-val" id="out_ring_ac_rating">0.00 MVA</span></div>
<div class="stat-row central-only" style="display: none;"><span>Central Inverter DC Input:</span><span class="stat-val" id="out_central_inv_dc_rating">0.00 MWdc</span></div>
<div class="stat-row central-only" style="display: none;"><span>Central Inverter AC Output:</span><span class="stat-val" id="out_central_inv_rating">0.00 MWac</span></div>
<div class="stat-row central-only" style="display: none;"><span>Combiner Box DC Capacity:</span><span class="stat-val" id="out_cb_dc_kw">0.00 kWdc</span></div>
<div class="stat-row"><span>Engineering Warning:</span><span class="stat-val orange" id="out_engineering_warning">Check assumptions</span></div>
<div class="stat-row central-only" style="display: none;"><span>Central Combiner Boxes / Inverter:</span><span class="stat-val" id="out_cb_per_inv">0</span></div>
<div class="stat-row central-only" style="display: none;"><span>Total Central Combiner Boxes:</span><span class="stat-val" id="out_total_cb">0</span></div>
<div style="border-top:1px dashed #333; margin: 8px 0;"></div>
<div class="stat-row"><span>Net Module Surface Area:</span><span class="stat-val" id="out_net_mod_area">0 Acres</span></div>
<div class="stat-row"><span>Net Array Area at GCR:</span><span class="stat-val" id="out_net_array_area">0 Acres</span></div>
<div class="stat-row"><span>Indicative Gross Site Area:</span><span class="stat-val orange" id="out_gross_area">0 Acres</span></div>
<div style="border-top:1px dashed #333; margin: 8px 0;"></div>
<div class="stat-row"><span>Modules per Packing Unit:</span><span class="stat-val" id="out_mod_per_pallet">0</span></div>
<div class="stat-row"><span>Total Packing Units:</span><span class="stat-val" id="out_pallets">0</span></div>
<div class="stat-row"><span>Modules per Container:</span><span class="stat-val" id="out_mod_per_cont">0</span></div>
<div class="stat-row"><span>Total Base Containers:</span><span class="stat-val" id="out_containers">0</span></div>
<div class="stat-row"><span>Spare Module Allowance:</span><span class="stat-val" id="out_spare_pct">0%</span></div>
<div class="stat-row"><span>Containers (Inc. Spares):</span><span class="stat-val cyan" id="out_containers_spares">0</span></div>
<div class="stat-row"><span>Containers per MWp:</span><span class="stat-val cyan" id="out_cont_per_mwp">0.00</span></div>
</div>
<button class="btn draw-btn" id="btn_draw">⌖ DRAW NEAT GRID</button>
<button class="btn" id="btn_export">⬇ Export GeoJSON</button>
<div class="disclaimer-box">
<strong>ENGINEERING SCREENING OUTPUT</strong><br><br>
These outputs are indicative screening values only. They are not construction design, financial advice, EPC pricing, grid compliance, logistics planning or transport instruction. All quantities, packaging, site area, cable routes, container loads, module specifications and financial assumptions must be verified against current manufacturer datasheets, project specific drawings, EPC scope, … [line shortened here: 451 characters; full line on GitHub]
</div>
<div class="explainer-box">
<h3>Electrical Topology Explanation</h3>
<p>A string is a series chain of PV modules. For example, 30 modules per string means the voltage of 30 modules is added before entering the inverter.</p>
<p>A string inverter converts DC power from several PV strings into low voltage AC power. The inverter rating in kVA defines the apparent AC power capability of each inverter. For example, 28 string inverters rated at 352 kVA create a skid block of approximately 9,856 kVA before transformer and grid limitations.</p>
<p>A skid is the local electrical station that collects power from a group of inverters. It normally includes low voltage AC switchgear, a step up transformer, protection equipment and a medium voltage connection, often at 33 kV.</p>
<p>A Ring Main Unit, or RMU, is medium voltage switchgear used to connect skids into a 33 kV network. It normally includes cable switches, protection, earthing switches and sometimes transformer protection.</p>
<p>A 33 kV ring main is a medium voltage collection circuit that links several skids back toward the main substation or HV station. In this sandbox, Skids per 33 kV Ring Main means how many local substations sit on each medium voltage collection circuit. Number of 33 kV Ring Main Circuits means how many separate collection circuits are used across the solar farm.</p>
<p>The financial model is driven by this hierarchy. More modules, strings, inverters, substations and 33 kV ring circuits change DC capacity, AC capacity, site area, cable loading, losses, CAPEX, revenue and development value. If the topology assumptions are unrealistic, the financial outputs will also be unrealistic.</p>
<h3>About the VENTUS GIS SLD Sandbox</h3>
<p>VENTUS GIS SLD Sandbox is a working engineering screening tool for utility scale solar, storage and grid connection analysis.</p>
<p>The tool helps users explore the relationship between land, grid proximity, solar topology, module count, inverter architecture, logistics, BESS assumptions and baseline project economics in one visual interface.</p>
<p>Users can enter a location, view UK substation reference data, select a grid node and generate an indicative solar layout using either string inverter or central inverter topology. The tool can estimate module count, DC capacity, AC capacity, site area, packing units, container loads, baseline revenue, CAPEX assumptions and simple long term financial outputs.</p>
<p>This is a real engineering screening tool. It is not a final construction design package, grid offer, connection approval, EPC quotation or financial advice. It is designed to support early stage project assessment by making technical, spatial, logistics and financial assumptions visible before deeper engineering, grid, planning, procurement and financial studies begin.</p>
<p>A key feature of the sandbox is that technical and commercial assumptions are shown together. In real projects, module count becomes logistics. Cable routing becomes electrical loss. Grid proximity becomes interface risk. BESS assumptions affect land, CAPEX and revenue logic. Financial outputs only become useful when the physical assumptions behind them are visible.</p>
<p>The tool also includes GeoJSON export so that generated layouts and assumptions can be carried into external GIS workflows, reports, internal review or further engineering discussion. The exported data is intended to preserve context, including topology mode, technical assumptions, logistics assumptions, financial assumptions and warnings.</p>
<p>The public substation layer is reference data only. A visible substation point does not confirm available capacity, connection rights, voltage suitability, cable route, grid acceptance or point of connection approval. Any real project must still be reviewed by competent engineers, grid specialists, planners, EPC teams, legal advisers and project finance professionals before real world d … [line shortened here: 422 characters; full line on GitHub]
<p>VENTUS created this sandbox to support better early stage thinking in solar and storage deployment. The aim is to help developers, engineers, suppliers, investors and commercial teams ask better questions before committing time, capital and contractual responsibility.</p>
<p>Use the sandbox as a thinking tool. Use it to test scale. Use it to compare assumptions. Use it to understand where deeper engineering begins.</p>
<h3>Financial Model Logic</h3>
<p>The financial model is a screening layer for Solar Photovoltaic (PV) development, grid connection, Engineering, Procurement and Construction (EPC) readiness and operating asset value. It is designed to make the main commercial assumptions visible beside the physical layout, not to replace a full valuation report or investment committee model.</p>
<p>The energy price input is a blended screening assumption. It may represent government backed price stabilisation, a private buyer contract, merchant power exposure or a blended revenue case. Users should enter the expected captured electricity price that best reflects the project route to market.</p>
<p>The Operating Asset Net Present Value (NPV) input is user editable because operational value changes with contract quality, revenue certainty, merchant exposure, grid status, asset maturity, inflation, debt assumptions and investor return requirements. A project with stable long term revenue may justify a higher value assumption than a project with greater merchant exposure.</p>
<p>The development cost per Megawatt (MW) input is user editable because development capital at risk rises as a project moves from site identification through grid review, planning, buyer or revenue agreement review, technical design and Engineering, Procurement and Construction (EPC) readiness.</p>
<p>The Target Exit Value input is a screening assumption, not a promised sale value or formal valuation. It helps users test whether there may be development margin after development cost, module supply cost, Engineering, Procurement and Construction (EPC) cost, grid connection cost and owner costs.</p>
<p>The model deliberately avoids pretending to be a full discounted cash flow model. It is a fast comparison tool for early stage decision making. Real projects still require competent engineering, grid studies, planning review, legal review, tax review, debt sizing, revenue analysis and investment committee approval.</p>
<h3>Detailed Screening Disclaimer</h3>
<p>The VENTUS GIS SLD Sandbox is provided as an early stage screening, learning and project qualification tool. It is intended to help users visualise relationships between land, grid proximity, solar topology, cable route assumptions, module count, inverter architecture, logistics, Battery Energy Storage System (BESS) assumptions, capital cost assumptions, revenue assumptions and indicative proje … [line shortened here: 417 characters; full line on GitHub]
<p>The sandbox does not create, imply or evidence a grid offer, grid connection approval, point of connection approval, available grid capacity, land right, wayleave, easement, planning consent, EPC price, construction programme, investment recommendation, financial valuation, lending approval or insurance acceptance.</p>
<p>Public substation points, voltage references and grid node markers are reference data only. A visible substation point does not confirm voltage suitability, thermal capacity, fault level headroom, protection compatibility, connection queue status, Gate 2 eligibility, land access, constructability, outage availability, reinforcement cost or acceptance by a Distribution Network Operator (DNO), Tr … [line shortened here: 493 characters; full line on GitHub]
<p>User drawn cable routes, pin routes, direct route lines and exported route geometries are indicative routing assumptions only. They do not confirm landowner consent, wayleaves, easements, highway rights, railway crossings, watercourse crossings, third party utility conflicts, environmental constraints, planning acceptability, installation method, cable pulling feasibility, trench design, duct d … [line shortened here: 530 characters; full line on GitHub]
<p>All cable lengths, losses and route assumptions must be checked by competent cable engineers using project specific route surveys, cable data sheets, soil thermal resistivity, installation depth, grouping factors, duct factors, cyclic loading, conductor temperature limits, voltage drop limits, short circuit withstand, sheath bonding, earthing design, protection settings and applicable standards … [line shortened here: 459 characters; full line on GitHub]
<p>Solar layout outputs are indicative. Module count, DC capacity, AC capacity, site area, Ground Coverage Ratio (GCR), gross site factor, block layout, inverter count, substation count, access assumptions and container quantities must be verified against manufacturer datasheets, planning drawings, topographical surveys, geotechnical surveys, environmental constraints, drainage strategy, fire acce … [line shortened here: 493 characters; full line on GitHub]
<p>Financial outputs are screening values only. Revenue, capital expenditure, development cost, module cost, EPC cost, owner cost, grid connection cost, operating cost, target exit value, Operating Asset Net Present Value (NPV), development margin and surplus outputs depend on assumptions entered by the user and may change materially with route to market, Contracts for Difference (CfD), Power Purc … [line shortened here: 616 characters; full line on GitHub]
<p>BESS assumptions are indicative only. BESS power, BESS energy, BESS CAPEX, cycles, efficiency and revenue per MWh do not replace battery degradation modelling, augmentation strategy, warranty review, revenue stack modelling, fire safety review, planning review, grid compliance studies, metering design, controls design, availability assumptions, insurance review or safety case preparation.</p>
<p>The GeoJSON export preserves useful context for review and discussion, but exported data is not an Issued for Construction (IFC) drawing, legal boundary plan, grid application pack, cable route schedule, bill of quantities, EPC instruction, investment memorandum or bankable technical due diligence package. Any exported file must be reviewed and validated before being used in external GIS workfl … [line shortened here: 489 characters; full line on GitHub]