TAGGED: apdl-ansys, command-snippet, springs, torsional-stiffness
-
-
March 21, 2022 at 10:05 am
lbtung248
SubscriberHello 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?
March 23, 2022 at 3:30 pmGovindan Nagappan
Ansys EmployeeYes, 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.
Ansys Innovation SpaceTrending discussionsTop Contributors-
2788
-
965
-
851
-
599
-
591
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.
-