loadpath
Generative design for 3D printed parts (and cast or milled ones), built to be driven by coding agents. Tell your agent what a part has to carry and where it mounts; loadpath grows the part with topology optimization, meshes it as a watertight solid with the interfaces cut exactly, and checks that mesh with a fresh finite element analysis. You get an STL, 3MF or STEP and a report: mass, safety factor, deflection, thinnest member, printability, pass or fail.
| Left, the part loadpath delivered (blue: load, red: kept bore). Right, its stress from a fresh analysis of that mesh, blue (none) to red (the part's 98th percentile), on the shape bent by the worst load case. Top: a 300 N wall hook printed upright without supports, 24.2 g, SF 2.73. Bottom: a 500 N aluminium bell crank (LPBF), 23.4 g, SF 3.22. More in Examples. | |
Point your agent at it
pip install "loadpath[mcp]"
claude mcp add loadpath -- loadpath mcp # any MCP client: {"command": "loadpath", "args": ["mcp"]}
Then ask in plain words:
Design a PETG bracket for a 10 kg shelf. It screws to the wall with two M5 bolts 40 mm apart and the shelf sits 60 mm out. Safety factor 2, printed on an FDM printer.
The agent writes the study, checks it, runs it in the background and reads
the report back. Its guide is loadpath/SKILL.md (the
loadpath_guide tool returns it); the tools and the loop are in
docs/agents.md. The server runs locally and nothing
leaves the machine. Units are millimetres, newtons and megapascals. MIT
licensed.
What it does
- Topology optimization on a voxel grid (SIMP with a density filter, Heaviside projection and a robust minimum-member formulation), searching for the lightest part that meets a safety factor and a deflection limit across several load cases. A stress-constrained mode (MMA) is available.
- Verification of the delivered mesh, not the optimizer's density
field: the STL is analysed again, on a tetrahedral mesh when the
crosscheckextra is installed and on a fine voxel grid otherwise. Keep-out intrusion and lost interface geometry are measured with exact booleans. - Process rules for FDM (overhangs, bridges, layer bond), SLS and MJF (trapped powder, escape holes, warp-prone panels), resin (supports, peel, suction cups) and powder-bed metal (internal ceilings, powder clean-outs), plus milling and casting constraints.
- Field modelling: a part as a graph of implicit fields, so skins, lattices (TPMS and strut) and fillets can be graded by stress or by distance (docs/fields.md).
- Other analyses: large deflection and buckling, compliant mechanisms, thermal loads, fatigue and creep estimates, lattice crush and impact, vibration, lattice-Boltzmann flow and conjugate heat for heat exchangers and cold plates, and layer-by-layer warp and residual stress (docs/BUILDSIM.md).
- CAD in and out: a STEP or STL part becomes a draft study with its bores and bolt patterns found (docs/IMPORT.md); results export as STL, 3MF, and STEP with exact planes and cylinders at the interfaces; a lattice part (strut cells, TPMS, graded, skinned or open) goes to STEP lattice and all, as smooth patches on its true surface (docs/fields.md).
- Mesh checks without a study (
loadpath.checks): wall thickness, overhangs, trapped voids, fluid-network isolation, component fit.
How much to trust it
Read docs/VALIDATION.md before relying on a number. In short:
- The solvers match analytic answers in the test suite: beam deflection within 3-5%, stress at a hole within about 13%, Lamé pressure vessels within 5-11%, Poiseuille flow exactly.
- The structural check is cross-checked: CalculiX and loadpath's own tetrahedral solver agree within 0.1% on the same mesh. The voxel check reads 24-49% higher stress than the tet check, so it errs safe.
- The optimizer is benchmarked: 1-5% less stiff than top88 and top3d at equal material on three of their textbook problems, stiffer on the fourth.
- Printed lattices match published tests: against 33 published compression tests of printed lattices, the stiffness check has a median error of 1.23x (held out) and the strength check stays under the measured value on all 33.
- Warp prediction is fitted to measured data (NIST AM-Bench 2018 for LPBF IN625, a published ABS study for FDM) and misses other alloys and materials by 30-60%.
- Everything else is simulation only, including every part mass and safety factor in the case studies. The analysis is linear elastic with datasheet material values; printed parts vary with the printer.
Case studies
Each states the problem, the setup, the numbers against a named baseline, and the limitations (docs/case-studies/).
| Case study | Result | Baseline |
|---|---|---|
| Eval suite | 15 of 15 parts meet their requirements on a fresh analysis of the delivered mesh | Each part's own requirements |
| GRIP robot arm | A load sweep over the arm's URDF found 3 of 5 links below SF 1; the regrown set meets SF 2 and is 18% smaller | GRIP's committed parts, made by an earlier loadpath with hand-written loads |
| Arm link cores | 42.2 g box section for FDM, 36.8 g hollow link for SLS, both at 0.5 mm and SF 3 | 54.9 g solid web; 54.2 g free-form topology optimization |
| Liquid cold plate | A die-graded gyroid ties streamline channels; channels filled with a graded gyroid run 7% cooler | Streamline channels and pin fins, equal metal and pressure drop |
| TPU finger | up to 8 mm of tip curl for a 5 mm pull; a tendon finger grips 8x harder | A linear-model design (2.5 mm, then the solve fails); a plain bar of equal volume |
| Benchmarks | 1-5% less stiff than top88/top3d at equal material, in 57-60 iterations instead of 130-410 | Ports of top88 and top3d |
Command line and Python
loadpath examples shelf-bracket > bracket.json
loadpath check bracket.json # every problem at once, with suggestions
loadpath run bracket.json --out out/ # optimize, mesh, verify, render
out/ gets an STL and a render per outcome and report.json. Every command
takes --quick for a first look in a minute or two.
Optional extras: crosscheck (tetrahedral verification; recommended),
render, step (STEP in and out, OpenCascade), flow (lattice-Boltzmann,
numba), gpu (PyTorch for large grids on CUDA, Apple Silicon or CPU
threads).
Studies are validated against a published JSON Schema
(schema/), and loadpath check returns every problem at once
with its JSON path, so an agent can fix a study in one round trip. Long
solves run as background jobs the agent polls. Each finished outcome has an
attention list of numbers to look at before trusting it, and renders a
vision model can inspect.
From Python:
from loadpath.spec import study_from_dict
from loadpath.study import run_study
result = run_study(study_from_dict(study))
best = result.outcomes[result.best]
best.mesh.export("part.stl")
print(best.report["mass"], best.report["safetyFactor"])
Documentation
- Quickstart: install to a checked part.
- Tutorials: eleven end-to-end workflows, each run by CI (an FDM bracket to 3MF, an SLS lattice with drain holes, a metal heat exchanger, an impact bumper, a STEP part round trip, LPBF distortion compensation, and more).
- Reference: the method, every study field, the report, the limits.
- Validation: what each model has been checked against.
- Case studies and benchmarks.
- Topics: fields, materials, build simulation, calibration, CAD import, slicer, multi-material, impact, mechanisms.
Examples
The eval suite (15/15 passing): robot-arm links, brackets, a bell crank and a hook, each optimized and then checked by a fresh analysis of the delivered mesh. "Under envelope" compares with the design space filled solid, not with a conventionally designed part. These are simulated results; see docs/VALIDATION.md. Blue arrows are loads, red is keep-out. Every view, stress map and number is in docs/GALLERY.md.
arm-link 55.3 g · 56% under envelope · SF 8.92 · pass |
arm-link-cast 67.8 g · 46% under envelope · SF 20.11 · pass |
arm-link-driven 48.4 g · 61% under envelope · SF 11.17 · pass |
bell-crank 23.4 g · 84% under envelope · SF 3.22 · pass |
grip-turret 140.4 g · 91% under envelope · SF 2.85 · pass |
grip-upper-arm 207.7 g · 88% under envelope · SF 7.33 · pass |
grip-wrist-link-mjf 40.2 g · 95% under envelope · SF 5.83 · pass |
grip-wrist-yoke 17.3 g · 93% under envelope · SF 3.88 · pass |
mbb-beam 13.8 g · 79% under envelope · SF 1.51 · pass |
motor-mount 27.6 g · 69% under envelope · SF 3.65 · pass |
printed-hook 24.2 g · 84% under envelope · SF 2.73 · pass |
wall-bracket 26.9 g · 94% under envelope · SF 2.85 · pass |
wall-bracket-fasteners 26.5 g · 94% under envelope · SF 2.57 · pass |
Where the load goes: von Mises stress, blue (none) to red (the part's 98th percentile), on the part bent by its worst load case:
bell-crank |
grip-upper-arm |
printed-hook |
Two-fluid heat exchangers: two isolated channel networks through one sheet gyroid, with headers that print without support.
Printed in metal, nothing inside can be supported: the channels end in peaked roofs instead of flat ceilings (red).
Made another way: the same arm link printed, cast (no undercuts along z), 3-axis milled from both sides with a 6 mm cutter, and with members capped at 6 mm. Each meets SF 3 and 0.5 mm.
Rendered 2026-11-03 from 6c97b57 by python docs/gallery.py.
Limits
- Linear elastic, small deflection in the main check; large deflection and
buckling are separate analyses (
nonlinear.py), with contact (rigid obstacles and self contact, optionally with Coulomb friction) and tendons there only. - Printed layers are modelled as transversely isotropic stiffness plus a tension-across-layers strength check. Interlayer shear is not checked separately.
- Material cards are datasheet values until you calibrate your printer
(
loadpath calibrate). - Results depend on the grid: mass at a target safety factor moves about 5% with small changes of grid size or starting point.
- Pure Python with NumPy and SciPy. A 40,000-cell study takes a few minutes on one laptop core; a safety-factor search runs several of those, and the larger eval parts take 15-60 minutes on four cores.
Tests
python tests/run_tests.py && python tests/test_loadpath.py # core
python tests/test_tutorials.py # every tutorial, quick mode
python -m loadpath.evals.run --tier coarse --corpus 6 \
--baseline loadpath/evals/baselines/coarse.json --gate regressions # under 30 min
python -m loadpath.evals.run --out evals-out/ # full eval suite, hours
python -m loadpath.benchmarks.run --out bench-out/ # top88 / top3d benchmarks
python docs/gallery.py --evals evals-out/ # refresh the Examples renders
.github/workflows/tests.yml lists the full set CI runs.
License
MIT
Metadata
Release files for loadpath 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| loadpath-0.1.1.tar.gz | 1.6 MB | With provenance | Details for loadpath-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loadpath-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for loadpath-0.1.1-py3-none-any.whl |
Total release size: 3.2 MB
Release files / loadpath-0.1.1.tar.gz
| Download URL | loadpath-0.1.1.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d76a3912f886b7375604218c93241a9b1c91544cd2373d0659d393a9595499bd
|
|
BLAKE2b-256 checksum How to use checksums |
9d51d495fc9969ac1f3482b8e184ee6acaa7da44e7d64cbe805a9d61a18f0cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / loadpath-0.1.1-py3-none-any.whl
| Download URL | loadpath-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1768a0d8e157ae047368e55c27baa4bc203d8b154d0bdabfe6a5da8b96dd4ca
|
|
BLAKE2b-256 checksum How to use checksums |
451ca6a3a57e5e25ba973da381499d5efa6b62d2e76676b026ec61ffb91c457e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for loadpath 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for loadpath-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.