Worked example: an impeller¶
A centrifugal compressor wheel, 200 mm across, taken from a parametric model to a
robot program, a thermal history of the whole build, a map of possible defects, a
distortion estimate and an animation. The scripts
are in examples/impeller/.
The part¶
openwaam.parts.Impeller describes the wheel by its meridional shape (hub curve,
shroud curve, bore) and its blades (count, backsweep, lean). It writes an STL mesh
and slices itself into planar layers.

import dataclasses
from openwaam import Process
from openwaam.parts import Impeller
from openwaam.robot import BeadModel, Toolpath
proc = Process(current=140, voltage=18, efficiency=0.75, wire_feed_speed=0.06,
wire_diameter=0.0012, travel_speed=0.006)
proc = dataclasses.replace(proc, current=round(proc.equilibrium_current(0.012))) # 157 A
bead = BeadModel.from_process(proc)
lh, step = bead.layer_height_multibead, bead.step_over
imp = Impeller(height=36 * lh, blade_thickness=step)
tp = Toolpath.from_contours(imp.layers(lh, step), lh, proc.travel_speed, bead, bead_width=step)
Every layer is concentric rings that fill the hub, then one bead per blade. The blades are one bead thick. Because the hub and the shroud both shrink with height, each layer rests on the one below; the only overhang is the blade lean, 22 degrees from vertical at the rim.
The robot¶

| Layers | 36 at 1.97 mm |
| Bead length | 68.5 m |
| Wire deposited | 760 cm3, 3.19 kg (the model is 718 cm3) |
| Path points solved for the IRB 2600 | 83,874, all reachable |
| Closest approach to a joint limit | 46 degrees |
| Highest joint speed | 5 % of the limit |
plan.py also writes impeller.mod (RAPID), impeller.gcode and a joint-angle
CSV. The torch stays vertical and the part does not move: there is no positioner
in this plan.
Thermal history¶
The part-scale model runs the whole build on 2.5 mm voxels. Before each layer the
torch waits until the point where the arc will strike is below 200 C
(ThermalConfig(interpass_temperature=473.15)).

| Build time | 4 h 27 min |
| Arc on | 3 h 10 min |
| Waiting for the interpass temperature | 1 h 4 min |
| Arc energy | 6.7 kWh |
| Mean part temperature when a layer starts | 120 to 190 C in the first dozen layers, falling to about 85 C at the top |
The current is the one the wire-melting relation gives for 3.6 m/min of wire (157 A; the relation's constants are for steel wire and are used here for titanium as an approximation). The earlier version of this example used 140 A, which that wire feed does not draw.
Two things to take from it. The wait before a layer is not constant (none to about 155 s), and the part as a whole cools through the build as the hub narrows and the blades take over. And the blades cool fast between layers, but a point in the hub core is taken back above 500 C some twenty times after it is laid, by the neighbouring rings and by the layers above it.
Possible defects and distortion¶

thermal.py ends by mapping where lack of fusion and porosity are possible
(openwaam.defects.defect_map) and by estimating distortion
(openwaam.partscale.estimate_distortion, setting isotropic).
| Marked as possible lack of fusion | 0.4 % of the part, in 169 small regions |
| Marked as possible porosity | 35 % of the part, almost all in one region |
| Largest displacement after release | about 4 mm |
| Bow of the 12 mm plate | 3.8 mm |
The porosity figure is not a prediction. Nearly all of it comes from the vaporisation rule, and the model's pool overheats: its peak temperature is 4800 K, above the boiling point of titanium, because the part-scale model does not resolve the pool. Read the map for where the history is least favourable. The distortion is an order of magnitude: the strain settings were calibrated on steel walls and blocks, and neither transfers to other shapes (see the build record page).

The same build in three alloys¶
The toolpath and the settings are kept (157 A, 18 V, 3.6 m/min of wire, 6 mm/s, 200 C between
layers) and only the alloy changes. thermal.py takes the alloy and an output folder;
panel.py and compose.py make the film.

| Inconel 718 | Ti-6Al-4V | 316L | |
|---|---|---|---|
| Build time | 4 h 38 min | 4 h 27 min | 4 h 23 min |
| Waiting for 200 C | 1 h 16 min | 1 h 4 min | 1 h 0 min |
| Wire | 6.2 kg | 3.2 kg | 5.5 kg |
| Mean melt pool, length x width | 15.6 x 9.4 mm | 15.6 x 9.6 mm | 13.5 x 8.3 mm |
| Hottest pool in the model | 3510 C | 4530 C | 3520 C |
| Boiling point | 2920 C | 3290 C | 2820 C |
| Marked possible lack of fusion | 1.3 % | 0.4 % | 5.8 % |
| Marked possible porosity | 6 % | 35 % | 16 % |
| Largest displacement in the part | 1.2 mm | 3.8 mm | 0.5 mm |
| Plate bow | 1.1 mm | 3.8 mm | 0.4 mm |
What can be taken from it:
- Build time differs only through the waiting. Inconel 718 holds its heat longest and waits a quarter longer than 316L. This rests on the thermal model, the best-tested part of the package (one steel benchmark).
- Porosity marks follow the vaporisation rule, and the model's pool is above the boiling point in all three alloys. The ranking shows how far each pool overheats in the model. It is not a ranking of porosity.
- Lack-of-fusion marks are highest for 316L, whose pool is the smallest. The direction is plausible; the percentages are not defect fractions.
- Distortion ranks with the yield strain of each alloy, because the inherent strain is capped at yield: titanium highest, 316L lowest. The settings were calibrated on steel walls and blocks, so this is an order of magnitude. The distortion grid is 7.5 mm, coarser than the one-bead blades: about 2 % of its elements never join the part face to face and are left out, and single elements in the blades give stray values (up to 23 mm) that are excluded from the figures above.
- The arc current comes from a wire-melting relation with constants for steel wire, used here for all three alloys.
What this is not¶
- Nothing here is compared with a real build.
- The liquid conductivity is tripled to stand in for convection in the pool, which this model does not resolve. Without it the pool overheats.
- The defect map and the distortion estimate are uncalibrated for this part and alloy.
- The robot was checked for reach, joint limits and joint speed. Collision between the torch and the part was not checked.
- The RAPID program written by
plan.pyholds the fixed dwells only.run_partandopenwaam runwrite the waits the thermal model computes into the programs. None has been run on a controller.