- The project focuses on the development of a real-time fluid dynamics simulation using the Navier-Stokes equations. By implementing this algorithm, we aim to accurately simulate the intricate flow patterns of liquids and gases in real-time, offering a powerful tool for applications ranging from gaming and animation to scientific visualization and engineering analysis.
- We have implemented the algorithm in Javascript using the WebGL library.
- Advection: This step moves fluid properties (such as velocity and dye) along the velocity field. It simulates how particles in the fluid would be carried by the current flow.
- Diffusion: The diffusion term quantifies a fluid's resistance to flow; for example, molasses flows more slowly than alcohol due to its higher viscosity.
- Pressure: This step ensures the velocity field remains divergence-free, which is essential for simulating incompressible fluids like water. It helps maintain constant fluid density throughout the simulation.
- Vorticity Confinement: This helps preserve small-scale fluid structures and counteracts numerical dissipation.
- External Forces: This represents an acceleration from external forces, either local (e.g. a fan blowing air) or body forces (e.g. gravity).
- The algorithm balances physical accuracy and computational efficiency without requiring extremely fine grids or tiny time steps.
- Entertainment/Games: It is suitable for real-time applications like games to produce visually convincing fluid-like effects, such as swirling smoke or flowing water.
- Healthcare: It can be used for blood flow analysis and drug delivery simulation in healthcare animations.
- Weather: It can be used in climate modeling and weather forecasting animations.
You can experience the live demo here
- Parth Rohilla
- Soham Khade
- Nishthavan Dahiya
- Darsh Patel
- Rahul Aggarwal
