AIPE CAD Agent

AIPE CAD Agent is the mechanical-geometry agent in the AIPE framework. It turns parameter files into FreeCAD models of converter transformers, heat sinks, cold plates and complete assemblies, then checks those models for interference, fit and electrical clearance. This page explains the framework it belongs to, its role there, how the agent is organised, and the 10 kW DAB converter it has modelled.

Explore the repository

The AIPE Framework

AIPE (AI for Power Engineering) is the open engineering ecosystem I am building through AIPE Labs. It treats power-converter design as a coordinated, iterative optimisation process rather than a chain of separate tools. Specialist agents each own one engineering step: electrical sizing, schematic drawing, circuit simulation, device and magnetics selection, thermal and field analysis, mechanical CAD and PCB layout. They exchange explicit inputs, assumptions, results and evidence through a shared Engineering State.

A workflow engine runs these steps as a checkpointed task graph. Results from later stages, such as magnetics or finite-element parameters, feed back into the circuit model, and every result is recorded against a verification gate. Software checks do not replace engineering review, measurement or hardware qualification, which remain separate gates. The first full benchmark is a 10 kW dual-active-bridge converter (800 V → 400 V, 100 kHz).

AIPE design workflow: specification, electrical design and schematic sketching, circuit simulation, device, magnetics and thermal design, field simulation, CAD and PCB agents and a review package, coordinated by AIPE-Workflows, AIPE-Core and AIPE-Registry Specification ratings, operating range and design constraints Electrical design analytical sizing Sketcher checked SVG schematics Circuit simulation AIPE-Simulation-Skills · switching waveforms, control Device, magnetics and thermal design Semiconductor and Magnetics Databases · Thermal Design Field simulation AIPE-Field-Simulation · thermal and magnetic FEM CAD Agent FreeCAD geometry PCB Agent KiCad schematics and boards Review package report and evidence for human engineering review feedback: iterate and reconcile Coordination layer AIPE-Workflows task graph and checkpoints verification gates feedback iterations review reports AIPE-Core shared Engineering State SI units and provenance evidence conventions interface contracts AIPE-Registry capability manifests tool and dependency index integration maturity Each stage reads the state and returns results with evidence
AIPE design workflow. Specialist agents (left) run in sequence with feedback, while the coordination layer (right) carries the shared state, evidence and verification gates. The highlighted block is the agent described on this page.

Role of the CAD Agent

CAD Agent works at the physical-design stage, alongside the PCB Agent. It receives the decisions of the magnetics and thermal stages, such as the selected core, winding layout and heat-sink geometry, and turns them into solid models that show how the parts fit together. The models support layout, mass, interference and clearance studies, and give simulation tools geometry to mesh.

InterfaceContent
InputsJSON parameter files in SI units for a transformer, heat sink, cold plate or assembly; in a workflow run, AIPE-Workflows derives them from the selected magnetics candidate, core record and heat-sink candidate
OutputsEditable FreeCAD documents and STEP files, per-body volume and mass metadata, mesh hints and geometric check reports
Hand-offAIPE-Workflows records the models and their check summary under its CAD/PCB gate; open clearance items go to human engineering review

The models are illustrative geometry, not manufacturable designs. Required clearance and creepage distances are caller inputs, and no compliance with a standard is claimed. The agent interface defines these inputs, outputs and limits.

How the Agent Is Organised

The agent separates the engineering rules from the CAD kernel. A pure-Python resolver validates each parameter file and applies the derived-geometry rules, so the same rules can be used by tests or an optimiser without FreeCAD. FreeCAD then runs headless to build the solids, measure them and check them.

Flow chart of AIPE CAD Agent: parameter files and workflow-derived inputs feed a parameter resolver, which drives component and assembly builders in FreeCAD, followed by geometric checks, exports and metadata, and hand-off, with check findings fed back to the parameters
Internal organisation of AIPE CAD Agent, from parameter files to checked FreeCAD models and their records.
PartResponsibility
Parameter filesOne JSON file per model kind, with a JSON Schema; lengths in metres and masses in kilograms. An assembly file references the component files.
Parameter resolverValidates the inputs and applies derived-geometry rules, such as fin count from pitch, winding build from wire data and hole patterns from device footprints.
Component buildersBuild transformers (core, bobbin, windings, barriers, pins and clips), plate-fin heat sinks and liquid cold plates with their devices and mounting hardware.
Assembly builderPlaces the chassis, cooling, boards with copper zones and keep-outs, transformer and connectors from the component files.
Geometric checksReport interference volumes, keep-out and envelope intrusions, fit gaps and net-to-net clearance as pass, fail or review.
Exports and metadataWrite FCStd and STEP files with volumes, masses, bounding boxes, mesh hints and rendered views, and re-import each STEP file to confirm its volumes.

Every body carries its material, electrical net and role, so the clearance check knows which conductors belong to which net. Conductors separated only by solid insulation, such as windings behind a barrier, are reported for review rather than passed, because creepage along surfaces is not traced. The outputs and checks and parameter rules describe these stages in detail.

Example: 10 kW DAB Converter

This example models the mechanical parts of the AIPE benchmark converter: a 10 kW dual-active-bridge converter from 800 V to 400 V at 100 kHz. One command builds all four models from their parameter files with FreeCAD 1.1.4.

ModelGeometryMassCheck outcome
TransformerE65/32/27 N87 core pair, 21 : 10 turns (litz primary, foil secondary), 0.5 mm polyimide barrier708.6 gNo interference; primary and secondary to earth pass at 15.85 mm; primary to secondary for review
Heat sink80 × 80 mm aluminium base, 12 fins, two TO-247-4L devices on alumina pads254.6 gNo interference; device tab to mounting screw for review
Cold plate240 × 120 mm aluminium plate, four-pass serpentine channel, eight devices1184.0 gNo interference; device rows 36.53 mm apart pass
Assembly440 × 240 mm chassis, four heat sinks, primary, secondary and control boards, transformer and terminals2.789 kgNo interference or keep-out violations; transformer to control board passes at 10.83 mm

Transformer

The transformer model builds the core, bobbin, homogenised winding sections sized from the wire data, the insulation barrier, pins, clips and base plate. The windings are separated only by the barrier and bobbin, with no air path between them, so the primary-to-secondary clearance stays an open review item.

Isometric, top, front and side views of the DAB transformer model, showing the E-core pair, bobbin, windings, pins and base plate inside its clearance envelope
DAB transformer model in isometric and orthographic views, with its clearance envelope.

Heat Sink

The heat-sink model mounts two TO-247-4L SiC devices on isolation pads with shoulder bushings and screws. The pitch rule alone would give 16 fins; the parameters use 12 shorter fins, which leave a rim for the chassis.

Isometric, top, front and side views of the plate-fin heat sink with two TO-247 devices, isolation pads and mounting holes
Plate-fin heat-sink model with two SiC devices, in isometric and orthographic views.

Converter Assembly

The assembly places the primary and secondary power boards on standoffs above four heat sinks, the transformer between them and the control board above it. Board keep-outs reserve space for the DC-link capacitors and gate drivers.

Isometric, top, front and side views of the 10 kW DAB converter assembly, showing the chassis, heat sinks, power boards, transformer, control board and keep-out volumes
10 kW DAB converter assembly, with keep-out and clearance volumes shown translucent.

Within the Workflow Run

In the AIPE-Workflows DAB run, the transformer and heat sink were built from upstream results rather than hand-written parameters. The transformer used the E70/33/32 core and winding layout chosen by the magnetics stage; its CAD mass of 0.864 kg compares with the magnetics estimate of 0.696 kg, the difference being mainly bobbin, barriers, clips and plate. The heat sink used the thermal stage’s selected candidate; the CAD mass of the sink body, 0.275 kg, was 1.3 % below the thermal correlation model’s 0.278 kg.

Task Outputs

Each model produces an editable FreeCAD document, a STEP file, a keep-out STEP file, a metadata file and a check report. STEP re-import reproduced every solid’s volume. The open review items are real: the transformer’s inter-winding insulation has not yet been designed, and no part has been manufactured or measured.

AIPE Overview · Source Code · Back to Research