Defect map, distortion settings and the build record¶
Three things added in version 0.11 turn a simulated build into something you can file: a map of where lack of fusion and porosity are possible, distortion estimates with named settings, and a sealed record that checks the build against limits you state.
Not a certificate of conformity
The record states what the models predict and how far each model has been validated. Qualification of arc-deposited parts rests on witnessed builds, test pieces and inspection. Put the record beside those; it does not replace them.
One command¶
openwaam certify bracket.stl --material ER70S-6 --voxel 3e-3 --distortion block --part-id BRK-0007
openwaam verify out/certify_bracket/record.json
openwaam verify out/certify_bracket/record.json --log build_log.csv
or in Python:
from openwaam.solids import VoxelSolid
from openwaam.certify import AcceptanceCriteria, certify_part, verify_record, compare_with_log
part = VoxelSolid.from_stl("bracket.stl")
rec = certify_part(part, material="ER70S-6", outdir="out/bracket", distortion="block",
criteria=AcceptanceCriteria(max_distortion_mm=3.0, max_build_time_s=4 * 3600))
print(rec["verdict"], rec["failed_checks"])
verify_record("out/bracket/record.json") # {"ok": True, "problems": []}
The folder then holds record.json, report.html (one self-contained page), defect_map.png,
defect_map.vtk, defect_regions.csv, history_maps.png, distortion.png, the robot programs and
part.stl.
The defect map¶
from openwaam.defects import defect_map
dm = defect_map(model.fields()) # model: the ThermalModel after the build
dm.summary(); dm.regions[:5]
dm.plot("defect_map.png"); dm.to_vtk("defect_map.vtk"); dm.regions_csv("regions.csv")

Each voxel of the part is marked sound, possible lack of fusion, possible porosity, or both.
| Mark | Rule |
|---|---|
| Lack of fusion, between beads | metal that a later bead was laid on or beside, and that the later bead did not bring back to the solidus |
| Lack of fusion, at the plate | first-layer metal over plate that never reached the solidus |
| Porosity, vaporisation | peak temperature close to boiling |
| Porosity, gas entrapment | cooling through the freezing range fast enough to trap gas |
Connected marks are grouped into regions with volume, position, layer range and cause.
Read the map for where, not how much. The thresholds are not calibrated against sectioned or scanned builds, and the marked share depends on the grid. On a 40 x 40 x 12 mm steel block:
| Voxel (mm) | Marked lack of fusion | Marked porosity |
|---|---|---|
| 3.0 | 26 % | 16 % |
| 2.0 | 24 % | 2.7 % |
| 1.5 | 31 % | 0.6 % |
The porosity share is not converged at these grids, and a quarter of a solid block marked as possible lack of fusion is more than sound practice produces: the part-scale model does not resolve how neighbouring beads remelt each other. Hydrogen porosity in aluminium is not a thermal-history effect and is not on the map. For these reasons the four defect limits of the record are off by default.
Distortion settings¶
from openwaam.partscale import estimate_distortion, DISTORTION_SETTINGS
d = estimate_distortion(model, setting="block", clamp="bottom")
d["max_displacement"], d["confidence"], d["calibrated_on"], d["fails_on"]
| Setting | Strain (along, across, vertical) as a share of the yield strain | Calibrated on | Fails on |
|---|---|---|---|
wall |
1, 0, 0 | single-bead wall (Ding 2011): 2.6 of 3.4 mm bow | multi-bead blocks: wrong sign for parallel beads |
block |
0.35, 1.5, 0 | 80 mm square block in four patterns (Li 2021) | walls: 1.2 of 3.4 mm |
isotropic |
1, 1, 1 | nothing; the neutral choice for unknown geometry | pattern dependence |
The strain follows the bead direction recorded at each voxel during the build. Neither calibrated
setting transfers to the other geometry, so every result carries the statement "order of magnitude
only". In a case file: distortion: {setting: block}.
What the record holds¶
| Part | Content |
|---|---|
| Identity | part id, SHA-256 of the geometry, software version, time |
| Process | current, voltage, wire feed, travel speed, heat input, and the current this wire feed draws |
| Plan | layers, bead length, build time, waits, robot reach and joint speed |
| Layers | start time, wait and temperature at arc start, layer by layer |
| Evidence | thermal summary, defect map summary and regions, distortion with its confidence |
| Model status | how far each model has been validated |
| Checks | value, limit, pass / fail / not evaluated, basis and confidence |
| Files and seal | SHA-256 of each file and of the record |
Checks¶
| Check | Default limit | Confidence |
|---|---|---|
| Lack-of-fusion share and largest region | off | uncalibrated |
| Porosity share and largest region | off | uncalibrated |
| Interpass temperature | the limit the build was simulated with | model validated on one benchmark |
| Distortion | 5 mm | order of magnitude only |
| Robot reach | every point reachable | geometry agrees with the manufacturer's data |
| Joint speed | within the limits | limits are the manufacturer's |
| Arc consistency | current within 15 % of what the wire feed draws | within 8 % on measured points, 1.2 mm steel |
| Build time | off | model validated on one benchmark |
Limits can be given in a YAML file (--criteria limits.yaml) with the field names of
AcceptanceCriteria.
The seal¶
The seal is a SHA-256 digest of the record; each file is listed with its own digest.
openwaam verify recomputes both and names what changed. The seal shows that nothing changed
since the record was written. It is not a signature and does not show who wrote it; sign the record
with your organisation's own tools if you need that.
As built¶
compare_with_log (or openwaam verify record.json --log build_log.csv) reads one row per layer
with layer and any of current_A, voltage_V, travel_speed_mm_s, wire_feed_m_min,
interpass_temperature_C. Values more than 10 % from the plan, interpass temperatures above the
limit, and layers missing from the log are listed as deviations, and a new sealed
record_as_built.json is written. It compares logged values with the plan; it does not simulate the
build again as it was made.
A complete example is in examples/certification/certify_hub.py.