Hi
I am trying to model semi-active viscous damper in opensees I need to use FOR and IF loop.
To make sure that those loops are giving the correct response, I modeled the simple frame and compared two options.
Option 1: add brace in the loop, analyze for one step then remove and repeat.
Option 2: add brace outside of the FOR loop and analyze for each step.
The results of both codes should be same but they are not.
I would appreciate if you could help me to solve this problem.
OPTION _ 1:
set ABrace 5.e-3
set MatBrace 1
uniaxialMaterial Elastic $MatBrace $E
for {set i 1} {$i<6564} {incr i} {
element truss 4 1 4 $ABrace $MatBrace
analyze 1 0.005
remove element 4
}
————————————————
OPTION _ 2:
set ABrace 5.e-3
set MatBrace 1
uniaxialMaterial Elastic $MatBrace $E
element truss 4 1 4 $ABrace $MatBrace
for {set i 1} {$i<6564} {incr i} {
analyze 1 0.005
}