I wrote this code with SFML library in C++. I tried to make smoke simulation. If you want to run your computer download the files, open x64, Debug and run the exe file.
You can watch how it works: https://youtu.be/wW0GMuNqeJ4
Reference: https://www.youtube.com/watch?v=UcdigVaIYAk