Page MenuHome

Stability bug fixes for SPH particle physics
Closed, ArchivedPublicPATCH

Description

This patch fixes a number of bugs in the SPH simulation code:

Basic fixes:
- Using correct frame to update particle system tree for SPH simulation (i.e. psys_update_particle_bvhtree(psys, cfra)).
- Increased SPH neighbour count to 512 - this greatly reduces BVH tree search bias, and makes simulations more symmetrical.

Adaptive time step improvements:
- Fix for relative velocities based on previous state (fixes fast-moving particle clusters).
- Only reporting on element size once per time step. Prevents incorrect Courant number from being calculated when using multiple-step integration.

Refactor: Moved per-particle courant calculation into a separate function. This cleans up the code, and makes it possible to reuse it for other solvers in future.

Test files: use the files that were attached to the original adaptive time step patch.
http://projects.blender.org/tracker/?group_id=9&atid=127&func=detail&aid=27442

Event Timeline

By making a contribution to this project, I certify that the contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file.

Signed-off-by: Alex Fraser <adfries@vpac.org> on behalf of VPAC Ltd.

Note: I can commit this myself after review :)

Committed, r43068.

(Approved by Janne on IRC). Closing.

Alex Fraser (z0r) changed the task status from Unknown Status to Unknown Status.Jan 2 2012, 12:48 PM