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

openwaam run wall
Thermal model¶
Heat conduction on a voxel grid. Voxels of the part are switched on as the torch passes, at just above the liquidus, and a Goldak double-ellipsoid source follows the torch. Exposed faces lose heat by convection and radiation. The torch position and arc state come from the robot's trajectory, so slow-downs and interpass waits are included.
Outputs: temperature and peak-temperature fields (VTK), probe histories, interpass temperature per layer, melt-pool size, and the cooling time through a temperature window (800 to 500 C by default).
A ten-layer, 120 mm wall at 1 mm voxels (548 s of process time) runs in about half a minute.
Distortion¶
The layer-wise inherent strain method on a coarsened copy of the voxel grid: each layer is born with a shrinkage strain, the structure is re-equilibrated, and at the end the clamps are released.

Calibrate the inherent strain
The default strain is the shrinkage that leaves a fully restrained layer at yield. It is a starting value. Distortion magnitudes are only as good as its calibration against a measured deflection. On a published four-layer wall it gave 42 % of the measured bow.
Version 0.7 adds a better-founded option for straight beads: thermal contraction of the deposit along the bead with the stress capped at yield, plus the yielding of the plate under the bead, taken from the thermal model's peak temperature. It gave 75 % of the measured bow on the same wall; see what has been checked.
e = InherentStrainModel.thermal_shrinkage(material)[0]
sub = InherentStrainModel.plastic_strain_from_peak_temperature(T_peak_plate, material)
sub[..., 1:] = 0.0 # along the bead (x) only
fem = InherentStrainModel(material, active, group, d, inherent_strain=(e, 0, 0),
substrate_strain=sub, yield_cap=True)
The model is linear elastic, so stresses while clamped can exceed yield.
Interpass temperature control¶
Set ThermalConfig(interpass_temperature=...) (kelvin) and the torch waits before every layer until the point where the arc will strike has cooled to that value. model.waits holds the wait per layer, model.t_shift their sum; model.t is then wall-clock time and model.t - model.t_shift is time along the trajectory.