×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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()

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

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources