070730 / Computational Fluid Dynamics Code

previous | next

Atom is all about interaction, and a big part of this is a CFD (computational fluid dynamics) engine which makes the Atom world interactive. Recently I've been doing a full rewrite and optimization of the Atom Game Engine, offloading computation to the GPU.

Below are some shots from my work on the new physics/CFD engine going into the game, showing 65,536 cells which are being run through the simulation in real-time. The engine can simulate many different material types from solid, semi-solid jello, liquid, gas, and plasma. Cell physical properties can also dynamically change based on velocity. The little gray box in the lower left shows the direction vectors.