Skip to content
Discussion options

You must be logged in to vote

Hi,

regarding accessing the matrices: it is now possible to export the global system matrix (https://github.com/sofa-framework/sofa/blob/master/applications/plugins/SofaMatrix/examples/GlobalSystemMatrixExporter.scn). Both mass and stiffness matrices are merged into a single matrix. If you really need to access both matrices distinctly, you'll have to wait. This is in the roadmap and planned for next release.

Regarding accessing the energy: masses have the function getKineticEnergy and force fields have the function getPotentialEnergy. I don't guarantee that all force fields and masses implement correctly those two functions. You can display a graph of the evolution of each energy in a Node:

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@AndyRay1998
Comment options

Answer selected by hugtalbot
Comment options

You must be logged in to vote
1 reply
@alxbilger
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants