access to section/material/element information

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

Moderators: silvia, selimgunay, Moderators

Post Reply
jefferyr
Posts: 39
Joined: Tue Feb 12, 2008 12:40 pm
Location: Portland State University

access to section/material/element information

Post by jefferyr »

Lets say I want to model several R/C sections. I then set up several fiberSec sections. Also, let those section commands be in a loop so that some of the variables are changed each iteration. So, to keep track of the different combinations, I'd like to be able to output the information that goes into these commands. i.e. Is there a way to query a fiberSec or material type or element to get all of its attributes that OpenSees is actually using (rather than what I think it's using) so that these objects can be checked easily? The print command doesn't give very much information.

Thanks,

Jeff
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: access to section/material/element information

Post by vesna »

You can create output files with information you need by using the tcl "puts" command. Here is an example where into a file I saved the periods of the structure:

set period "modes/Periods.txt"
set Periods [open $period "w"]
foreach t $T {
puts $Periods " $t"
}
close $Periods

In these example the periods were stored in variable T.
Post Reply