Perlun 2 - SAP2000. IntroductionWebinar
Perlun 2 - SAP2000. IntroductionWebinar
Perlun 2 - SAP2000. IntroductionWebinar
Frank McKenna
October, 2012
Login/Register
Numerical Computation
Algorithms & Solvers Models
Material, Element
Information Technology
Database, Visualization, Frameworks,
Parallel & Grid/Network libraries
Open-Source - Leave it out there for community
Building Blocks for Modern Simulation Code
What is OpenSees?
There are other parts to the framework for Parallel Processing, Reliability
& Optimization that we won’t talk about today.
Each Abstract Class has a Number of Concrete
Classes
Material GeomTransformation
Elastic
ElasticPP
Elastic Element in Global System
Elastic Fiber
Hardening J2
Concrete DruckerPrager
Steel TemplateElasto-Plasto U P
Hysteretic FluidSolidPorous
PY-TZ-QZ PressureMultiYield(dependent, independent) Geometric Transformation
Parallel v
Series q
Gap
Fatigue
1.
2.
OpenSees.exe
OpenSeesTk.exe
} sequential processing
3.
4.
OpseseesSP.exe
OpenSeesMP.exe } parallel processing
Tcl Interpreters
• wish and tclsh are tcl interpreters.
• Interpreters (Perl, Matlab, Ruby) are programs that execute
programs written in a programming language immediately.
• There is no separate compilation & linking.
• An interpreted program runs slower than a compiled one.
puts “sum of 2 and 3 is [expr 2 + 3]”
sum of 2 and 3 is 5
What is Tcl
• Tcl is a dynamic programming language.
• It is a string based command language.
• Variables and variable substitution
• Expression evaluation
• Basic control structures (if , while, for, foreach)
• Procedures
• File manipulation
• Sourcing other files.
• Command syntax:
command arg1 arg2 …
• Help
1. http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html
Example Tcl •procedures & control structures
> for {set i 1} {$i < 10} {incr i 1} {
puts “i equals $i”
•variables & variable substitution }
•expression evaluation …
>set a 1
1 > set sum 0
>expr 2 + 3 foreach value {1 2 3 4} {
>set b a 5
a set sum [expr $sum + $value]
>set b [expr 2 + $b]
>set b $a 3 }
1 >puts $sum
•lists 10
>proc guess {value} {
•file manipulation >set a {1 2 three}
1 2 three global sum
>set fileId [open tmp w] >set la [llength $a] if {$value < $sum} {
?? 3 puts “too low”
>puts $fileId “hello” >set start [lindex $a 0] } else {
>close $fileID 1 if {$value > $sum} {
>type tmp >lappend a four puts “too high”
hello 1 2 three four } else { puts “you got it!”}
}
•sourcing other files }
> guess 9
>source Example1.tcl
too low
Tcl Math Gotcha
(most programming languages)
• If you add, subtract, multiply and divide two
integer numbers the result is an integer.
> set a [expr 1/2]
0
• Being interpreters, this means that the files you create and
submit to the OpenSees interpreters are not input files. You are
creating and submitting PROGRAMS.
OpenSees.exe
•An interpreter that extends tclsh for FE analysis.
StaticAnalysis
TransientAnalysis
StandardStream
ElementRecorder FileStream
NodeRecorder XML_FileStream
EnvelopeNodeRecorder TCP_Stream
EnvelopElementRecorder DatabaseHandler Database
http://opensees.berkeley.edu/OpenSees/user/down
load.php
• Tutorial on installing tcl/tk:
http://opensees.berkeley.edu/wiki/index.php/Getti
ng_Started_with_OpenSees_--
_Download_OpenSees
NEES
The George E. Brown Network for Earthquake Engineering Simulation (NEES)
is a shared national network of 14 experimental facilities, collaborative tools, a
centralized data repository, and earthquake simulation software.
NEEShub
• The power behind NEES at http://nees.org
• Maintained and developed at Purdue by NEEScomm
• A science gateway for education and research in earthquake engineering
Simulation
Data Management
Menu To Select Tool
OpenSees Interpreter Tool
Example We Will Do
Advantages of Running on NEEShub
• Can check status from any network device
• Can have multiple simulations running
QUESTIONS?