If you want to calculate the deformation of objects caused by a collision with another object there are some open source projects you might want to check out.
For example
- SOFA Framework
- OpenFOAM (I am still validating it) http://www.wolfdynamics.com/training/movingbodies/OF2021/dynamicmeshes_2021_OF8.pdf
- Kratos Multiphysics https://github.com/KratosMultiphysics/Kratos https://kratosmultiphysics.github.io/Examples/contact_structural_mechanics/use_cases/ironing_with_die_3D/ https://kratosmultiphysics.github.io/Examples/