I am trying t write a function which will summarize mass and volume of each mesh group using mass_prop_create_detailed(). The function runs first loop but the next prints out following error. Could you help to debug the function? Is there another way to calculate mass from elements group?
You need to include a call to mass_prop.cleanup_detailed before the next call to mass_prop_create_detailed. In your code, add the following line as the last entry in your loop: