General Mechanical

General Mechanical

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

ansys apdl – Multiple element types in one script

    • a.eckhardt
      Subscriber

      Hello,

      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

    • Govindan Nagappan
      Ansys Employee

      If 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

Viewing 1 reply thread
  • The topic ‘ansys apdl – Multiple element types in one script’ is closed to new replies.