Skip to content

Laser Ray Tracing Implementation and fluid flow simulation framework for Additive Manufacturing, laser welding, laser drilling applications

License

Notifications You must be signed in to change notification settings

Lollum89/LaserbeamFoam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laserbeamFoam

Overview

Presented here is a growing suite of solvers that describe laser-substrate interaction. This repository begn with the laserbeamFoam solver. Additional solvers are being added incrementally.

Currently this repository contains:

laserbeamFoam

A volume-of-fluid (VOF) solver for studying high energy density laser based advanced manufacturing processes and laser-substrate interactions. In this implementation the metallic substrate, and shielding gas phase, are treated as in-compressible. The solver fully captures the fusion/melting state transition of the metallic substrate. For the vapourisation of the substrate, the explicit volumetric dilation due to the vapourisation state transition is neglected, instead, a phenomenological recoil pressure term is used to capture the contribution to the momentum and energy fields due to vaporisation events. laserbeamFoam also captures surface tension effects, the temperature dependence of surface tension (Marangoni) effects, latent heat effects due to melting/fusion (and vapourisation), buoyancy effects due to the thermal expansion of the phases using a Boussinesq approximation, and momentum damping due to solidification. A ray-tracing algorithm is implemented that permits the incident Gaussian laser beam to be discretised into a number of 'Rays' based on the computational grid resolution. The 'Rays' of this incident laser beam are then tracked through the domain through their multiple reflections; with the energy deposited by each ray determined through the Fresnel equations. The solver approach is extended from the adiabatic two-phase interFoam code developed by OpenCFD Ltd. to include non-isothermal state transition physics and ray-tracing heat source application.

array_laserbeamFoam

An extension of laserbeamFoam to N-laser sources that can each have their parameters set independently.

Target applications for the solvers included in this repository include:

  • Laser Welding
  • Laser Drilling
  • Laser Powder Bed Fusion
  • Selective Laser Melting
  • Diode Array Additive Manufacturing

The laserbeamFoam solver is effectively an extension of the beamWeldFoam solver previously released, with the implementation of the Ray-Tracing functionality and the Fresnel absorptivity model.

Installation

The current version of the code utilises the OpenFoam10 libraries. A branch is provided that compiles against the older OpenFoam6 libraries. The code has been developed and tested using an Ubuntu installation, but should work on any operating system capable of installing OpenFoam. To install the laserbeamFoam solver, first follow the instructions on this page: OpenFoam 10 Install to install the OpenFoam 6 libraries.

Then navigate to a working folder in a shell terminal, clone the git code repository, and build.

$ git clone https://github.com/micmog/laserbeamFoam.git laserbeamFoam
$ cd solver
$ wclean
$ wmake

The installation can be tested using the tutorial cases described below.

Tutorial cases

To run any of the tutorials in serial mode:

delete any old simulation files, e.g:
$ rm -r 0* 1* 2* 3* 4* 5* 6* 7* 8* 9*
Then:
$ cp -r initial 0
$ blockMesh
$ setFields
$ laserbeamFoam

For parallel deployment, using MPI, following the setFields command:

$ decomposePar
$ mpirun -np 6 laserbeamFoam -parallel >log &

for deployment on 6 cores.

2D Plate Examples

In these cases the penetration rate of an incident laser source is investigated based on the angle of incidence of the laser beam. Two cases are presented where the beam is either perpendicular to the substrate or at 45 degrees to the initial plate normal.

3D Plate Example

In this case the two-dimensional 45 degree example is extended to three dimensions.

2D circular particles Example

In this example a series of circular metallic regions are seeded on top of a planar substrate. The laser heat source traverses along the domain and melts these regions and their topology evolves accordingly.

2D Laser-Powder Bed Fusion Example

In this example a two-dimensional domain is seeded with many small powder particles with a complex size distribution, representative of that observed in the L-PBF manufacturing process. The laser heat source traverses the domain and a portion of these particles melt and re-solidify in the heat source wake.

Algorithm

Initially the solver loads the mesh, reads in fields and boundary conditions, selects the turbulence model (if specified). The main solver loop is then initiated. First, the time step is dynamically modified to ensure numerical stability. Next, the two-phase fluid mixture properties and turbulence quantities are updated. The discretized phase-fraction equation is then solved for a user-defined number of subtime steps (typically 3) using the multidimensional universal limiter with explicit solution solver MULES. This solver is included in the OpenFOAM library, and performs conservative solution of hyperbolic convective transport equations with defined bounds (0 and 1 for α1). Once the updated phase field is obtained, the program enters the pressure–velocity loop, in which p and u are corrected in an alternating fashion. In this loop T is also solved for, such that he buoyancy predictions are correct for the U and p fields. The process of correcting the pressure and velocity fields in sequence is known as pressure implicit with splitting of operators (PISO). In the OpenFOAM environment, PISO is repeated for multiple iterations at each time step. This process is referred to as merged PISO- semi-implicit method for pressure-linked equations (SIMPLE), or the pressure-velocity loop (PIMPLE) process, where SIMPLE is an iterative pressure–velocity solution algorithm. PIMPLE continues for a user specified number of iterations. The main solver loop iterates until program termination. A summary of the simulation algorithm is presented below:

  • laserbeamFoam Simulation Algorithm Summary:
    • Initialize simulation data and mesh
    • WHILE t<t_end DO
      1. Update delta_t for stability
      1. Phase equation sub-cycle
      1. Update interface location for heat source application
      1. Update fluid properties
      1. Ray-Tracing for Heat Source application at the surface
      1. PISO Loop
        1. Form u equation
        1. Energy Transport Loop
          1. Solve T equation
          1. Update fluid fraction field
          1. Re-evaluate source terms due to latent heat
        1. PISO
          1. Obtain and correct face fluxes
          1. Solve p-Poisson equation
          1. Correct u
      1. Write Fields

There are no constraints on how the computational domain is discretised.

License

OpenFoam, and by extension the laserbeamFoam application, is licensed free and open source only under the GNU General Public Licence version 3. One reason for OpenFOAM’s popularity is that its users are granted the freedom to modify and redistribute the software and have a right of continued free use, within the terms of the GPL.

Acknowledgements

Tom Flint and Joe Robson thank the EPSRC for financial support through the associated programme grant LightFORM (EP/R001715/1). Joe Robson further thanks the Royal Academy of Engineering/DSTL for funding through the RAEng/DSTL Chair in Alloys for Extreme Environments. Philip Cardiff and Gowthaman Parivendhan authors gratefully acknowledge financial support from I-Form, funded by Science Foundation Ireland (SFI) Grant Number 16/RC/3872, co-funded under European Regional Development Fund and by I-Form industry partners. The fourth author additionally acknowledges financial support from the Irish Research Council through the Laureate programme, grant number IRCLA/2017/45, and Bekaert, through the Bekaert University Technology Centre (UTC) at University College Dublin (www.ucd.ie/bekaert).

Citing This Work

If you use laserbeamFoam in your work. Please use the following to cite our work:

laserbeamFoam: Laser ray-tracing and thermally induced state transition simulation toolkit TF Flint, JD Robson, G Parivendhan, P Cardiff - SoftwareX, 2023 - https://doi.org/10.1016/j.softx.2022.101299

References

  • Kay Wittig and Petr A Nikrityuk 2012 IOP Conf. Ser.: Mater. Sci. Eng. 27 012054
  • Sen, A., & Davis, S. (1982). Steady thermocapillary flows in two-dimensional slots. Journal of Fluid Mechanics, 121, 163-186. doi:10.1017/S0022112082001840
  • Sabina L. Campanelli, Giuseppe Casalino, Michelangelo Mortello, Andrea Angelastro, Antonio Domenico Ludovico, Microstructural Characteristics and Mechanical Properties of Ti6Al4V Alloy Fiber Laser Welds

visitors

About

Laser Ray Tracing Implementation and fluid flow simulation framework for Additive Manufacturing, laser welding, laser drilling applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.3%
  • C 18.5%
  • Shell 0.2%