Patent ID: 8762117

Claim:
A computer implemented method for simulating dynamic fluids comprising a plurality of pseudo particles, the method comprising the steps of: defining, using a computer, a mass density of the pseudo particle masses; defining, using the computer, a mass density constraint such that the mass density on each pseudo particle is constrained to a reference mass density of a real fluid, whereby an instant propagation of density fluctuations through the entire fluid system is enabled; performing, using the computer, constraint stabilization on said mass density constraint using a time stepping function, wherein said time stepping function is arranged to conserve physical symmetries globally and is stable for violations of said mass density constraint; solving, using the computer, a linear system of equations for said mass density constraint in order to calculate density constraint forces; calculating, using the computer, new time discrete pseudo particle velocities from previous pseudo particle velocities with addition of velocity increments calculated from said density constraint forces; and calculating, using the computer, new time discrete pseudo particle positions from the previous pseudo particle positions with additions of position increments calculated from said new pseudo particle velocities.