D | navier-stokes.js | 222 function advect(b, d, d0, u, v, dt) argument 231 var x = i - Wdt0 * u[++pos]; 257 function project(u, v, p, div) argument 268 … div[++currentRow] = h * (u[++nextValue] - u[++prevValue] + v[++nextRow] - v[++previousRow]); 287 u[++currentPos] -= wScale * (p[++nextPos] - p[++prevPos]); 291 set_bnd(1, u); 295 function dens_step(x, x0, u, v, dt) argument 299 advect(0, x, x0, u, v, dt ); 302 function vel_step(u, v, u0, v0, dt) argument 304 addFields(u, u0, dt ); [all …]
|