OpenSees: Static, Cyclic, and Dynamic Analysis Examples
OpenSees: Static, Cyclic, and Dynamic Analysis Examples
E
E
R OpenSees: Static, Cyclic, and
Dynamic Analysis Examples
Frank McKenna
Model
4000kip
B
B
A A
36’
Z X
42’
Ex4.Portal2D.build.InelasticSection.tcl
5’
5’
8’
source Ex4.Portal2D.build.InelasticSection.tcl 5’
1
Gravity Load Analysis
# first source in the model
source Ex4.Portal2D.build.InelasticSection.tcl
2
Cyclic Lateral Load Analysis
# first source in the model and do gravity load analysis
source example1.tcl
3
Transient Analysis - Uniform Excitation
# first source in the model and do gravity load analysis
source example1.tcl
# create a recorder
recorder Node -time -file example3.out -node 3 -dof 1 disp
# create a recorder
recorder Node -time -file example4.out -node 3 -dof 1 disp
4
5
Parameter Study - Response Spectra
source READSMDFile.tcl
modelBuilder BasicBuilder -ndm 1 -ndf 1 node 1 0.0
node 2 $l -mass $M
# set a bunch of parameters fix 1 1
set PI 3.14159265 uniaxialMaterial Elastic 1 $E
set g 386.4 element truss 1 1 2 $A 1
set TnMin 0.1; #min period pattern UniformExcitation 2 1 -accel $accelSeries
set TnMax 2.0; #max period rayleigh 0.0 0.0 0.0 0.0 0.0
set TnIncr 0.1; #period incr
set M 1.0; #mass recorder EnvelopeNode -file envelope.out -node 2 -dof 1 disp
set A 1.0; #area system ProfileSPD
set L 1.0; #length test NormDispIncr 1.0e-16 10
set motion ELCENTRO algorithm Newton
set outFilename spectrum.dat integrator Newmark 0.5 0.25
analysis Transient
# open output file analyze 2000 $dt
Set outFileID [open $outFilename w]
if [catch {open envelope.out r} inFileID]
#create accel series puts puts “ERROR - could not open file”
ReadSMDFIle $motion.AT2 $motion.acc dt
Set accelSeries “Path -filePath $motion.acc \ set min [gets $inFileID]
-dt $dt -factor $g” set max [gets $inFileID]
set absMax [gets $inFileID]
# loop over period range close $inFileID
Set Tn $TnMin puts $outFileID “$Tn $absmax”
while {$Tn <= $TnMax} { set Tn [expr $Tn + $TnIncr]
wipe }
set w [expr 2.0 * $PI / $Tn] close $outFileID
set K [expr $w * $w * $M]
set E [expr $k * $l / $A
QuickTime™ and a
TIFF (LZW) decompressor
are needed to see this picture.