-
-
January 19, 2023 at 10:09 am
Andraes Warth
SubscriberHello everyone,
i'm new in the APDL scripting.
I only need the stress tensor of the node with the maximum equivalent stress, as txt output.This is the APDL-script:
/POST1 !First postprocessing step
/com, ########### Postprocessing #########
/com, ########### Maximum equivalent stress - global cartesian #########
/SHOW,PNG !Show plot. Required to show plot in workbench
SET,LAST !Specify last time step for post-processing/output,Max_EQV_and_Tensor,txt !Open a text file titled Max_EQV_and_Tensor
/com, ########### Postprocessing #########
/com, ########### Maximum equivalent stress - global cartesian #########
PLNSOL,S,EQV !Plot nodal solution for equivalent stress
*GET,NODENUM,COMMON,,CPOST1,,INT,108 !Get node number of node with the max value in previous
/com, #### stress tensor - solution cartesian ####
RSYS,solu !Activates a coordinate system for printout, Solution coordinate systemNSEL, S, NODE, , <----- there is the problem. How can i select the node of the maximum equivalent stress or the node of the last *GET command?
prnsol, s, comp !Prints nodal solution result, components of the Stress tensor
/output,term
Now, the post-solver writes every node in the txt-file, but i only want that one node with the above written information.
Thanks for help. I hope you can help me.
Here is the outputscript:
-
January 19, 2023 at 10:21 am
Andraes Warth
Subscriberok, i got it. Post closed, i have to write after NSEL, S, NODE, , <— the node name “NODENUM” …. simple things but waste time 😬
-
- You must be logged in to reply to this topic.

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.
- Saving & sharing of Working project files in .wbpz format
- An Unknown error occurred during solution. Check the Solver Output…..
- Understanding Force Convergence Solution Output
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
-
2524
-
2066
-
1279
-
1096
-
457
© 2023 Copyright ANSYS, Inc. All rights reserved.