TAGGED: apdl, export, image, image-resolution, mechanical-apdl
-
-
September 30, 2021 at 12:36 pmmxgreifSubscriber
Hi,
I am trying to export images in APDL.
So far I found two solutions to do so:
Using the /IMAGE command:
This way I can specify the path where the image is stored but not the resolution (/GFILE, 2400 does not seem to have an impact)
Using /SHOW,PNG and plotting to png format:
This way I can specify the resolution by /GFILE but I can't change the save path.
Is there a way to achieve both?
October 1, 2021 at 9:37 ammxgreifSubscriberI think I found a solution to my problem:
The /SHOW command has an option to specify a filename.
So the solution is something like
/SHOW,FILENAME,PNG
October 3, 2021 at 3:12 pmmxgreifSubscriberMy solution did not actually work.
The png files produced by /SHOW,FILENAME,PNG seem to be corrupted somehow.
So if anybody has another solution please share it with me.
January 4, 2022 at 10:28 pmmrifeAnsys EmployeeCan you show us all of the commands used to generate the PNG file. Often reverting back to the terminal and redoing the plot will help here; or the Close option in /SHOW (purging the graphics buffer). So let's say you wanted an element plot:
EPLOT
/SHOW,MyElementPlot,png
eplot
/show,close
/show,term
/rep
If doing the above can you then open MeElementPlot.png ?
mike
October 17, 2022 at 7:07 amvignesh.sSubscriberThe complete set of commands are mandatory to plot the images. The same can be used in batch runs too..
- For plotting elements and models
- For plotting results (nodal solution plots)
For plotting elements and model:
/SHOW,PNG,,0
PNGR,COMP,1,-1
PNGR,ORIENT,HORIZ
PNGR,COLOR,2
PNGR,TMOD,1
/GFILE,800,
!*
/CMAP,_TEMPCMAP_,CMP,,SAVE
/RGB,INDEX,100,100,100,0
/RGB,INDEX,0,0,0,15
/REPLOT
/CMAP,_TEMPCMAP_,CMP
/DELETE,_TEMPCMAP_,CMP
/SHOW,CLOSE
/DEVICE,VECTOR,0
!*For Plotting nodal results:
/RGB,INDEX,100,100,100, 0
/RGB,INDEX, 80, 80, 80,13
/RGB,INDEX, 60, 60, 60,14
/RGB,INDEX, 0, 0, 0,15
/SHOW,PNG,,0
PNGR,COMP,1,-1
PNGR,ORIENT,HORIZ
PNGR,COLOR,2
PNGR,TMOD,1
/GFILE,800,
!*
/REPLOT
/SHOW,CLOSE
/DEVICE,VECTOR,0
!*Have a Great day????
Viewing 4 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- How to move duplicated ansys project position in workbench GUI
- unable to open files in ansys
- Download MATLAB toolbox AnsysAAS
- An unknown error with memory occurred during solution.
- Error: Unable to open some designs in this project – Corrupted project files
- Desginpoints in Ansys 18.2 workbench got stuck at the stage of updating model in static structural
- ANSYS Multi field 2-way FSI data coupling issue
- Ansys solving system coupling problems on a remote cluster does not provide constant results.
- Material constant Damping calculation
- How to export high resolution images in APDL
Top Contributors-
7272
-
4248
-
2899
-
1374
-
1322
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-