Saving the results in a tcl list

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

Moderators: silvia, selimgunay, Moderators

Post Reply
amkopensees
Posts: 24
Joined: Mon Jun 18, 2012 9:29 am
Location: Lehigh University

Saving the results in a tcl list

Post by amkopensees »

Hi,

Is it possible to save the results of a time history analysis in a tcl list. For example element forces of a particular element of the model in all time steps of the analysis.
I need to get a lot of outputs from my model and I think this amount of IO makes the process slower. Also the size of the text outputs becomes troublesome.
Anyway at the end of the day I need to reopen the outputs for post processing with another program (e.g. Matlab) and just keep the maximum response.
I was hoping to save all the output in a list during the analysis, and perform the post processing by tcl.
Is there any way to do this?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Saving the results in a tcl list

Post by fmk »

use lapped: http://wiki.tcl.tk/1479

set a {}

while {$analysisNotDone == 0} {

analyze 1
set myData [whatever command]
lappend a $myData
}
amkopensees
Posts: 24
Joined: Mon Jun 18, 2012 9:29 am
Location: Lehigh University

Re: Saving the results in a tcl list

Post by amkopensees »

Dear fmk,

Thank you for your response.
Is there an equivalent command for every type of node and element recorder? I am aware of the following commands for node reactions and element forces:
nodeReaction
eleForce
How about other types of outputs? For example element deformation outputs. Or outputs for fiber sections?
amkopensees
Posts: 24
Joined: Mon Jun 18, 2012 9:29 am
Location: Lehigh University

Re: Saving the results in a tcl list

Post by amkopensees »

I found this page which I think should be the answer of my question:
http://opensees.berkeley.edu/wiki/index ... t_Commands
Thanks though.
Post Reply