TAGGED: ansys-apdl, command-snippet, full-harmonic
-
-
May 8, 2023 at 3:39 pm
xie
SubscriberHello,
I am trying to a do a displacement vs frequency (I know this is doable in GUI, but I want to try the usablility of APDL-Snippet) plot in workbench harmonic responce with APDL-Snippet.
This is the snippet I am using. It seems that there is no erro after runing the snippet. However I don't get any plots by this snippet. Is there anything wrong with this script?
regards
Tianxiao
-
May 9, 2023 at 6:57 am
Erik Kostson
Ansys EmployeeÂ
Â
Â
Â
Hi
The PLVAR and NSOL are /post26 commands (not post1 like the apdl snippet we get in Mech.) and we also need to create an image (/show command) for each plot in order to view the result.
As an example for say node nr. 1608:
Â
Â
Â
Â
/POST26
NSOL,10,1608,U,Z
/SHOW,PNG
PLVAR,10
/SHOW,CLOSE
/POST1Â
Â
Â
All the best
ErikÂ
Â
Â
-
May 9, 2023 at 10:44 am
-
May 9, 2023 at 10:54 am
Erik Kostson
Ansys EmployeeHi
The PLVAR and NSOL are /post26 commands (not post1 like the apdl snippet we get in Mech.).
So you need to be in post26 see below (pay attention to /psot26 and then back to /post1)
/POST26
NSOL,10,1608,U,Z
/SHOW,PNG
PLVAR,10
/SHOW,CLOSE
/POST1 -
May 9, 2023 at 11:10 am
-
May 9, 2023 at 11:25 am
Erik Kostson
Ansys EmployeeÂ
Hi
The commands I sent work and produce an image of the plvar result – Clear generated data and solve again. If there is an error again ir is related to something else.
See the solution information object (or solve.out file in project file directory) as it says in the error above , and search for errors in that file and see what it is.
All the best
Erik
Â
-
May 9, 2023 at 11:25 am
xie
SubscriberHi Erik,
It works now. one needs to recalculate the case again, then I got the figure.
thank you so much
regards
tianxiao
-
May 9, 2023 at 11:27 am
Erik Kostson
Ansys EmployeeHappy to help. All the best
Erik
-
- The topic ‘workbench soltion APDL-Snippet’ is closed to new replies.
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- How to model a bimodular material in Mechanical
- Meaning of the error
- Simulate a fan on the end of shaft
- Real Life Example of a non-symmetric eigenvalue problem
- Nonlinear load cases combinations
- How can the results of Pressures and Motions for all elements be obtained?
-
4007
-
1461
-
1287
-
1124
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.