-
-
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 ?
-
- The topic ‘APDL scripting, node selection for informations’ is closed to new replies.
-
5849
-
1906
-
1420
-
1305
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.