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!

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

Status
Not open for further replies.

artemoila

Bioengineer
May 18, 2015
2
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!
 
 http://files.engineering.com/getfile.aspx?folder=247e53be-23ba-4db8-b777-53a1ed0b3d09&file=avgAllElems2.txt
Replies continue below

Recommended for you

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
 
That's useful when you need the values of the directions/angles of the principals.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor