General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

(APDL) Nested If

    • VKant
      Subscriber

      Hi guys!

      I want to put some IFs in my APDL code to order four keypoints in a beam. One of these IFs has 3 inequalities:

      KP 11 < KP 14

      KP 13 < KP 11

      KP 14 < KP 12

      Obviously i'm talking about their distance from a coordinate system.

      How can i write them?

      *IF,KP11,LT,KP14,AND,KP13,LT,KP11,THEN

      ....

      other ELSEIF conditions

      *ENDIF

      The third condition is missing...

    • Chandra Sekaran
      Ansys Employee
      Why not do just nested *IF
      *if,kp11,lt,kp14,then
      *if,kp13,lt,kp11, then
      *if,kp14,lt,kp12,then
      .......
      ........
      *endif
      *endif
      *endif
    • VKant
      Subscriber
      Thanks, i'll give it a try!
      For the moment i solved the problem with some equations and the model works well. I'll try this method later.


Viewing 2 reply threads
  • The topic ‘(APDL) Nested If’ is closed to new replies.