Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Abaqus Python get Stresses at each nodes and save in text file

Status
Not open for further replies.

Jeje3103

New member
Joined
Oct 22, 2015
Messages
8
Location
FR
I m trying to extract stresses at each nodes or each integration points. I can get stresses but i have nothing to know where it is situated the values. How can i add the node number or node coordinate? Below it is my code to extract just all stresses components

from odbAccess import *
import numpy as np

odb = openOdb(path='C:/Users/Solal/Job-1.odb')

lastFrame = odb.steps['Step-1'].frames[-1]


location = lastFrame.fieldOutputs['COORD']
stress=lastFrame.fieldOutputs['S']
sortie = open('Resu_PE_maillage.txt', 'w')
sortie.write('\t S11 \t\t S22 \t\t S33 \t\t S12 \t\t S23 \t\t S13 \n')


for S in stress.values:
sortie.write('%.10e\t\t %.10e\t\t %.10e\t\t %.10e\t\t %.10e\t\t %.10e\n' % (S.data[0], S.data[1], S.data[2], S.data[3], S.data[4], S.data[5]))

sortie.close()
 
Just ask for more output in the for-loop.
S.elementLabel
S.integrationPoint


And with the COORD variable you could get the coordinates of all integration points.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top