Addition of forces and momentum - Week 2
March 25, 2025
This week I have built upon the particle simulation code by adding particle to particle interactions. Now, each particle has its own mass and momentum which impacts how it interacts with the fluid environment, embedded boundary, and now each other as they get simulated. Each particle can now interact differently between each other through this addition that basically acts as a way to simulate different viscosities. Additionally, I have added what I have named a “bounce back multiplier” which determines how far back a particle will bounce after interacting with the boundary. This adds a deeper level of reality to the simulation by allowing the user to manipulate the results more through the addition of parameters.
I also finished laying down the main methods that the PIC code would use to simulate:
1) Shape and grid: while currently very rudimentary, the simulation takes just a simple shape that I have set to just a circle, and it uses a discretized grid that I can determine to create a boundary around the shape for which the particles can interact with
2) Flow field: the flow field serves to simply dictate where the particles would move in the simulation based on their fluid vector, since the current version of the PIC code runs in a 2 dimensional environment, the flow field simply takes u and v input for the fluid vector
3) Point detection: this builds upon a lot of the preexisting point detection code that we have created and will calculate when a particle will interact with the defined shape
4) Vector transform: this takes the point that of contact with the shape and will correctly update a particle’s vector based on the normal and tangential vector of the particle with respect to the shape so that it will correctly bounce and interact with the shape after the collision, the particle should follow the generic flow based on its fluid cell following the particle’s vector transform
5) Visualization: in the end, everything gets displayed in a series of combine frames that create a “movie” that displays the position of the updated particles as they pass through the time steps

Leave a Reply
You must be logged in to post a comment.