Abaqus Script Measuring Surface Area/ Volume

1k views Asked by At

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.

1

There are 1 answers

0
Antoine Chalon On

For volume measurement, you may use command like this (tested on Abaqus 6.14-5).

volume_element=session.xyDataListFromField(odb=odb, outputPosition=WHOLE_ELEMENT, variable=(('EVOL', WHOLE_ELEMENT), ), elementSets=('PART-1.SET-1'))

You can then access your volume value using :

volume_element[i].data[1][1]

Hope it will help you!