Custom UDF Source Code for Laser-Melt Pool CFD Simulations in ANSYS Fluent

Published: 25 October 2026| Version 1 | DOI: 10.17632/fnrw4328bg.1
Contributors:
Jing Hu, Lei Guo, Shusheng Zhang

Description

This dataset contains custom User-Defined Function (UDF) source code written in C for simulating laser-melt pool interactions during adjustable ring-mode (ARM) laser lap welding of 1060 aluminum alloy using ANSYS Fluent. The UDFs implement: (1) a volumetric heat source model for ARM laser beams (independent core/ring power, Gaussian/annular profiles); (2) temperature-dependent thermophysical properties of 1060 Al alloy via the enthalpy-porosity method; (3) vaporization and recoil pressure boundary conditions for keyhole dynamics; (4) Marangoni effect (temperature-dependent surface tension); and (5) buoyancy and solidification treatment. Compiled and tested under ANSYS Fluent 15.0 (or later). The code supports the findings of the associated manuscript (iScience). Files include .c source codes, a Fluent journal for compilation, README.md, and LICENSE (MIT). Usage: Define → User-Defined → Functions → Compiled (add .c files, Build, Load).

Files

Steps to reproduce

1. Software: ANSYS Fluent (tested on version 15.0 or later) with a compatible C compiler. 2. Compile UDF: Launch Fluent, go to "User Defined" -> "Functions" -> "Compiled". Add "ARM_laser_melt_pool_udf.c", then Build and Load. 3. Case Setup: Open the provided case file (or configure based on manuscript parameters). Material properties (e.g., 1060 aluminum alloy), energy equation, and turbulence/volume models are pre-set; enable gravity for buoyancy. 4. Boundary Conditions: Apply the compiled UDFs (volumetric heat source, Marangoni shear stress, recoil pressure) to the laser spot and free surface zones. 5. Parameter Calibration: Key physical parameters (e.g., absorptivity, laser power distribution, surface tension coefficient) are defined as macros at the top of the UDF source code. Minor adjustments may be required based on specific experimental setups to match melt pool dynamics. 6. Solution: Initialize the domain and run the transient simulation. Monitor melt pool dimensions, temperature field, and keyhole dynamics. 7. Validation: Compare calibrated simulation results (melt pool geometry and pore suppression) with the experimental data provided by Z.L. Gong.

Institutions

Categories

Engineering, Computational Fluid Dynamics

Funders

  • Natural Science Foundation of Hunan Province
    Grant ID: 2024JJ7379
  • Key Project Research of the Education Department of Hunan University
    Grant ID: 25A0575
  • Industry-University Cooperation and Collaborative Education Project of the Ministry of Education
    Grant ID: 231101042011859
  • Huaihua University Teaching Reform Project-Application of CAE Simulation Technology in Mechanics of Materials Teaching

Licence