×
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

How to calculate the average Max Principal Stresses and Strains using a Python script?

How to calculate the average Max Principal Stresses and Strains using a Python script?

How to calculate the average Max Principal Stresses and Strains using a Python script?

(OP)
Hello,
I have a very large model that is comprised of about 278k elements. I want to calculate the average Max Principal Stresses and Strains and the software crashes because of the too much data if I try to do that from the viewport, so I want to use a Python script. I have managed to calculate the stresses and strains S11,S22,S23,E11,E22,E23 etc but I'd like some help altering the python file to also calculate the max principal stresses and strains. I am a noob in python scripting and I am not getting anywhere with the documentation. I have attached the script that I am using. I appreciate your help in advance.

Thanks!

RE: How to calculate the average Max Principal Stresses and Strains using a Python script?

When you just have a Field Output request with S and E you'll get just the tensors into the ODB and the principals are calculated during postprocessing in the Viewer.

So when you want to get these principals into the ODB to read them out of there with a python script, you have to request them as Field Output. The varaibles are SP and EP.

See Abaqus users Manual 4.2.1 Abaqus/Standard output variable identifiers - Principal value output

RE: How to calculate the average Max Principal Stresses and Strains using a Python script?

That's useful when you need the values of the directions/angles of the principals.

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