I am working on composite material using Abaqus and I want to know if there is a possibility to extract the material orientation for each element using Python script ??
Yes, I tried to find it in the manual, but I just found how I can extract the stress, displacements for each node.... no material orientation for each element
You can access the "localCoordSystem" variable to extract the material orientation for each element (refer to the bottom of this thread: http://www.eng-tips.com/viewthread.cfm?qid=207919)
I'm wondering have you solved this problem to export the deformed material orientation of each element.
I've tried the method above but it doesn't work even though I assign the material orientation for different element...I just get nones for all the integrationPoint , localCoordSystem and elementLabel.
I provide my python command as below and a figure and an .inp as attached.
"""Write Material Orientation to the file "output_fieldvalues.txt" """
fileName='C:/temp/PythonScripting/Job-1.odb'
outputDatabase = session.openOdb(name= fileName )
myFrame=outputDatabase.steps['Step-1'].frames[17]
field=myFrame.fieldOutputs['U']
values=field.values
OutputFile = open('output_fieldvalues.txt','w')
for iValue in values:
OutputFile.write("Element={}, IP={}, Local coordinate system={}.\n".format(iValue.elementLabel, iValue.integrationPoint, iValue.localCoordSystem))
OutputFile.write('Done')
OutputFile.close()
Hope someone can help.
The output I get from typing "print values[1]" is the following