How to get volume of element set in Abaqus ODB using Python API?
<p>I'm using Abaqus 6.14-1.</p>

<p>I would like to calculate the volume of a set of elements within a part from a *.odb file.</p>

<p>I tried the following,</p>

<pre><code># Extract element volumes from ODB
odbName = 'Ouput.odb'
odb = session.openOdb(odbName)
lastFrame = odb.steps['Step-1'].frames[-1]
volumeField = lastFrame.fieldOutputs['EVOL']
nucleus = odb.rootAssembly.instances['BOX-1'].elementSets['SPHERE']
volumeSet = volumeField.getSubset(region=nucleus, elementType='C3D10')
volumeFieldValues = volumeSet.values

volume = 0
for vol in volumeFieldValues:
    volume += vol

print volume
session.odbs[odbName].close()
</code></pre>

<p>But it turns out that 'EVOL' is no longer a valid field output for 6.14.</p>

<p>I'm surprised that there isn't an obvious method to do this. I ran through the procedure manually &amp; had a look at the *'rpy file to see what method Abaqus used but it wasn't listed, only a message telling me what I had done.</p>

<p>Any suggestions?</p>