-
-
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 discussions- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- Meaning of the error
- How to model a bimodular material in Mechanical
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
- Contact stiffness too big
Top Contributors-
4167
-
1487
-
1363
-
1194
-
1021
Top Rated Tags© 2025 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.
