matthias-research / pages

My web page containing all the demos from my youtube channel "Ten Minute Physics" www.youtube.com/c/TenMinutePhysics
655 stars 136 forks source link

About the variables in Fluid class in the tutorial 17 #32

Open tungts1101 opened 1 year ago

tungts1101 commented 1 year ago

I am following your tutorial about writing an Eulerian fluid simulation. May I ask about the meaning of h, p, s, and m in the constructor of the Fluid class?

griffinschreiber commented 9 months ago

A little belated, but I believe that h is the grid spacing, p is the pressure in a cell, s is a flag that is 1 if cell is solid, and 0 otherwise, and I don't know what m is.

BitPusher16 commented 7 months ago

He is using m for smoke.