incremental-fluids
incremental-fluids copied to clipboard
Simple, single-file fluid solvers for learning purposes
I know this is old code , any chance you would fix this or advise me? I know the focus is on heat and its awesome.. Thanks for what you...
double factor = scale*_v->volume(x, y + 1)/_vDensity[_u->idx(x, y + 1)]; should be replaced with double factor = scale*_v->volume(x, y + 1)/_vDensity[_v->idx(x, y + 1)];
setBoundaryCondition() simply sets the velocity of SOLID cells to the velocity of the solid body. However, this does not enforce the correct boundary condition which is: dotprod(velocity,solid_boundary_normal)=0. Solution: setBoundaryCondition() should...