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

openwaam meltpool single_bead
from openwaam import Process, get_material
from openwaam.meltpool import MeltPoolConfig, MeltPoolSim
cfg = MeltPoolConfig(h=0.3e-3, lx=0.026, ly=0.006, lz=0.009, substrate_thickness=0.004)
sim = MeltPoolSim(get_material("ER70S-6"), Process(), cfg)
sim.run(1.5)
print(sim.bead_metrics(), sim.pool_dimensions())
sim.to_vtk("bead.vtk")
What it solves¶
- incompressible flow with a volume-of-fluid free surface
- melting and freezing by the enthalpy method, with drag in the mushy zone
- surface tension, Marangoni flow, arc pressure, Lorentz force, buoyancy
- arc heat flux; convection, radiation and evaporation losses
- wire feed as continuous deposition (
transfer: surface) or resolved droplets
Equations and modelling choices has the details.
Choices that matter¶
| Setting | Effect |
|---|---|
h |
Cell size. 0.3-0.4 mm is practical; halving it costs about eight times more per second simulated. |
symmetry_y |
true models half the bead (torch on the y = 0 plane). A weaving torch needs false and torch_y0 = ly / 2. |
wetting |
neutral (default): liquid meets frozen metal at 90 degrees. complete: liquid wets it fully and spreads until it freezes. This was thought to be the largest influence on bead shape; the comparison with measured beads showed the mushy-zone settings below matter more. |
contact_angle |
Contact angle on frozen metal in degrees, through the liquid, used with wetting: neutral. 90 (default) is the neutral wall. Checked on a sessile drop. |
coherency_fraction, darcy_constant |
Metal stops flowing once it is this fraction solid (default 0.3), and is slowed before that by a drag with this constant (default 1e9). Before 0.7 these were 0.95 and 1e7, which let beads run too wide: see what has been checked. |
transfer |
surface works on any grid. droplets needs about eight cells across a droplet. |
Cost¶
One bead of 1.5 s at 0.3 mm on a half domain takes about ten minutes on two cores.
Limits¶
Penetration is under-predicted because there is no plasma jet. Detached sub-grid metal is
fed back under the wire, which conserves volume but moves metal; volume_recycled in the
report says how much. See the validation page.