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
access to section/material/element information
Moderators: silvia, selimgunay, Moderators
Re: access to section/material/element information
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.
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.