plot deformed/displaced shape #1405
-
Dear All, I have difficulties trying to generate displaced shape in pyMAPDL, while I can easily do so via PLDISP, 2 command in APDL, trying to apply it in pyMAPDL in jupyter notebook will generate errors like the following. Could you show me the correct way of generating such display? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Might not be exactly what you want, but you could try:
|
Beta Was this translation helpful? Give feedback.
-
Hi @hawkoli1987 in the get_Ue function there is a CMSEL that selects a sub-set of nodes. That state is carried over so you just need to select all nodes prior to scaling them with the UPCOORD command. I used a esize=2 and ran just the single case with the mesh refinement reactivated, then used this: mapdl.post1()
mapdl.allsel()
mapdl.set('last')
mapdl.upcoord(1)
mapdl.eplot(cpos='xy', background='black', color='blue',edge_color='white')
mapdl.upcoord(-1) To produce this PyMAPDL eplot (well, I manually zoomed/panned to see the lower right corner!): Mike |
Beta Was this translation helpful? Give feedback.
Hi @hawkoli1987 in the get_Ue function there is a CMSEL that selects a sub-set of nodes. That state is carried over so you just need to select all nodes prior to scaling them with the UPCOORD command. I used a esize=2 and ran just the single case with the mesh refinement reactivated, then used this:
To produce this PyMAPDL eplot (well, I manually zoomed/panned to see the lower right corner!):
Mike