-
-
February 19, 2024 at 3:14 pm
a.eckhardt
SubscriberHello,
I am currently writing a script where I create a bar-node model from many keypoints and lines. I have assigned the element type BEAM188 to most of the lines. However, in the middle of the script I would like to change the element type and create the lines as LINK180. How can I implement this in the script? A small example code would be very helpful.
Thanks for your help and best regards
-
February 19, 2024 at 5:58 pm
Govindan Nagappan
Ansys EmployeeIf you already have beam188 elements, then you can use ET command to define the link180 and then select the elements you want to change using esel and use emodif to change the type.
Example:
ET,100,180,  !set element type 100 as link 180. Add any keyoptions you need
ESEL,s,enam,,188 ! select all beam188 elements. Change this command as needed
EMODIF,all,type,100Â ! change elements type to link180 for all selected elements
============================
Or if you need to select lines and mesh them with link180, then define link180 with ET command, set the type with type command and select lines and mesh it
ET,100,180,  !set element type 100 as link 180. Add any keyoptions you need
TYPE,100Â !set type as 100
!select lines and mesh it and it will be meshed with link180
-
- The topic ‘ansys apdl – Multiple element types in one script’ is closed to new replies.
-
5869
-
1906
-
1420
-
1306
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.