×
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

Reading odb file in Abaqus 6.13 (python)

Reading odb file in Abaqus 6.13 (python)

Reading odb file in Abaqus 6.13 (python)

(OP)
I am trying to run the same scripts in Abaqus 6.13 as I used to run in 6.12. The simulations are OK, but when I try to extract the coordinates of a node set (T_N), it gives only some of them. It gets only about one fourth of the nodes contained in T_N. The same code runs fine in 6.12. Has anyone found a similar problem?

The code:

def myNodesReader(odb):

step = odb.steps['Hit']
timeFrameInitial =step.frames[0]
try:
displacementInitial = timeFrameInitial.fieldOutputs['COORD']
except:
err ="The analysis must include a field output request \
for variable COORD."
print err
sys.exit(1)

try:
targetNodesInitial = odb.rootAssembly.nodeSets['T_N']
targetDisplacementInitial = displacementInitial.getSubset(region=targetNodesInitial)
except:
err ="T_N must be defined"
print err
sys.exit(1)

outFile = open('InitialNodes_TN.txt', 'w')
print("Nodes from Abaqus stored in memory")

format = '%6i, %14.7e, %14.7e, %14.7e\n'
for value in targetDisplacementInitial.values:
outFile.write(format % ((value.nodeLabel,) + tuple(value.data)))
outFile.close()

If I try to get all the nodes instead of only the nodes from the set T_N, it works fine. I have attached a folder with 4 pictures that explain better the difference between both results.

Thank you everyone!!

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