A small question on the algorithm adjusting for loop in Ex2b

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Bahaa
Posts: 3
Joined: Tue Sep 12, 2017 9:56 am
Location: American University of Beirut

A small question on the algorithm adjusting for loop in Ex2b

Post by Bahaa » Wed Jan 17, 2018 10:17 am

Hello!
I have a question on the way the analyse command works.

1 set ok [analyze 1 1] #ok != 0
2 set controlTime [getTime]
3 set ok [analyze 1 1]
4 set controlTime [getTime]

Say we have this piece of code at the end of a model, would the result of line 4 be 0 or 1? in other words, does the program move along the time domain after an unsuccessful analysis or would the line 3 in this case just be a repeat of line 1? IF the result of line one was 0 then would the time domain just be incremented by 1?

Thanks

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: A small question on the algorithm adjusting for loop in

Post by fmk » Wed Jan 17, 2018 4:57 pm

the time does not increment unless the analysis was successfull

Post Reply