OpenSees:
Future Directions
Frank McKenna
First European Conference on OpenSees
Porto, Portugal June 19-20 2017
Outline
1. Python Interpreter
2. OpenSeesIDE
3. SimCenter
OpenSees Python Interpreter
• We are releasing a beta version of a Python
interpreter.
• Python is the most widely used programming
language taught in universities
• We will release both Tcl and Python
interpreters for OpenSees(the python
interpreter might lack some functionality in
terms of available options)
# create model
ops.wipe()
ops.model("BasicBuilder", "-ndm",2, "-ndf",2)
ops.node(1, 0.0, 0.0)
ops.node(2, 144.0, 0.0)
ops.node(3, 168.0, 0.0)
ops.node(4, 72.0, 96.0)
ops.fix(1, 1, 1)
ops.fix(2, 1, 1)
ops.fix(3, 1, 1)
ops.uniaxialMaterial("Elastic", 1, 3000.0)
ops.element("truss", 1, 1, 4, 10.0, 1)
ops.element("truss", 2, 2, 4, 5.0, 1)
ops.element("truss", 3, 3, 4, 5.0, 1)
ops.timeSeries("Linear", 1)
ops.pattern("Plain", 1, 1, "-fact", 1.0)
ops.load(4, 100.0, -50.0)
ops.system("BandSPD")
ops.numberer("RCM")
ops.constraints("Plain")
ops.algorithm("Linear")
ops.integrator("LoadControl", 1.0)
ops.analysis("Static")
ops.recorder("Node", "-file", "example.out", "-time", "-node", 4, "-dof", 1, 2, "disp")
ops.analyze(1)
Outline
1. Python Interpreter
2. OpenSeesIDE
3. SimCenter
OpenSeesIDE
An integrated development environment for
developing OpenSees scripts. Contains:
• File editor
• Tcl Interpreter
• 3d Renderer
Outline
1. Python Interpreter
2. OpenSeesIDE
3. SimCenter
A Nation at Risk from Natural Hazards
Hurricanes
Tornadoes
Floods
Tsunami
Earthquake - High
Earthquake - Moderate
After: Crisis HQ (2012)
NHERI 10
A Cyberinfrastructure for the
Natural Hazards Community
11
DesignSafe-ci.org Vision
• A CI that is an integral and dynamic part of research
discovery
• Cloud-based tools that support the analysis,
visualization, and integration of diverse data types
– Key to unlocking the power of “big data”
• Support end-to-end research workflows and the
full research lifecycle, including data
sharing/publishing
• Enhance, amplify, and link the capabilities of the
other NHERI components
12
DesignSafe-ci Cyberinfrastructure
• Data Depot
• Discovery Workspace
13
DesignSafe Data Depot
14
DesignSafe Data Depot
15
Discovery Workspace
16
• Simulation and analysis tools
‒ OpenSees, ADCIRC, OpenFOAM, Matlab, Paraview
The Simulation Applications Experts
Say We Need
17
Simulation Applications Identified:
1) Applications that generate Uncertainty in Response Quantities:
• Earthquake
• Wind
• Water
2) Applications to perform Performance Based Engineering (PBE)
3) Applications for Community Resiliency
NHERI
NHERI Computational
Modeling and
Simulation Center
Leadership Group
Sanjay Govindjee Camille Crittenden Frank McKenna Matt Schoettler
UC Berkeley UC Berkeley UC Berkeley UC Berkeley
Steve Mahin Ahsan Kareem Laura Lowes Greg Deierlein
UC Berkeley Notre Dame Washington Stanford
The applications:
1) Applications that generate UQ in Response Quantities:
2) Applications to perform Performance Based Engineering
3) Applications for Community Resiliency
5 Year Project BUT 10-20 Year Vision
We are providing a Software
Applications
UQ Tool: Dakota-FEM
Application Developed to demonstrate
UQ to user. To allow user to take
existing input files (not SAM), identify
the parameters that should be
considered as random variables, assign
a distribution to those variables, define
EDP parameters and obtain the UQ in
the output.
• The applications will be developed using a new software framework.
• A framework provides the developer a pre-defined set of interfaces
and an existing set of components that will allow them to build an
application.
• The developer can extend the application by providing and integrating
their own component as long as it meets the interface.
• The applications our framework will enable are workflow applications
in Natural Hazards Engineering.
SimCenter Framework
“A workflow application is a software application which
automates … a process or processes” (Wikipedia)
Basically we are combining multiple applications together to form super applications
SimCenter Workflow Applications
OpenSees of course is central to the framework!
24
PBE Application Sequence Diagram
It’s all about defining INTERFACES
and FUNCTIONALITY of the
applications.
• Defining Common Interfaces for the applications, i.e.
all take the same input and produce the same
output, with accomodation for application specific
information
• Input & output files will be in JSON format. A number
of file types:
– BM
– EVENT
– SAM
– EDP
– DL
26
BM
GBI SIM XIM CIM
columnLines
floorLines
Beams
Columns
Braces
Walls
Dampers
Braces
Sections
Materials
columnLines
floorLines
xPanels
name
#floor
Area
type
location BM = Building Model
GBI = General Building Info
SIM = Structural Info Model
XIM = eXternal Info Model
CIM = Contents Info Model
= composition
(composed of)
1 0,1 0,1 0,1
Building Model (BM)
RV
0,1
SAM –Structural Analysis Model
27
SAM
Node Element Material Section RV
Uniform
Normal
Lognormal
Beta
Shifted Exponential
Gamma
Chi-Square
Shifted Rayleigh
Type I Largest Value
Type I Smallest Value
Type II Largest Value (also called F
Type III Smallest Value
Gumbel (same as Type I Largest Va
Weibull (special case of Type III Sm
Laplace
Pareto
Truncated Normal
Triangular
Inverse Gamma
Wishart distribution
Inverse Wishart distribution
Shell
Quad
ForceBeamColumn
ConcentratedHingeBeamColumn
…
= composition
= inheritance
Rvfield?
EDP – Engineering Demand Parameters
28
EDP
FloorDisp FloorAccel StoryDrift
columnLine
Floor
data
columnLine
Floor
data
columnLine
floor1
Floor2
data
= Inheritance
(is a)
PanelPressure
EDP = Engineering
Demand Parameter
columnLines[]
floors[]
data
data: scalar or vector
initially empty
single values
distribution (UQ)
29
Event
Earthquake Wind Hydro
Uniform RockOutcrop Regional
BoreHole
MultiSupport
SoilLayer
Herceles
SW4
ActiveEvent
RegionalSim
DRM
Lysmer
Dr. Arthur Rodgers,
Lawrence Livermore National Lab
File
DB
Synthetic
File
DB
Synthetic
Event (boundary condition & forces for model)
RV
DispRecordAccelRecord
Event
Earthquake Wind Hydro
File CFD
(LES/RANS)
CFD-
MultiFidelity
DB
RV
Event (boundary condition & forces for model)
OpenFoam
Virtual
Wind
tunnel
Collaborators
WRFCFD-
MultiScale
Weather Forecast
Weather Event
Other
Codes
The Data is Passed Between
APPLICATIONS
• Given Inputs and Outputs, what are the applications
to work on the DATA.
– AI-M (BM,Event[]) -> SAM
– FEM-UQ (BM,Event[],SAM)->EDP
– DL (BM,Event[],SAM, EDP)->DL
• Pre- and Post processors for a applications (python)
32
AI-M
AI-M-NoSIM AI-M-Sim
KB-M
• In 5 years we cannot do all building types
• Will return models for a limited set of structure:
• Regular Steel and Concrete Moment Frames
• Braced Frame Buildings
• Shear Wall Buildings
AI to return the FEM Model Description(s) using information in the
knowledge base about how to model. The FEM Model
Descriptions to contain information as to uncertain variables and
information on credibility of the model.
AI-M
Prof. Xinzheng Lu,
Tsinghua University,
P.R. China
33
KB-M
Observational Data
GEI BM EDP Event
GBI SIM XIM CIM
Numerical Simulation
SAMEDP
KB-M
0,1 0,111
DB will stores the relation between observational data and numerical
simulation data AI-M can query the DB for these relations and the data,
e.g. get observational data and associated numerical simulations for all
concrete shear wall buildings.
WE NEED EXPERIMENTAL
TESTS AND SIMULATION
INPUT FILES THAT
ATTEMPT TO PREDICT THE
RESPONSE
MOOC
34
FEM-UQ
FEM-UQ-ENGINE
Dakota RtMatlab
Prof. Terje Haukaas,
University of British
Columbia, Canada
FEAPpv OpenSees ESSI
FEM-UQ
Prof. Boris Jeremic,
UC Davis
FEM
35
DL
Pact OpenSLAT Matlab
Prof. Brendon Bradley,
University of Canterbury, NZ.
DL
KB-DL
Functions
Resilience
• Ultimate goal to perform regional simulations and allow
decision makers to make informed decisions as to best
way to facilitate recovery from disaster
• KB-BE + Regional Simulation + UrbanSIM (or other)
Integrating the Tools to Develop and Evaluate Sustainability Plans
37
UrbanSim:
A simulation platform for supporting planning and analysis of urban development, incorporating the interactions between
land use, transportation, the economy, and the environment.
Exploring a Connected Graph of the Metropolis
38
Micro
Macro
UrbanSim
39
Simulating individual choices such as household location, for entire populations, at an agent level.

OpenSees: Future Directions

  • 1.
    OpenSees: Future Directions Frank McKenna FirstEuropean Conference on OpenSees Porto, Portugal June 19-20 2017
  • 2.
    Outline 1. Python Interpreter 2.OpenSeesIDE 3. SimCenter
  • 3.
    OpenSees Python Interpreter •We are releasing a beta version of a Python interpreter. • Python is the most widely used programming language taught in universities • We will release both Tcl and Python interpreters for OpenSees(the python interpreter might lack some functionality in terms of available options)
  • 4.
    # create model ops.wipe() ops.model("BasicBuilder","-ndm",2, "-ndf",2) ops.node(1, 0.0, 0.0) ops.node(2, 144.0, 0.0) ops.node(3, 168.0, 0.0) ops.node(4, 72.0, 96.0) ops.fix(1, 1, 1) ops.fix(2, 1, 1) ops.fix(3, 1, 1) ops.uniaxialMaterial("Elastic", 1, 3000.0) ops.element("truss", 1, 1, 4, 10.0, 1) ops.element("truss", 2, 2, 4, 5.0, 1) ops.element("truss", 3, 3, 4, 5.0, 1) ops.timeSeries("Linear", 1) ops.pattern("Plain", 1, 1, "-fact", 1.0) ops.load(4, 100.0, -50.0) ops.system("BandSPD") ops.numberer("RCM") ops.constraints("Plain") ops.algorithm("Linear") ops.integrator("LoadControl", 1.0) ops.analysis("Static") ops.recorder("Node", "-file", "example.out", "-time", "-node", 4, "-dof", 1, 2, "disp") ops.analyze(1)
  • 5.
    Outline 1. Python Interpreter 2.OpenSeesIDE 3. SimCenter
  • 6.
    OpenSeesIDE An integrated developmentenvironment for developing OpenSees scripts. Contains: • File editor • Tcl Interpreter • 3d Renderer
  • 9.
    Outline 1. Python Interpreter 2.OpenSeesIDE 3. SimCenter
  • 10.
    A Nation atRisk from Natural Hazards Hurricanes Tornadoes Floods Tsunami Earthquake - High Earthquake - Moderate After: Crisis HQ (2012) NHERI 10
  • 11.
    A Cyberinfrastructure forthe Natural Hazards Community 11
  • 12.
    DesignSafe-ci.org Vision • ACI that is an integral and dynamic part of research discovery • Cloud-based tools that support the analysis, visualization, and integration of diverse data types – Key to unlocking the power of “big data” • Support end-to-end research workflows and the full research lifecycle, including data sharing/publishing • Enhance, amplify, and link the capabilities of the other NHERI components 12
  • 13.
    DesignSafe-ci Cyberinfrastructure • DataDepot • Discovery Workspace 13
  • 14.
  • 15.
  • 16.
    Discovery Workspace 16 • Simulationand analysis tools ‒ OpenSees, ADCIRC, OpenFOAM, Matlab, Paraview
  • 17.
    The Simulation ApplicationsExperts Say We Need 17 Simulation Applications Identified: 1) Applications that generate Uncertainty in Response Quantities: • Earthquake • Wind • Water 2) Applications to perform Performance Based Engineering (PBE) 3) Applications for Community Resiliency
  • 18.
  • 19.
    Leadership Group Sanjay GovindjeeCamille Crittenden Frank McKenna Matt Schoettler UC Berkeley UC Berkeley UC Berkeley UC Berkeley Steve Mahin Ahsan Kareem Laura Lowes Greg Deierlein UC Berkeley Notre Dame Washington Stanford
  • 20.
    The applications: 1) Applicationsthat generate UQ in Response Quantities: 2) Applications to perform Performance Based Engineering 3) Applications for Community Resiliency 5 Year Project BUT 10-20 Year Vision We are providing a Software Applications
  • 21.
    UQ Tool: Dakota-FEM ApplicationDeveloped to demonstrate UQ to user. To allow user to take existing input files (not SAM), identify the parameters that should be considered as random variables, assign a distribution to those variables, define EDP parameters and obtain the UQ in the output.
  • 22.
    • The applicationswill be developed using a new software framework. • A framework provides the developer a pre-defined set of interfaces and an existing set of components that will allow them to build an application. • The developer can extend the application by providing and integrating their own component as long as it meets the interface. • The applications our framework will enable are workflow applications in Natural Hazards Engineering. SimCenter Framework “A workflow application is a software application which automates … a process or processes” (Wikipedia) Basically we are combining multiple applications together to form super applications
  • 23.
    SimCenter Workflow Applications OpenSeesof course is central to the framework!
  • 24.
  • 25.
    It’s all aboutdefining INTERFACES and FUNCTIONALITY of the applications. • Defining Common Interfaces for the applications, i.e. all take the same input and produce the same output, with accomodation for application specific information • Input & output files will be in JSON format. A number of file types: – BM – EVENT – SAM – EDP – DL
  • 26.
    26 BM GBI SIM XIMCIM columnLines floorLines Beams Columns Braces Walls Dampers Braces Sections Materials columnLines floorLines xPanels name #floor Area type location BM = Building Model GBI = General Building Info SIM = Structural Info Model XIM = eXternal Info Model CIM = Contents Info Model = composition (composed of) 1 0,1 0,1 0,1 Building Model (BM) RV 0,1
  • 27.
    SAM –Structural AnalysisModel 27 SAM Node Element Material Section RV Uniform Normal Lognormal Beta Shifted Exponential Gamma Chi-Square Shifted Rayleigh Type I Largest Value Type I Smallest Value Type II Largest Value (also called F Type III Smallest Value Gumbel (same as Type I Largest Va Weibull (special case of Type III Sm Laplace Pareto Truncated Normal Triangular Inverse Gamma Wishart distribution Inverse Wishart distribution Shell Quad ForceBeamColumn ConcentratedHingeBeamColumn … = composition = inheritance Rvfield?
  • 28.
    EDP – EngineeringDemand Parameters 28 EDP FloorDisp FloorAccel StoryDrift columnLine Floor data columnLine Floor data columnLine floor1 Floor2 data = Inheritance (is a) PanelPressure EDP = Engineering Demand Parameter columnLines[] floors[] data data: scalar or vector initially empty single values distribution (UQ)
  • 29.
    29 Event Earthquake Wind Hydro UniformRockOutcrop Regional BoreHole MultiSupport SoilLayer Herceles SW4 ActiveEvent RegionalSim DRM Lysmer Dr. Arthur Rodgers, Lawrence Livermore National Lab File DB Synthetic File DB Synthetic Event (boundary condition & forces for model) RV DispRecordAccelRecord
  • 30.
    Event Earthquake Wind Hydro FileCFD (LES/RANS) CFD- MultiFidelity DB RV Event (boundary condition & forces for model) OpenFoam Virtual Wind tunnel Collaborators WRFCFD- MultiScale Weather Forecast Weather Event Other Codes
  • 31.
    The Data isPassed Between APPLICATIONS • Given Inputs and Outputs, what are the applications to work on the DATA. – AI-M (BM,Event[]) -> SAM – FEM-UQ (BM,Event[],SAM)->EDP – DL (BM,Event[],SAM, EDP)->DL • Pre- and Post processors for a applications (python)
  • 32.
    32 AI-M AI-M-NoSIM AI-M-Sim KB-M • In5 years we cannot do all building types • Will return models for a limited set of structure: • Regular Steel and Concrete Moment Frames • Braced Frame Buildings • Shear Wall Buildings AI to return the FEM Model Description(s) using information in the knowledge base about how to model. The FEM Model Descriptions to contain information as to uncertain variables and information on credibility of the model. AI-M Prof. Xinzheng Lu, Tsinghua University, P.R. China
  • 33.
    33 KB-M Observational Data GEI BMEDP Event GBI SIM XIM CIM Numerical Simulation SAMEDP KB-M 0,1 0,111 DB will stores the relation between observational data and numerical simulation data AI-M can query the DB for these relations and the data, e.g. get observational data and associated numerical simulations for all concrete shear wall buildings. WE NEED EXPERIMENTAL TESTS AND SIMULATION INPUT FILES THAT ATTEMPT TO PREDICT THE RESPONSE MOOC
  • 34.
    34 FEM-UQ FEM-UQ-ENGINE Dakota RtMatlab Prof. TerjeHaukaas, University of British Columbia, Canada FEAPpv OpenSees ESSI FEM-UQ Prof. Boris Jeremic, UC Davis FEM
  • 35.
    35 DL Pact OpenSLAT Matlab Prof.Brendon Bradley, University of Canterbury, NZ. DL KB-DL Functions
  • 36.
    Resilience • Ultimate goalto perform regional simulations and allow decision makers to make informed decisions as to best way to facilitate recovery from disaster • KB-BE + Regional Simulation + UrbanSIM (or other)
  • 37.
    Integrating the Toolsto Develop and Evaluate Sustainability Plans 37 UrbanSim: A simulation platform for supporting planning and analysis of urban development, incorporating the interactions between land use, transportation, the economy, and the environment.
  • 38.
    Exploring a ConnectedGraph of the Metropolis 38 Micro Macro
  • 39.
    UrbanSim 39 Simulating individual choicessuch as household location, for entire populations, at an agent level.