Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Misesmax field output nodeset problem

Status
Not open for further replies.

JCSchottler

Mechanical
Jun 28, 2011
1
I've been working on this for a couple of days now and can't seem to wrap my head around this code. I have followed the scripting user manual and a couple other problems on this forum, but I have failed.

I am trying to print the misesmax value of 4 different node sets. I requested misesmaxas the field output over the whole model and assigned 4 different node sets to record the surface and bearing stresses of the contacting instances. I am able to print the misesmax of the whole model, but not the nodesets. I feel like I am close, but I can't get the nodesets to work. The code I have below is very basic for 1 nodeset, but it doesn't seem to be taking out any values.

odb = openOdb(path='C:/Users/Schottler_2/Documents/Abaqus/FinalWork/Abaqus Files part 2/Run5.odb')
lastFrame = odb.steps['Bend'].frames[-1]
endSet=odb.rootAssembly.instances['SCREWRUN5-1'].nodeSets['SCREWSURFACE']
fieldValues=lastFrame.fieldOutputs['MISESMAX'].getSubset(region=endSet)
fieldValues2=fieldValues.getSubset(region=endSet).values
max = 0
for v in fieldValues2:
if(v.data>max):
max=v.data()

values = [max]
print values

It is just printing 0, not the misesmax of the set.

Any help is appreciated!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor