I need to post-process a simulation with a free surface, so as to count the particles belonging to this free surface. By free surface particle, I mean a particle with no neighbors on one side : a particle in contact with a boundary should not be counted.
Any idea ?
My final target is to calculate the sum over time of all the free surface particles.
Thanks in advance.