weld simulation is coming along nicely
@dirtman15K followers
26,164 views
43 Comments
Comments from the original post on X (Twitter)

@dirtman
this latest version of the weld simulator has been an excercise in hill climbing and kernel optimisation to really push what we could get done on a GPU. ignore the 41 min mark the real optimisations tarted at the 12s per step, then 2 architecture revisions from there we're down to about 70ms.
12 likes

@dirtman
this doesnt seems all that fast but consider that in one step the following is calculated, and that this is all running with self consistency checks and mass and energy transport across and between millions of voxels. 1. Heat (once per outer, whole plate) Temperature and enthalpy, including latent heat across the mushy range Heat conduction (implicit, with temperature-dependent conductivity and specific heat) Arc heat input Heat and metal from the wire's droplets Radiation and convection losses Evaporation heat loss and recoil pressure Energy balance check 2. Electrical (once per outer) Current path from arc to clamp Magnetic field and Lorentz force Joule heating 3. Molten metal flow (8 sub-steps) Free surface: which cells are metal, gas or partly filled; surface normals and curvature; cavities Contact lines and wetting angle Forces: gravity and buoyancy, Lorentz, arc pressure and shear, recoil, surface tension, Marangoni, mushy-zone drag, viscosity Pressure and velocity (incompressibility solve) Volume and momentum transport Dissolved hydrogen Mass, species, energy and momentum balance checks 4. After the flow (once per step) Cavity closure and whole-plate conservation check Microstructure: phase fractions, hardness, hydrogen held in the solid Pores: from hydrogen and nitrogen, plus pressure in sealed cavities Mechanics (coarser grid): thermal and transformation expansion, elastic-plastic stress, distortion, residual stress, plastic strain, fixture 22 defect labels and their locations Not simulated yet but will be: arc plasma and gas flow; distortion feeding back into the pool; large deformation; carbon monoxide pores (being built); nitrides (partly built); grain size.
7 likes

@mov_axbx
I love shit like this that would have taken so long before AI
9 likes

@dirtman
It’s kinda nuts but even still the level of simulation we’re doing took 4 months of work to get here even with ai help
12 likes

@NtTestAlertX
when on Steam?
5 likes

@dirtman
Now we’re asking the real questions
3 likes

@sierras_account
can you model prestress in the plate
4 likes

@dirtman
yes! i have not done it yet but it would just be setting initial conditions in the material's strain field

@s2010m33
@sierras_account If all works as expected. Could actually simulate vibratory stress relief during weld works? (Know some who swear it helps and others scoff. )
1 like

@dirtman
@sierras_account Yeah could probably do that

@natosaichek
Thats so hot
2 likes

@dirtman
🥵
1 like

@RandolphInRed
learning to weld: high value, attractive to women simulating welding: questionable value, ugly to women
1 like

@dirtman
Lucky I’m married already but the economic value is in the billions
2 likes

@Lust4Eternity
@RandolphInRed I'm actually surprised I haven't seen much info on this, as this would be extremely useful pretty much everywhere you can think of (related to manufacturing). This also feels like a relatively simple process to simulate (at least compared to the aerospace stuff)

@Lust4Eternity
@RandolphInRed You're probably also underestimating the industries this affects if you think it's potential is only billions

@dirtman
@RandolphInRed Haha that is likely!

@Jayraytay92
This is dope af. Next up full on AI welding schools lol
1 like

@dirtman
Yessir

@Furstakringkese
Holy shit thats interesting
1 like

















