The answer to the following question has already been posted as follows: Question previously asked: Abaqus script measure/calculate surface area The answer to it as follows:Answer provided however on implementing it I get following error:
******AttributeError: 'Part' object has no attribute 'getVolume****'"**
Now on going through Abaqus Scripting user guide I saw that getVolume()
and getArea()
are attributes of Part object. Still, the error. Any ideas where am I going wrong?
Edit:The attributes provided exist only for a MdB and not odb hence the Problem.Also, I was not able to get the instances in MdB because I was using an Output database file(from a .inp file and not .cae) and it included no instances in MdB. I hope this helps.If you use a .cae file you would get instances having some value and not empty and then it is easy to compute the volume and area.
For volume measurement, you may use command like this (tested on Abaqus 6.14-5).
You can then access your volume value using :
Hope it will help you!