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
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
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
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