Hi Jose,rnrnthe reason for the segmentation fault could be that dynamics have not been defined for every material number.rnrnIn your code the “”defineDynamics”” for material number 2 seems to be missing.rnrnSo I hope defining dynamics to all material numbers in your application solves the problem.rnrnPeter