Is this command right to get the EigenValue and Frequencies?

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

Moderators: silvia, selimgunay, Moderators

Post Reply
cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

Is this command right to get the EigenValue and Frequencies?

Post by cctvcctv »

# Calculate the Frequencies and Mode shapes
set f [open mode.out a+]
#statement line
puts $f " Period Frequency"
puts $f " T/sec Hz"
set lambda [eigen 10]
for {set i 0} {$i<10} {incr i 1} {
set lambdaa [lindex $lambda $i]
set omega [expr pow($lambdaa,0.5)]
set Tperiod [expr 2*3.14/$omega]
set Freq [expr 1/$Tperiod]
# period (sec.) and frequency
puts $f "$Tperiod\t $Freq"
}
close $f



Thanks a lot!

I use it , but get unreasonable results!
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

please post the file, there may be things wrong with the masses and stiffnesses.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
Post Reply