Skip to content

Conversation

@leobois67
Copy link

Illustrates how to leverage JAX autodiff to implement the methods 'addDForce()' and 'addKToMatrix()' automatically.
This example shows a set of particles attached to the origin with a simple spring.

I included a few options for the scene, that might be unnecessary:

  • time integration and linear solver, to illustrate that not all combinations require all methods to be implemented
  • number of particles, to show how computational cost and memory requirement scale (important here since the jacobian computed by JAX is dense)
  • SOFA built-in alternative for comparison

@leobois67
Copy link
Author

Note: it requires JAX to run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant