OPENWAAM

OpenWAAM

Simulate wire arc additive manufacturing from the melt pool to the robot arm. One Python package, MIT licensed, no external solver.

Animated melt-pool simulation of one steel bead: temperature field, free surface and liquid velocity in a lengthwise section, a cross-section, and a top view of deposit height.
One bead of ER70S-6 steel at 164 A, 17.8 V, 4.0 m/min wire and 480 mm/min travel. 0.3 mm cells, 1.5 s of process time, about ten minutes on two cores.
3 models, one chain

Each scale feeds the next

process parameters→ melt pool→ bead width, height→ toolpath→ robot dynamics→ executed motion→ thermal history→ distortion

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.

0.3 mm cells · seconds

Melt pool

A free-surface flow solver for one bead: where the metal goes, how deep it melts, what shape it freezes into.

  • Volume-of-fluid free surface (THINC/WLIC), incompressible Navier-Stokes
  • Melting and freezing by the enthalpy method, mushy-zone drag
  • Surface tension with height-function curvature, Marangoni flow
  • Arc heat flux, arc pressure, analytical Lorentz force, buoyancy
  • Convection, radiation and evaporation losses
  • Wire feed as continuous deposition or resolved droplets
  • Steel, stainless, Ti-6Al-4V and Al-Mg property sets
Melt pool at 1.5 s: liquid region outlined in white under the torch, solidified bead behind it, velocity arrows showing recirculation.
White line: solidus. Blue line: free surface. The predicted bead is 7.2 mm wide and 2.2 mm high.
1 mm voxels · minutes

Whole part

The temperature history of a full build, then how the part bends when it comes off the clamps.

  • Transient conduction with element birth behind the torch
  • Goldak double-ellipsoid source, power exact on any grid
  • Interpass temperature per layer, cooling times, melt-pool size
  • Layer-wise inherent strain distortion and residual stress
  • VTK output for ParaView
Four plots: temperature histories, melt-pool size, interpass temperature per layer and cooling-time histogram.
Ten-layer wall, 30 s between layers.
Deformed section of the wall and plate coloured by von Mises stress, and vertical displacement of the plate underside.
After release from the clamps.
1.65 m reach · 6 axes

Robot cell in PyBullet

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.

  • Robot read from URDF: planner and physics engine share one model
  • Torch-axis inverse kinematics (rotation about the wire left free)
  • Reach, joint-limit, joint-speed and torque checks
  • The part grows as collision geometry behind the torch
  • Walls, cylinders, raster-filled blocks, STL outlines
  • G-code and joint-trajectory export; complete RAPID modules for ABB arms

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.

Animated PyBullet scene: an orange six-axis robot with a welding torch builds a wall on a plate; the wall is coloured by temperature.
Left: the cell. Right: the wall, coloured from 300 K (dark) to 1800 K (bright) by the thermal model.
0.1 ms exchange step

Arm and melt pool, coupled both ways

The arm and the fluid solver advance together. Each fluid time step they trade what the other needs.

  • Robot to process: the tool tip the arm actually reaches positions the arc, with tracking error and vibration included
  • Robot to process: tool height sets the contact-tip-to-work distance (CTWD)
  • Process to robot: the pool surface from the fluid solver closes the CTWD, and CTWD changes the arc current
  • Process to robot: a through-the-arc height controller reads the current and moves the arm
  • Process to robot: the arc reaction force loads the torch (about 0.01 N)

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.

Four plots: torch path over the deposit, CTWD and arc current against time, tool height following the pool surface, and tracking error of the arm.
What the two solvers exchange during one weaving bead.
Animated melt pool under a weaving torch driven by the simulated robot.
The melt pool under the weaving torch, full bead width, 0.4 mm cells.
4 films

Films

Every frame is drawn from simulation output. These builds have not been compared with real ones.

From a photo to a tuned build. A photo of an impeller becomes a parametric model, a robot plan and a simulated build in Inconel 718 and Ti-6Al-4V, then defect indicators and tuned settings. 1 min 28 s.
Depositing the impeller, layer by layer. The IRB 2600 follows the planned path at the current the wire feed draws; colours are temperature from the part-scale model. Then the part is cut open to show where lack of fusion and porosity are possible, and the distortion estimate is drawn. 50 s.
One impeller in three alloys. The same toolpath in Inconel 718, Ti-6Al-4V and 316L, side by side: temperature, waiting between layers, where defects are possible, and the distortion estimate, then a comparison chart. 51 s.
One part in five alloys. A stiffened rib on one toolpath in steel, stainless, Inconel 718, Ti-6Al-4V and aluminium, with what each build leaves behind. 1 min 19 s.
A space-frame bracket. A bracket read from a photo is planned, built in Ti-6Al-4V and sectioned; the printability check shows why planar layers are the wrong strategy for it. 1 min 25 s.
>= 3.10 Python

Install and run

# 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.

34 tests in CI

What is checked

Check against an analytic resultModelResult
Laplace pressure jump of a static dropmelt poolwithin 1 %
Conduction between two half-barsmelt poolwithin 0.4 K of 800 K
Metal volume while depositingmelt poolconserved to 1e-6
Rosenthal moving heat sourcepart thermal0.3 % mean error
Energy balance with element birthpart thermalclosed to 1e-6
Curvature of a strip with a shrinking layerdistortionwithin 0.1 %
Planner kinematics against PyBulletrobotagree to 1e-6 m
Torch driven through an existing beadrobotcollision reported
Elastic gearbox wind-up under gravityrobotequals torque / stiffness
Tool starts too high in the co-simulationcouplingloop closes the gap

Against experiments

Temperature: passesFour thermocouples in the plate of a published four-layer wall: peaks of 364, 89, 178 and 210 °C against 364, 103, 192 and 222 °C measured. Run before the data were read.
Distortion: partialSame wall: 2.55 mm of bow against about 3.4 mm measured, after a model upgrade and one choice made with the answer in view. Version 0.6 gave 1.45 mm.
Bead shape: partialThree published steel beads: width 8 to 18 % too large, height 5 to 15 % too low, with a freezing setting tuned on the first bead.
Arc response: failed, then fixedThe assumed 4 A/mm of current per millimetre of torch height was about twice too steep, and the default current too low for its wire feed. Version 0.8 uses a wire-melting relation that reproduces measured wire feeds within 8 %.
Distortion of a block: failsOn a published square block built in four patterns, the wall setting gets rasters wrong in sign. Two fitted numbers bring the four patterns within 8 to 37 %, but that setting then misses the wall. Order of magnitude only for general parts.
Robot programs: four faults fixedRead back and checked against ABB’s manuals: the welding speed was in the wrong place, four names were undeclared, the axis configuration was fixed at zero and RAPID was written for any arm. Version 0.9 corrects all four. Not run on a controller.
Robot dynamics: consistent, not validatedAgainst ABB’s specification the arm’s geometry, mass and speeds agree, and a 1.6 m/s line deviates 0.21 to 0.60 mm against 0.60 mm. It settles more slowly than the real arm and breaks down above 10 m/s². At 10 mm/s it was ten times too accurate against a measured sibling arm, so version 0.10 adds gear backlash set on that measurement. No measurement on this arm.

The full comparison, with what was tried and what failed.

Not validated

PenetrationUnder-predicted. There is no plasma jet, so do not use the dilution.
Metal recyclingDetached sub-grid metal is fed back under the wire. Volume is conserved, but about 45 % of the feed takes that route at 0.3 mm.
Distortion of general partsThe bead direction is now recorded for every part, and there are two calibrated settings, one for single-bead walls and one for multi-bead blocks. Neither transfers to the other shape, and on a block the model cannot rank deposition patterns. Treat the result as an order of magnitude.
Robot at welding speedGearbox stiffness, friction and servo gains are typical values, and the backlash is borrowed from a sibling arm. Tracking of a weave has not been compared with a measurement on this arm.
Arc slope and timingThe change of current with torch height follows from fitted constants and is instantaneous. It has not been compared with a recorded current trace.
Robot programs on a controllerThe RAPID and G-code pass a syntax, declaration and round-trip check, but none has been run on a controller or in RobotStudio.