Skip to content

Reply To: Particle manager


Dear Rookie,

Unfortunately I’m traveling at the moment and can’t check the code sufficiently. However, the beauty of the new particle system is that we now have one particle system for subgrid and resolved particles.

So I suggest you check how gravity is added in examples/particles/dkt2d and you should be able to set it up similarly in your application. There you should find another task called apply_gravity and that the external acceleration is passed to the constructor of the ParticleManager. Therefore all particles must have the same density. If you need different densities, you’ll have to implement another function following the example provided.

Best regards,