sparkl
sparkl copied to clipboard
feat: Elastic energy
This adds functions to compute the elastic energy density function from a given deformation gradient.
The new code is different from the existing one.
See pos_energy: https://github.com/dimforge/sparkl/blob/43c13a65fef40b7872ec638c866c4b42926f3354/src/dynamics/models/elasticity_corotated_linear.rs#L35-L37
We may want to refactor.
Once we've converged on style for the neo-hookean one, I'll update the corotated code to match.