Skip to content

Commit 8edc05b

Browse files
authored
Add laser angle (chaos-polymtl#1421)
Description Add the possibility to rotate the laser around one axis when using the gaussian_heat_flux_vof_interface model. Testing One unit test is added to test the distance computation from the laser axis to a given point. This function (LetheGridTools::find_point_line_distance()) is used to compute the position of the quadrature points in the laser referential and the resulting gaussian heat flux. Documentation Two parameters (beam rotation angle and beam rotation axis) were added to the documentation. * Update documentation and format * Update changelog * Update license header * Remove unused includes from unit test * Apply comments from code review * Apply suggestions from code review * Revert stupid mistake * Try to reduce the new test time * WIP to try to fix the test * WIP to try to fix the test again * Increase timeout for the new test
1 parent e31e7dd commit 8edc05b

13 files changed

+1072
-33
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to the Lethe project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6+
## [Master] - 2025-02-20
7+
8+
### Added
9+
10+
- MINOR This PR adds the possibility to rotate the laser around one axis when using the gaussian_heat_flux_vof_interface model. [#1421](https://github.com/chaos-polymtl/lethe/pull/1421)
11+
612
## [Master] - 2025-02-19
713

814
### Fixed

applications_tests/lethe-fluid/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ file(COPY taylorCouette.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
99
file(COPY box.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
1010
file(COPY cylinder_manifold.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
1111
file(COPY lpbf_benchmark_mesh.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
12+
file(COPY lpbf_benchmark_mesh_3D.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
1213
file(COPY cylinder_close_outlet.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
1314
file(COPY jurins-law-2d-mesh-dimensioned.msh DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
1415

@@ -87,5 +88,6 @@ deal_ii_pickup_tests()
8788
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
8889
set_tests_properties(lethe-fluid/mms3d_isothermal_compressible_ns_gls.debug PROPERTIES TIMEOUT 2000)
8990
set_tests_properties(lethe-fluid/gls_droplet_marangoni_effect.debug PROPERTIES TIMEOUT 2000)
91+
set_tests_properties(lethe-fluid/heat_transfer_vof_lpbf_benchmark_rotated_laser.debug PROPERTIES TIMEOUT 2000)
9092

9193
endif()
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Running on 1 MPI rank(s)...
2+
Number of active cells: 4096
3+
Number of degrees of freedom: 19652
4+
Volume of triangulation: 0.216
5+
Number of thermal degrees of freedom: 4913
6+
Number of VOF degrees of freedom: 4913
7+
Temperature statistics on fluid:
8+
Min: 298
9+
Max: 298
10+
Average: 298
11+
Std-Dev: 8.2558e-11
12+
13+
**********************************************************************************
14+
Transient iteration: 1 Time: 8e-08 Time step: 8e-08 CFL: 0.000339023
15+
**********************************************************************************
16+
Temperature statistics on fluid:
17+
Min: 298
18+
Max: 307.231
19+
Average: 298.038
20+
Std-Dev: 0.354979
21+
22+
**********************************************************************************
23+
Transient iteration: 2 Time: 2.12e-07 Time step: 1.32e-07 CFL: 0.000274073
24+
**********************************************************************************
25+
Temperature statistics on fluid:
26+
Min: 298
27+
Max: 322.442
28+
Average: 298.101
29+
Std-Dev: 0.940176
30+
31+
**********************************************************************************
32+
Transient iteration: 3 Time: 4.12e-07 Time step: 2e-07 CFL: 0.000469108
33+
**********************************************************************************
34+
Temperature statistics on fluid:
35+
Min: 298
36+
Max: 345.434
37+
Average: 298.196
38+
Std-Dev: 1.82534
39+
40+
**********************************************************************************
41+
Transient iteration: 4 Time: 6.12e-07 Time step: 2e-07 CFL: 0.000711688
42+
**********************************************************************************
43+
Temperature statistics on fluid:
44+
Min: 298
45+
Max: 368.357
46+
Average: 298.291
47+
Std-Dev: 2.70861
48+
49+
**********************************************************************************
50+
Transient iteration: 5 Time: 8.12e-07 Time step: 2e-07 CFL: 0.000686416
51+
**********************************************************************************
52+
Temperature statistics on fluid:
53+
Min: 298
54+
Max: 391.209
55+
Average: 298.386
56+
Std-Dev: 3.58999

0 commit comments

Comments
 (0)