Simulate wire arc additive manufacturing from the melt pool to the robot arm. One Python package, MIT licensed, no external solver.
The melt-pool model predicts the bead cross-section. The bead sets layer height and step-over for the toolpath. The robot executes the path, and the thermal model follows the motion the arm actually made, including every slow-down and interpass wait.
A free-surface flow solver for one bead: where the metal goes, how deep it melts, what shape it freezes into.
The temperature history of a full build, then how the part bends when it comes off the clamps.


An ABB IRB 2600-12/1.65 with an arc torch lays the part in a PyBullet scene. The joint motors work against the arm's inertia and gravity, and the motion that results drives the thermal solver. The deposit is painted with the computed temperature.
The arm model has link inertias integrated from the meshes, elastic gearboxes, motor friction and a cascaded servo that only sees the motor encoders. Gearbox, friction and servo values are typical for this class of arm, not manufacturer data.
The arm and the fluid solver advance together. Each fluid time step they trade what the other needs.
In the example a 2 mm, 3 Hz weave is laid by the arm. The tool starts 2.2 mm above the bare plate, the current starts 9 A low, and the controller lowers the arm 1.2 mm until the CTWD sits at its 15 mm set-point. The arm stays within 0.18 mm of its command.
openwaam cosim cosim_weave_bead runs it in about five minutes.


Every frame is drawn from simulation output. These builds have not been compared with real ones.
# not on PyPI yet: install from GitHub pip install git+https://github.com/BaratiLab/openwaam # or, from a clone of the repository pip install . # core pip install ".[bullet]" # + PyBullet robot cell openwaam cases # built-in case files openwaam plan cylinder_ur10e openwaam meltpool single_bead openwaam run wall_irb2600_pybullet openwaam cosim cosim_weave_bead
from openwaam import Process, get_material
from openwaam.meltpool import MeltPoolSim
sim = MeltPoolSim(get_material("ER70S-6"),
Process(current=150, voltage=20))
sim.run(1.5)
print(sim.bead_metrics())
sim.to_vtk("bead.vtk")
Results land in out/<case>/: figures, animations, VTK files, program.gcode, program.mod for ABB arms, a joint trajectory and report.json with every number.
| Check against an analytic result | Model | Result |
|---|---|---|
| Laplace pressure jump of a static drop | melt pool | within 1 % |
| Conduction between two half-bars | melt pool | within 0.4 K of 800 K |
| Metal volume while depositing | melt pool | conserved to 1e-6 |
| Rosenthal moving heat source | part thermal | 0.3 % mean error |
| Energy balance with element birth | part thermal | closed to 1e-6 |
| Curvature of a strip with a shrinking layer | distortion | within 0.1 % |
| Planner kinematics against PyBullet | robot | agree to 1e-6 m |
| Torch driven through an existing bead | robot | collision reported |
| Elastic gearbox wind-up under gravity | robot | equals torque / stiffness |
| Tool starts too high in the co-simulation | coupling | loop closes the gap |
The full comparison, with what was tried and what failed.