-
Hi All, i have a python script to read 2d stress tensor of a node which is a named selection geometry. However, when i try to read this using the mapdl.cmsel option, it says the geometry doesn´t exist, does anyone know why i get this error? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hi @viks4mech Well nodes are not geometry. And Named Selection is a WB Mechanical term; Named Selections are converted to element or node components for the MAPDL input file as Mechanical does not write out the (CAD) geometry to the input file. Maybe double check the components by using |
Beta Was this translation helpful? Give feedback.
-
@viks4mech can you post sample code with a test model? Also maybe a screen shot of the error. |
Beta Was this translation helpful? Give feedback.
-
Hi @viks4mech & @germa89 nodelist = mapdl.get(0, param_name='NODE', entity='', item1='NLIST') is an error. Instead of getting the list why not use: nodelist = mapdl.mesh.nnum Also what is "get_param"? I'm not familiar with that PyMAPDL command (maybe in development?). Why not just get the length of the nodelist? nnodes = len(nodelist) Mike |
Beta Was this translation helpful? Give feedback.
Hi @viks4mech Well nodes are not geometry. And Named Selection is a WB Mechanical term; Named Selections are converted to element or node components for the MAPDL input file as Mechanical does not write out the (CAD) geometry to the input file.
Maybe double check the components by using
print(mapdl.cmlist())