General Mechanical

General Mechanical

Read out APDL

    • Patrik
      Subscriber

      Hello all, 

      I have the following APDL command 

      *get,lsnum,active,,solu,ncmls          ! lsnum = LAST CALCULATED LOAD STEP
      *if,lsnum,gt,0,then                           ! IF A RESULT HAS BEEN CALCULATED, THEN ...

      how can i find out what is stored in lsnum to determine if the if loop is entered or not?

       

       

      I am using ANSYS WORKBENCH 2022 R1 ( student version )

      thank you in advance

    • Ankush Choudhary
      Subscriber

      Hi Patrik,

      You can get this information in the solver output file.

      Thanks,

      Ankush

    • Patrik
      Subscriber

      do i understand it correctly?

      this is in my solve.out file 

      *GET  LSNUM     FROM  ACTI  ITEM=SOLU NCML  VALUE=  0.00000000    

       *IF  lsnum                             ( =   0.00000     )  GT  
            0                                 ( =   0.00000     )  THEN    

       *ENDIF


      LSNUM has the value 0 (LSNUM=0) therefore the if command is bypassed?

       

      is there something like a debug mode where i can see why LSNUM gets the value 0.
      or how do you proceed with such problems?

    • Ankush Choudhary
      Subscriber

      Hi Patrik,

      I can't say much without seeing the model, and we are not allowed to see the model here. However, I am sharing a link below that will help you with this command. This is a good article written by one of our channel partners.

      https://simutechgroup.com/single-frame-restarts-in-mechanical/

      Thanks,

      Ankush

    • Mike Rife
      Ansys Employee

      Hi Patrik

      Can you post more of the commands object and where it is inserted into the WB Mechanical model tree.  The easiest answer, with what has been provided, is the the commands object logic is getting the value prior to solution so there are no solved load steps.

      Mike

Viewing 4 reply threads
  • You must be logged in to reply to this topic.