Dear McKenna,
Thank you so much for your reply.
I know that the "remove" command can be used for this process. I also think that we have to put some conditions to provide the code with the time when the element fails. So, how can we provide required procedure in the code to remove the element ? Is it enough to use "remove" and "recorder" commands ? If yes, how ?
Thanks again.
Cuneyt,
How to remove an element failed from analysis_2
Moderators: silvia, selimgunay, Moderators
-
- Posts: 23
- Joined: Tue Nov 09, 2010 1:37 pm
- Location: Istanbul Technical University
Re: How to remove an element failed from analysis_2
if you know the commands and you know how the scripting language works why are you asking this question?? they just go in the script or you could program the check in a procedure that removed ele if needed,
e.g.
proc checkAndRemoveEle{$eleTag $failCriteria} {
set res [eleResponse $eleTag something]
if {$res > $failCriteria} {
remove element $eleTag
}
}
for {set i 1} {$i < $numStep} {incr i 1} {
analyze 1
checkAndRemove 1 .5
}
e.g.
proc checkAndRemoveEle{$eleTag $failCriteria} {
set res [eleResponse $eleTag something]
if {$res > $failCriteria} {
remove element $eleTag
}
}
for {set i 1} {$i < $numStep} {incr i 1} {
analyze 1
checkAndRemove 1 .5
}