Hello,
Based on the Variable Cohesion API tutorial, I have implemented a cohesion model that runs on CUDA (GPU), and cohesive particle clusters can be observed during the simulation.
My current goal is to calculate, at each time step, the total volume/equivalent diameter of a cohesion-based particle cluster, preferably directly on the GPU (in a .cu file), and store it as a new custom property.
I understand that the coordination number of each particle can be obtained through the API; however, I am unsure how to efficiently access the IDs of particles that are cohesively connected to a given particle. A straightforward traversal or neighbor-walking approach does not seem feasible on the GPU.
My understanding is that this may require combining the Contact Model API and the Body Force API to identify clusters and then accumulate particle volumes.
Are there any recommended strategies or practices, preferably GPU-based, to achieve this?
Thank you.