agents for hardware
All use cases

Simulation · LLM-written Python

Write a Monte Carlo tolerance stack-up script with plots.

An engineer had AI write a Python Monte Carlo script for a generalized tolerance stack-up with plots; it beat their old template, but they don't trust it with the stack setup or math.

Source: Reddit: r/MechanicalEngineering

Verified: a first-person post by someone who did the work.

Starter prompt, written from this card

I want to: Write a Monte Carlo tolerance stack-up script with plots.
Reference workflow (LLM-written Python): https://www.reddit.com/r/MechanicalEngineering/comments/1rp8cri/ai_for_tolerance_stackup_analyses/

1. Read the reference and summarize the workflow in 5 steps or fewer. If you can't open the link, say so instead of guessing what it says.
2. List the inputs, files and tool access you need from me before starting.
3. Do the first step with me, then stop and wait for my review.
4. Before I trust any output, remind me to: check units and boundary conditions, then compare one case against a hand calc.

Flag anything you are unsure about instead of guessing.

More in Simulation