Explosions smoke and trails on nv35

Hi guys!
Wanna to implement this on vertex and fragment programs (nv35)
Seen Nvidia demos but explosions are non realistic. Could some one give me some links on mathematics of explosions, smokes and trails?
and maybe describe modern techniques how to make is on VP and FP like in Comanche4?
Tnahx in advance
Bye