×
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

Script for writing node coord list

Script for writing node coord list

Script for writing node coord list

(OP)
Hi,
I need a script that writes x,y and z coordinates for each node into a .txt file.
I would like it to write it like this:
1, x, y, z
2, x, y, z

Can anyone help me with this?

Krish

RE: Script for writing node coord list

look in the scripting manual
you need to go to odb.rootAssembly.instaces[].nodes[i] -> coordinates, label.
i think that that exact case is in one of the examples.

RE: Script for writing node coord list

Hello Kirish,

Simple example could be found in documentations chapter "9.5.6 Reading field output data". If you want to write only coordinates at initial state then loki3000 gave you very good advice, if you want to write deform state of mesh then you need to take coordinates from initial state and add them to displacements from selected step/frame.

Regards,
akaBarten

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