Commit 60aa1ec
authored
Sort particles after insertion in CFD-DEM (chaos-polymtl#1604)
Description
This PR fixes a bug that occurred when inserting particles in CFD-DEM. A segmentation fault would occur when using the QCM void fraction method for a simulation run on multiple cores.
Solution
A call to the sort_particles_in_subdomains_and_cells is added to the insert_particles function to ensure the particles were properly sorted directly after their insertion.
Testing
The problematic simulation case was run to ensure the solution fixes the issue. Since the position of insert_particles in the simulation loop was changed, the output files for the collision_log application test and the dynamic_particle_insertion application test were changed. The particles insertion now occurs before the calculation of the void_fraction.1 parent a2616a8 commit 60aa1ec
File tree
3 files changed
+174
-169
lines changed- applications_tests/lethe-fluid-particles
- source/fem-dem
3 files changed
+174
-169
lines changed
0 commit comments