Highlighting selected nodes over mesh
Hi,
I am new to Ansys and PyMAPDL. I am tyring to figure out a way to highlight selected nodes over the mesh. For example,
rad1 = 17 rad2 = 20 AESIZE = 5 mapdl.clear() mapdl.prep7() mapdl.pcirc(rad1, rad2, theta1 = 0, theta2 = 90) mapdl.cm("Pipe_Profile","AREA") mapdl.aesize("ALL", AESIZE) mapdl.mshape(0, "2D") # mesh the area mapdl.mshkey(1) mapdl.cmsel("S", "Pipe_Profile", "AREA") mapdl.amesh("ALL") mapdl.nsel("S", "LOC", "X", 0) # Select nodes on top left edge mapdl.nplot(1) # This plots only the nodes, but I want the nodes to be highlighted on the mesh created
Any ideas how this could be done?
Comments
-
Use gplot to plot nodes and elements:
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v241/en/ans_cmd/Hlp_C_GPLOT.html0 -
Thanks, Landon. The reference manual does not specify the arguments of /gplot.What should be the arguments of gplot?
0 -
Hi @Sherlock007 and @Landon Mitchell Kanner
Sherlock007 the MAPDL Help page for GPLOT has links to other commands that are used to set up the display. However we should really request this to be implemented natively in PyMAPDL plotting (PyVista). Can you please request this via an Issue on the PyMAPDL GitHub site here.The current native PyMAPDL plotting of elements selects all nodes of the elements. But it does has a 'show node numbering'. It would be a nice enhancement to show the numbering of just the selected nodes.
Mike
0