Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Extract stress/strain of each section points of shell elements using python 1

Status
Not open for further replies.

VishnuVP

Automotive
May 22, 2017
5
def get_field(odb, step, frame, field, element):
index = 0
dict_data = {}
if field == 'E':
function = get_strain
elif field == 'S':
function = get_stress
for f in odb.steps[step].frames[frame].fieldOutputs[field].getSubset(region=element).values:
data = function(f.data)
dict_data[index] = data
index += 1
return dict_data

How can i include the section points
 
Replies continue below

Recommended for you

There is an additional parameter in getSubset():
position=INTEGRATION_POINT

An example is shown in the Scripting Users Manual 9.5 Reading from an output database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor