##############################################################
## Extract EigenValues from Linear Buckling Analysis
## https://anning003.com/extract-eigenvalues/
##############################################################
stepName = 'Name of Buckling Step'
from odbAccess import*
from abaqusConstants import*
import string
import numpy as np
import os
import re
odb = openOdb(path = jobName+'.odb')
outfile = open(jobName + '.csv', 'w')
outfile.write('EigenValue'+ '\n')
for fm in range(1, len(odb.steps[stepName].frames)):
text = odb.steps[stepName].frames[fm].description
EigenValue = [float(i) for i in re.findall("\\d+\\.\\d+", text)]
outfile.write(str(EigenValue[0]) + '\n')
outfile.close()
odb.close()