Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Acces to job frames in Python

Status
Not open for further replies.

76185

Industrial
Nov 7, 2008
16
Dear Abaqus users,

I am writting a Python subroutine which should do something for each computed frame. But how can I access to this frames in Python? Or how can I run a job frame by frame?

Example:

p=mdb.jobs['JobName']
p.submit()

"I would like to compute the next lines for the first frame."

node=mdb.model[name].rootAssembly.node[name]

If stress[node] >3000MPa:
Compute the next frame (Restart the job at the last step and last increment and go back to the first line of the subroutine.)

Else:
Run the next part of the subroutine

......(the next part)


I don't know how to do that...Any idea?

Thx

Douglas
 
Replies continue below

Recommended for you

Abaqus Scripting Manual has detailed examples on how to access the results in the .odb files.

You need to use an odb object not mdb. mdb is just to build the model.
 
But I my case, if the stress in some elements is high enough, I want to change the geometry of my model...So I need to update the mdp no?
 
you can use odb.steps['Step-1'].frames[1].fieldOutputs['U'].values.data[1]
To access to the Stape-1/Frame1/Y displacement
To change the model you need to use mdb instead of odb

Good Luck

Mohammad Shahbazi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor