Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for...

31
Towards CI-enabled, optimization-driven, simulation-based decision making Omar Ghattas Ultrascale Computing Lab Biomedical Engineering Civil & Environmental Engineering Carnegie Mellon University

Transcript of Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for...

Page 1: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Towards CI-enabled, optimization-driven,

simulation-based decision making

Omar GhattasUltrascale Computing LabBiomedical Engineering

Civil & Environmental EngineeringCarnegie Mellon University

Page 2: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Initial and boundary conditions

• Cyberinfrastructure := integrated, distributedparallel supercomputers, clusters, fast networks, federated databases, middleware, software libraries and tools, algorithms, application codes

• Design := decision making • Focus on high end, high fidelity simulation• Optimization framework

Page 3: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

From physical models to simulation-based decision making

physical model of natural physical model of natural or engineered systemor engineered system

mathematical modelmathematical model

numerical modelnumerical modelcomputer computer simulationsimulation

validationvalidation

SimulationSimulation--based decision makingbased decision makinge.g. design, control, operations, e.g. design, control, operations,

disaster response, manufacturing,disaster response, manufacturing,hazard assessment, planning, treatmenthazard assessment, planning, treatment

scalable scalable algorithms algorithms & solvers& solvers

data/observationsdata/observations

multiscalemultiscale models models

advanced geometry &advanced geometry &discretizationdiscretization schemesschemes

parameter inversionparameter inversiondata assimilationdata assimilationmodel/data error controlmodel/data error control

visualizationvisualizationdata mining/sciencedata mining/science

optimizationoptimizationstochastic modelsstochastic modelsuncertainty quantificationuncertainty quantification

verificationverificationapproximation approximation error controlerror control

CyberInfrastructure

CyberEngineering

Page 4: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Earthquake Modeling for Seismic Hazard Assessment Earthquake Modeling for Seismic Hazard Assessment VolkanVolkan AkcelikAkcelik , , JacoboJacobo BielakBielak, George Biros , George Biros ((UPennUPenn), Steven Day (SDSU), Omar ), Steven Day (SDSU), Omar GhattasGhattas, , LoukasLoukas KallivokasKallivokas (Texas), Harold (Texas), Harold MagistraleMagistrale(SDSU), David (SDSU), David O’HallaronO’Hallaron

Region of interest for Region of interest for 1994 Northridge 1994 Northridge earthquake simulation earthquake simulation

Adaptive grid resolves up to 1Hz freq. Adaptive grid resolves up to 1Hz freq. w/100 million grid pts; uniform grid w/100 million grid pts; uniform grid would require 2000x more pointswould require 2000x more points

SCEC geological model provides 3D soil SCEC geological model provides 3D soil properties in Greater LA Basinproperties in Greater LA Basin

Snapshot of simulated ground motion Snapshot of simulated ground motion (simulation requires 3hr on 6Tflops PSC (simulation requires 3hr on 6Tflops PSC machine, running at >80% parallel machine, running at >80% parallel effeff))

Comparison of observation with Comparison of observation with simulation (improved prediction simulation (improved prediction requires requires petaflopspetaflops capability)capability)

Inversion of surface observations Inversion of surface observations for 17 million elastic parameters for 17 million elastic parameters (right: target; left: inversion result)(right: target; left: inversion result)

Page 5: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

MultiscaleMultiscale Blood Flow Modeling for Artificial Heart Device DesignBlood Flow Modeling for Artificial Heart Device Design

At macroscopic (device) scales:At macroscopic (device) scales:•• Development of artificial heart assist Development of artificial heart assist

device at device at UnivUniv Pitt Med Center (Pitt Med Center (AntakiAntaki))•• Numerous advantages (size, power, Numerous advantages (size, power,

reliability, nonreliability, non--invasiveness)invasiveness)•• Design challenge: overcome tendency to Design challenge: overcome tendency to

damage red blood cellsdamage red blood cells•• Need macroscopic blood flow theory that Need macroscopic blood flow theory that

accounts for blood (cell) microstructureaccounts for blood (cell) microstructure

At microscopic (cell) scales:At microscopic (cell) scales:•• Macroscopic model fails in smallMacroscopic model fails in small--lengthlength--

scale regions (blade tip, rotor bearing)scale regions (blade tip, rotor bearing)•• Need modeling at cell scales to account Need modeling at cell scales to account

for blood damagefor blood damage•• Our Our mesoscopicmesoscopic simulations resolve simulations resolve

interaction of RBCs elastic membrane interaction of RBCs elastic membrane with plasma fluid dynamicswith plasma fluid dynamics

•• Prospects for 3D simulation of bladeProspects for 3D simulation of blade--tip tip region: 1 week at sustained 1 region: 1 week at sustained 1 petaflops/spetaflops/s

James James AntakiAntaki, Guy , Guy BlellochBlelloch, Omar , Omar GhattasGhattas, Marina , Marina KamenevaKameneva (Pitt), Robert (Pitt), Robert KormosKormos (Pitt), Gary Miller, (Pitt), Gary Miller, K. K. RajagopalRajagopal (Texas A&M), George (Texas A&M), George TurkiyyahTurkiyyah(Washington), Noel (Washington), Noel WalkingtonWalkington

Page 6: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Real time optimization for dynamic inversion & controlReal time optimization for dynamic inversion & control

Inversion and control for airborne contaminant transportInversion and control for airborne contaminant transport

Water network contaminant inversionWater network contaminant inversion•• Nonlinear optimization problem with Nonlinear optimization problem with

>300K variables and >100k controls >300K variables and >100k controls •• Solution time < 2 CPU minutes Solution time < 2 CPU minutes

real time source detection real time source detection •• Algorithm successful on thousands of Algorithm successful on thousands of

numerical tests on several municipal numerical tests on several municipal water networkswater networks

•• Formulation tool links to existing Formulation tool links to existing modeling software (EPANET) and modeling software (EPANET) and powerful NLP solver (IPOPT)powerful NLP solver (IPOPT)

VolkanVolkan AkcelikAkcelik, Roscoe Bartlett (, Roscoe Bartlett (SandiaSandia), Lorenz ), Lorenz BieglerBiegler, , George Biros (George Biros (UPennUPenn), Frank ), Frank FendellFendell (TRW), Omar (TRW), Omar GhattasGhattas, , Matthias Matthias HeinkenshlossHeinkenshloss (Rice), Judy Hill (CMU), David (Rice), Judy Hill (CMU), David Keyes (Columbia), John Keyes (Columbia), John ShadidShadid ((SandiaSandia), Bart van ), Bart van BloemenBloemenWaandersWaanders ((SandiaSandia), Andreas ), Andreas WachterWachter (IBM), David Young (IBM), David Young (Boeing)(Boeing)

•• sensor data provides sensor data provides concentrations of concentrations of hazardous agents hazardous agents

•• inverse problem solved inverse problem solved to reconstruct initial to reconstruct initial conditionsconditions

•• control problem solved control problem solved to find optimal to find optimal remediation strategyremediation strategy

Page 7: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Shape optimization of accelerator structures Volkan Akcelik (CMU) , Lori Freitag (LLNL), Omar Ghattas (CMU), David Keyes (Columbia), Patrick Knupp (SNL), Kwok Ko (SLAC), Lie-Quan (Rich) Lee (SLAC), Mark Shepherd (RPI), Tim Tautges(SNL)

CAD Meshing Partitioning(parallel)

h-Refinementp-refinement

Solvers(parallel)

Refinement

Basic Analysis Loop for given GeometryBasic Analysis Loop for given Geometry

Omega3POmega3P

S3PS3P

T3PT3P

Tau3PTau3P

•• Computer modeling has replaced trial and Computer modeling has replaced trial and error prototypingerror prototyping•• Next generation accelerators have complex Next generation accelerators have complex cavities that require shape optimization for cavities that require shape optimization for improved performance and reduced costimproved performance and reduced cost

•• Shape optimization problem governed by Shape optimization problem governed by electromagnetic electromagnetic eigenvalueeigenvalue problemproblem•• Cost functions involve target frequency, Cost functions involve target frequency, surface integrals of magnetic field, line surface integrals of magnetic field, line integrals of electric field integrals of electric field

Page 8: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

medical medical imagingimaging

4D image 4D image registrationregistration

5D model 5D model inversioninversion

diagnosis & diagnosis & planningplanning

imaging imaging lab serverlab server

institutional institutional clustercluster

regional regional supercomputing supercomputing centercenter

physician physician desktopdesktop

ImageImage--based patientbased patient--specific inversionspecific inversion--based cardiac modelingbased cardiac modeling

VolkanVolkan AkcelikAkcelik (CMU) , George Biros (Penn), (CMU) , George Biros (Penn), AlfioAlfio BorziBorzi (Graz), (Graz), ChristosChristos DavatzikosDavatzikos (Penn), Omar (Penn), Omar GhattasGhattas (CMU), William (CMU), William GroppGropp (Argonne), Michael (Argonne), Michael HintermuellerHintermueller (Graz), (Graz), EldadEldad HaberHaber(Emory), David Keyes (Columbia), Jan (Emory), David Keyes (Columbia), Jan ModersitzkiModersitzki ((LubekLubek), ), Jennifer Jennifer SchopfSchopf (Argonne)(Argonne)

Page 9: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Detailed example #1: Real-time inversion for transport of contaminant

• Given local velocity field v (e.g. from mesoscopic weather model), diffusivity k, sensor observations u*, and a terrain model, estimate initial condition u0 of a convection-diffusion equation by solving regularized inverse problem:

• Forward problem can then be solved to predict transport of contaminant

Page 10: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Optimality system

Page 11: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Symbolic optimality system

Page 12: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Greater Los Angeles BasinOnshore flow

Page 13: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Transport over synthetic terrain: forward solution

• Initial concentration is a Gaussian

• Velocity field from laminar Navier-Stokes flow calculation with parabolic inflow

• Images show contours of plume at initial and after 30, 60, and 90 timesteps

• PETSc implementation

Page 14: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Transport over synthetic terrain: inverse solution

• Solution of inverse problem via a reduced Newton-CG solver, preconditioned by a 2-step stationary method

• Original initial condition vs. inverted initial condition for 6x6x6, 11x11x11, and 21x21x21 sensor arrays

• Solution obtained in 58 CG iterations, each requiring pair of forward/adjoint transport solves

Page 15: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Detailed example #2: Earthquake inversion

USGS

Variable-slip kinematicsource model

Page 16: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Earthquake Modeling for Seismic Hazard Assessment Earthquake Modeling for Seismic Hazard Assessment VolkanVolkan AkcelikAkcelik , , JacoboJacobo BielakBielak, George Biros , George Biros ((UPennUPenn), Steven Day (SDSU), Omar ), Steven Day (SDSU), Omar GhattasGhattas, , LoukasLoukas KallivokasKallivokas (Texas), Harold (Texas), Harold MagistraleMagistrale(SDSU), David (SDSU), David O’HallaronO’Hallaron

Region of interest for Region of interest for 1994 Northridge 1994 Northridge earthquake simulation earthquake simulation

Adaptive grid resolves up to 1Hz freq. Adaptive grid resolves up to 1Hz freq. w/100 million grid pts; uniform grid w/100 million grid pts; uniform grid would require 2000x more pointswould require 2000x more points

SCEC geological model provides 3D soil SCEC geological model provides 3D soil properties in Greater LA Basinproperties in Greater LA Basin

Snapshot of simulated ground motion Snapshot of simulated ground motion (simulation requires 3hr on 6Tflops PSC (simulation requires 3hr on 6Tflops PSC machine, running at >80% parallel machine, running at >80% parallel effeff))

Comparison of observation with Comparison of observation with simulation (improved prediction simulation (improved prediction requires requires petaflopspetaflops capability)capability)

Inversion of surface observations Inversion of surface observations for 17 million elastic parameters for 17 million elastic parameters (right: target; left: inversion result)(right: target; left: inversion result)

Page 17: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Inverse problem: Use records of past seismic events to improve velocity model

SCEC Phase III strong motion database: SCEC Phase III strong motion database:

Observations from 28 earthquakes and 281 stationsObservations from 28 earthquakes and 281 stations

Page 18: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Least squares parameter estimation formulation of inverse wave propagation

receiverssourcesdata misfit

inversion fields

displacements

forward wave propagationmodel

Page 19: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 1

Page 20: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 2

Page 21: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 3

Page 22: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 4

Page 23: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 5

Page 24: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 6

Page 25: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 7

Page 26: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 8

Page 27: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Multiscale inversion:Target vs. inverted isosurfaces, level 9

Page 28: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Comparison of target and inverted material models: 3D acoustic and elastic

Acoustic medium, pAcoustic medium, p--wave velocitywave velocity Elastic medium, sElastic medium, s--wave velocitywave velocity

Page 29: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Challenges/Needs

• optimization techniques for multiscalesimulation models

• optimization-ready reduced order models• large scale 4D data assimilation methods• real-time optimization algorithms • uncertainty quantification and propagation• simulation-based optimization algorithms

scalable to O(100,000) processors• latency tolerant algorithms for exploiting

distributed computing resources

Page 30: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

SummarySummary

•• CI will help catalyze a transformation to highCI will help catalyze a transformation to high--fidelity simulationfidelity simulation--based decisionbased decision--makingmaking

•• But hardware/middleware infrastructure alone is But hardware/middleware infrastructure alone is insufficient to achieve this goalinsufficient to achieve this goal

•• Simultaneous advances on the models, methods, Simultaneous advances on the models, methods, and algorithms that underpin the components and algorithms that underpin the components ––and on their and on their systematic integrationsystematic integration to target to target strategic applications strategic applications –– are crucial for realizing are crucial for realizing the potential of CIthe potential of CI

Page 31: Towards CI-enabled, optimization-driven, simulation-based ...€¦ · Earthquake Modeling for Seismic Hazard Assessment Volkan Akcelik , Jacobo Bielak, George Biros (UPenn), Steven

Final editorial comment

• Advances in models and algorithms have often to led to greater improvements in simulation capability than have improvements in hardware

Example frommagnetohydrodynamics:2.5 orders of magnitude from hardware improvements; 3.5 orders of magnitude from modeling and algorithmic advances (From SCaLeSreport, Vol 2)