-
-
April 4, 2022 at 12:46 pm
VKant
SubscriberHi 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...
April 6, 2022 at 12:28 pmChandra Sekaran
Ansys EmployeeWhy not do just nested *IF
*if,kp11,lt,kp14,then
*if,kp13,lt,kp11, then
*if,kp14,lt,kp12,then
.......
........
*endif
*endif
*endif
April 8, 2022 at 12:55 pmVKant
SubscriberThanks, 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.
Innovation SpaceTrending discussionsTop Contributors-
5879
-
1906
-
1420
-
1306
-
1021
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.
