Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch 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
Joined
Feb 17, 2009
Messages
20
Location
NO
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
 
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

Back
Top