Professional Documents
Culture Documents
OpenSEESWorkshopSept2and3,2010
9:4511:00CloudCompu?ng,NEEShub&OpenSees
11:0012:00NEEShubHandsOn
GregoryP.RodgersPh.D.
NEESCommIT
page 1
9:4511:00CloudCompu?ng,NEEShub&OpenSees
Agenda:
Introduc)ontoHUBtechnology
Morethananewwebsite
NEEShub:theNewnees.org
1.Website
2.Resources
3.ToolsandToolDataManagement
webdav
rappture
Synchronees
4.NEESProjectWarehouse
Openseesinnees.org
opensees2
openseeslab
openseesbuild
Future
BatchStrawmanforOpenSees
Integra)onwithploOngtools
page 2
9/3/10
Introduc?ontoHUBzero
HUBzeroisaplaRormusedtocreatedynamicwebsitesforscien)c
researchandeduca)onalac)vi)es.WithHUBzero,youcaneasily
publishyourresearchsoUwareandrelatededuca)onalmaterialsonthe
web.
Powerfulmiddlewareservesupinterac)vesimula)onandmodeling
toolsviayourwebbrowser.Thesetoolsconnectyouwithrendering
farmsandpowerfulGridcompu)ngresources.
ProvenwiththenanoHUB.nanoHUBsupportsover100,000worldwide
users,hundredsofnanotechnologytools,andconstantworldwide
collabora)on.AlsosupportedbyNSF.Manysmallerhubsalsoexist.
NEEScommIThasadoptedHUBzerotechnologytotransi)onnees.orgto
NEEShub.TheURListhesame,theinfrastructureiscompletely
updated.
page 3
NEEShub:Thenewnees.org
NEESEngineering,
NEESCommunica)ons&
Research,&
Support
Development
Dynamic/
1.Joomla
Transient
Website
Sta)c/
2.HUBResources
Permanent
3.HUBtoolswith
personaland
groupdata
4.NEESProject
Warehouse
page 4
9/3/10
page 5
MainMenuOrganiza)on
Tools&ResourcesUserandNEEScontributedcontent(e.g.videos,
publica)ons,simula)ontools)
Educa)on&TrainingNEESAcademy
ProjectWarehousePerpetualdatabaseofresearchprojects
SitesNEESSitesandrelatedinforma)on
CollaborateUserorientedcollabora)onop)ons
ExploreInforma)onmanagedbyNEESComm
page 6
9/3/10
1.Thenees.orgwebsite
NEESCommunica)onPortal
Ac)vi)es
Calendar
NewsandReports
Videos
nees.orggeneralcontentContact:AllegraEast
NEESEduca)onOutreachandTraining
Educa)onorganizedforTeachers,Students,Professionals,andthe
Public
Ini)alSourceofmanyHUBResources
Contact:SeanBrophy
page 7
2.Resources
ResourceTypes
DocumentsLibrary
LearningObjects
Series
Cita)ons
Tools
Organiza)onbyResourceTypesandtags.
Parenttagscomingsoon.
Searchable
EachresourcehasapermanentURL.
Anyonecancontributebutpublica)onismonitored.
page 8
9/3/10
3.NEESToolsandWorkspaceDataManagement
HUBtoolsruninavirtualmachinewithaccesstoapersistentlesystem.No
installa)onrequired.
Anyonecancontributeatool.
Organiza)onofNEEStoolsisaworkinprogress.
HundredsofToolsinNanoHub
Tagsdenedbytoolownerhelptoorganizetools
Oneveryimportanttool:Workspace
ALinuxdesktopwithaccesstopersonalHOMEandsharedgroupdata.
Thisiswheretooldevelopersbuildandtesttools.
Pleaseconsidercontribu)ngtoolwithgraphicalinterfacetoyourOpensees
simula)onmodel.
Twotypesofdata
TCLextensionavailabletoOpenSeesTCLforbuildingGUI.ThisiscalledRappture.
HOMEdirectory,Quotais1GBbutextendablewitha)cket
Groupspace
page 9
4.NEESProjectWarehouse
PerpetualDatabaseforNEESResearchProjects
RequiredforNEESfundedprojects
MigratedfromoldNEESCentral
Acombina)onofOracledatabaseandlesystem
AccessmanagedbyPIswhocreateprojects.
ThreeaccessmethodstoWarehouse
Nees.orgprojectwarehousehep://nees.org/warehouse
PEN,aJavatoolformovingdatainandoutofthewarehousefromHUBor
localworksta)on.
Webservices(API).
NewforNEEShub.
HUBToolshavereadaccesstodatastoredinWarehouselesystem./nees
/home/<PROJECTNAME.groups/
ReadonlyUpserverauthen)catedwithyournees.orguseridandpassword
Upneesws.neeshub.org
page 10
9/3/10
Project Warehouse
P1 Project Files
NEEShub Project
Warehouse Tool
Oracle
P2 Project Files
PN Project Files
PE
N
do up
wn lo
lo ad
ad
NEEShub VM
NEEShub VM
NEES2010682
(c:/data/myproj)
analysis
documenta)on
metadata
experiments
public
referencele.dat
download_this.da
tmodied_le.dat
local_only_le.dat
log_le1.dat
logle2.dat
le_not_local.dat
PEN
PEN
Remote
LocalWorkstation
Directory
PEN
Tools operate on data in a PEN
or generate data to a PEN
page 11
OpenSeesinnees.org
TheOpenSeesbinarywasbuiltforDebianLinux
Notdirectlyexecutable(exceptthroughworkspace.
UserinterfacetoolsusethisbinarytorunOpenSees
ARappturebaseddeveloperinterfacewascreatedtomanageasetof
simula)onmodelsstoredinausershomedirectory.(Calledopensees2)
hep://nees.org/resources/opensees2.
Onemodelperdirectoryin$HOME/opensees2/<name>/<name>.tcl
5examplescopiedto$HOME/opensees2thatshowGUIandnonGUImodels
FrankbuiltamoreelaborateGUIframeworkforspecicmodels.
NoneedtounderstandTCLtooperate.(CalledOpenSeesLab)
hep://nees.org/resources/openseeslab
WeexpectTCLmodeldeveloperstocontributereusablemodelswithGUIsas
newHUBtoolsforeasierexecu)onbyuserswhoarenotTCLdevelopers.
hep://nees.org/resources/???
OrFrankcouldincludeGUIsandmodelsinOpenSeesLab.
page 12
9/3/10
BatchStrawmanforOpenSeesinNEEShub.
ThreeOp)ons
Default:RunOpenSeesintheHUBinterac)vely
Medium:Submit4processorjobtoPurdue
Condorpool.
Large:Submit16processorjobtoTerragrid
MediumandLargeop)onswouldnotbe
generallyavailable.
page 13
page 14
9/3/10
11:0012:00NEESHubHandsOn
Agenda:
AccountRegistra)on
Quicktourof4segmentsdescribedearlier
myneeshub
Toolexecu)on
opensees2RuntheexamplesandcreateanewTCLsimula)ondirectory
openseeslabFranktodemo
workspaceHowtoruntheOpenSeesbinary.
DataTransfer
Webdav
Fileimport/export.
Communica)on
Tickets
Ques)onsandAnswers
Wishlist
Sharingsessions
ToolContribu)onandDevelopment
page 15
page 16
9/3/10
NEEShub
Registration
Form
page 17
page 18
9/3/10
TheTools(andResources)Trifold
page 19
Opensees developer
interface
Used to develop
models and GUIs.
Five examples
will be placed in
your HOME
directory the first
time you start tool
This interface will be
extended for batch
submission.
page 20
10
9/3/10
page 21
page 22
11
9/3/10
page 23
UsingWindowsWebdavtoaccessyourHOME
directoryontheNEEShub
page 24
12
9/3/10
HowtoBuildAGUIwithOpenSees,Rappture,andTCL
Build an xml file (tool.xml) that defines the
driver for your simulation model.
Modify tcl script to read and write values
from a driver.
tool.xml
+
sine.tcl
page 25
Example: $HOME/opensees2/sine
page 26
13
9/3/10
if {$patternType == "UniformExcitation"} {
$driver put output.curve(multi$patternType).about.group "Response Structure to Sine Wave"
$driver put output.curve(multi$patternType).about.label "Steady State Response"
$driver put output.curve(multi$patternType).about.description \
"This is an example of a multiple curves on the same plot."
set type 2
pattern UniformExcitation 1 1 -accel $accelSeries -vel0 $vel0
fix 1 1
}
constraints Transformation
integrator Newmark 0.5 0.25
system ProfileSPD
algorithm Linear
numberer RCM
constraints Transformation
analysis Transient
$driver put output.curve(multi$patternType).xaxis.label "Time"
$driver put output.curve(multi$patternType).yaxis.label "Displacement"
$driver put output.curve(multi$patternType).yaxis.units "inch"
set t 0.0
while {$t < $maxT} {
analyze 1 $dT
set time [getTime]
set d [nodeDisp 2 1]
set progress [expr ($t/$maxT)*100]
Rappture::Utils::progress $progress -mesg "Iterating"
$driver put -append yes output.curve(multi$patternType).component.xy "$time $d\n"
set t [expr $t + $dT]
}
}
# save the updated XML describing the run...
Rappture::result $driver 0
exit 0
sine.tcl
page 27
OpenSeesinnees.org
TheOpenSeesbinarywasbuiltforDebianLinux
Notdirectlyexecutable(exceptthroughworkspace.
UserinterfacetoolsusethisbinarytorunOpenSees
ARappturebaseddeveloperinterfacewascreatedtomanageasetof
simula)onmodelsstoredinausershomedirectory.(Calledopensees2)
hep://nees.org/resources/opensees2.
Onemodelperdirectoryin$HOME/opensees2/<name>/<name>.tcl
5examplescopiedto$HOME/opensees2thatshowGUIandnonGUImodels
FrankbuiltamoreelaborateGUIframeworkforspecicmodels.
NoneedtounderstandTCLtooperate.(CalledOpenSeesLab)
hep://nees.org/resources/openseeslab
WeexpectTCLmodeldeveloperstocontributereusablemodelswithGUIsas
newHUBtoolsforeasierexecu)onbyuserswhoarenotTCLdevelopers.
hep://nees.org/resources/???
OrFrankcouldincludeGUIsandmodelsinOpenSeesLab.
page 28
14