General Mechanical

General Mechanical

APDL scripting, node selection for informations

    • Andraes Warth
      Subscriber

      Hello 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 system

      NSEL, 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:

       

    • Andraes Warth
      Subscriber

       

      ok, i got it. Post closed, i have to write after NSEL, S, NODE, ,   <— the node name “NODENUM” …. simple things but waste time 😬

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.