How to remove an element failed from analysis_2

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
cvatansever
Posts: 23
Joined: Tue Nov 09, 2010 1:37 pm
Location: Istanbul Technical University

How to remove an element failed from analysis_2

Post by cvatansever »

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,
Cuneyt
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: How to remove an element failed from analysis_2

Post by fmk »

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
}
Post Reply