Inspiration
We were originally inspired by the Phet labs we had always used in science classes. We found that they tended to be very linear, single-purpose simulations. We wanted to create a tool that students could use to explore the world of Fluid Dynamics, in a way that was very interactive and engaging.
What it does
Our tool allows students to experiment with an interactive fluids simulation, experiencing Bernoulli's principles in real-time.
How we built it
We used C++ and Raylib, storing a collection of Tanks with Holes between them. Every frame, we iterate over the tanks, using Bernoulli's and Torricelli's Law's to move the fluid between them to balance pressure and entropy. We then used Raylib to create an interactive GUI that can be used to build and modify our system.
Challenges we ran into
We faced some challenges when researching some of the Fluid Dynamics topics, as we couldn't find any documentation of similar systems of tanks as ours. We eventually found a combination of fluid dynamics equations that we could use to approximate our system.
Accomplishments that we're proud of
We were especially proud of how our project turned out once we started coding it, as after we got through a lot of the math, implementing the systems in code went fairly smoothly and quickly. We also were really happy with how the GUI turned out, it became very polished.
What we learned
We learned a lot to do with fluid dynamics and researching scientific equations.
What's next for Fluid Sim
Next up for Fluid Sim would be to implement more equations to cover some of the edge cases, and adding more features such as fluid spouts and more interactivity in the simulation.
Built With
- cpp
- raylib
Log in or sign up for Devpost to join the conversation.