General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Assign spring stiffness to multiple springs at one time

    • lbtung248
      Subscriber

      Hello everyone,

      I have a space truss model includes of multiple truss bars and these bars are connected to each other by spring element. I converted these springs from longitudinal springs to rotational COMBI250 springs by the following command:

      etet,_sid,combi250

      KEYOPT,_sid,1,0

      K1=1e15

      K2=1e15

      K3=1e15

      K4=ARG1

      K5=ARG1

      K6=ARG1

      r,_sid,,,,,,,

      RMORE,K1,K2,K3,K4,K5,K6

      However there are 56 springs in total and copy paste these command snippets to each spring takes a lot of time and also when i want to change the value of the stiffness of the spring for the whole system, i have to go to every spring to adjust it.

      Is there anyway i can use 1 command snippet to add these stiffness properties to all my 56 springs at once?

    • Govindan Nagappan
      Ansys Employee
      Yes, you can use one command object under the analysis branch (static, modal etc)
      Sample commands:
      /prep7
      esel,s,enam,,250 !Select all 250 elements
      *get,eltype_max,etyp,0,num,max !find max element type number used
      et,eltype_max+1,250 !specify next element type as 250
      emodif,all,type,eltype_max+1 !modify all selected elements to have type = eltype_max+1
      !then define your stiffness values
      KEYOPT,eltype_max+1 ,1,0
      allsel
      /solu

      Check the feedback from solution information to verify this works. Check the command reference manual for details on the command
Viewing 1 reply thread
  • The topic ‘Assign spring stiffness to multiple springs at one time’ is closed to new replies.