Python script - obtaining nodes on a surface set
Python script - obtaining nodes on a surface set
(OP)
Hello all,
I am writing a python script and for part of that I would like to obtain the nodes, coordinates and displacements which are within the geometry "surface set" that I have defined on a surface. Is it possible to do this, if so, how would this be done. Thank-you, really appreciate your help and input.
Thanks.
I am writing a python script and for part of that I would like to obtain the nodes, coordinates and displacements which are within the geometry "surface set" that I have defined on a surface. Is it possible to do this, if so, how would this be done. Thank-you, really appreciate your help and input.
Thanks.





RE: Python script - obtaining nodes on a surface set
let's assume pickedSet is the name of your set. Each set object has a member called 'nodes'. You can call on this using:
pickedSet.nodes
This gives you a MeshNodeArray. You can loop through all the MeshNode objects in this array and find the displacement of each of those nodes.
Hope this gets you started.
RE: Python script - obtaining nodes on a surface set