Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request implements a new heat source model for the nLight AFX-1000 laser system [1, 2] which produces a combined Gaussian spot and ring power distribution. A mathematical representation for this beam profile was developed by J. Coleman and B. Stump and integrated into the AdditiveFOAM
heatSourceModel
class. The combination of profiles results in two separate normalization factors, which is not strictly compatible with the existingheatSourceModel
implementation. To achieve correct integration, thenLight::V0()
function returns a unit value and the volume normalization is moved into thenLight::weight()
function. To maintain compatibility with the transient heat source depth capability and minimize calls toFoam::tgamma
, the normalization factors for the spotAs_
and ringAr_
calculated once in thenLight
constructor, omitting the beam depth. Depth information is included at the end of the weight calculation, at which point it is taken directly from the dynamically updateddimensions_
variable.The residual values of the heat source integration were monitored to ensure correct implementation of the model. With the mesh size and sub-grid integration points specified in the included tutorial, a residual greater than 0.96 is achieved, indicating satisfactory results. Representative temperature and power profiles for this heat source are shown below.
[1] https://www.nlight.net/programmable-rackmount-single-mode-fiber-lasers
[2] Grünewald, J., Gehringer, F., Schmöller, M., & Wudy, K. (2021). Influence of Ring-Shaped Beam Profiles on Process Stability and Productivity in Laser-Based Powder Bed Fusion of AISI 316L. Metals, 11(12), 1989. https://doi.org/10.3390/met11121989