×
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

Misesmax field output nodeset problem

Misesmax field output nodeset problem

Misesmax field output nodeset problem

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

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