TAGGED: apdl
-
-
November 2, 2023 at 10:02 am
Yinzhong Hu
SubscriberIn matlab, I use statements like this "s1="E:ANSYS2022ANSYSv221ansysbinwinx64ANSYS221.exe -b -i C:UsersLYDesktoptesttxt write to override experimenttest01 (test).txt -o C:UsersLYDesktoptesttxt to write override experiment"; "to call ansys and execute the command stream I've written.Now I hope that in this way I can save the calculated stress contour diagram, I don't know if this way is possible, I hope you can help me achieve this requirement. I've used a statement like this in the picture in the command flow, but I can't save the stress contour diagram. However, I opened ansys APDL and imported the written command stream (.txt) text, which saved the stress contours
-
November 3, 2023 at 2:09 pm
Mike Rife
Ansys EmployeeHi Yinzhong
In Batch mode (the -b flag on the command line) there is no graphics window to capture. Instead use the /SHOW command to redirect a plot to a file:
/eshape,1,,
/show,png
plnsol,s,eqv
/show
-
November 6, 2023 at 4:19 am
-
-
November 6, 2023 at 3:26 pm
Mike Rife
Ansys EmployeeLooks like the /eshape,1 is missing
-
November 6, 2023 at 3:48 pm
Yinzhong Hu
SubscriberThe command I used was:
/eshape,1,,/show,pngplnsol,s,eqv/show
I used the /eshape,1 command, and now I'm confused -
November 6, 2023 at 4:32 pm
Mike Rife
Ansys EmployeeHi Yinzhong
Sorry, I forgot about the /GRAPHICS command! We need to change the graphics display as well to Power Graphics. So try:
/post1
set,last
/graph,power
/eshape,1
/view,1,1,1,1
eplot
/show,png
plnsol,s,eqv
/show
/rep
finish-
November 7, 2023 at 5:20 am
Yinzhong Hu
SubscriberThank you, this way I open Mecheanical APDL Product Launcher, and then read the file I wrote in advance (.dat) can meet the requirements. But I use matlab invoking ansys (" s1 = "E: ANSYS2022ANSYSv221ansysbinwinx64ANSYS221. Exe - b - C: I UsersLYDesktoptesttxt write to override experimenttest01 (test).txt -o C:UsersLYDesktoptesttxt to write override experiment";) There are still problems. As you can see from the result file, the program will stop at this step (plnsol,s,eqv), and eventually the program will stop running. I wonder if there is something wrong with my ansys setup?
-
-
- You must be logged in to reply to this topic.

Boost 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.
- How to do the frequency response of the nonlinear vibration of a flexible PCB?
- Importing Line and Solid Bodies from SpaceClaim to Mechanical
- how to open SendCommand in Ansys
- problems facing during solution
- Still facing the same issue
- Failed to move file from solver directory to scratch directory: file.rst
- Adaptive Sizing
- Stiffness factor
- Import DAT file
- Import pressure data (coordinates and value) to ansys workbench through excel
-
8808
-
4658
-
3153
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.