Search code examples
pythonabaqus

Using script to obtain total mass of the part


I am running a automated structural analysis in Abaqus using python and I need to obtain mass of the part automatically. "Tools ==> query ==> mass properties" is basically what I need, but I do not know how to script it, or if it is even possible. I found no evidence either way in the Abaqus help files.

Any suggestions are appreciated.


Solution

  • You can get mass of your part by

    mdb.models['YourModelName'].parts['YourPartName'].getMassProperties()['mass']
    

    This method returns the mass properties of a part. Only beams, trusses, shells, solids, point, nonstructural mass, and rotary inertia elements are supported.