mapdl.parameters on vector from mapdl.starvget #1754
-
Hi, I would like to get access to some node numbers and stress results that I retrieve from a result file, using the Something like:
UpdateI found out I should be able to do:
but that returns an array of length zero, even though I am sure I have selected nodes >>> mapdl.cmsel(type_='S', name='DUMMY_CMP')
SELECT COMPONENT DUMMY_CMP
>>> mapdl.get(par='TOT_NODES', entity='NODE', item1='COUNT')
25.0
>>> mapdl.get_array('NODE', item1='NLIST')
array([], dtype=float64) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Can I get the RST file? So I can work on the exact same issue? |
Beta Was this translation helpful? Give feedback.
-
Hi @germa89 sorry for the delay. Please find attached the needed files. The problem may be related to the way mapdl works. If I try the same in an CLI-mapdl session using normal APDL, *VWRITE gives unexpected results, i.e. when using C-style formatting it does not output nodenumbers, when using Fortran style formatting it only works using float. From the *VWRITE help: "If you are in the GUI, the *VWRITE command must be contained in an externally prepared file and read into ANSYS (i.e., *USE, /INPUT, etc.)." In batch mode it works fine. Maybe you can use this knowledge to your advantage. Let me know if you want more details on this. |
Beta Was this translation helpful? Give feedback.
Hi @germa89 sorry for the delay. Please find attached the needed files.
getarray_problem.zip
The problem may be related to the way mapdl works. If I try the same in an CLI-mapdl session using normal APDL, *VWRITE gives unexpected results, i.e. when using C-style formatting it does not output nodenumbers, when using Fortran style formatting it only works using float. From the *VWRITE help: "If you are in the GUI, the *VWRITE command must be contained in an externally prepared file and read into ANSYS (i.e., *USE, /INPUT, etc.)." In batch mode it works fine. Maybe you can use this knowledge to your advantage. Let me know if you want more details on this.