Porosity in directed energy deposition (DED) deteriorates mechanical performances of components, limiting safety-critical applications. However, how pores arise and evolve in DED remains unclear. Here, we reveal pore evolution mechanisms during DED using in situ X-ray imaging and multi-physics modelling. We quantify five mechanisms contributing to pore formation, migration, pushing, growth, removal and entrapment: (i) bubbles from gas atomised powder enter the melt pool, and then migrate circularly or laterally; (ii) small bubbles can escape from the pool surface, or coalesce into larger bubbles, or be entrapped by solidification fronts; (iii) larger coalesced bubbles can remain in the pool for long periods, pushed by the solid/liquid interface; (iv) Marangoni surface shear flow overcomes buoyancy, keeping larger bubbles from popping out; and (v) once large bubbles reach critical sizes they escape from the pool surface or are trapped in DED tracks. These mechanisms can guide the development of pore minimisation strategies.
Keyhole instability during laser welding and laser powder bed fusion (LPBF) can cause keyhole collapse and pore formation. Using high-speed x-ray imaging, we demonstrate that the flow vortex–induced protrusion on the rear keyhole wall is crucial in initiating keyhole instability. Applying a transverse magnetic field suppresses the keyhole instability by driving a secondary thermoelectric magnetohydrodynamics (TEMHD) flow that alters the net flow vortex. This minimizes protrusions and large-amplitude keyhole oscillations. The suppression effectiveness depends on the laser scanning direction relative to the magnetic field orientation because this controls the Seebeck effect–induced Lorentz force’s direction. We show that at LPBF length scales, electromagnetic damping is weak, and for alloys with a large Seebeck coefficient, TEMHD becomes the dominant mechanism controlling flow behind the keyhole.