25
Stability Analysis Algorithms for Large-Scale Applications Andy Salinger, Roger Pawlowski, Ed Wilkes Louis Romero, Rich Lehoucq, John Shadid Sandia National Labs Albuquerque, New Mexico Computational Challenges in Dynamical Systems Fields Institute, Dec. 6, 2001 Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract DE-AC04-94AL85000. Supported by DOE’s MICS and ASCI programs

Stability Analysis Algorithms for Large-Scale Applications

  • Upload
    rafer

  • View
    54

  • Download
    2

Embed Size (px)

DESCRIPTION

Stability Analysis Algorithms for Large-Scale Applications. Andy Salinger, Roger Pawlowski, Ed Wilkes Louis Romero, Rich Lehoucq, John Shadid Sandia National Labs Albuquerque, New Mexico Computational Challenges in Dynamical Systems Fields Institute, Dec. 6, 2001. - PowerPoint PPT Presentation

Citation preview

Page 1: Stability Analysis Algorithms for Large-Scale Applications

Stability Analysis Algorithms for Large-Scale Applications

Andy Salinger, Roger Pawlowski, Ed Wilkes

Louis Romero, Rich Lehoucq, John Shadid

Sandia National Labs

Albuquerque, New Mexico

Computational Challenges in Dynamical Systems

Fields Institute, Dec. 6, 2001

Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company,for the United States Department of Energy under contract DE-AC04-94AL85000.

Supported by DOE’s MICS and ASCI programs

Page 2: Stability Analysis Algorithms for Large-Scale Applications

Elevator Talk (Lift Talk)

We’re developing a library of stability analysis algorithms that work with massively parallel engineering analysis codes.

The main research issues are developing algorithms that are relatively non-invasive (easy to implement) and that work reasonably well with approximate iterative linear solvers.

With this “LOCA” software, we’ve been able to track bifurcations of 1 Million unknown PDE discretizations.

What are you working on these days?

Page 3: Stability Analysis Algorithms for Large-Scale Applications

Why Do We Need a Stability Analysis Capability?

Nonlinear systems exhibit instabilities, e.g

• Multiple steady states

• Ignition

• Symmetry Breaking

• Onset of Oscillations

• Phase Transitions

These phenomena must be understood in order to perform computational design and optimization.

Current Applications: Reacting flows, Manufacturing processes, Microscopic fluids

Potential Applications: Electronic circuits, structural mechanics (buckling)

Delivery of capability:LOCA libraryExpertise

Page 4: Stability Analysis Algorithms for Large-Scale Applications

The Targeting of Large-Scale Applications Codes Restricts the Choice of Algorithms

Requirements: Stability analysis algorithms must be scalable and relatively non-invasive:

• Must work with iterative (approximate) linear solvers

• Should avoid or limit: Requiring more derivatives Changing sparsity pattern of matrix Increasing memory requirements

Targeted Codes: Newton’s Method, Large-Scale, Parallel

• Navier-Stokes & Reaction-Diffusion, Free Surface Flows, Molecular Theory, Structural Mechanics, Circuit Simulation

Page 5: Stability Analysis Algorithms for Large-Scale Applications

LOCA:The Library of Continuation Algorithms

Arclength continuation

Turning point (fold) tracking

Pitchfork tracking

Phase transition tracking

rSQP optimization hooks (Biegler, CMU)

Residual fill (R)

Jacobian Matrix solve (J-1b)

Mat-Vec multiply (Jb)

Set parameters ()

LOCA Algorithms LOCA Interface

Page 6: Stability Analysis Algorithms for Large-Scale Applications

LOCA:The Library of Continuation Algorithms

Arclength continuation

Turning point (fold) tracking

Pitchfork tracking

Phase transition tracking

rSQP optimization hooks (Biegler, CMU)

Eigensolver: ARPACK driver for Cayley transform

Residual fill (R)

Jacobian Matrix solve (J-1b)

Mat-Vec multiply (Jb)

Set parameters ()

Fill mass matrix (M)

Shifted Matrix Solve (J+M)

LOCA Algorithms LOCA Interface

Page 7: Stability Analysis Algorithms for Large-Scale Applications

LOCA:The Library of Continuation Algorithms

Arclength continuation

Turning point (fold) tracking

Pitchfork tracking

Phase transition tracking

rSQP optimization hooks (Biegler, CMU)

Eigensolver: ARPACK driver for Cayley transform

Hopf tracking

Residual fill (R)

Jacobian Matrix solve (J-1b)

Mat-Vec multiply (Jb)

Set parameters ()

Fill mass matrix (M)

Shifted Matrix Solve (J+M)

Complex matrix solve (J+iM)

LOCA Algorithms LOCA Interface

Page 8: Stability Analysis Algorithms for Large-Scale Applications
Page 9: Stability Analysis Algorithms for Large-Scale Applications

Q: Can General Bifurcation Algorithms Scale to ASCI-Sized Problems?

• Large problem sizes require iterative linear solves• The less invasive bordering algorithms require inversion of

matrices that are being driven singular

R 0=

Jn 0=

n 1=

Turning Point BifurcationJ 0 Rp

Jn x J Jpn

0 t0

xn

p

R–Jn–

1 n–

=

Full Newton Algorithm

Ja R–=

Jb R– p=

Jc Jn – xa J– n=

Jd Jn – xb Jp– n=

p 1 n– c– d =x a p b+=n c p d+=

Bordering Algorithm

Page 10: Stability Analysis Algorithms for Large-Scale Applications

Bordering Algorithm for Hopf tracking

f x 0=

Jy Mz+ 0=

Jz My– 0=

lty 1– 0=

ltz 0=

J 0 0 0f------

Jy x

-------------Mz

x--------------------+ J M Mz

Jy -------------

Mz --------------------+

Jz x

-------------My

x--------------------– M– J My–

Jz -------------

My --------------------–

0 lt

0 0 0

0 0 lt

0 0

xyz

f–Jy– Mz–

Jz– My+

1 lty–

ltz

=

J M– M J

g

h

Jy -------------

Jy x

-------------b Mz

--------------------- Mz

x---------------------b+ + +

Jz -------------

Jz x

-------------b My

---------------------– My

x---------------------b–+

=

Ja f–=

Jbf------–=

J M– M J

e

f

Jy x

-------------a Mz

x---------------------a+

Jz x

-------------a My

x---------------------a–

=

J M– M J

c

d

Mz

My–=

ltdl

te l

td l

tf l

tc–+

lthl

tc l

tgl

td–

--------------------------------------------=

1 lte l

tg+ +

ltc

------------------------------------–=

y y– e– g– c–=

z z– f– h– d–=

x a b+=

Page 11: Stability Analysis Algorithms for Large-Scale Applications

Eigenvalue Approx with Arnoldi, ARPACK 3 Spectral Transformations have Different Strengths

Complex Shift and Invert Cayley Transform v.1 Cayley Transform v.2

Lehoucq and Salinger, IJNMF, 2001.

Page 12: Stability Analysis Algorithms for Large-Scale Applications

Stability of Buoyancy-Driven Flow: 3D Rayleigh-Benard Problem in 5x5x1 box

MPSalsa (Shadid et al., SNL):

•Incompressible Navier-Stokes

•Heat and Mass Transfer, Reactions

•Unstrucured Finite Element (Galerkin/Least-Squares)

•Analytic, Sparse Jacobian

•Fully Coupled Newton Method

•GMRES with ILUT Preconditioner (Aztec package)

•Distributed Memory Parallelism

200K node meshpartitioned for320 Processors

Page 13: Stability Analysis Algorithms for Large-Scale Applications

At Pr=1.0, Two Pitchfork Bifurcations Located with Eigensolver

Eigenvector at Pitchfork

No Flow

2D Flow

3D Flow

5 Coupled PDE’s,50x50x20 Mesh:275K Unknowns

Page 14: Stability Analysis Algorithms for Large-Scale Applications

Three Flow Regimes Delineated by Bifurcation Tracking Algorithms

Codimension 2 BifurcationNear (Pr=0.027, Ra=2050) Eigenvectors at Hopf

Page 15: Stability Analysis Algorithms for Large-Scale Applications

Rayleigh-Benard Problem used to Demonstrate Scalability of Algorithms

ScalabilityScalabilityEigensolver: 16MContinuation:

16MTurning Point:

1MPitchfork:

1MHopf: 0.7M

Steady Solve 5 Minutes

Eigenvalue Calculation (~5)

10-20 Minutes

Pitchfork Tracking

25 Minutes

Hopf Tracking 80 Minutes (p=200)

275K Unknowns: 128 Procs

Page 16: Stability Analysis Algorithms for Large-Scale Applications

CVD Reactor Design and Scale-up:Buoyancy force can lead to undesirable flows

Chemical Vapor Deposition of Semiconductors: GaN, GaAs

Page 17: Stability Analysis Algorithms for Large-Scale Applications

Good and bad flows are found to coexist at certain values of (Ra, Re)

Good Flow

Bad Flow

30500 Unknowns

Page 18: Stability Analysis Algorithms for Large-Scale Applications

Good and bad flows are found to coexist at certain values of (Ra, Re)

30500 Unknowns

Page 19: Stability Analysis Algorithms for Large-Scale Applications

Tracking of bifurcation leads to design rule

Ra 1.75Re0.5

1100Re---------+

=

Ideal gas curves collapse onto Boussinesq for good choice of To

Boussinesq

Pawlowski, Salinger, Romero, Shadid 2001

Page 20: Stability Analysis Algorithms for Large-Scale Applications

Optimization Algorithms, such as rSQP, Need Same Calls as Bifurcation Algs

Collaboration with Biegler, CMU

Page 21: Stability Analysis Algorithms for Large-Scale Applications

Operability Window for Manufacturing Process Mapped with LOCA around GOMA

Slot Coating Application

Family of InstabilitiesFamily of Solutions w/ Instability

Steady Solution (GOMA)

back pressure

bac

k p

ress

ure

Page 22: Stability Analysis Algorithms for Large-Scale Applications

LOCA+Tramonto: Capillary condensation phase transitions studied in porous media

Bifurcation Diagram (a.k.a. Adsorption Isotherm)Density contours aroundrandom cylinders

Page 23: Stability Analysis Algorithms for Large-Scale Applications

LOCA+Tramonto: Capillary condensation phase transitions studied in porous media

Liquid

Vapor

Partial Condensation

Phase diagram

Tramonto: Frink and Salinger, JCP 1999,2000,2002

Page 24: Stability Analysis Algorithms for Large-Scale Applications

Counter-terrorism via PDE Optimization: Find fluxes at 16 surfaces to match data at 25 sensors

rSQP Exact

1.954 2.0

0.032 0.0

-0.012 0.0

-0.014 0.0

-0.006 0.0

0.042 0.0

-0.017 0.0

0.003 0.0

0.002 0.0

-0.002 0.0

4.990 5.0

0.057 0.0

0.312 0.0

0.133 0.0

0.944 1.0

0.049 0.0

1

2

5

6724 State variables, 16 design variables, x0=y0=0

88 rSQP Iterations, f=1.5e-6 , 30 sec / iter

Re=10

Flow Transport

Fluxes

Page 25: Stability Analysis Algorithms for Large-Scale Applications

Summary and Future Work

Powerful analysis tools has been developed to study large-scale flow stability applications:

– General purpose algorithms in LOCA linked to massively parallel finite element codes.

– Bifurcations tracked for 1.0 Million unknown models– Singular formulation works semi-robustly

Future work : Support common linear solvers (e.g. Aztec, Trilinos, PetsC, LAPACK)Implement more invasive, non-singular (bordered) formulationsMultiparameter continuation (Henderson, IBM)New application codes, e.g. buckling of structures

J a

bt c