kotsoft / particle_based_viscoelastic_fluid

Implementation of Particle-based Viscoelastic Fluid Simulation
https://kotsoft.github.io/particle_based_viscoelastic_fluid/
Other
115 stars 8 forks source link

Code cleanup #5

Open kotsoft opened 3 months ago

kotsoft commented 3 months ago

This was my first time using a hashing function for a non-rectangular, sparse domain. I'm not super satisfied with all the extra checks for hash collisions and I have some new ideas to make the code a bit cleaner. Can also probably improve the functions so the double density relaxation step is not some giant monolith of code.