# 16S traction reference — CAD, electrical system and simulation

The selected reference is 16S1P LFP, 51.2 V nominal, 58.4 V upper reference, with an assumed 40 Ah capacity. `reference.json` contains all provisional parameters. This new revision is separate from the original 4S 20 Ah workbench, which remains available for comparison. No hardware has been connected or qualified; IP65 is a design target.

## CAD audit and individual elements

The original 4S audit retained in `docs/cad-audit/legacy-4s-before.json` checks 56 wire ends against their intended envelopes. It finds 31 geometric gaps, five support/thermal-interface gaps, and four sensor-pad/cell intrusions. Even the touching wire ends lack pin-level continuity evidence. Those original findings are not relabeled as corrected in the legacy model.

The new 16S anatomy uses 200 named conductive terminals and 120 harness/busbar links. Every route endpoint is specified by its source/destination pin and net in `mechanical/cad/traction-16s/electrical-system.json`. The 544 elements include cells, terminal pins/collars, series interconnects, NTC pads/sensors, wiring, 76 individual PCB package envelopes and the PCB, external host/auxiliary/driver modules, fuse, service disconnect, two main contactors, precharge relay/resistor, four-terminal shunt, restraints, insulation, interlock, enclosure/lid/gasket, sealed bulkheads, caps, vent and bonding provision. Conductive pin and wire parts are counted individually; these are not 544 purchased components.

Separate STEP files use a local origin at each element's minimum bounding corner. `step_origin_mm` in `assembly-manifest.json` gives the translation back into assembly coordinates; units are mm. The assembled and exploded STEP/GLB and offline viewer use the same CadQuery solids. PCB packages follow the KiCad reference positions but are simplified envelopes. They are not detailed supplier internals or approved machining drawings.

The independent STEP audit imports conductive terminal solids and checks every wire end against those solids. It also checks cable intersections with all 16 cell bodies and compares imported shape volumes/validity. This found six control wires entering the last cell row during development; the driver/interlock bay and routes were moved clear, then rechecked. The final native reports contain the actual results. Full cable-to-cable insulation spacing and all-assembly clash analysis are still open, including connector mating, lugs, restraints, tolerances and wire bend radii. Endpoint checks do not certify an electrically safe harness.

## Electrical boundaries

`electrical-system.svg` shows the cell string, fused/service-isolated positive path, K+ and K− main contactors, the precharge relay and 100 Ω bypass, external DC-link/inverter/motor/charger, shunt, voltage taps, temperature sensing, AFE/mux, host/CAN, auxiliary supply and fail-safe coil-driver boundary. The UI links selectable diagram elements to the pack CAD and displays commanded states and modeled measurements. It does not infer real auxiliary-contact feedback. The external vehicle inverter/charger/DC-link/switched bleed are diagram/simulation boundaries, not detailed pack CAD parts.

The shunt sits between B0 and K−. Its power terminals are separate from Kelvin leads; voltage-sense aliases explicitly identify electrically common external nodes. Pack negative is not implicitly bonded to the enclosure. The electronics source/PCB/netlist checks are described in [electronics README](electronics/README.md). A complete external MCU/CAN/driver/auxiliary schematic and firmware are not included. Component voltage, interruption, I²t, pulse energy, short-circuit capability and thermal ratings are unselected.

## Simulation panel

The 16S panel is separate from the older editable discrete BMS block workbench. It provides two-/three-wheeler reference dynamics, drive/regen/charge/off modes, SOC, ambient temperature, demand, payload, road grade, initial speed, key, charger and interlock inputs, and fault type/time. Outputs include individual cell voltages, shared temperatures, shunt mV/current, pack/DC-link voltage, contactor commands, permissions, speed, torque, power, signed energy, distance and fault state. Timeline scrubbing updates the plot, electrical diagram and selected CAD reading. Downloaded run JSON retains the executed inputs and assumptions.

The plant integrates at no more than 50 ms steps and retains at most roughly 1000 timeline samples plus state transitions. Precharge uses a 100 Ω / 2.2 mF RC model, closes K+ above 95% of pack voltage, and latches a three-second timeout if the path fails. The external 1 kΩ DC-link bleeder is explicitly switched off during precharge; when isolated it produces a 2.2-second discharge time constant. Charging requires a plugged-in charger and a vehicle speed below 0.1 m/s, and excludes traction. Ideal power/torque/current limits and loaded-cell discharge-voltage derating constrain the vehicle model; efficiencies, drag, mass and thermal constants are uncalibrated. Voltage injection is an AFE reading fault and does not change the physical cell's OCV. Over/undervoltage permissions are directional to permit recovery. No balancing, electrochemical ageing, calibrated motor map, mechanical brake, rollback, actual protection delays/hysteresis, welded contactors or propagation model is implemented.

The model and artifacts do not authorize connection to a live traction pack. Thermal-runaway relief/exhaust, cell compression/swelling, enclosure thermal rejection, wiring insulation/current rating, independent safety supervision, EMC, abuse tests and complete vehicle compliance need engineering work. The membrane vent is for routine pressure equalization and is not runaway relief. [IEC 60529](https://webstore.iec.ch/en/publication/2452) is the enclosure ingress reference; no IP test has been performed. The [ADI two-/three-wheeler system reference](https://developer.analog.com/docs/system-level/solutions/reference-designs/ad-bmse2e3wlc-sl/index.html) informed the system boundaries, not the provisional dimensions or simulation constants.

## Run and regenerate

Start locally from PowerShell with `.\start`, then open `http://127.0.0.1:8000` → **Traction & electronics**. If an older server is already running, stop it with Ctrl+C in its terminal and restart to load the new API routes. Full screen works for both the embedded pack and standalone explorer.

Generate CAD with `.\.venv\Scripts\python.exe -m mechanical.cadquery.generate_traction`, then run `.\.venv\Scripts\python.exe scripts\validate_traction_cad.py`. CadQuery is an optional locked dependency; `uv sync --extra cad` installs it. `scripts/draw_traction_diagram.py` regenerates the native SVG. Run `.\.venv\Scripts\python.exe -m pytest -q` for software checks. KiCad toolchain and scan provenance are documented under `docs/security/traction-tools-*`.

Cloud storage, Google Drive integration and deployment remain pending at the user's request. Review packages and backups are local only.
