Back to Projects

Optimization of a fluid dynamics simulation in 3D | C++ - CUDA

Optimization of a fluid dynamics simulation in 3D | C++ - CUDA

Project Details

This project simulates fluid dynamics using Jos Stam's stable fluid solver in 3D, incorporating dynamic events such as adding density sources and applying forces at specified timesteps. The events are generated using a Python script and read by the C++ simulation. This project was divided into 3 types of optimizations (sequential optimizations, multithreading optimizations with OpenMP and GPU implementation), where we achieved a runtime improvement of 122 times faster than the original version.