摘要 |
An apparatus for fluid simulation according to an embodiment of the present invention comprises: a memory for storing instructions for simulating movement of a fluid; and a processor for simulating the movement of a fluid according to the instructions and generating a rendering image. The instructions comprise instructions for performing the steps of: receiving, as an input, the velocity, position and mass of a liquid particle; setting a density for a gas of each cell; updating the velocity of the liquid particle according to the mass of the gas according to the density of the gas; projecting the liquid particle by assuming that the gas does not exist; and projecting the gas by assuming that the liquid particle is fixed. |