Numerical Methods for (Time-Dependent) HJ PDEs

Similar documents
A Toolbox of Level Set Methods

CS205b/CME306. Lecture 9

Reach Sets and the Hamilton-Jacobi Equation

Reach Sets and the Hamilton-Jacobi Equation

Ian Mitchell. Department of Computer Science The University of British Columbia

Efficiency. Narrowbanding / Local Level Set Projections

Partial Differential Equations

An Introduction to Viscosity Solutions: theory, numerics and applications

Path Planning and Numerical Methods for Static (Time-Independent / Stationary) Hamilton-Jacobi Equations

Hamilton-Jacobi Equations for Optimal Control and Reachability

Dynamic Programming Algorithms for Planning and Robotics in Continuous Domains and the Hamilton-Jacobi Equation

The Level Set Method. Lecture Notes, MIT J / 2.097J / 6.339J Numerical Methods for Partial Differential Equations

BACK AND FORTH ERROR COMPENSATION AND CORRECTION METHODS FOR REMOVING ERRORS INDUCED BY UNEVEN GRADIENTS OF THE LEVEL SET FUNCTION

ROC-HJ: Reachability analysis and Optimal Control problems - Hamilton-Jacobi equations

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

Outline. Level Set Methods. For Inverse Obstacle Problems 4. Introduction. Introduction. Martin Burger

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field

The Flexible, Extensible and Ecient Toolbox of Level Set Methods

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t

Water. Notes. Free surface. Boundary conditions. This week: extend our 3D flow solver to full 3D water We need to add two things:

Reach Sets and the Hamilton-Jacobi Equation

Theoretical Background for OpenLSTO v0.1: Open Source Level Set Topology Optimization. M2DO Lab 1,2. 1 Cardiff University

Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Computation in Astrophysics Seminar (Spring 2006) L. J. Dursi

An efficient filtered scheme for some first order Hamilton-Jacobi-Bellman equat

Simulation in Computer Graphics. Particles. Matthias Teschner. Computer Science Department University of Freiburg

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder

Level Set Methods and Fast Marching Methods

Numerical schemes for Hamilton-Jacobi equations, control problems and games

The Level Set Method applied to Structural Topology Optimization

Medical Image Segmentation using Level Sets

High Order Fixed-Point Sweeping WENO Methods for Steady State of Hyperbolic Conservation Laws and Its Convergence Study

Skåne University Hospital Lund, Lund, Sweden 2 Deparment of Numerical Analysis, Centre for Mathematical Sciences, Lund University, Lund, Sweden

Fluent User Services Center

Unstructured Mesh Generation for Implicit Moving Geometries and Level Set Applications

A mass-conservative version of the semi- Lagrangian semi-implicit HIRLAM using Lagrangian vertical coordinates

The Eikonal Equation

Acknowledgements. Prof. Dan Negrut Prof. Darryl Thelen Prof. Michael Zinn. SBEL Colleagues: Hammad Mazar, Toby Heyn, Manoj Kumar

High order fast sweeping methods for static Hamilton-Jacobi equations

Numerical Analysis of Shock Tube Problem by using TVD and ACM Schemes

Mass-Spring Systems. Last Time?

Total Variation Diminishing (TVD) methods

Chapter 6. Semi-Lagrangian Methods

A-posteriori Diffusion Analysis of Numerical Schemes in Wavenumber Domain

High Order Weighted Essentially Non-Oscillatory Schemes for Convection. Dominated Problems. Chi-Wang Shu 1

SPH: Why and what for?

High Order Schemes for CFD: A Review. Juan Cheng 1. Institute of Applied Physics and Computational Mathematics, Beijing , China.

Third Order WENO Scheme on Three Dimensional Tetrahedral Meshes

PHYSICALLY BASED ANIMATION

NUMERICAL VISCOSITY. Convergent Science White Paper. COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved.

Dr. Ulas Bagci

J. Vira, M. Sofiev SILAM winter school, February 2013, FMI

Overview of Traditional Surface Tracking Methods

Faculty of Mechanical and Manufacturing Engineering, University Tun Hussein Onn Malaysia (UTHM), Parit Raja, Batu Pahat, Johor, Malaysia

Conservative high order semi-lagrangian finite difference WENO methods for advection in incompressible flow. Abstract

Study on the Numerical Accuracy for the CFD

Post Processing, Visualization, and Sample Output

The Immersed Interface Method

PARAMETRIC SHAPE AND TOPOLOGY OPTIMIZATION WITH RADIAL BASIS FUNCTIONS

Application of ENO technique to semi-lagrangian interpolations. RC LACE stay report Scientific supervisors: Petra Smolíková and Ján Mašek

An Adaptive Stencil Linear Deviation Method for Wave Equations

Lecture 1: Finite Volume WENO Schemes Chi-Wang Shu

Redistancing by Flow of Time Dependent Eikonal Equation

On the order of accuracy and numerical performance of two classes of finite volume WENO schemes

weighted minimal surface model for surface reconstruction from scattered points, curves, and/or pieces of surfaces.

Investigating The Stability of The Balance-force Continuum Surface Force Model of Surface Tension In Interfacial Flow

Imaging of flow in porous media - from optimal transport to prediction

Discontinuous Galerkin Sparse Grid method for Maxwell s equations

Continuum-Microscopic Models

A Simple Embedding Method for Solving Partial Differential Equations on Surfaces

BIRS Workshop 11w Advancing numerical methods for viscosity solutions and applications

Computational Astrophysics 5 Higher-order and AMR schemes

The Total Variation Approach to Approximate Hyperbolic Wave Equations

Semi-Lagrangian Advection. The Basic Idea. x 1.

On the high order FV schemes for compressible flows

Evacuate Now? Faster-than-real-time Shallow Water Simulations on GPUs. NVIDIA GPU Technology Conference San Jose, California, 2010 André R.

Considerations about level-set methods: Accuracy, interpolation and reinitialization

Fully conservative leak-proof treatment of thin solid structures immersed in compressible uids

Computer Project 3. AA Computational Fluid Dyanmics University of Washington. Mishaal Aleem March 17, 2015

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research

SPH: Towards the simulation of wave-body interactions in extreme seas

New formulations of the semi-lagrangian method for Vlasov-type equations

High-Order Finite Difference Schemes for computational MHD

Smoothers. < interactive example > Partial Differential Equations Numerical Methods for PDEs Sparse Linear Systems

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 13: The Lecture deals with:

The 3D DSC in Fluid Simulation

A High Quality, Eulerian 3D Fluid Solver in C++ A Senior Project. presented to. the Faculty of the Computer Science Department of

Metafor FE Software. 2. Operator split. 4. Rezoning methods 5. Contact with friction

CONSERVATIVE AND NON-CONSERVATIVE METHODS BASED ON HERMITE WEIGHTED ESSENTIALLY-NON-OSCILLATORY RECONSTRUCTION FOR VLASOV EQUATIONS

Semi-Implicit Level Set Methods for Curvature and Surface Diffusion Motion

A Study of Numerical Methods for the Level Set Approach

A new multidimensional-type reconstruction and limiting procedure for unstructured (cell-centered) FVs solving hyperbolic conservation laws

Debojyoti Ghosh. Adviser: Dr. James Baeder Alfred Gessow Rotorcraft Center Department of Aerospace Engineering

Advective and conservative semi-lagrangian schemes on uniform and non-uniform grids

The p-laplacian on Graphs with Applications in Image Processing and Classification

Coupling of STAR-CCM+ to Other Theoretical or Numerical Solutions. Milovan Perić

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

A new Eulerian computational method for the propagation of short acoustic and electromagnetic pulses

Fast marching methods

An adaptive discretization of compressible flow using a multitude of moving Cartesian grids

Transcription:

Numerical Methods for (Time-Dependent) HJ PDEs Ian Mitchell Department of Computer Science The University of British Columbia research supported by National Science and Engineering Research Council of Canada

Outline Basic representation and approximation of functions which solve evolutionary PDEs Shocks / kinks for HJ PDEs Level Set Toolbox, alternative software and schemes Convergence, consistency, stability & monotonicity Terminology from level set methods Example: approximating the identical vehicle collision avoidance reach tube March 2008 Ian Mitchell (UBC Computer Science) 2

Representing a Continuous Function Computer representations must be finite Consequently, we are forced to construct a discrete, finite representation of ψ: discretization Combination of basis functions If η j are trigonometric, we get spectral methods If η j have local support, we get finite element (FE) methods Create grid of state space, store value of ψ at the nodes Called finite difference (FD) because of derivative approximation Create grid of state space, store average nearby value of ψ Called finite volume (FV), uncommon outside fluid mechanics March 2008 Ian Mitchell (UBC Computer Science) 3

Solving an Evolution PDE Although we can represent a time dependent function φ as a function in R d+ 1, most often it is represented as a collection of functions in R d at a set of time instants Much of the literature for (time-dependent) HJ PDEs grew out of conservation law schemes, so there is shared terminology In a Lagrangian approach, the function representation moves with the underlying flow In an Eulerian approach, the function representation does not move with the underlying flow It is often fixed, but may be adaptive Updates are done without following the underlying flow In a semi-lagrangian approach, the underlying flow is used to update a fixed representation March 2008 Ian Mitchell (UBC Computer Science) 4

Lagrangian Pros and Cons Easy concentration of resources in regions of high complexity, but other regions may become sparse Challenging to collect topological information, detect shocks Eulerian Easy to collect topological information and detect shocks but challenging to adapt representation in regions of high complexity CFL timestep restrictions may slow computations Semi-Lagrangian Mapping between Eulerian and Lagrangian representations causes loss of accuracy due to interpolation March 2008 Ian Mitchell (UBC Computer Science) 5

Shocks In an HJ PDE framework, the Lagrangian approach corresponds to following individual optimal trajectories Objective function along the trajectory starts with the terminal cost at the terminal location, and then accumulates running cost as trajectory is followed backwards But locally optimal trajectories can cross How do we assign objective function value at states from which multiple trajectories can arise? Viscosity solution requires us to take the best one A shock occurs where two (or more) optimal trajectories meet with the same value PDE solution may not be differentiable at these locations (perhaps kink is better) System Dynamics Shock G(t) T March 2008 Ian Mitchell (UBC Computer Science) 6

Outline Basic representation and approximation of functions which solve evolutionary PDEs Shocks / kinks for HJ PDEs Level Set Toolbox, alternative software and schemes Convergence, consistency, stability & monotonicity Terminology from level set methods Example: approximating the identical vehicle collision avoidance reach tube March 2008 Ian Mitchell (UBC Computer Science) 7

Level Set Methods Adopts Eulerian approach because of the shock detection problem Originally designed for dynamic implicit surface evolution Representing the moving surface of a fluid Merging and pinch-off handled automatically Easy to implement Finite difference representation and approximation Dimension by dimension treatment of spatial terms Method of lines treatment of temporal terms Borrows extensively from conservation laws Schemes with high orders of accuracy Tries to avoid complications of boundary conditions Reinitialization procedure for implicit surfaces Implementation available: Toolbox of Level Set Methods March 2008 Ian Mitchell (UBC Computer Science) 8

Other Level Set Software Packages Level Set Method Library (LSMLIB) [Chu & Prodanovic] C/C++/Fortran with Matlab interface, dimensions 1 3 two types of motion, fast marching & velocity extension localized algorithms, serial and parallel execution Multivac C++ [Mallet] C++, dimension 2 six types of motion, fast marching localized algorithms application: forest fire propagation and image segmentation A Matlab toolbox implementing level set methods [Sumengen] Matlab, dimension 2 three types of motion application: vision and image processing Toolbox Fast Marching [Peyré] Matlab interface to C++, dimensions 2 3 Static HJ PDE only March 2008 Ian Mitchell (UBC Computer Science) 9

Alternatives Semi-Lagrangian schemes Falcone, Ferretti, Soravia Viability schemes Saint-Pierre Many reachability algorithms unrelated to PDEs March 2008 Ian Mitchell (UBC Computer Science) 10

Convergence and Related Concepts Since we cannot solve the PDE exactly, we would like that our approximation approaches the true solution as some refinement parameter goes to zero: convergence For our representation, x 0 and t 0 Convergence can be challenging to prove directly For linear PDEs, consistency + stability implies convergence HJ PDE is not linear, but Barles & Souganidis (1991) showed that consistency + stability + monotonicity implies convergence Consistency: As x 0 and t 0, the difference approximation approaches the differential equation Stability: Small errors made in a single step will not be compounded over time into big errors Monotonicity: An increase in the approximate solution will lead to an increase in the numerical Hamiltonian March 2008 Ian Mitchell (UBC Computer Science) 11

Outline Basic representation and approximation of functions which solve evolutionary PDEs Shocks / kinks for HJ PDEs Level Set Toolbox, alternative software and schemes Convergence, consistency, stability & monotonicity Terminology from level set methods Example: approximating the identical vehicle collision avoidance reach tube March 2008 Ian Mitchell (UBC Computer Science) 12

Method of Lines One method for dealing with evolution equations that have both spatial and temporal derivatives Basic idea: discretize and approximate spatial terms to form a coupled set of ordinary differential equations in time For example Now solve ODE in time for φ(x i, t) for all nodes x i March 2008 Ian Mitchell (UBC Computer Science) 13

CFL Condition In the simplest approaches to solving the temporal ODE (explicit schemes) require a restriction on the temporal discretization t with respect to the spatial discretization x Intuitively the restriction corresponds to restricting t such that trajectories of the underlying dynamics will not cross more than x in time t For deterministic systems, t = O( x) The constant is related to the velocity of the underlying dynamics: the faster the flow, the smaller t Mathematically, the restriction arises from stability CFL satisfied t + t t x x x x + x CFL failed t + t x x x x + x t March 2008 Ian Mitchell (UBC Computer Science) 14

Upwind Finite Differences Finite difference approximation of spatial derivative has several options for which neighbouring nodes are used Information travels with the underlying flow, so intuitively we would like to approximate derivatives using neighbours in the upwind (against the flow) direction Use D + if flow is leftward, D if flow is rightward Mathematically, other options are unstable x i-2 x i-1 x i x i+1 x i+2 March 2008 Ian Mitchell (UBC Computer Science) 15

ENO / WENO Standard schemes for higher orders of accuracy require underlying function φ to have (more) derivatives Attempts to approximate functions without those derivatives lead to incorrect oscillatory approximations Since φ may have places without derivatives, Essentially Non- Oscillatory schemes build multiple approximations, and chose the least oscillatory Extension to Weighted ENO combines all approximations with weights that favour least oscillatory approximation near a kink, but in smooth regions achieve even higher order of accuracy Not monotonic, so no convergence theory Work very well in practice x i-3 x i-2 x i-1 x i x i+1 x i+2 x i+3 March 2008 Ian Mitchell (UBC Computer Science) 16

Numerical Hamiltonian Obvious substitution is unstable Simplest approximation: Lax-Friedrichs used in Crandall & Lions (1984) Essentially adds dissipation Upwinding: for H(x,p) = p f(x) There may not be a single consistent upwind direction when the dynamics have inputs March 2008 Ian Mitchell (UBC Computer Science) 17

Higher Dimensions Treat each dimension independently For example, upwinding numerical Hamiltonian March 2008 Ian Mitchell (UBC Computer Science) 18

TVD / SSP Basic scheme is forward Euler (FE) Combination of FE in time and the ENO / WENO spatial schemes described previously are shown to be stable (or not) Higher order of accuracy in time: Total Variation Diminishing (original name) or Strong Stability Preserving (SSP) temporal integration schemes If a spatial scheme is stable using FE in time, then it will be stable using any SSP scheme In practice, the order of accuracy in space seems much more important to final results than the order of accuracy in time Typically there is a big difference between first and second order accurate schemes, and then diminishing benefits for the extra expense of going to higher order March 2008 Ian Mitchell (UBC Computer Science) 19

Implicit Surface Reinitialization Restriction of implicit surface function to signed distance often produces a more accurate representation Gradient magnitude is not too small or too large, so location of and normal to the surface is easy to estimate Evolution of surface may perturb signed distance Converging or diverging flow Non-physical boundary conditions However, value of implicit surface function away from zero level set does not matter Reinitialization rebuilds a signed distance function from an implicit surface function without changing the zero level set Several available schemes Fast marching (uses auxiliary static HJ PDE) Reinitialization equation (uses auxiliary time-dependent HJ PDE) Toolbox supports the latter but not the former March 2008 Ian Mitchell (UBC Computer Science) 20

Reducing the Cost of Level Set Methods Solve Hamilton-Jacobi equation only in a band near interface Computational challenge: handling stencils near edge of band Narrowbanding uses low order accurate reconstruction whenever errors are detected Local level set modifies Hamiltonian near edge of band Data structure challenge: handling merging and breaking of interface Not supported in the Toolbox March 2008 Ian Mitchell (UBC Computer Science) 21

Implementing Reach Tubes Collision avoidance example from the Toolbox See Toolbox documentation section 2.6 Pitfalls to avoid Failure to include the kernel directories in the Matlab path Grid is too coarse State space dimensions are poorly scaled (be careful to scale both grid and dynamics) Boundary conditions are incorrect Incorrect initialization and/or incorrect grid bounds Numerical instability caused by buggy boundary conditions, too little dissipation in Lax-Friedrichs, poor dimensional scaling, too large CFL, etc. Mixing up ndgrid and meshgrid based grids (see documentation for discussion) March 2008 Ian Mitchell (UBC Computer Science) 22

Numerical Methods for (Time-Dependent) HJ PDEs For more information contact Ian Mitchell Department of Computer Science The University of British Columbia mitchell@cs.ubc.ca http://www.cs.ubc.ca/~mitchell