In this section
- Data MV HV other · globalgrid2050 / cable_geometry/data-mv-hv.js lines 1–55
- Data Solar energy-data · globalgrid2050 / cable_geometry/data-solar.js lines 1–65
- GlobalGrid2050 — Cable Geometry Page render · globalgrid2050 / cable_geometry/index.html lines 1–554
Data MV HV
A JavaScript file in the cable geometry folder of GlobalGrid2050 covering 11kV, 33kV and 110kV, using IEC 60840. Served with the page at https://globalgrid2050.com/cable_geometry/.
otherglobalgrid2050 / cable_geometry/data-mv-hv.js · lines 1–55 of 55 · Entry point
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 11kV, 33kV, 110kV.
- Inputs & outputs
- Voltage levels named: 110kV, 33kV, 11kV.
- Downstream impact
- Used directly by 2 files: GlobalGrid2050 — Cable Geometry Page (globalgrid2050, https://globalgrid2050.com/cable_geometry/); Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html). It is itself an entry point, published at https://globalgrid2050.com/cable_geometry/.
- What it achieves
- Its code works with 11 kV, 110 kV and 33 kV.
- Why it matters
- Loaded by the Cable Geometry page at https://globalgrid2050.com/cable_geometry/ and 1 other page.
- Application
- globalgrid2050 · cable_geometry · script
- Uses
- none found
- Used by
- loaded by GlobalGrid2050 — Cable Geometry Page (script src), loaded by Testcode — Cable Page (script src)
- 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 cable_geometry/data-mv-hv.js:1-55 · blob 724d0fed122bbd26aac9b31037567ca4a1739628 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
const OD_MV_HV = {
// =========================
// BRITISH MV
// =========================
// 6.35/11 kV single core
"sc_6.35_70": { od: 29.0, mbr: 435, src: "Generic UK MV schedule" },
"sc_6.35_95": { od: 31.0, mbr: 465, src: "Generic UK MV schedule" },
"sc_6.35_120": { od: 32.5, mbr: 488, src: "Generic UK MV schedule" },
"sc_6.35_150": { od: 34.0, mbr: 510, src: "Generic UK MV schedule" },
"sc_6.35_185": { od: 36.0, mbr: 540, src: "Generic UK MV schedule" },
"sc_6.35_240": { od: 39.0, mbr: 585, src: "Generic UK MV schedule" },
"sc_6.35_300": { od: 42.0, mbr: 630, src: "Generic UK MV schedule" },
"sc_6.35_400": { od: 45.0, mbr: 675, src: "Generic UK MV schedule" },
"sc_6.35_500": { od: 49.0, mbr: 735, src: "Generic UK MV schedule" },
"sc_6.35_630": { od: 54.0, mbr: 810, src: "Generic UK MV schedule" },
// 6.35/11 kV 3 core Cu
"3c_6.35_70": { od: 49.0, mbr: 735, src: "Generic UK MV schedule" },
"3c_6.35_95": { od: 53.0, mbr: 795, src: "Generic UK MV schedule" },
"3c_6.35_120": { od: 57.0, mbr: 855, src: "Generic UK MV schedule" },
"3c_6.35_150": { od: 60.0, mbr: 900, src: "Generic UK MV schedule" },
"3c_6.35_185": { od: 64.0, mbr: 960, src: "Generic UK MV schedule" },
"3c_6.35_240": { od: 70.0, mbr: 1050, src: "Generic UK MV schedule" },
"3c_6.35_300": { od: 76.0, mbr: 1140, src: "Generic UK MV schedule" },
// 19/33 kV single core
"sc_19_95": { od: 41.0, mbr: 615, src: "Generic UK MV schedule" },
"sc_19_120": { od: 43.0, mbr: 645, src: "Generic UK MV schedule" },
"sc_19_150": { od: 45.0, mbr: 675, src: "Generic UK MV schedule" },
"sc_19_185": { od: 47.0, mbr: 705, src: "Generic UK MV schedule" },
"sc_19_240": { od: 50.0, mbr: 750, src: "Generic UK MV schedule" },
"sc_19_300": { od: 52.0, mbr: 780, src: "Generic UK MV schedule" },
"sc_19_400": { od: 56.0, mbr: 840, src: "Generic UK MV schedule" },
"sc_19_500": { od: 59.0, mbr: 885, src: "Generic UK MV schedule" },
"sc_19_630": { od: 63.0, mbr: 945, src: "Generic UK MV schedule" },
// 19/33 kV 3 core Cu
"3c_cu18_95": { od: 79.0, mbr: 1185, src: "Generic UK MV schedule" },
"3c_cu18_120": { od: 83.0, mbr: 1245, src: "Generic UK MV schedule" },
"3c_cu18_150": { od: 86.0, mbr: 1290, src: "Generic UK MV schedule" },
"3c_cu18_185": { od: 90.0, mbr: 1350, src: "Generic UK MV schedule" },
"3c_cu18_240": { od: 97.0, mbr: 1455, src: "Generic UK MV schedule" },
"3c_cu18_300": { od: 102.0, mbr: 1530, src: "Generic UK MV schedule" },
// =========================
// IEC 64/110 kV — TenneT aligned
// Attached spec basis
// =========================
"sc_64_630": {
od: 76.4,
mbr: 1910,
src: "IEC 60840 64/110 kV attached specification"
}
};Data Solar
A JavaScript file in the cable geometry folder of GlobalGrid2050. Served with the page at https://globalgrid2050.com/cable_geometry/.
energy-dataglobalgrid2050 / cable_geometry/data-solar.js · lines 1–65 of 65 · Entry point
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 2 files: GlobalGrid2050 — Cable Geometry Page (globalgrid2050, https://globalgrid2050.com/cable_geometry/); Testcode — Cable Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060432/cable/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html). It is itself an entry point, published at https://globalgrid2050.com/cable_geometry/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Cable Geometry page at https://globalgrid2050.com/cable_geometry/ and 1 other page.
- Application
- globalgrid2050 · cable_geometry · script
- Uses
- none found
- Used by
- loaded by GlobalGrid2050 — Cable Geometry Page (script src), loaded by Testcode — Cable Page (script src)
- 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 cable_geometry/data-solar.js:1-65 · blob c836200ccc049b969b6bf4344d9740f125f0db04 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
const OD_SOLAR = {
"sc_pv_string_1.5": { od: 4.0, mbr: 16, src: "Standard PV specification" },
"sc_pv_string_2.5": { od: 4.7, mbr: 19, src: "Standard PV specification" },
"sc_pv_string_4": { od: 5.4, mbr: 22, src: "Standard PV specification" },
"sc_pv_string_6": { od: 6.2, mbr: 25, src: "Standard PV specification" },
"sc_pv_string_10": { od: 7.5, mbr: 30, src: "Standard PV specification" },
"sc_pv_string_16": { od: 9.0, mbr: 36, src: "Standard PV specification" },
"sc_pv_string_25": { od: 10.8, mbr: 43, src: "Standard PV specification" },
"sc_pv_string_35": { od: 12.3, mbr: 49, src: "Standard PV specification" },
"sc_pv_string_50": { od: 14.2, mbr: 57, src: "Standard PV specification" },
"sc_pv_string_70": { od: 16.8, mbr: 67, src: "Standard PV specification" },
"sc_pv_string_95": { od: 19.2, mbr: 77, src: "Standard PV specification" },
"sc_pv_string_120": { od: 21.2, mbr: 85, src: "Standard PV specification" },
"sc_pv_string_150": { od: 23.5, mbr: 94, src: "Standard PV specification" },
"sc_pv_string_185": { od: 26.1, mbr: 104, src: "Standard PV specification" },
"sc_pv_string_240": { od: 29.5, mbr: 118, src: "Standard PV specification" },
"sc_flex_hv_ac_4": { od: 4.90, mbr: 15, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_6": { od: 5.80, mbr: 17, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_10": { od: 7.80, mbr: 23, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_16": { od: 9.30, mbr: 28, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_25": { od: 11.00, mbr: 33, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_35": { od: 12.90, mbr: 39, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_50": { od: 14.90, mbr: 45, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_70": { od: 17.00, mbr: 51, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_95": { od: 19.50, mbr: 59, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_120": { od: 22.60, mbr: 68, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_150": { od: 25.00, mbr: 75, src: "Manufacturer datasheet" },
"sc_flex_hv_ac_185": { od: 26.60, mbr: 80, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_4": { od: 4.90, mbr: 15, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_6": { od: 5.80, mbr: 17, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_10": { od: 7.80, mbr: 23, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_16": { od: 9.30, mbr: 28, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_25": { od: 11.00, mbr: 33, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_35": { od: 12.90, mbr: 39, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_50": { od: 14.90, mbr: 45, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_70": { od: 17.00, mbr: 51, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_95": { od: 19.50, mbr: 59, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_120": { od: 22.60, mbr: 68, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_150": { od: 25.00, mbr: 75, src: "Manufacturer datasheet" },
"sc_flex_hv_dc_185": { od: 26.60, mbr: 80, src: "Manufacturer datasheet" },
"sc_al_ata_ac_50": { od: 17.10, mbr: 205, src: "Manufacturer datasheet" },
"sc_al_ata_ac_70": { od: 18.80, mbr: 226, src: "Manufacturer datasheet" },
"sc_al_ata_ac_95": { od: 20.90, mbr: 251, src: "Manufacturer datasheet" },
"sc_al_ata_ac_120": { od: 22.40, mbr: 269, src: "Manufacturer datasheet" },
"sc_al_ata_ac_150": { od: 24.10, mbr: 289, src: "Manufacturer datasheet" },
"sc_al_ata_ac_185": { od: 27.70, mbr: 332, src: "Manufacturer datasheet" },
"sc_al_ata_ac_240": { od: 29.90, mbr: 359, src: "Manufacturer datasheet" },
"sc_al_ata_ac_300": { od: 33.00, mbr: 396, src: "Manufacturer datasheet" },
"sc_al_ata_ac_400": { od: 37.40, mbr: 449, src: "Manufacturer datasheet" },
"sc_al_ata_ac_500": { od: 40.10, mbr: 481, src: "Manufacturer datasheet" },
"sc_al_ata_ac_630": { od: 44.80, mbr: 538, src: "Manufacturer datasheet" },
"sc_al_ata_dc_50": { od: 17.10, mbr: 205, src: "Manufacturer datasheet" },
"sc_al_ata_dc_70": { od: 18.80, mbr: 226, src: "Manufacturer datasheet" },
"sc_al_ata_dc_95": { od: 20.90, mbr: 251, src: "Manufacturer datasheet" },
"sc_al_ata_dc_120": { od: 22.40, mbr: 269, src: "Manufacturer datasheet" },
"sc_al_ata_dc_150": { od: 24.10, mbr: 289, src: "Manufacturer datasheet" },
"sc_al_ata_dc_185": { od: 27.70, mbr: 332, src: "Manufacturer datasheet" },
"sc_al_ata_dc_240": { od: 29.90, mbr: 359, src: "Manufacturer datasheet" },
"sc_al_ata_dc_300": { od: 33.00, mbr: 396, src: "Manufacturer datasheet" },
"sc_al_ata_dc_400": { od: 37.40, mbr: 449, src: "Manufacturer datasheet" },
"sc_al_ata_dc_500": { od: 40.10, mbr: 481, src: "Manufacturer datasheet" },
"sc_al_ata_dc_630": { od: 44.80, mbr: 538, src: "Manufacturer datasheet" }
};GlobalGrid2050 — Cable Geometry Page
A web page that reads inputs for route name, section length and installation condition, covering cables. Published at https://globalgrid2050.com/cable_geometry/.
Set aside from the main view: 100% of its lines are the same as testcode/202609060432/cable/index.html (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 99% of lines shared with Testcode — Cable Page; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.9972 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609060432/cable/index.html:1-555 bb8270ae80be088c8407fb5f43ed96ad7968a963
- sha256 8fad2ffbd7adbb96da1c6f5543d26f128f81242a0698b70643ed3a523a282817
- target sha256 cb7a7e4279d01e6e0dd7bec7abf59c3e8cc30289ef70a2b2431e5ec77682fa2d
- group of 2 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
renderglobalgrid2050 / cable_geometry/index.html · lines 1–554 of 554 · Entry point
- What it does
- It draws cables. Uses libraries app.js. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 110kV, 33kV, 11kV.
- Inputs & outputs
- In: form fields (user input). Out: web page. Voltage levels named: 110kV, 33kV, 11kV.
- Downstream impact
- Used directly by 12 files: Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); Kuiper Tests (globalgrid2050); and 8 more. Reached from 90 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html). It is itself an entry point, published at https://globalgrid2050.com/cable_geometry/.
- What it achieves
- Cable Geometry Visualiser v1.6.0. Its code works with 11 kV, 110 kV and 33 kV.
- Why it matters
- Loaded by the Proof K0024 page at https://globalgrid2050.com/testcode/wafer-development-environment/202609192148-proof-k0024/ and 3 other pages. Checked by 8 tests, including Kuiper Tests.
- Application
- globalgrid2050 · cable_geometry · page
- Uses
- Data Core (script src), Data LV (script src), Data MV HV (script src), Data Solar (script src), app.js
- Used by
- named by URL in Kuiper Tests (estate URL), named by URL in Kuiper Tests (estate URL), named by URL in Kuiper Tests (estate URL), named by URL in Kuiper Tests (estate URL), named by URL in Kuiper Tests (estate URL), named by URL in Kuiper Tests (estate URL), named by URL in Kuiper Tests (estate URL), named by URL in Wafer Development Environment — Proof K0024 Page (estate URL), and 4 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
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 cable_geometry/index.html:1-554 · blob 249f7910c032a2fb42bc20f97da06e7114da6fae · 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.0" />
<title>Cable Geometry Visualiser v1.6.0</title>
<style>
:root {
--bg: #050505;
--panel: rgba(10, 10, 10, 0.96);
--panel-soft: #0b0e14;
--line: #2f343d;
--line-soft: #222;
--text: #ffffff;
--muted: #a6adbb;
--muted-soft: #8d95a3;
--accent: #00ffff;
--accent-2: #ff00ff;
--ok: #00ff88;
--warn: #ffcc66;
--warn-bg: rgba(80, 50, 0, 0.18);
--warn-line: #5a3d00;
--error: #ff6666;
--error-bg: rgba(80, 10, 10, 0.18);
--error-line: #5a1f1f;
--info: #8fb2d9;
--info-bg: rgba(14, 32, 48, 0.28);
--info-line: #28455d;
--input-bg: #111;
--canvas-bg: #000;
--shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
* { box-sizing: border-box; }
body {
margin: 0;
padding: 20px;
background: var(--bg);
color: var(--text);
font-family: "Courier New", monospace;
display: flex;
justify-content: center;
}
.dashboard {
display: flex;
gap: 20px;
width: 100%;
max-width: 1480px;
align-items: flex-start;
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
padding: 20px;
display: flex;
flex-direction: column;
}
.panel-left {
width: 470px;
flex-shrink: 0;
}
.panel-right {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: 20px;
}
h2 {
margin: 0 0 15px 0;
color: var(--accent);
font-size: 18px;
letter-spacing: 2px;
text-transform: uppercase;
border-bottom: 1px solid var(--line);
padding-bottom: 10px;
}
h3 {
margin: 0 0 10px 0;
color: var(--muted-soft);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}
.section-title { margin-top: 18px; }
.subtle-note {
font-size: 11px;
color: #999;
line-height: 1.45;
margin: 0 0 14px 0;
}
.warning-box,
.status-box,
.guidance-box,
.assumption-box,
.review-box,
.conflict-box {
padding: 12px;
font-size: 11px;
line-height: 1.5;
border-radius: 3px;
}
.warning-box {
border: 1px solid var(--warn-line);
background: var(--warn-bg);
color: var(--warn);
margin-bottom: 18px;
}
.guidance-box {
border: 1px solid #30455a;
background: #08101a;
color: #bed1e2;
margin-top: 16px;
}
.guidance-box strong,
.assumption-box strong,
.review-box strong,
.conflict-box strong { color: #fff; }
.guidance-box ul,
.review-box ul,
.conflict-box ul,
.assumption-box ul { margin: 8px 0 0 18px; padding: 0; }
.guidance-box li + li,
.review-box li + li,
.conflict-box li + li,
.assumption-box li + li { margin-top: 4px; }
.assumption-box {
margin-top: 16px;
border: 1px solid var(--info-line);
background: var(--info-bg);
color: var(--info);
}
.review-box {
margin-top: 16px;
border: 1px solid var(--warn-line);
background: var(--warn-bg);
color: var(--warn);
}
.conflict-box {
margin-top: 16px;
border: 1px solid var(--error-line);
background: var(--error-bg);
color: #ffb0b0;
}
.status-box {
margin: 0 0 16px 0;
border: 1px solid var(--line);
background: #090c11;
color: var(--muted);
}
.status-box.ok { border-color: rgba(0,255,136,0.35); color: #aef7d1; }
.status-box.warn { border-color: rgba(255,204,102,0.35); color: #ffd98a; }
.status-box.error { border-color: rgba(255,102,102,0.35); color: #ffb0b0; }
.input-group {
display: flex;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
font-size: 12px;
color: var(--muted);
align-items: center;
}
.input-group label { flex: 1 1 auto; min-width: 0; }
.input-group input,
.input-group select {
width: 190px;
background: var(--input-bg);
color: var(--accent);
border: 1px solid #444;
padding: 7px 8px;
font-family: monospace;
border-radius: 3px;
}
.input-group input[data-numeric="true"] { text-align: right; }
.input-group input[type="text"]:not([data-numeric]) { text-align: left; }
.input-group input:focus,
.input-group select:focus { border-color: var(--accent); outline: none; }
.input-group input[disabled],
.input-group select[disabled] { opacity: 0.6; cursor: not-allowed; }
.inline-note {
margin: -2px 0 10px 0;
font-size: 10px;
color: var(--muted-soft);
line-height: 1.45;
}
.stat-block {
margin-top: 18px;
border-top: 1px solid var(--line);
padding-top: 14px;
}
.stat-row {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 12px;
margin-bottom: 8px;
color: var(--muted-soft);
padding: 4px 0;
}
.stat-val {
color: var(--text);
font-weight: bold;
text-align: right;
}
.canvas-container {
background: var(--panel-soft);
border: 1px solid var(--line-soft);
border-radius: 4px;
padding: 15px;
display: flex;
flex-direction: column;
align-items: center;
}
canvas {
background: var(--canvas-bg);
border: 1px solid #333;
box-shadow: var(--shadow);
display: block;
max-width: 100%;
height: auto;
}
.button-row {
display: flex;
gap: 10px;
margin-top: 14px;
}
.btn {
flex: 1 1 auto;
padding: 12px;
background: var(--bg);
color: var(--ok);
border: 1px solid var(--ok);
cursor: pointer;
font-family: monospace;
font-weight: bold;
text-transform: uppercase;
border-radius: 3px;
transition: all 0.2s;
}
.btn:hover { background: var(--ok); color: #000; }
.btn-alt { color: var(--accent-2); border-color: var(--accent-2); }
.btn-alt:hover { background: var(--accent-2); color: #000; }
.snapshot-box {
margin-top: 16px;
border: 1px solid var(--line-soft);
background: #07090d;
padding: 12px;
border-radius: 3px;
font-size: 11px;
color: #cfcfcf;
line-height: 1.45;
white-space: pre-wrap;
}
.legend {
display: flex;
gap: 14px;
align-self: flex-start;
font-size: 11px;
color: var(--muted);
margin: 0 0 10px 0;
flex-wrap: wrap;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch {
width: 12px;
height: 12px;
border-radius: 50%;
border: 1px solid #666;
}
body.drawing-view .panel-left { display: none; }
body.drawing-view .dashboard { max-width: 100%; }
body.drawing-view .panel-right { width: 100%; }
body.drawing-view .canvas-container { padding: 12px; }
body.drawing-view .subtle-note { margin-bottom: 8px; }
@media (orientation: landscape) and (max-width: 1200px) {
body.landscape-mobile .panel-left { display: none; }
body.landscape-mobile .dashboard { max-width: 100%; }
body.landscape-mobile .panel-right { width: 100%; }
body.landscape-mobile .canvas-container { padding: 10px; }
body.landscape-mobile .subtle-note { margin-bottom: 8px; font-size: 10px; }
}
@media (max-width: 1080px) {
.dashboard { flex-direction: column; }
.panel-left { width: 100%; }
}
</style>
</head>
<body>
<div class="dashboard">
<div class="panel panel-left">
<h2>Geometry Inputs</h2>
<div class="warning-box">
This tool produces indicative geometry records only and must not be used for trench design, duct sizing, burial depth specification, electrical design or any construction document without independent verification by a competent engineer with responsibility for the project.<br>
No electrical calculation is performed.<br>
No thermal rating is performed.<br>
No compliance verdict is produced.<br>
The user must verify safety, protection, rating and utility compliance with a competent person in accordance with local law, site conditions and the relevant infrastructure owner requirements.
</div>
<div id="status_box" class="status-box ok" aria-live="polite">Geometry only. Ready for capture.</div>
<h3>Route Identity</h3>
<div class="input-group">
<label for="route_name">Route ID</label>
<input type="text" id="route_name" value="M_W3_BESS_to_PCS" />
</div>
<div class="input-group">
<label for="section_length">Worst Case Section Length m</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="section_length" value="30" />
</div>
<h3 class="section-title">Installation Basis</h3>
<div class="input-group">
<label for="installation_condition">Installation Condition</label>
<select id="installation_condition">
<option value="buried_duct">Buried Duct</option>
<option value="direct_buried">Direct Buried</option>
<option value="open_trough">Open Trough</option>
<option value="free_air">Free Air on Cleats</option>
<option value="metallic_enclosure">Metallic Enclosure</option>
</select>
</div>
<div class="input-group">
<label for="service_type">Service Type</label>
<select id="service_type">
<option value="lv" selected>LV Power AC</option>
<option value="mv">MV AC</option>
<option value="ehv">HV AC</option>
<option value="dc">DC</option>
</select>
</div>
<div class="input-group">
<label for="grouping_basis">Grouping Basis</label>
<select id="grouping_basis">
<option value="same_circuit">Same Circuit</option>
<option value="same_service">Same Service</option>
<option value="mixed_service">Mixed Service</option>
</select>
</div>
<div class="input-group">
<label for="burial_depth">Burial Depth mm</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="burial_depth" value="900" />
</div>
<div class="inline-note" id="burial_note">Default burial depth shown. Verify project basis separately.</div>
<h3 class="section-title">Cable OD Lookup</h3>
<div class="input-group">
<label for="lookup_cores">Cores</label>
<select id="lookup_cores">
<option value="any">All Core Types</option>
<option value="single">Single Core</option>
<option value="two">2 Core</option>
<option value="three">3 Core</option>
<option value="four">4 Core</option>
<option value="five">5 Core</option>
</select>
</div>
<div class="input-group">
<label for="lookup_voltage">Voltage Class</label>
<select id="lookup_voltage">
<option value="">— manual OD entry —</option>
</select>
</div>
<div class="input-group">
<label for="lookup_csa">Conductor CSA mm²</label>
<select id="lookup_csa">
<option value="">— select voltage first —</option>
</select>
</div>
<div class="inline-note" id="lookup_note">
Select voltage class and CSA to auto populate OD and bend radius. Conductor shape and system notes appear here.
</div>
<h3 class="section-title">Formation</h3>
<div class="input-group">
<label for="formation_type">Formation Type</label>
<select id="formation_type"></select>
</div>
<div class="input-group">
<label for="circuit_qty">Number of Circuit Groups</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="circuit_qty" value="4" />
</div>
<div class="input-group">
<label for="max_per_row">Max Groups per Row</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="max_per_row" value="2" />
</div>
<div class="input-group">
<label for="cable_od">Cable Outer Diameter mm</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="cable_od" value="45" />
</div>
<div class="inline-note" id="od_source_note">OD entered manually.</div>
<div class="input-group">
<label for="spacing_basis">Spacing Basis</label>
<select id="spacing_basis">
<option value="clear_gap">Clear Gap</option>
<option value="touching">Touching</option>
<option value="centre_to_centre">Centre to Centre</option>
</select>
</div>
<div class="input-group">
<label for="spacing_h">Horizontal Spacing mm</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="spacing_h" value="150" />
</div>
<div class="input-group">
<label for="spacing_v">Vertical Spacing mm</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="spacing_v" value="150" />
</div>
<div class="inline-note" id="spacing_note">Spacing inputs are active.</div>
<h3 class="section-title">Bend Geometry</h3>
<div class="input-group">
<label for="bend_factor">Bend Radius x OD</label>
<input type="text" inputmode="decimal" enterkeyhint="done" autocomplete="off" autocorrect="off" spellcheck="false" data-numeric="true" id="bend_factor" value="15" />
</div>
<div class="stat-block">
<div class="stat-row"><span>Formation Width</span><span class="stat-val" id="out_width">0 mm</span></div>
<div class="stat-row"><span>Formation Depth</span><span class="stat-val" id="out_depth">0 mm</span></div>
<div class="stat-row"><span>Burial Depth Input</span><span class="stat-val" id="out_burial">0 mm</span></div>
<div class="stat-row"><span>Indicative Trench Width</span><span class="stat-val" id="out_trench_width">0 mm</span></div>
<div class="stat-row"><span>Indicative Trench Depth</span><span class="stat-val" id="out_trench_depth">0 mm</span></div>
<div class="stat-row"><span>Applied Bend Radius</span><span class="stat-val" id="out_mbr" style="color: var(--accent-2);">0 mm</span></div>
<div class="stat-row"><span>Rows</span><span class="stat-val" id="out_rows">0</span></div>
<div class="stat-row"><span>Clear Gap Horizontal</span><span class="stat-val" id="out_gap_h">0 mm</span></div>
<div class="stat-row"><span>Clear Gap Vertical</span><span class="stat-val" id="out_gap_v">0 mm</span></div>
<div class="stat-row"><span>Approx Group CTC Horizontal</span><span class="stat-val" id="out_ctc_h">0 mm</span></div>
<div class="stat-row"><span>Approx Group CTC Vertical</span><span class="stat-val" id="out_ctc_v">0 mm</span></div>
<div class="stat-row"><span>Review Status</span><span class="stat-val" id="out_note" style="color: var(--ok);">OK</span></div>
</div>
<div class="button-row">
<button class="btn" id="export_btn" type="button">Export JSON</button>
<button class="btn btn-alt" id="copy_btn" type="button">Copy Snapshot</button>
<button class="btn" id="drawing_view_btn" type="button">Drawing View</button>
</div>
<div class="conflict-box" id="conflict_box" aria-live="polite" hidden>
<strong>Input conflicts</strong>
<ul id="conflict_list"></ul>
</div>
<div class="review-box" id="review_box" aria-live="polite" hidden>
<strong>Review points</strong>
<ul id="review_list"></ul>
</div>
<div class="assumption-box">
<strong>Standing assumptions</strong>
<ul>
<li>Within group cable spacing is assumed touching unless separately modelled.</li>
<li>Mixed service visual uses one worst case OD for all shown services and is schematic only.</li>
<li>Bend visual shows a single cable body sweep only and does not model full multi cable sweep, trench profile, duct entry, pull path or installation forces.</li>
<li>Burial depth is recorded as an indicative input only.</li>
<li>4 core and 5 core multicore formations are drawn as a single cable OD. Within cable core arrangement is not modelled.</li>
</ul>
</div>
<div class="snapshot-box" id="snapshot_box"></div>
<div class="guidance-box">
<strong>Open cable knowledge basis</strong><br>
This interface is intended to expose geometry assumptions clearly and separate them from catalogue driven product selection.
<ul>
<li>British MV classes retained here are 6.35/11 kV and 19/33 kV.</li>
<li>Transmission class retained here is 64/110 kV IEC system.</li>
<li>Sector conductors are called out because they affect OD and terminations.</li>
<li>Stored ODs and bend data must still be verified before any formal design issue.</li>
</ul>
</div>
</div>
<div class="panel panel-right">
<div class="canvas-container">
<h3 style="align-self:flex-start; color: var(--accent);">Worst Case Formation Cross Section</h3>
<p class="subtle-note" style="align-self:flex-start;">
Cable group box only. Envelope width is the horizontal size of the cable group shown. Envelope depth is the vertical size of the cable group shown.
</p>
<div class="legend">
<span class="legend-item"><span class="legend-swatch" style="background:#666; border-color:#00ffff;"></span>LV Power AC</span>
<span class="legend-item"><span class="legend-swatch" style="background:#b87333; border-color:#ff5555;"></span>MV AC</span>
<span class="legend-item"><span class="legend-swatch" style="background:#ffd700; border-color:#ff8800;"></span>HV AC</span>
<span class="legend-item"><span class="legend-swatch" style="background:#777; border-color: var(--accent-2);"></span>DC</span>
</div>
<canvas id="formation_canvas" width="900" height="420" aria-label="Formation cross section visual"></canvas>
</div>
<div class="canvas-container">
<h3 style="align-self:flex-start; color: #8fd3ff;">Indicative Trench Cross Section</h3>
<p class="subtle-note" style="align-self:flex-start;">
Indicative trench size only. Trench width shown is worst case formation envelope width only. Trench depth shown is burial depth input to the top of duct or cable plus cable formation depth. No bedding, side clearance, cover boards, duct OD, shoring or civil design is modelled.
</p>
<canvas id="trench_canvas" width="900" height="500" aria-label="Indicative trench cross section visual"></canvas>
</div>
<div class="canvas-container">
<h3 style="align-self:flex-start; color: var(--accent-2);">Single Cable Bend Sweep</h3>
<p class="subtle-note" style="align-self:flex-start;">
Single cable body sweep only. Not multi cable sweep, trench profile, duct entry or civil detail.
</p>
<canvas id="bend_canvas" width="900" height="380" aria-label="Single cable bend sweep visual"></canvas>
</div>
</div>
</div>
<script src="data-core.js"></script>
<script src="data-lv.js"></script>
<script src="data-mv-hv.js"></script>
<script src="data-solar.js"></script>
<script src="app.js"></script>
</body>
</html>