Abstract
Some implementations relate to methods, systems, and computer-readable media to render a graphical simulation of a fluid in a physical region in a virtual experience. In some implementations, the method includes dividing the physical region into cells, providing an initial state for each cell, calculating a fluid state for each cell at each of a plurality of consecutive time steps by determining pre-existing information for at least one cell to use when updating the fluid state of that cell, and recalculating the fluid state for each cell based on a previous fluid state of the cell and any external force affecting the cell, via Navier-Stokes equations. The recalculating uses the pre-existing information for each cell. For example, the recalculating achieves a low computational cost by using the pre-existing information to avoid operations otherwise performed during the recalculating. Once the calculation is complete, the graphical simulation is rendered.