×
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

Acces to job frames in Python

Acces to job frames in Python

Acces to job frames in Python

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

RE: Acces to job frames in Python

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.

RE: Acces to job frames in Python

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

RE: Acces to job frames in Python

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
www.OmranAfzar.com

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