Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

A loop in Abaqus python script in odb file.... to get the data of all the frames at a time

Status
Not open for further replies.

owais ahmed

Student
Nov 10, 2021
10
Hello Everyone,

I created the abaqus python script to get the stresses data in a particular frame but i would like to obtained all the data of stresses for All frames at a time by using loops ....Can someone help me how could i modify my abaqus python script.... code attached


db = session.odbs['file name']
session.writeFieldReport(
fileName=',
append=ON, sortItem='Node Label', odb=odb, step=0, frame=12,
outputPosition=NODAL, variable=(('COORD', NODAL, ((COMPONENT, 'COOR1'),
(COMPONENT, 'COOR2'), (COMPONENT, 'COOR3'), )), ('S',
INTEGRATION_POINT, ((INVARIANT, 'Mises'), (COMPONENT, 'S11'), (
COMPONENT, 'S22'), (COMPONENT, 'S33'), (COMPONENT, 'S12'), (COMPONENT,
'S13'), (COMPONENT, 'S23'), )), ), stepFrame=SPECIFY )

 
Replies continue below

Recommended for you

In Abaqus scripting, you can use "for" loops like you normally would in Python codes. This way it's possible to loop through elements, nodes or frames like in this case. The use of loops in Abaqus postprocessing scripts is presented in the article "Automate boring postprocessing in Abaqus using python scripting" on Simuleon blog, that might be a good starting point for you (apart from the documentation of course).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor