I wrote a super simple flame simulation a long time ago as a toy in C after reading an article somewhere.
You just set each pixel’s brightness to be the average brightness of the immediately adjacent pixels. Calculate from bottom to top.
Add a few “hot” pixels moving back and forth along the bottom and boom, instant fire.
Looks very cool for a tiny amount of code and no calculus. :)