Eigen values for 3D steel frame

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

Moderators: silvia, selimgunay, Moderators

Post Reply
AymanAbdelaal
Posts: 2
Joined: Tue May 01, 2012 8:30 pm
Location: UC Irvine

Eigen values for 3D steel frame

Post by AymanAbdelaal »

Hello Opensees users,
I'm a PhD student in UCI, I'm working in 3 story moment steel frame 3D, I want to get the eigenvalues for my frame?? I tried to use the "eigen command" but it gives me error !!
In opensees example; They just built the model and then did the static push over analysis, they didn't do the eigenvalues or the eigenvectors.
Here is the commands that I used:

#number of modes
set numModes 3
# create data directory
file mkdir modes;
# record eigenvectors
#----------------------
for { set k 1 } { $k <= $numModes } { incr k } {
recorder Node -file [format "modes/mode%i.out" $k] -node 111 112 121 122 131 132 141 142 211 212 221 222 231 232 241 242 -dof 1 2 3 "eigen $k"
}

# perform eigen analysis
#-----------------------------
set lambda [eigen $numModes];

# calculate frequencies and periods of the structure
#---------------------------------------------------
set omega {}
set f {}
set T {}
set pi 3.141593

foreach lam $lambda {
lappend omega [expr sqrt($lam)]
lappend f [expr sqrt($lam)/(2*$pi)]
lappend T [expr (2*$pi)/sqrt($lam)]
}

puts "periods are $T"

# write the output file consisting of periods
#--------------------------------------------
set period "modes/Periods.txt"
set Periods [open $period "w"]
foreach t $T {
puts $Periods " $t"
}
close $Periods

# record the eigenvectors
#------------------------
record

Please, any body could help .... please, let me know if I did anything wrong
Thanks
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: Eigen values for 3D steel frame

Post by vesna »

what is the error message?
Post Reply