How to Plot ETab #1397
-
I find Mapdl.pletab not working from ansys.mapdl.core import launch_mapdl
Mapdl = launch_mapdl()
Mapdl.resume(r"1.db")
Mapdl.post1()
Mapdl.file(r"1","rst")
Mapdl.set(lstep="1", sbstep="", fact="", kimg="", time="", angle="", nset="", order="")
Mapdl.esel(type_="S", item="ELEM", comp="", vmin=1, vmax=10, vinc="", kabs="")
Mapdl.etable(lab="UC1", item="S", comp="X", option="")
for i in range(1,11):
Mapdl.detab(elem=i, lab="UC1", v1=i, v2="", v3="", v4="", v5="", v6="")
result=Mapdl.result
result.plot_nodal_displacement(0, show_edges=True)
Mapdl.pletab(itlab='UC1', avglab='AVG')
print(Mapdl.pretab("UC1"))
#Mapdl.eplot()
Mapdl.exit() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @xiangyue0510 MAPDL aaS runs similar to batch with respect to MAPDL plotting. So we need to redirect plots from the terminal (default) to a file type like png. Then plot. Please see the APDL command /SHOW in the MAPDL help. PNG is a good file type so you could use: Mapdl.show('png')
Mapdl.pletab(itlab='UC1', avglab='AVG')
Mapd.show('close') The file will be named jobnameXX.png where 'jobname' is the MAPDL job name (defaults to 'file') and XX is a counter number. Mike |
Beta Was this translation helpful? Give feedback.
Hi @xiangyue0510 MAPDL aaS runs similar to batch with respect to MAPDL plotting. So we need to redirect plots from the terminal (default) to a file type like png. Then plot. Please see the APDL command /SHOW in the MAPDL help. PNG is a good file type so you could use:
The file will be named jobnameXX.png where 'jobname' is the MAPDL job name (defaults to 'file') and XX is a counter number.
Mike