In this section
- Tests test · solar-electrical-topology-analysis-engine-text-based / b9-sandbox/tests.js lines 1–158
- Geometry Authority other · solar-electrical-topology-analysis-engine-text-based / geometry_authority.py lines 1–3
- Solar Electrical Topology Analysis Engine Text Based — Index Page render · solar-electrical-topology-analysis-engine-text-based / index.html lines 1–135
- Navigation Buttons interaction · solar-electrical-topology-analysis-engine-text-based / navigation-buttons.js lines 1–29
- Physics Generated electrical · solar-electrical-topology-analysis-engine-text-based / physics.generated.js lines 1–55
- Progress Dashboard render · solar-electrical-topology-analysis-engine-text-based / progress-dashboard.html lines 1–89
- Pyproject docs-config · solar-electrical-topology-analysis-engine-text-based / pyproject.toml lines 1–41
- Restore Points — 2026 07 29 Before 24 String V10 Page render · solar-electrical-topology-analysis-engine-text-based / restore-points/2026-07-29-before-24-string-v10/index.html lines 1–44
- Index V6 Before Leapfrog render · solar-electrical-topology-analysis-engine-text-based / restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html lines 1–125
Tests
A JavaScript module in Solar Electrical Topology Analysis Engine Text Based that works with assert equal (`assertEqual`) and assert close (`assertClose`) (units: mm²). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/.
testsolar-electrical-topology-analysis-engine-text-based / b9-sandbox/tests.js · lines 1–158 of 158 · Entry point
- What it does
- It tests its inputs. Defines assertEqual, assertClose, baseInput. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Downstream impact
- Used directly by 1 file: Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/.
- What it achieves
- It is built from the assert equal helper (`assertEqual`), the assert close helper (`assertClose`) and the base input helper (`baseInput`). Defines `assertEqual`, `assertClose` and `baseInput`.
- Why it matters
- Checked by Tests.
- Application
- solar-electrical-topology-analysis-engine-text-based · b9-sandbox · JavaScript module
- Uses
- Cartridges (import), Model (import)
- Used by
- loaded by Tests (script src)
- Produces
- assertEqual, assertClose, baseInput
- Defines here
- assertEqual, assertClose, baseInput
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 b9-sandbox/tests.js:1-158 · blob d4b4f8b479d6097d3ed339c5261e64f779eff600 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
import { getCartridge } from "./cartridges.js";
import {
buildScene,
deriveSummary,
rowSpan,
topologyOrder,
} from "./model.js";
const results = [];
function assertEqual(name, actual, expected) {
const pass = actual === expected;
results.push({ name, pass, actual, expected });
}
function assertClose(name, actual, expected, tolerance = 1e-9) {
const pass = Math.abs(actual - expected) <= tolerance;
results.push({ name, pass, actual, expected });
}
function baseInput(overrides = {}) {
return {
moduleWidthM: 1.303,
moduleHeightM: 2.384,
moduleGapM: 0,
orientation: "portrait",
positiveLeadM: 1.4,
negativeLeadM: 1.4,
junctionBoxMode: "split",
lowEdgeM: 1,
highEdgeM: 4,
ridgeGapM: 0.3,
rowPitchM: 3,
trackerAngleDeg: 0,
inverterDistanceM: 10,
modulesPerString: 30,
stringCount: 24,
topology: "leapfrog",
customOrder: "",
externalCableCsaMm2: 6,
factoryLeadCsaMm2: 4,
...overrides,
};
}
const cartridge = getCartridge("fixed-1p");
const leapfrogScene = buildScene(baseInput(), cartridge);
const leapfrogSummary = deriveSummary(leapfrogScene);
assertClose(
"Thirty modules at 1.303 m and zero gap span 39.09 m",
rowSpan(leapfrogScene),
39.09,
1e-12,
);
assertEqual(
"Leapfrog order begins with odd modules",
topologyOrder(30, "leapfrog").slice(0, 5).join(","),
"1,3,5,7,9",
);
assertEqual(
"Leapfrog turnaround is M29 to M30",
topologyOrder(30, "leapfrog").slice(14, 17).join(","),
"29,30,28",
);
assertEqual(
"Leapfrog free negative is M1 negative",
leapfrogSummary.freeNegative,
"S-0001-M1-NEG",
);
assertEqual(
"Leapfrog free positive is M2 positive",
leapfrogSummary.freePositive,
"S-0001-M2-POS",
);
assertEqual(
"Twenty-four strings contain 720 modules",
leapfrogSummary.moduleCount,
720,
);
assertEqual(
"Two 1.4 m leads pass the 2.606 m zero-gap reach screen",
leapfrogScene.feasibility.passes,
true,
);
const shortLeadScene = buildScene(
baseInput({ positiveLeadM: 0.35, negativeLeadM: 0.28 }),
cartridge,
);
assertClose(
"Standard short leads fail by 1.976 m at zero gap",
shortLeadScene.feasibility.shortfallM,
1.976,
1e-12,
);
const sequentialScene = buildScene(
baseInput({ topology: "sequential" }),
cartridge,
);
const sequentialSummary = deriveSummary(sequentialScene);
assertClose(
"Sequential external cable exceeds leapfrog by one row span per string",
sequentialSummary.externalCableM - leapfrogSummary.externalCableM,
39.09 * 24,
1e-9,
);
const customOrder = Array.from({ length: 30 }, (_, index) => index + 1)
.reverse()
.join(",");
assertEqual(
"Valid custom order is accepted",
topologyOrder(30, "custom", customOrder).length,
30,
);
assertEqual(
"Duplicate custom module numbers are rejected",
topologyOrder(30, "custom", "1,1,2").length,
0,
);
const root = document.getElementById("results");
let failures = 0;
results.forEach((result) => {
const row = document.createElement("tr");
const status = document.createElement("td");
const name = document.createElement("td");
const detail = document.createElement("td");
status.textContent = result.pass ? "PASS" : "FAIL";
status.className = result.pass ? "pass" : "fail";
name.textContent = result.name;
detail.textContent = result.pass
? String(result.actual)
: `actual ${result.actual}; expected ${result.expected}`;
row.append(status, name, detail);
root.appendChild(row);
if (!result.pass) {
failures += 1;
}
});
document.getElementById("overall").textContent = failures === 0
? `PASS · ${results.length} checks`
: `FAIL · ${failures} of ${results.length} checks failed`;
document.getElementById("overall").className = failures === 0
? "pass"
: "fail";Geometry Authority
A Python module in Solar Electrical Topology Analysis Engine Text Based.
othersolar-electrical-topology-analysis-engine-text-based / geometry_authority.py · lines 1–3 of 3
- What it does
- Uses libraries solar_topology.array.geometry_authority.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 7 files: Validate Clean Wheel (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based); Test Array Topology (solar-electrical-topology-analysis-engine-text-based); Test Geometry Authority (solar-electrical-topology-analysis-engine-text-based); and 3 more. Reached from 9 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- Compatibility import for the packaged Build 025 geometry authority.
- Why it matters
- Imported by Validate Clean Wheel. Checked by 6 tests, including Test Array Engine.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · Python module
- Uses
- solar_topology.array.geometry_authority
- Used by
- imported by Validate Clean Wheel (import), imported by Test Array Engine (import), imported by Test Array Topology (import), imported by Test Geometry Authority (import), imported by Test Installed Array API (import), imported by Test Table String Assignment (import), imported by Test Table String Validation (import)
- 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
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 geometry_authority.py:1-3 · blob 95247ce39ad8b64669719f085471a0c9aea37521 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
"""Compatibility import for the packaged Build 025 geometry authority."""
from solar_topology.array.geometry_authority import * # noqa: F401,F403Solar Electrical Topology Analysis Engine Text Based — Index Page
A web page that reads inputs for modules along, ranks up and faces (units: Ω, °C, mm²), covering cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
rendersolar-electrical-topology-analysis-engine-text-based / index.html · lines 1–135 of 135 · Entry point
- What it does
- It draws cables. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables.
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- Used directly by 44 files: Geometry Workbench (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html); V7 Development — Feed I Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v7-development/feed-i/); Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/); Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/tests.html); and 40 more. Reached from 90 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
- What it achieves
- 2D solar DC topology engine modelling sequential and leapfrog string circuits, home-run cables, module leads, connectors, temperature, loop geometry, inductance and capacitance.
- Why it matters
- Loaded by the Geometry Workbench page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html and 41 other pages. Also imported by Build, from Cosmic. Checked by Tests.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · page
- Uses
- Spider Navigation (stylesheet), Physics Generated (script src), V6 Leapfrog (script src), Spider Navigation (script src), ./styles.css, ./app.js
- Used by
- linked from Geometry Workbench (link), linked from V7 Development — Feed I Page (link), linked from Solar Electrical Topology Analysis Engine Text Based — V8 Leapfrog Page (link), linked from Tests (link), named by URL in Build (estate URL), named by URL in GlobalGrid2050 Historical Builds (estate URL), named by URL in Homepage Versions — GlobalGrid2050 Page (estate URL), named by URL in Homepage V002 (estate URL), and 36 more
- 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
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 index.html:1-135 · blob cc8059379bfc43a199f8c1cb6e67c0b0ebac0250 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Solar DC String Topology Engine V6</title>
<meta name="description" content="2D solar DC topology engine modelling sequential and leapfrog string circuits, home-run cables, module leads, connectors, temperature, loop geometry, inductance and capacitance.">
<link rel="stylesheet" href="./styles.css">
<link rel="stylesheet" href="./spider-navigation.css">
<style>
.topology-explainer{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr);gap:16px;align-items:center}
.topology-explainer canvas{width:100%;height:auto;display:block;background:#03070b;border:1px solid #263747}
.topology-mode-note{padding:12px;border-left:4px solid #27d8ff;background:#071923;color:#cdefff}
@media(max-width:800px){.topology-explainer{grid-template-columns:1fr}}
</style>
</head>
<body>
<header class="topbar"><div><div class="kicker">GLOBALGRID2050 · OPEN ELECTRICAL ENGINEERING</div><h1>Solar DC String Topology Engine</h1><p>Geometry-derived complete-circuit study of home-run cables, module leads, connector contacts, loop area, inductance and capacitance to earth.</p></div><div class="status"><span></span> V6 · SEQUENTIAL / LEAPFROG</div></header>
<div class="reliance"><strong>ENGINEERING SCREENING OUTPUT</strong>The Ventus values are treated as editable hypotheses, not validated constants. Results remain indicative until geometry, module leads, connector resistance, cable data, capacitance and installation conditions are confirmed from project evidence and reviewed by a competent person.</div>
<main class="layout">
<aside class="controls">
<section><h2>Physical A-frame</h2>
<label>Modules along row <input id="modulesAlong" type="number" min="1" value="30"></label>
<label>Ranks per face <input id="ranksUp" type="number" min="1" value="5"></label>
<label>Faces per table <input id="faces" type="number" min="1" max="2" value="2"></label>
<label>Tilt (degrees) <input id="tilt" type="number" min="0" max="60" step="0.1" value="10"></label>
<label>Module width along row (m) <input id="moduleWidth" type="number" step="0.001" value="1.303"></label>
<label>Module length up slope (m) <input id="moduleLength" type="number" step="0.001" value="2.384"></label>
<label>Clamp gap (m) <input id="clampGap" type="number" min="0" step="0.001" value="0.020"></label>
<label>Along-row gap (m) <input id="alongGap" type="number" min="0" step="0.001" value="0.020"></label>
<label>Distance from inverter to nearest string terminals (m) <input id="nearAllowance" type="number" min="0" step="0.5" value="10"></label>
<div class="provenance">Geometry and inverter distance: <strong>ASSUMED · EDITABLE</strong></div>
</section>
<section><h2>String bands and wiring topology</h2><p class="note">Comma-separated counts create equal-length string groups. Leapfrog brings both free string terminals to the inverter-side end; sequential leaves one terminal at the far end.</p>
<label>East face bands <input id="eastBands" type="text" value="5,5,2"></label>
<label>West face bands <input id="westBands" type="text" value="5,5,2"></label>
<label>Modules per string <input id="modulesPerString" type="number" min="1" value="30"></label>
<label>MPPT count <input id="mpptCount" type="number" min="1" value="12"></label>
<label>Wiring mode <select id="wiringMode"><option value="sequential" selected>Sequential · opposite physical ends</option><option value="leapfrog">Leapfrog · both terminals near</option></select></label>
<label>Leapfrog residual path separation (mm) <input id="leapfrogSpacing" type="number" min="3" step="1" value="40"></label>
<div class="provenance">Leapfrog path separation: <strong>ASSUMED UNTIL ROUTE IS MEASURED</strong></div>
</section>
<section><h2>Complete series circuit</h2>
<label>Positive lead/module (m) <input id="positiveLead" type="number" min="0" step="0.01" value="0.35"></label>
<label>Negative lead/module (m) <input id="negativeLead" type="number" min="0" step="0.01" value="0.35"></label>
<label>Module-lead CSA (mm²) <input id="leadCsa" type="number" min="0.1" step="0.1" value="4"></label>
<label>Extension leads total (m) <input id="extensionLead" type="number" min="0" step="0.1" value="0"></label>
<label>Connector contacts/string <input id="connectorContacts" type="number" min="0" step="1" value="62"></label>
<label>Contact resistance (mΩ) <input id="connectorMilliOhm" type="number" min="0" step="0.01" value="0.35"></label>
<label>Extra terminations (mΩ) <input id="terminationMilliOhm" type="number" min="0" step="0.01" value="0.50"></label>
<div class="provenance">Lead lengths and contact resistance: <strong>UNVERIFIED USER INPUTS</strong>. Replace from manufacturer or measured evidence.</div>
</section>
<section><h2>Electrical and temperature</h2>
<label>Module Vmp (V) <input id="moduleVmp" type="number" step="0.1" value="38.1"></label>
<label>Module Voc (V) <input id="moduleVoc" type="number" step="0.1" value="45.9"></label>
<label>Module Imp (A) <input id="moduleImp" type="number" step="0.01" value="17.35"></label>
<label>βVoc (%/°C) <input id="betaVoc" type="number" step="0.01" value="-0.25"></label>
<label>Cold cell temperature (°C) <input id="coldTemp" type="number" value="-10"></label>
<label>System maximum voltage (V) <input id="systemMaxVoltage" type="number" value="1500"></label>
<label>Home-run CSA (mm²) <input id="csa" type="number" step="0.1" value="6"></label>
<label>Home-run temperature (°C) <input id="conductorTemp" type="number" value="70"></label>
<label>Module-lead temperature (°C) <input id="leadTemp" type="number" value="75"></label>
<label>Reference comparison (°C) <input id="referenceTemp" type="number" value="20"></label>
<label>Connector temperature coeff. (/°C) <input id="connectorAlpha" type="number" step="0.0001" value="0.0039"></label>
</section>
<section><h2>Differential and common-mode geometry</h2>
<label>Cable OD (mm) <input id="cableOd" type="number" step="0.1" value="6.4"></label>
<label>External pair spacing (mm) <input id="externalSpacing" type="number" min="0.1" step="1" value="40"></label>
<label>Sequential module-loop separation (mm) <input id="moduleSpacing" type="number" min="0.1" step="10" value="500"></label>
<label>Effective line εr <input id="epsilonR" type="number" step="0.1" value="2.3"></label>
<label>Cable height above earth (m) <input id="cableHeight" type="number" min="0.01" step="0.1" value="1.5"></label>
<label>Disturbance rise time (µs) <input id="riseTime" type="number" min="0.001" step="0.1" value="1.2"></label>
<div class="provenance">Differential and common-mode quantities are calculated separately. Spacing, height and effective permittivity remain assumed until measured.</div>
</section>
<section><h2>Module capacitance to frame / earth</h2>
<label>Glass relative permittivity <input id="glassEpsilon" type="number" min="1" step="0.1" value="7.5"></label>
<label>Glass thickness (mm) <input id="glassThickness" type="number" min="0.1" step="0.1" value="2.0"></label>
<label>Wetted face count <select id="wettedFaces"><option value="1">One</option><option value="2" selected>Two</option></select></label>
<label>Frame/glass contact width (mm) <input id="frameContactWidth" type="number" min="0" step="1" value="10"></label>
<label>IMD alarm threshold (kΩ) <input id="alarmThresholdKohm" type="number" min="0.1" step="10" value="100"></label>
<label>Required response time (s) <input id="imdResponseTime" type="number" min="0.01" step="1" value="30"></label>
<label>Inverter switching frequency (Hz) <input id="switchingFrequency" type="number" min="1" step="100" value="4000"></label>
<div class="provenance">Wet capacitance uses full module area. Dry capacitance uses a defaulted perimeter-strip model and probably understates fringing and rear-rail coupling. Measurement should replace both where device selection is intended.</div>
</section>
<section><h2>Cable ruler</h2><p class="note">Draw or type additional route segments. Each segment is separately reported.</p>
<label>Segment type <select id="manualType"><option value="surface_pair">Surface pair</option><option value="trench_pair">Trench pair</option><option value="rail_mounted_pair">Rail-mounted pair</option><option value="free_air_pair">Free-air pair</option><option value="custom">Custom</option></select></label>
<label>Conductor separation (mm) <input id="manualSpacing" type="number" min="0.1" step="1" value="40"></label>
<label>Typed length (m) <input id="manualLength" type="number" min="0" step="0.1" value="10"></label>
<label>Provenance <select id="manualProvenance"><option value="measured">Measured</option><option value="assumed" selected>Assumed</option><option value="defaulted">Defaulted</option></select></label>
<div class="button-row"><button id="drawCable" class="primary">DRAW CABLE</button><button id="addTyped">ADD TYPED</button></div>
<div class="button-row"><button id="undoCable">UNDO</button><button id="clearCables">CLEAR</button></div>
<div id="drawStatus" class="provenance">Ruler: <strong>READY</strong></div>
</section>
<div class="button-row"><button id="reset">RESET</button><button id="export" class="primary">EXPORT STUDY JSON</button></div>
</aside>
<section class="workbench">
<div class="canvas-head"><div><h2>Scalable plan · complete closed circuit</h2><p>Drag the large drawing in any direction. Use the fixed − and + controls on mobile or the mouse wheel on desktop. Click a string to inspect its complete circuit.</p></div><div class="legend"><span class="east">East face</span><span class="west">West face</span><span class="pos">Positive</span><span class="neg">Negative … [line shortened here: 487 characters; full line on GitHub]
<div class="canvas-wrap"><canvas id="scene"></canvas><div class="zoom-toolbar" aria-label="Drawing zoom controls"><button type="button" id="zoomOut" aria-label="Zoom out">−</button><button type="button" id="zoomReset" aria-label="Reset zoom"><span id="zoomPercent">100%</span></button><button type="button" id="zoomIn" aria-label="Zoom in">+</button></div><div id="zoomReadout">DRAG TO MOVE · USE − / … [line shortened here: 422 characters; full line on GitHub]
<div class="section-inset"><canvas id="sectionCanvas" width="520" height="190"></canvas><div><strong>A-frame section inset</strong><p>Module slope geometry remains separate from plan projection. The electrical model accounts for external conductors and module-integrated series leads.</p></div></div>
<div class="section-inset topology-explainer"><canvas id="wiringComparison" width="1100" height="430"></canvas><div><strong>Sequential versus leapfrog</strong><p id="wiringImpactSummary" class="topology-mode-note">Calculating topology impact…</p></div></div>
<div id="modelDecision" class="decision"></div><div id="warningBox" class="warnings"></div>
<div class="selection"><h2>Selected complete circuit</h2><div id="selectedSummary">Click a string in plan.</div></div>
<div class="metrics">
<article><span>External + / −</span><strong id="externalLengths">—</strong><small>home-run conductors</small></article>
<article><span>Module leads</span><strong id="moduleLeadLength">—</strong><small>integrated series conductors</small></article>
<article><span>Total conductor</span><strong id="routeLength">—</strong><small>complete current path</small></article>
<article><span>Connectors</span><strong id="connectorCount">—</strong><small>series contacts</small></article>
<article><span>R at reference</span><strong id="resistanceReference">—</strong><small>comparison temperature</small></article>
<article><span>R operating</span><strong id="loopResistance">—</strong><small>cables + contacts</small></article>
<article><span>Voltage drop</span><strong id="voltageDrop">—</strong><small>at module Imp</small></article>
<article><span>Power loss</span><strong id="powerLoss">—</strong><small>complete circuit I²R</small></article>
<article><span>Loop area guide</span><strong id="loopArea">—</strong><small>plan projection</small></article>
<article><span>Differential loop L</span><strong id="loopInductance">—</strong><small>segmented two-wire approximation</small></article>
<article><span>Common-mode L</span><strong id="commonModeInductance">—</strong><small>both poles against earth</small></article>
<article><span>C-earth dry / wet</span><strong id="capacitanceEarth">—</strong><small>per selected string</small></article>
<article><span>C-earth inverter</span><strong id="inverterCapacitance">—</strong><small>all generated strings in parallel</small></article>
<article><span>IMD time constant</span><strong id="imdTimeConstant">—</strong><small>Ralarm × C inverter</small></article>
<article><span>Minimum detectable R</span><strong id="minimumDetectableResistance">—</strong><small>at stated response time</small></article>
<article><span>CM impedance @ switching</span><strong id="commonModeImpedance">—</strong><small>1 / 2πfC</small></article>
<article><span>CM resonance dry / wet</span><strong id="commonModeResonance">—</strong><small>1 / 2π√LC</small></article>
<article><span>One-way delay</span><strong id="delay">—</strong><small id="roundTrip">—</small></article>
<article><span>Cold string Voc</span><strong id="coldVoc">—</strong><small id="vocMargin">—</small></article>
<article><span>Voltage breach temperature</span><strong id="breachTemperature">—</strong><small>βVoc and system maximum</small></article>
<article><span>Total strings</span><strong id="totalStrings">—</strong><small>generated topology</small></article>
<article><span>Array footprint</span><strong id="footprint">—</strong><small>plan projection</small></article>
<article><span>Manual ruler total</span><strong id="manualTotal">0.00 m</strong><small>drawn + typed</small></article>
</div>
<details open><summary>Selected resistance and loss breakdown</summary><div id="breakdown" class="breakdown"></div></details>
<details open><summary>All strings · complete-circuit schedule</summary><div class="table-scroll"><table><thead><tr><th>ID</th><th>Face</th><th>Band</th><th>+ external m</th><th>− external m</th><th>Module leads m</th><th>Total m</th><th>Contacts</th><th>R op Ω</th><th>ΔV V</th><th>Loss W</th><th>Area m²</th><th>L diff µH</th><th>L CM µH</th><th>C-earth dry/wet µF</th><th>MPPT</th></tr></thead><tb … [line shortened here: 453 characters; full line on GitHub]
<details open><summary>Manual cable electrical sub-table</summary><div class="table-scroll"><table><thead><tr><th>ID</th><th>Type</th><th>Length m</th><th>Spacing mm</th><th>R Ω</th><th>L µH</th><th>C nF</th><th>Z₀ Ω</th><th>Delay µs</th><th>Provenance</th></tr></thead><tbody id="manualTable"></tbody></table></div></details>
<details open><summary>Calculation trace and evidence status</summary><pre id="trace"></pre></details>
</section>
</main>
<footer><span>Generic reproducible example · planned geometry, not as-built</span><span>Every exported value carries inputs and evidence status; no output is a warranty or design certificate.</span></footer>
<script src="./physics.generated.js"></script><script src="./app.js"></script><script src="./v6-leapfrog.js"></script><script src="./spider-navigation.js"></script>
</body></html>Navigation Buttons
A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that applies view (`applyView`). Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/. It applies view (`applyView`).
interactionsolar-electrical-topology-analysis-engine-text-based / navigation-buttons.js · lines 1–29 of 29 · Not reached from any entry point (candidate for review) · pattern applyView (shared by 2 files)
- What it does
- Defines applyView. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'navigation'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- What it achieves
- Defines `applyView`. It responds to click, wheel and pointermove events.
- Why it matters
- No other file in the estate was found to import it.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · script
- Uses
- none found
- Used by
- none found
- Produces
- applyView
- Defines here
- applyView
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 navigation-buttons.js:1-29 · blob 555d0e0426c77c3d55d6f7ff911c03ec86a98f7a · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: unreached_review
'use strict';
(function(){
const canvas=document.getElementById('scene');
const buttons=[...document.querySelectorAll('[data-view-zoom]')];
if(!canvas||typeof state==='undefined'||typeof render!=='function')return;
function applyView(zoom){
state.zoom=zoom;
state.panX=0;
state.panY=0;
state.panning=false;
state.dragInv=false;
state.pinchStart=null;
if(state.pointers&&state.pointers.clear)state.pointers.clear();
buttons.forEach(b=>b.classList.toggle('active',Number(b.dataset.viewZoom)===zoom));
render();
}
buttons.forEach(button=>button.addEventListener('click',()=>applyView(Number(button.dataset.viewZoom))));
// Disable canvas gesture navigation while preserving ordinary page scrolling.
canvas.style.touchAction='pan-y';
canvas.addEventListener('wheel',event=>{event.preventDefault();event.stopImmediatePropagation();},{capture:true,passive:false});
canvas.addEventListener('pointermove',event=>{event.stopImmediatePropagation();},{capture:true});
canvas.addEventListener('gesturestart',event=>{event.preventDefault();event.stopImmediatePropagation();},{capture:true,passive:false});
canvas.addEventListener('gesturechange',event=>{event.preventDefault();event.stopImmediatePropagation();},{capture:true,passive:false});
applyView(1.6);
})();Physics Generated
A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that works with dc resistance (`dcResistance`) and contact resistance (`contactResistance`), using IEC 60228. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
electricalsolar-electrical-topology-analysis-engine-text-based / physics.generated.js · lines 1–55 of 55 · Entry point · pattern twoWire (shared by 3 files)
- What it does
- It draws its content. Defines 11 functions or classes, including conductorDiameterFromArea, resistanceAtTemperature, dcResistance, contactResistance, twoWire. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/); Index V6 Before Leapfrog (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
- What it achieves
- It is built from the conductor diameter from area helper (`conductorDiameterFromArea`), the resistance at temperature helper (`resistanceAtTemperature`) and the dc resistance helper (`dcResistance`). Browser formula library for the V6 complete-string-circuit prototype. It responds to DOMContentLoaded events.
- Why it matters
- Loaded by the Solar Electrical Topology Analysis Engine Text Based page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ and 1 other page.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · script
- Uses
- none found
- Used by
- loaded by Solar Electrical Topology Analysis Engine Text Based — Index Page (script src), loaded by Index V6 Before Leapfrog (script src)
- Produces
- conductorDiameterFromArea, resistanceAtTemperature, dcResistance, contactResistance, twoWire, polygonArea, coldVoc, parallelPlateCap, storedMagnetic, storedElectric, installResistanceWarning
- Defines here
- conductorDiameterFromArea, resistanceAtTemperature, dcResistance, contactResistance, twoWire, polygonArea, coldVoc, parallelPlateCap, storedMagnetic, storedElectric, installResistanceWarning
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 physics.generated.js:1-55 · blob 657b54ecfded324cdc3c9a497314090770494d20 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
'use strict';
/* Browser formula library for the V6 complete-string-circuit prototype.
Formula outputs are screening values with explicit validity limits. */
window.SolarPhysics = (() => {
const MU0 = 4 * Math.PI * 1e-7;
const EPS0 = 8.8541878128e-12;
const RHO_CU20 = 1.724e-8;
const ALPHA_CU20 = 0.00393;
const RESISTANCE_MODEL = Object.freeze({
authorityStatus: 'historical_reference',
basis: 'ideal_bulk_estimate',
valueKind: 'lower_bound_estimate',
sourceReference: 'bulk copper resistivity divided by nominal metallic area',
sourceRevision: 'complete-circuit-v6-2026-07-26',
warning: 'Ideal bulk-copper screening calculation using nominal metallic area. Not a finished-cable declared resistance and not an IEC 60228 maximum-resistance calculation.'
});
function conductorDiameterFromArea(areaMm2){return Math.sqrt(4*areaMm2/Math.PI);}
function resistanceAtTemperature(referenceResistance,referenceTemperatureC,targetTemperatureC,alpha=ALPHA_CU20){return referenceResistance*(1+alpha*(targetTemperatureC-referenceTemperatureC));}
function dcResistance(totalMetalLengthM,areaMm2,temperatureC){return RHO_CU20*totalMetalLengthM/(areaMm2*1e-6)*(1+ALPHA_CU20*(temperatureC-20));}
function contactResistance(baseOhm,referenceTemperatureC,targetTemperatureC,alpha){return resistanceAtTemperature(baseOhm,referenceTemperatureC,targetTemperatureC,alpha);}
function twoWire(centreSpacingMm,conductorDiameterMm,epsilonR){
const D=centreSpacingMm/1000,d=conductorDiameterMm/1000;
if(!(D>d)) throw new Error('Conductor centre spacing must exceed conductor diameter');
const g=Math.acosh(D/d);
const externalL=MU0/Math.PI*g;
const internalL=MU0/(4*Math.PI);
const lp=externalL+internalL;
const cp=Math.PI*EPS0*epsilonR/g;
return {geometry:g,externalInductancePerM:externalL,internalInductancePerM:internalL,inductancePerM:lp,capacitancePerM:cp,z0:Math.sqrt(lp/cp),velocity:1/Math.sqrt(lp*cp)};
}
function polygonArea(points){let sum=0;for(let i=0;i<points.length;i++){const a=points[i],b=points[(i+1)%points.length];sum+=a[0]*b[1]-b[0]*a[1];}return Math.abs(sum)/2;}
function coldVoc(moduleVoc,moduleCount,betaPctPerC,tempC){return moduleVoc*moduleCount*(1+(betaPctPerC/100)*(tempC-25));}
function parallelPlateCap(areaM2,thicknessMm,epsilonR){return EPS0*epsilonR*areaM2/(thicknessMm/1000);}
function storedMagnetic(L,I){return 0.5*L*I*I;}
function storedElectric(C,V){return 0.5*C*V*V;}
function installResistanceWarning(){
if(typeof document==='undefined')return;
const existing=document.getElementById('legacyResistanceAuthority');
if(existing)return;
const host=document.querySelector('.reliance');
if(!host)return;
const warning=document.createElement('div');
warning.id='legacyResistanceAuthority';
warning.style.marginTop='8px';
warning.style.paddingTop='8px';
warning.style.borderTop='1px solid currentColor';
warning.innerHTML='<strong>RESISTANCE AUTHORITY · HISTORICAL LOWER-BOUND SCREEN</strong> '+RESISTANCE_MODEL.warning;
host.appendChild(warning);
}
if(typeof document!=='undefined'){
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',installResistanceWarning,{once:true});
else installResistanceWarning();
}
return Object.freeze({formulaVersion:'complete-circuit-v6-2026-07-26',constants:{MU0,EPS0,RHO_CU20,ALPHA_CU20},resistanceModel:RESISTANCE_MODEL,conductorDiameterFromArea,resistanceAtTemperature,dcResistance,contactResistance,twoWire,polygonArea,coldVoc,parallelPlateCap,storedMagnetic,storedElectric});
})();Progress Dashboard
A web page in Solar Electrical Topology Analysis Engine Text Based that draws programme state, using SHA-256. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/progress-dashboard.html.
rendersolar-electrical-topology-analysis-engine-text-based / progress-dashboard.html · lines 1–89 of 89 · Entry point
- What it does
- It draws programme state. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "CI fails if the manifest, this status block or `progress-dashboard.html` drift apart."
- Inputs & outputs
- In: JSON file programme-state.json. Out: web page.
- Downstream impact
- Used directly by 2 files: Geometry Workbench (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html); Inverter24 (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v8-leapfrog/inverter24.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/progress-dashboard.html.
- What it achieves
- Generated engineering programme state for the Solar Electrical Topology Analysis Engine. Its code works with 352 kVA.
- Why it matters
- Loaded by the Geometry Workbench page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/v10-development/geometry-workbench.html and 1 other page.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · page
- Uses
- none found
- Used by
- linked from Geometry Workbench (link), linked from Inverter24 (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
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 progress-dashboard.html:1-89 · blob 9e14217b49e183fbdc9a04b48f7f0f21026b2790 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Generated engineering programme state for the Solar Electrical Topology Analysis Engine.">
<title>Solar Topology Engine · Programme Truth</title>
<style>
:root{color-scheme:dark;--bg:#05090d;--panel:#0b151d;--line:#254052;--text:#edf8fd;--muted:#91a9b8;--good:#55dfa0;--active:#43cfff;--warn:#ffc95e;--historic:#a9a1d6}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 12% 0,#14364d 0,var(--bg) 42%);color:var(--text);font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}header,main,footer{max-width:1180px;margin:auto;padding:24px}header{padding-top:42px}h1{font-size:clamp(34px,7vw,68px);line-height:1;margin:.16em 0}h2{margin:32px 0 10px}.kicker{color:var(--active);font-weight:900;l … [line shortened here: 1,520 characters; full line on GitHub]
</style>
</head>
<body>
<header>
<div class="kicker">GLOBALGRID2050 · GENERATED PROGRAMME STATE</div>
<h1>Solar Topology Engine</h1>
<p class="muted">This page is generated from <a href="./programme-state.json">programme-state.json</a>. It contains no manually maintained completion percentage.</p>
<div class="pills">
<div class="pill"><small>Current build</small><strong>Build 026 — Continuity and model repair</strong></div>
<div class="pill"><small>Package</small><strong>0.4.0</strong></div>
<div class="pill"><small>Active gate</small><strong>TS-005 — Complete</strong></div>
<div class="pill"><small>Next single goal</small><strong>B026-07 — Deliberate root gitignore</strong></div>
</div>
</header>
<main>
<h2>First complete product boundary</h2>
<section class="panel boundary">660 Wp bifacial modules × 30 modules/string × 24 strings
= 720 modules
= 475.2 kWp DC
= one 352 kVA inverter block
DC/AC nameplate ratio = 1.35</section>
<h2>Latest declared validation envelope</h2>
<section class="grid"><article class="card"><span>Python</span><strong>377 / 377</strong><small>PASS</small></article>
<article class="card"><span>V8 model</span><strong>13 / 13</strong><small>PASS</small></article>
<article class="card"><span>V8 authority reconciliation</span><strong>6 / 6</strong><small>PASS</small></article>
<article class="card"><span>V9 deterministic engine</span><strong>10 / 10</strong><small>PASS</small></article>
<article class="card"><span>V10 JavaScript and Studio gates</span><strong>5 / 5</strong><small>PASS</small></article>
<article class="card"><span>Clean installed wheel</span><strong>1 / 1</strong><small>PASS</small></article>
<article class="card"><span>Inverter-block clean wheel</span><strong>1 / 1</strong><small>PASS</small></article></section>
<p class="muted">Workflow run <code>30696063294</code> · artefact <code>8817320885</code> · validated engineering commit <code>747381f6c3c3325a680a80a17e516268541c8548</code></p>
<p class="muted">Comparison hash <code>sha256:413aa93c98d1b9fd5f9ffee4f577cfe29a6e74f48bd927a3ebe7f541545d6366</code></p>
<h2>Capability authority</h2>
<section class="columns">
<div class="panel"><h3>Canonical</h3><ul><li class="canonical">deterministic module placement for the 24 by 30 reference fixture</li>
<li class="canonical">ordered string topology and physical input assignment</li>
<li class="canonical">explicit sequential and leapfrog routing</li>
<li class="canonical">geometry, topology, assignment, routing and calculation receipts</li>
<li class="canonical">complete-circuit resistance, voltage drop, loss and uncertainty</li>
<li class="canonical">installed solar_topology package and clean-wheel authority</li>
<li class="canonical">machine-readable completed microbuild programme with twenty evidence records</li>
<li class="canonical">byte-identical command, committed-bundle and live-bridge response contract</li>
<li class="canonical">Authority Studio projection of Python-owned scalars, hashes, geometry, routes, inputs and evidence gaps</li></ul></div>
<div class="panel"><h3>Provisional</h3><ul><li class="provisional">complete deterministic 352 kVA inverter-block aggregate and receipt</li>
<li class="provisional">generic evidence-qualified 660 Wp bifacial module and 352 kVA inverter equipment contract</li>
<li class="provisional">resistance source qualification and assessment serialisation</li>
<li class="provisional">generic 4 mm2 and 6 mm2 metal-coated class 5 resistance sources</li>
<li class="provisional">local authority bridge for the single reference block rather than project ingestion</li>
<li class="provisional">browser workbenches as exploratory projections</li></ul></div>
<div class="panel"><h3>Historical workbenches</h3><ul><li class="historical">V6 complete-circuit browser workbench</li>
<li class="historical">V7 electromagnetic FEED workbench</li>
<li class="historical">V8 leapfrog cable-schedule workbench</li>
<li class="historical">V9 deterministic sandbox</li>
<li class="historical">V10 browser development workbench</li></ul></div>
</section>
<h2>Known limitations</h2>
<section class="panel"><ul><li class="limitation">The generic equipment contract contains 47 unresolved or candidate evidence items, including module electrical values, dimensions, connector data, lead lengths, installation class and every input-to-MPPT relationship.</li>
<li class="limitation">The generic conductor resistance records remain candidates because exact source revisions are not encoded and verification is incomplete.</li>
<li class="limitation">Internal DC topology, shared-bus behaviour, reverse-current blocking and PCE backfeed remain unresolved.</li>
<li class="limitation">Authority Studio is connected end to end for one generic reference inverter block; it is not yet a project ingestion, editing or approval workflow.</li>
<li class="limitation">The live authority bridge is local and offline; no remote service, authentication or multi-user deployment is claimed.</li>
<li class="limitation">The existing browser calculations remain exploratory and visibly separate from Authority mode.</li>
<li class="limitation">Standards, EMC, lightning, environmental classes, plant ingestion and fleet intelligence remain later controlled programmes.</li></ul></section>
<h2>Progress policy</h2>
<section class="panel policy">No numerical programme-completion percentage is claimed. The TS-005 twenty-step programme is complete through twenty individually evidenced states; the broader engineering programme remains unweighted.</section>
<h2>Continuity</h2>
<section class="panel">
<p>Current Quantum Spawn: <code>docs/quantum-spawn/202608010303-twenty-step-github-actions-autopilot.md</code></p>
<p>Current Trueself checkpoint: <code>docs/trueself/202608011610-the-demonstration-exists-the-ledger-does-not-trueself-claude.md</code></p>
<p>Restore point: <code>restore/2026-08-01-1048-pre-mb19-mb20</code></p>
</section>
</main>
<footer>Generated deterministically by <code>scripts/sync_programme_state.py</code>. Engineering outputs remain evidence-qualified and are not a project-specific approval or compliance certificate.</footer>
</body>
</html>Pyproject
A configuration file in Solar Electrical Topology Analysis Engine Text Based that reads solar.
docs-configsolar-electrical-topology-analysis-engine-text-based / pyproject.toml · lines 1–41 of 41 · Not reached from any entry point (candidate for review)
- What it does
- It loads solar. Side effects: uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar.
- Inputs & outputs
- In: DuckDB queries.
- What it achieves
- Geometry-authoritative topology, routing and evidence kernel for solar DC systems.
- Why it matters
- No other file in the estate was found to import it.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 pyproject.toml:1-41 · blob ea7dede63ce9131d4cdddef64709ac074677e9cc · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: storage · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "solar-electrical-topology-engine"
version = "0.4.0"
description = "Geometry-authoritative topology, routing and evidence kernel for solar DC systems"
requires-python = ">=3.11"
dependencies = [
"duckdb>=1.4,<2",
"numpy>=1.26",
"pint>=0.24",
]
[project.optional-dependencies]
test = [
"build>=1.2",
"pytest>=8",
]
[tool.setuptools]
package-dir = {"" = "src"}
py-modules = [
"geometry_authority",
"array_topology",
"array_route_types",
"array_route_geometry",
"array_routing",
"array_engine",
"table_string_assignment",
"table_string_hashing",
"table_string_validation",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["solar_topology*"]
[tool.pytest.ini_options]
testpaths = ["tests"]Restore Points — 2026 07 29 Before 24 String V10 Page
A web page in Solar Electrical Topology Analysis Engine Text Based that reads inputs for module count, pitch metres and topology (units: °C, Ω). Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/.
rendersolar-electrical-topology-analysis-engine-text-based / restore-points/2026-07-29-before-24-string-v10/index.html · lines 1–44 of 44 · Entry point
- What it does
- It draws its content. Defines $, value, render. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'string'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore-points/2026-07-29-before-24-string-v10/.
- What it achieves
- It is built from the value step (`value`) and the render step (`render`). Kernel-first photovoltaic DC topology and computation workbench. It responds to click events.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- solar-electrical-topology-analysis-engine-text-based · restore-points/2026-07-29-before-24-string-v10 · page
- Uses
- Kernel (import)
- Used by
- none found
- Produces
- $, value, render
- Defines here
- $, value, render
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 restore-points/2026-07-29-before-24-string-v10/index.html:1-44 · blob 0a5cd7a8039f9fbbeddddf510ecb1282ea1dc416 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Ventus DC String Engine V10</title>
<meta name="description" content="Kernel-first photovoltaic DC topology and computation workbench.">
<style>
:root{color-scheme:dark;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#061018;color:#e8f5ff}*{box-sizing:border-box}body{margin:0;padding:20px}main{max-width:1500px;margin:auto}.hero,.panel{border:1px solid #28475b;background:#0b1923;border-radius:10px;padding:18px;margin-bottom:16px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.status{co … [line shortened here: 1,370 characters; full line on GitHub]
</style>
</head>
<body>
<main>
<section class="hero"><div><div>GLOBALGRID2050 · OPEN ELECTRICAL ENGINEERING</div><h1>Ventus DC String Engine V10</h1><p>Topology-aware, evidence-bearing, JSON-in/JSON-out computation kernel. The interface renders kernel results; it does not perform hidden engineering calculations.</p><div class="links"><a href="../index.html">V6 visual workbench</a><a href="../v9-sandbox/">V9 computation sandbox< … [line shortened here: 517 characters; full line on GitHub]
<div class="warning"><strong>Research workbench.</strong> Current geometry uses module centres and does not yet represent terminal offsets, junction-box positions, factory-lead routing, slack, connectors or field-installed home runs. Results are calculation candidates, not design approval.</div>
<div class="grid">
<section class="panel"><h2>Kernel input</h2>
<label class="field">Modules / string<input id="moduleCount" type="number" min="1" value="30"></label>
<label class="field">Module pitch (m)<input id="pitchMetres" type="number" min="0" step="0.001" value="1.303"></label>
<label class="field">Topology<select id="topology"><option value="sequential">Sequential</option><option value="mirrored-sequential">Mirrored sequential</option><option value="leapfrog" selected>Leapfrog</option></select></label>
<label class="field">Conductor R at 20°C (Ω/m)<input id="resistancePerMetre" type="number" min="0" step="0.000001" value="0.00308"></label>
<label class="field">Conductor temperature (°C)<input id="temperatureC" type="number" value="70"></label>
<label class="field">Current (A)<input id="currentA" type="number" min="0" step="0.01" value="17.35"></label>
<label class="field">Module Voc STC (V)<input id="moduleVoc" type="number" min="0" step="0.1" value="45.9"></label>
<label class="field">βVoc (%/°C)<input id="betaVoc" type="number" step="0.01" value="-0.25"></label>
<label class="field">Cold cell temperature (°C)<input id="coldTemp" type="number" value="-10"></label>
<label class="field">System maximum (V)<input id="systemMax" type="number" min="0" value="1500"></label>
<button id="run" class="primary" type="button">RUN V10 KERNEL</button>
</section>
<section><div class="panel"><h2>Computed results</h2><div id="metrics" class="metrics"></div></div><div class="panel"><h2>Traceable result JSON</h2><pre id="output">Loading kernel…</pre></div></section>
</div>
</main>
<script type="module">
import { runKernel } from '../../v10-development/src/kernel.mjs';
const $=id=>document.getElementById(id);
function value(id){return Number($(id).value)}
function render(){
const input={schemaVersion:'globalgrid2050.solar-dc-computation.v10.input.1',layout:{moduleCount:value('moduleCount'),pitchMetres:value('pitchMetres'),topology:$('topology').value},conductor:{resistanceOhmPerMetreAt20C:value('resistancePerMetre'),temperatureC:value('temperatureC'),temperatureCoefficientPerC:0.00393},operating:{currentA:value('currentA')},voltageLimit:{moduleVocStcV:value('moduleV … [line shortened here: 523 characters; full line on GitHub]
try{const result=runKernel(input);$('output').textContent=JSON.stringify(result,null,2);const m=result.results;const cards=[['Topology path',m.topology.pathLengthMetres.toFixed(3)+' m'],['Resistance',m.resistance.value.toFixed(6)+' Ω'],['Voltage drop',m.voltageDrop.value.toFixed(4)+' V'],['Power loss',m.powerLoss.value.toFixed(2)+' W'],['Cold string Voc',m.coldStringVoc?.value.toFixed(2)+' V'],[' … [line shortened here: 655 characters; full line on GitHub]
}
$('run').addEventListener('click',render);render();
</script>
</body>
</html>Index V6 Before Leapfrog
A web page in Solar Electrical Topology Analysis Engine Text Based that reads inputs for modules along, ranks up and faces, covering cables. Published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html.
rendersolar-electrical-topology-analysis-engine-text-based / restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html · lines 1–125 of 125 · Entry point
- What it does
- It draws cables. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables.
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html.
- What it achieves
- 2D solar DC topology engine modelling complete string circuits: home-runs, module leads, connectors, temperature, loop geometry, inductance and capacitance.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- solar-electrical-topology-analysis-engine-text-based · restore_points/2026-07-27-v8-leapfrog · page
- Uses
- Spider Navigation (stylesheet), Physics Generated (script src), Spider Navigation (script src), ./styles.css, ./app.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
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html:1-125 · blob 8738e2e0aa0d2dfbd8409287e18351b10c841dc6 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Solar DC String Topology Engine</title>
<meta name="description" content="2D solar DC topology engine modelling complete string circuits: home-runs, module leads, connectors, temperature, loop geometry, inductance and capacitance.">
<link rel="stylesheet" href="./styles.css">
<link rel="stylesheet" href="./spider-navigation.css">
</head>
<body>
<header class="topbar"><div><div class="kicker">GLOBALGRID2050 · OPEN ELECTRICAL ENGINEERING</div><h1>Solar DC String Topology Engine</h1><p>Geometry-derived complete-circuit study of home-run cables, module leads, connector contacts, loop area, inductance and capacitance to earth.</p></div><div class="status"><span></span> V6 COMPLETE CIRCUIT</div></header>
<div class="reliance"><strong>ENGINEERING SCREENING OUTPUT</strong>The Ventus values are treated as editable hypotheses, not validated constants. Results remain indicative until geometry, module leads, connector resistance, cable data, capacitance and installation conditions are confirmed from project evidence and reviewed by a competent person.</div>
<main class="layout">
<aside class="controls">
<section><h2>Physical A-frame</h2>
<label>Modules along row <input id="modulesAlong" type="number" min="1" value="30"></label>
<label>Ranks per face <input id="ranksUp" type="number" min="1" value="5"></label>
<label>Faces per table <input id="faces" type="number" min="1" max="2" value="2"></label>
<label>Tilt (degrees) <input id="tilt" type="number" min="0" max="60" step="0.1" value="10"></label>
<label>Module width along row (m) <input id="moduleWidth" type="number" step="0.001" value="1.303"></label>
<label>Module length up slope (m) <input id="moduleLength" type="number" step="0.001" value="2.384"></label>
<label>Clamp gap (m) <input id="clampGap" type="number" min="0" step="0.001" value="0.020"></label>
<label>Along-row gap (m) <input id="alongGap" type="number" min="0" step="0.001" value="0.020"></label>
<label>Near-end allowance (m) <input id="nearAllowance" type="number" min="0" step="0.5" value="10"></label>
<div class="provenance">Geometry and allowance: <strong>ASSUMED · EDITABLE</strong></div>
</section>
<section><h2>String bands</h2><p class="note">Comma-separated counts create equal-length string groups. Drag the large drawing like the Spider Sandbox; use + and − for controlled mobile zoom.</p>
<label>East face bands <input id="eastBands" type="text" value="5,5,2"></label>
<label>West face bands <input id="westBands" type="text" value="5,5,2"></label>
<label>Modules per string <input id="modulesPerString" type="number" min="1" value="30"></label>
<label>MPPT count <input id="mpptCount" type="number" min="1" value="12"></label>
</section>
<section><h2>Complete series circuit</h2>
<label>Positive lead/module (m) <input id="positiveLead" type="number" min="0" step="0.01" value="0.35"></label>
<label>Negative lead/module (m) <input id="negativeLead" type="number" min="0" step="0.01" value="0.35"></label>
<label>Module-lead CSA (mm²) <input id="leadCsa" type="number" min="0.1" step="0.1" value="4"></label>
<label>Extension leads total (m) <input id="extensionLead" type="number" min="0" step="0.1" value="0"></label>
<label>Connector contacts/string <input id="connectorContacts" type="number" min="0" step="1" value="62"></label>
<label>Contact resistance (mΩ) <input id="connectorMilliOhm" type="number" min="0" step="0.01" value="0.35"></label>
<label>Extra terminations (mΩ) <input id="terminationMilliOhm" type="number" min="0" step="0.01" value="0.50"></label>
<div class="provenance">Lead lengths and contact resistance: <strong>UNVERIFIED USER INPUTS</strong>. Replace from manufacturer or measured evidence.</div>
</section>
<section><h2>Electrical and temperature</h2>
<label>Module Vmp (V) <input id="moduleVmp" type="number" step="0.1" value="38.1"></label>
<label>Module Voc (V) <input id="moduleVoc" type="number" step="0.1" value="45.9"></label>
<label>Module Imp (A) <input id="moduleImp" type="number" step="0.01" value="17.35"></label>
<label>βVoc (%/°C) <input id="betaVoc" type="number" step="0.01" value="-0.25"></label>
<label>Cold cell temperature (°C) <input id="coldTemp" type="number" value="-10"></label>
<label>System maximum voltage (V) <input id="systemMaxVoltage" type="number" value="1500"></label>
<label>Home-run CSA (mm²) <input id="csa" type="number" step="0.1" value="6"></label>
<label>Home-run temperature (°C) <input id="conductorTemp" type="number" value="70"></label>
<label>Module-lead temperature (°C) <input id="leadTemp" type="number" value="75"></label>
<label>Reference comparison (°C) <input id="referenceTemp" type="number" value="20"></label>
<label>Connector temperature coeff. (/°C) <input id="connectorAlpha" type="number" step="0.0001" value="0.0039"></label>
</section>
<section><h2>Differential and common-mode geometry</h2>
<label>Cable OD (mm) <input id="cableOd" type="number" step="0.1" value="6.4"></label>
<label>External pair spacing (mm) <input id="externalSpacing" type="number" min="0.1" step="1" value="40"></label>
<label>Module-loop separation (mm) <input id="moduleSpacing" type="number" min="0.1" step="10" value="500"></label>
<label>Effective line εr <input id="epsilonR" type="number" step="0.1" value="2.3"></label>
<label>Cable height above earth (m) <input id="cableHeight" type="number" min="0.01" step="0.1" value="1.5"></label>
<label>Disturbance rise time (µs) <input id="riseTime" type="number" min="0.001" step="0.1" value="1.2"></label>
<div class="provenance">Differential and common-mode quantities are calculated separately. Spacing, height and effective permittivity remain assumed until measured.</div>
</section>
<section><h2>Module capacitance to frame / earth</h2>
<label>Glass relative permittivity <input id="glassEpsilon" type="number" min="1" step="0.1" value="7.5"></label>
<label>Glass thickness (mm) <input id="glassThickness" type="number" min="0.1" step="0.1" value="2.0"></label>
<label>Wetted face count <select id="wettedFaces"><option value="1">One</option><option value="2" selected>Two</option></select></label>
<label>Frame/glass contact width (mm) <input id="frameContactWidth" type="number" min="0" step="1" value="10"></label>
<label>IMD alarm threshold (kΩ) <input id="alarmThresholdKohm" type="number" min="0.1" step="10" value="100"></label>
<label>Required response time (s) <input id="imdResponseTime" type="number" min="0.01" step="1" value="30"></label>
<label>Inverter switching frequency (Hz) <input id="switchingFrequency" type="number" min="1" step="100" value="4000"></label>
<div class="provenance">Wet capacitance uses full module area. Dry capacitance uses a defaulted perimeter-strip model and probably understates fringing and rear-rail coupling. Measurement should replace both where device selection is intended.</div>
</section>
<section><h2>Cable ruler</h2><p class="note">Draw or type additional route segments. Each segment is separately reported.</p>
<label>Segment type <select id="manualType"><option value="surface_pair">Surface pair</option><option value="trench_pair">Trench pair</option><option value="rail_mounted_pair">Rail-mounted pair</option><option value="free_air_pair">Free-air pair</option><option value="custom">Custom</option></select></label>
<label>Conductor separation (mm) <input id="manualSpacing" type="number" min="0.1" step="1" value="40"></label>
<label>Typed length (m) <input id="manualLength" type="number" min="0" step="0.1" value="10"></label>
<label>Provenance <select id="manualProvenance"><option value="measured">Measured</option><option value="assumed" selected>Assumed</option><option value="defaulted">Defaulted</option></select></label>
<div class="button-row"><button id="drawCable" class="primary">DRAW CABLE</button><button id="addTyped">ADD TYPED</button></div>
<div class="button-row"><button id="undoCable">UNDO</button><button id="clearCables">CLEAR</button></div>
<div id="drawStatus" class="provenance">Ruler: <strong>READY</strong></div>
</section>
<div class="button-row"><button id="reset">RESET</button><button id="export" class="primary">EXPORT STUDY JSON</button></div>
</aside>
<section class="workbench">
<div class="canvas-head"><div><h2>Scalable plan · complete closed circuit</h2><p>Drag the large drawing in any direction. Use the fixed − and + controls on mobile or the mouse wheel on desktop. Zoom remains centred on the point being viewed.</p></div><div class="legend"><span class="east">East face</span><span class="west">West face</span><span class="pos">Positive</span><span class="neg">Negative … [line shortened here: 487 characters; full line on GitHub]
<div class="canvas-wrap"><canvas id="scene"></canvas><div class="zoom-toolbar" aria-label="Drawing zoom controls"><button type="button" id="zoomOut" aria-label="Zoom out">−</button><button type="button" id="zoomReset" aria-label="Reset zoom"><span id="zoomPercent">100%</span></button><button type="button" id="zoomIn" aria-label="Zoom in">+</button></div><div id="zoomReadout">DRAG TO MOVE · USE − / … [line shortened here: 422 characters; full line on GitHub]
<div class="section-inset"><canvas id="sectionCanvas" width="520" height="190"></canvas><div><strong>A-frame section inset</strong><p>Module slope geometry remains separate from plan projection. The electrical model accounts for external conductors and module-integrated series leads.</p></div></div>
<div id="modelDecision" class="decision"></div><div id="warningBox" class="warnings"></div>
<div class="selection"><h2>Selected complete circuit</h2><div id="selectedSummary">Click a string in plan.</div></div>
<div class="metrics">
<article><span>External + / −</span><strong id="externalLengths">—</strong><small>home-run conductors</small></article>
<article><span>Module leads</span><strong id="moduleLeadLength">—</strong><small>integrated series conductors</small></article>
<article><span>Total conductor</span><strong id="routeLength">—</strong><small>complete current path</small></article>
<article><span>Connectors</span><strong id="connectorCount">—</strong><small>series contacts</small></article>
<article><span>R at reference</span><strong id="resistanceReference">—</strong><small>comparison temperature</small></article>
<article><span>R operating</span><strong id="loopResistance">—</strong><small>cables + contacts</small></article>
<article><span>Voltage drop</span><strong id="voltageDrop">—</strong><small>at module Imp</small></article>
<article><span>Power loss</span><strong id="powerLoss">—</strong><small>complete circuit I²R</small></article>
<article><span>Loop area guide</span><strong id="loopArea">—</strong><small>plan projection</small></article>
<article><span>Differential loop L</span><strong id="loopInductance">—</strong><small>segmented two-wire approximation</small></article>
<article><span>Common-mode L</span><strong id="commonModeInductance">—</strong><small>both poles against earth</small></article>
<article><span>C-earth dry / wet</span><strong id="capacitanceEarth">—</strong><small>per selected string</small></article>
<article><span>C-earth inverter</span><strong id="inverterCapacitance">—</strong><small>all generated strings in parallel</small></article>
<article><span>IMD time constant</span><strong id="imdTimeConstant">—</strong><small>Ralarm × C inverter</small></article>
<article><span>Minimum detectable R</span><strong id="minimumDetectableResistance">—</strong><small>at stated response time</small></article>
<article><span>CM impedance @ switching</span><strong id="commonModeImpedance">—</strong><small>1 / 2πfC</small></article>
<article><span>CM resonance dry / wet</span><strong id="commonModeResonance">—</strong><small>1 / 2π√LC</small></article>
<article><span>One-way delay</span><strong id="delay">—</strong><small id="roundTrip">—</small></article>
<article><span>Cold string Voc</span><strong id="coldVoc">—</strong><small id="vocMargin">—</small></article>
<article><span>Voltage breach temperature</span><strong id="breachTemperature">—</strong><small>βVoc and system maximum</small></article>
<article><span>Total strings</span><strong id="totalStrings">—</strong><small>generated topology</small></article>
<article><span>Array footprint</span><strong id="footprint">—</strong><small>plan projection</small></article>
<article><span>Manual ruler total</span><strong id="manualTotal">0.00 m</strong><small>drawn + typed</small></article>
</div>
<details open><summary>Selected resistance and loss breakdown</summary><div id="breakdown" class="breakdown"></div></details>
<details open><summary>All strings · complete-circuit schedule</summary><div class="table-scroll"><table><thead><tr><th>ID</th><th>Face</th><th>Band</th><th>+ external m</th><th>− external m</th><th>Module leads m</th><th>Total m</th><th>Contacts</th><th>R op Ω</th><th>ΔV V</th><th>Loss W</th><th>Area m²</th><th>L diff µH</th><th>L CM µH</th><th>C-earth dry/wet µF</th><th>MPPT</th></tr></thead><tb … [line shortened here: 453 characters; full line on GitHub]
<details open><summary>Manual cable electrical sub-table</summary><div class="table-scroll"><table><thead><tr><th>ID</th><th>Type</th><th>Length m</th><th>Spacing mm</th><th>R Ω</th><th>L µH</th><th>C nF</th><th>Z₀ Ω</th><th>Delay µs</th><th>Provenance</th></tr></thead><tbody id="manualTable"></tbody></table></div></details>
<details open><summary>Calculation trace and evidence status</summary><pre id="trace"></pre></details>
</section>
</main>
<footer><span>Generic reproducible example · planned geometry, not as-built</span><span>Every exported value carries inputs and evidence status; no output is a warranty or design certificate.</span></footer>
<script src="./physics.generated.js"></script><script src="./app.js"></script><script src="./spider-navigation.js"></script>
</body></html>