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!

Script for writing node coord list

Status
Not open for further replies.

kribri

Materials
Feb 17, 2009
20
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
 
Replies continue below

Recommended for you

look in the scripting manual
you need to go to odb.rootAssembly.instaces[].nodes -> coordinates, label.
i think that that exact case is in one of the examples.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor