Closed BenJury22 closed 1 month ago
The density function we're using at the moment has some issues so I want to create a colourmap to track the density of every point on the surface (not just at the particles) to better understand these issues.
I fixed the density issue but didn't make the colour map because it would be too memory intensive (and i couldn't figure out how to do it)
Create a function which can continuously track the density at all points in the fluid. This function will be used to find the pressure force exerted on each particle to make particles move from areas of high density to areas of low density.
Resources:
https://www.youtube.com/watch?v=rSKMYc1CQHE Calculating density section, 3:58 - 7:53
https://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics Wiki on Smoothed-Particle Hydrodynamics, the technique used in the video
https://www.sciencedirect.com/science/article/pii/S0045793016301773?via%3Dihub Paper including stuff on boundary conditions
https://chatgpt.com/c/c1334f35-0886-4c34-888a-963863355ddd Chatgpt explaining boundary conditions