> in case someone wants to get nerdsniped https://github.com/kamilazdybal/fluid-toolbox
Gases work roughly the same way (until they break the ideal gas law and don't). The ratio of static and dynamic pressures between two chambers can drive nozzle flow [1]. Add in some compression and combustion and you can simulate anything from refrigerators to engines.
[1] https://github.com/glouw/ensim4/blob/master/src/chamber_s.h#...