Implicit-explicit variational integration of highly oscillatory problems

Similar documents
arxiv: v3 [math.na] 22 Apr 2009

232 Calculus and Structures

Lecture 2: Symplectic integrators

Numerical Differentiation

The Verlet Algorithm for Molecular Dynamics Simulations

lecture 26: Richardson extrapolation

MODIFIED DIFFERENTIAL EQUATIONS. Dedicated to Prof. Michel Crouzeix

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these.

Polynomial Interpolation

Polynomial Interpolation

Parameter Fitted Scheme for Singularly Perturbed Delay Differential Equations

MATH745 Fall MATH745 Fall

AMS 147 Computational Methods and Applications Lecture 09 Copyright by Hongyun Wang, UCSC. Exact value. Effect of round-off error.

Recent Progress in the Integration of Poisson Systems via the Mid Point Rule and Runge Kutta Algorithm

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx.

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY

Application of numerical integration methods to continuously variable transmission dynamics models a

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods

Order of Accuracy. ũ h u Ch p, (1)

LECTURE 14 NUMERICAL INTEGRATION. Find

Physically Based Modeling: Principles and Practice Implicit Methods for Differential Equations

Click here to see an animation of the derivative

MAT244 - Ordinary Di erential Equations - Summer 2016 Assignment 2 Due: July 20, 2016

Chapter 4: Numerical Methods for Common Mathematical Problems

University Mathematics 2

New Streamfunction Approach for Magnetohydrodynamics

Lecture 15. Interpolation II. 2 Piecewise polynomial interpolation Hermite splines

Copyright c 2008 Kevin Long

Numerical Analysis MTH603. dy dt = = (0) , y n+1. We obtain yn. Therefore. and. Copyright Virtual University of Pakistan 1

DELFT UNIVERSITY OF TECHNOLOGY Faculty of Electrical Engineering, Mathematics and Computer Science

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x)

Math 212-Lecture 9. For a single-variable function z = f(x), the derivative is f (x) = lim h 0

Blanca Bujanda, Juan Carlos Jorge NEW EFFICIENT TIME INTEGRATORS FOR NON-LINEAR PARABOLIC PROBLEMS

NUMERICAL DIFFERENTIATION. James T. Smith San Francisco State University. In calculus classes, you compute derivatives algebraically: for example,

The Laplace equation, cylindrically or spherically symmetric case

Math 31A Discussion Notes Week 4 October 20 and October 22, 2015

Notes on Multigrid Methods

A method of Lagrange Galerkin of second order in time. Une méthode de Lagrange Galerkin d ordre deux en temps

Quasiperiodic phenomena in the Van der Pol - Mathieu equation

Fractional Derivatives as Binomial Limits

Recall from our discussion of continuity in lecture a function is continuous at a point x = a if and only if

Chapter Seven The Quantum Mechanical Simple Harmonic Oscillator

Dedicated to the 70th birthday of Professor Lin Qun

Combining functions: algebraic methods

On convexity of polynomial paths and generalized majorizations

Pre-Calculus Review Preemptive Strike

MATH1131/1141 Calculus Test S1 v8a

5.74 Introductory Quantum Mechanics II

A h u h = f h. 4.1 The CoarseGrid SystemandtheResidual Equation

ERROR BOUNDS FOR THE METHODS OF GLIMM, GODUNOV AND LEVEQUE BRADLEY J. LUCIER*

Integral Calculus, dealing with areas and volumes, and approximate areas under and between curves.

= 0 and states ''hence there is a stationary point'' All aspects of the proof dx must be correct (c)

Geometric Numerical Integration

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point

Math Module Preliminary Test Solutions

arxiv: v1 [math.na] 8 Mar 2011

Solution. Solution. f (x) = (cos x)2 cos(2x) 2 sin(2x) 2 cos x ( sin x) (cos x) 4. f (π/4) = ( 2/2) ( 2/2) ( 2/2) ( 2/2) 4.

LIMITATIONS OF EULER S METHOD FOR NUMERICAL INTEGRATION

ETNA Kent State University

Math Spring 2013 Solutions to Assignment # 3 Completion Date: Wednesday May 15, (1/z) 2 (1/z 1) 2 = lim

2.8 The Derivative as a Function

CHAPTER 3: Derivatives

Gradient Descent etc.

arxiv: v1 [math.na] 12 Mar 2018

Math 242: Principles of Analysis Fall 2016 Homework 7 Part B Solutions

Name: Answer Key No calculators. Show your work! 1. (21 points) All answers should either be,, a (finite) real number, or DNE ( does not exist ).

158 Calculus and Structures

Math 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006

Tangent Lines-1. Tangent Lines

FINITE ELEMENT DUAL SINGULAR FUNCTION METHODS FOR HELMHOLTZ AND HEAT EQUATIONS

A Reconsideration of Matter Waves

1 (10) 2 (10) 3 (10) 4 (10) 5 (10) 6 (10) Total (60)

MANY scientific and engineering problems can be

Flavius Guiaş. X(t + h) = X(t) + F (X(s)) ds.

3.4 Worksheet: Proof of the Chain Rule NAME

Lecture XVII. Abstract We introduce the concept of directional derivative of a scalar function and discuss its relation with the gradient operator.

Differentiation in higher dimensions

Chapter 1D - Rational Expressions

1. For d=3,2 from ε<< ε F it follows that ετ >> e-e h, i.e.,

Exam 1 Solutions. x(x 2) (x + 1)(x 2) = x

Volume 29, Issue 3. Existence of competitive equilibrium in economies with multi-member households

Material for Difference Quotient

1. Consider the trigonometric function f(t) whose graph is shown below. Write down a possible formula for f(t).

Some Review Problems for First Midterm Mathematics 1300, Calculus 1

Function Composition and Chain Rules

A First-Order System Approach for Diffusion Equation. I. Second-Order Residual-Distribution Schemes

MATH 1A Midterm Practice September 29, 2014

5 Ordinary Differential Equations: Finite Difference Methods for Boundary Problems

Lecture 10: Carnot theorem

Analytic Functions. Differentiable Functions of a Complex Variable

arxiv: v1 [math.na] 7 Mar 2019

Differential equations. Differential equations

Differential Equations

A CLASS OF EVEN DEGREE SPLINES OBTAINED THROUGH A MINIMUM CONDITION

arxiv: v1 [math.na] 28 Apr 2017

CONVERGENCE OF AN IMPLICIT FINITE ELEMENT METHOD FOR THE LANDAU-LIFSHITZ-GILBERT EQUATION

Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 01 Aug 08, 2016.

MVT and Rolle s Theorem

Continuity and Differentiability of the Trigonometric Functions

Definition of the Derivative

Transcription:

Implicit-explicit variational integration of igly oscillatory problems Ari Stern Structured Integrators Worksop April 9, 9 Stern, A., and E. Grinspun. Multiscale Model. Simul., to appear. arxiv:88.39 [mat.na]. Department of Matematics, UCSD, astern@mat.ucsd.edu

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Te Problem: Multiple Time Scales vs. Numerical Integrators Many systems in Lagrangian mecanics ave components acting on different time scales, for example:. Elasticity: Several spatial elements of varying stiffness, resulting from irregular meses and/or inomogeneous materials.. Planetary Dynamics: N-body problem wit nonlinear gravitational forces, arising from pairwise inverse-square potentials. Multiple time scales result from te different distances between te bodies, mass ratios, etc. 3. Higly Oscillatory Problems: Potential energy can be split into a fast linear oscillatory component and a slow nonlinear component. Tese problems are widely encountered in modeling molecular dynamics, but ave also been used to model oter diverse applications, for example, in computer animation. Existing metods tend to waste too muc computational effort evaluating te non-stiff forces e.g., Störmer/Verlet, implicit midpoint or suffer from resonance instability problems e.g., Verlet-I/r-RESPA, AVI, many trigonometric integrators. Can we develop geometric numerical integrators tat are stable wit respect to te stiff forces, but still efficient wit respect to te non-stiff forces?

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Review: Te Discrete Lagrangian and Action Sum Suppose we ave a mecanical system on a configuration manifold Q, specified by a Lagrangian L: T Q R. Given a set of discrete time points t < < t N wit uniform step size, we wis to compute a numerical approximation q n q t n, n =,..., N, to te continuous trajectory qt. To construct a variational integrator for tis problem, we define a discrete Lagrangian L : Q Q R, replacing tangent vectors by pairs of consecutive configuration points, so tat in some sense we ave te approximation tn+ L qn, q n+ L q, q dt. Ten te action integral over [t, t N ] is approximated by te discrete action sum tn S [q] = N n= L qn, q n+ tn t L q, q dt.

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Review: Te Discrete Euler Lagrange Equations and Legendre Transform If we apply Hamilton s principle to tis action sum, so tat δs [q] = for fixedendpoint variations, ten tis yields te discrete Euler Lagrange equations D L qn, q n+ + D L qn, q n =, n =,..., N, were D and D denote partial differentiation in te first and second arguments, respectively. Tis defines a two-step numerical metod on Q Q, mapping q n, q n qn, q n+. Te equivalent one-step metod on te cotangent bundle T Q, mapping q n, p n qn+, p n+, is defined by te discrete Legendre transform p n = D L qn, q n+, pn+ = D L qn, q n+, were te first equation updates q, and te second updates p. Here, L is a generating function for te symplectic map q n, p n qn+, p n+. 3

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Review: Te Trapezoidal and Midpoint Discrete Lagrangians Consider a Lagrangian of te form L q, q = qt M q V q, were Q = R d, M is a constant d d mass matrix, and V : Q R is a potential. If we use linear interpolation of q wit trapezoidal quadrature to approximate te contribution of V to te action integral, we get L trap qn, q n+ = qn+ q T n qn+ q n M V q n + V qn+, wic we call te trapezoidal discrete Lagrangian. It is straigtforward to see tat te discrete Euler Lagrange equations for L trap correspond to te explicit Störmer/Verlet metod. Alternatively, if we use midpoint quadrature to approximate te integral of te potential, tis yields te midpoint discrete Lagrangian, L mid qn, q n+ = qn+ q T n qn+ q n qn + q n+ M V, for wic te resulting integrator is te implicit midpoint metod. 4

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Te IMEX Discrete Lagrangian Suppose tat we ave a Lagrangian of te form L q, q = qt M q Uq W q, were U is a slow potential and W is a fast potential, for te configuration space Q = R d. Define te IMEX discrete Lagrangian L IMEX qn+ q T n qn+ q n qn, q n+ = M U q n + U qn+ qn + q n+ W, using explicit trapezoidal approximation for te slow potential and implicit midpoint approximation for te fast potential. Te discrete Euler Lagrange equations give a two-step variational integrator on Q Q, [ q n+ q n + q n = M U q n + W qn + q n + ] W qn + q n+. 5

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Te IMEX Algoritm on T Q Te discrete Legendre transform for te IMEX discrete Lagrangian is qn+ q n p n = M qn+ q n p n+ = M If we introduce te intermediate stages, + U q n + W U q n+ W qn + q n+, qn + q n+. p + n = p n U q n, p n+ = p n+ + U q n+, ten tis gives us te following impulse-type integration algoritm: Step : p + n = p n U q n, explicit kick Step : q n+ pn+ p = q n + M + n + pn+, implicit midpoint = p n + qn + q n+ W, Step 3: p n+ = p n+ U q n+. explicit kick 6

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Application to Higly Oscillatory Problems For igly oscillatory problems on Q = R d, we start by taking a quadratic fast potential W q = qt Ω q, Ω R d d symmetric and positive semidefinite. A prototypical Ω is given by te block-diagonal matrix Ω =, ω, ωi were some of te degrees of freedom are subjected to an oscillatory force wit constant fast frequency ω. We also denote te slow force gq = Uq and assume, witout loss of generality, tat te constant mass matrix is given by M = I. Terefore, te nonlinear system we wis to approximate numerically is q + Ω q = gq. 7

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 IMEX as Störmer/Verlet wit a Modified Mass Matrix Applying te IMEX metod to tis example, we get te discrete Lagrangian L IMEX qn, q n+ = qn+ q T n qn+ q n U q n + U qn+ qn + q T n+ Ω qn + q n+, and so te two-step IMEX sceme is given by te discrete Euler Lagrange equations q n+ q n + q n + 4 Ω q n+ + q n + q n = g q n. Rearranging terms, we can rewrite tis as [ ] I + qn+ 4 Ω q n + q n + Ω q n = g q n, wic is equivalent to Störmer/Verlet wit a modified mass matrix I + Ω/. 8

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Te Discrete Lagrangian and Modified Mass Matrix Proposition. Suppose we ave a Lagrangian L q, q = qt M q qt Ω q and its corresponding midpoint discrete Lagrangian L mid. Next, define te modified Lagrangian L q, q = qt M q qt Ω q, aving te same quadratic potential but a different mass matrix M, and take its trapezoidal discrete Lagrangian L trap. Ten Lmid L trap wen M = M + Ω/. Proof. Te midpoint discrete Lagrangian is given by L mid qn, q n+ = qn+ q T n qn+ q n M qn + q T n+ Ω qn + q n+. Now, notice tat we can rearrange te terms qn + q T n+ Ω qn + q n+ qn+ q T n = Ω qn+ q n qt nω q n qt n+ Ω q n+ qn+ q T n Ω qn+ q n = qt nω q n qt n+ Ω q n+. 9

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Terefore te discrete Lagrangian can be written in te trapezoidal form [ L mid qn+ q T ] qn+ n Ω q n qn, q n+ = M + qt nω q n + qt n+ Ω q n+, wic is precisely L trap qn, q n+ wen M = M + Ω/. Corollary. Consider a igly oscillatory system wit an arbitrary slow potential U, quadratic fast potential W q = qt Ω q, and constant mass matrix M = I, so tat te Lagrangian L and IMEX discrete Lagrangian L IMEX are defined as above. Next, take te modified Lagrangian L wit te same potentials but different mass matrix M. Ten L IMEX L trap wen M = I + Ω/.

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Analysis of Linear Resonance Stability For a armonic oscillator wit unit mass and frequency ν, te Störmer/Verlet metod is linearly stable if and only if ν ; for a system wit constant mass m and spring constant ν, tis condition generalizes to ν 4m. Linear model problem: Let Uq = qt q, and W q = qt Ω q, were Ω = ωi for some ω, and again let M = I. Teorem. Te IMEX metod is linearly stable, for te system described above, if and only if i.e., if and only if is a stable time step size for te slow oscillator alone. Proof. As proved in te previous section, te IMEX metod for tis system is equivalent to Störmer/Verlet wit te modified mass matrix I + Ω/. Now, tis modified oscillatory system as constant mass m = +ω/ and spring constant ν = +ω. Terefore, te necessary and sufficient condition for linear stability is + ω 4 + 4 ω, and since te ω terms cancel on bot sides, tis is equivalent to. 4, or Tis sows tat, in contrast to multiple-time-stepping metods, te IMEX metod does not exibit linear resonance instability.

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Numerical Experiment: Coupled Linear Oscillators r!respa Variational IMEX Maximum absolute energy error!!!3!4.5.5.5 3 3.5 4 4.5! /" Maximum energy error of r-respa and variational IMEX, integrated over te time interval [, ] for a range of parameters ω. Te r-respa metod exibits resonance instability near integer values of ω/π, wile te variational IMEX metod remains stable.

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Numerical Experiment: Te Fermi Pasta Ulam Problem q q q m q m stiff armonic soft nonlinear Source: Hairer, Lubic, and Wanner 6. Cain wit alternating soft nonlinear stiff linear springs I + I + I 3.8.6 I I I 3.8.6.4.4.. 5 5 Slow energy excange among te stiff springs. 5 3

Stern, IMEX variational integration of igly oscillatory problems I + I + I3.8.6.8.8.4 I.4.4 5...8.8 I + II + I 3 I 3 I.6.6..8.4 I I + I + I3 I3 I I.6 I3 I.8.4 I.6.6...4.4 5. 5 5 I + I + I3.6 I 5 5 5 5.8.6.6.6.8.8.4.8.8.4.4.6.6..6.6.. 5.. 5 5.8 I + I + I3 I3 I I3 I.6.6.6. 5 5 5 Reference solution: Störmer/Verlet wit time step size =.. 5 5.8 5 5.4.8..6.6..6..6.4.4.4.6.6...4.4. 5 5 5 5 5.8.6.6.6.8.8.4.8.8.4.4.6.6..6.6.. 5 5 5.4.4.4 5 5....5 5 5 5 5 5 5 5 5.. 5 5 5 5 5 5 5.5.5 5 5 IMEX wit =.. 5 5 5 5 5 5 5 5 5 5 5 5 5 5.8.8.8.6.6.6.8.8.4.8.8.4.4.6.6..6.6...4.4.4 5 5 5.8 5 5 5 5 5 5 5.8.8.6.6.6.8.8.8.8.6.6.8.6.6.6.6.8.8.8.8.8.4.4.6.6.6.6.6...4.8.8.4.8.4.8..6.6..6.4 5 5 5.4 5. IMEX wit =.. 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 IMEX wit =.5. 5..8.4.4 5.4. 5 5 5.4 5.4 5 5 5..6.4 5 5.4 5 5 5... 5 5..8.. 5.4.5 5 Störmer/Verlet wit =.3. 5..6.6..5.8.8.4.5 5.6 5... 5.4. IMEX wit =.3..5 Störmer/Verlet wit =...8..8 5.8.6 5.8.4.8.8.4.8.8.6.6.8.4.6.6 5.8.6.6.8 5.8.4.6.8.8.4.6.6.8.6.8 5 5.8.8.5 5.8.5.5.5.5.5...8.6.8.8.4.4.4..5 I3 I I + I + I3.4..4.4 Structured Integrators Worksop, May 7, 9 5 5 5 IMEX wit =.5. 5. 5 5. IMEX wit =.3. 4

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 5 4.5 4 3.5.8 3.5.6.4.5..5 3 4 IMEX wit =. 3 4 IMEX wit =.3 Numerical simulation of te FPU problem for T = 4, wic sows te beavior of te IMEX metod on te ω scale. For =., we already ave ω = 5, yet te oscillatory beavior and adiabatic invariant are qualitatively correct. By contrast, for =.3, te metod as begun to blow up; oscillatory coupling is a drawback of implicit midpoint metods for large time steps. 5

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Analysis of Slow Energy Excange First, let us rewrite te fast oscillatory system q + Ω q = as te first-order system Ω q Ω Ωq =, ṗ Ω p so it follows tat te exact solution satisfies Ωqt + cos Ω sin Ω Ωqt =. pt + sin Ω cos Ω pt Now, in tese coordinates, te implicit midpoint metod as te expression I Ω/ Ωqn+ I Ω/ Ωqn =. Ω/ I Ω/ I p n+ Terefore, if we take te skew matrix A = Ωqn+ p n+ p n Ω, it follows tat Ω = I A/ Ωqn I + A/. Notice tat te expression I A/ I + A/ = cay A is te Cayley transform. p n 6

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Implicit Midpoint and Modified Frequency Because cay and exp are bot maps from sod SOd, te midpoint metod corresponds to a modified rotation matrix, were Ω is replaced by Ω suc tat Ω/ = tan Ω/ Tis gives anoter interpretation of te resonance stability wen Ω = ωi and Ω = ωi. We always ave ω < π, since te Cayley transform maps to a rotation by π only in te limit as ω. Terefore, we never encounter resonance points for finite ω. We now write te variational IMEX metod as te following modified impulse sceme: Step : p + n = p n U q n, explicit kick Step : Ωqn+ p n+ cos Ω sin Ω Ωqn =, implicit midpoint sin Ω cos Ω Step 3: p n+ = p n+ U q n+. explicit kick In oter words, te implicit midpoint step doesn t just smear out te oscillations in fact, it resolves te oscillations of some modified problem. Because te propagation matrix is still special ortogonal, tis does not affect te fast energy component. p + n 7

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Consistency of Slow Energy Excange Hairer et al. ave analyzed te slow energy excange beavior of impulse metods using modulated Fourier expansion. By casting IMEX as a modified impulse metod, we were able to use tese same tecniques to prove te following teorem: Teorem. Let te variational IMEX metod be applied to te igly oscillatory problem above, and suppose te numerical solution remains bounded. Ten te ordinary differential equation [...] describing te slow energy excange in te numerical solution, is consistent wit tat for [...] te exact solution; tis olds up to order O ω 3. In fact, tis is not true for eiter Störmer/Verlet or implicit midpoint so IMEX is not merely ceaper, but also better for tese applications. Te only trigonometric/exponential metod saring tis property is Deuflard/impulse, wic also suffers from resonance instability problems. Te most comparable integrators in tis respect appear to be multi-force trigonometric metods, but tese require at least twice as many force evaluations as IMEX. 8

Stern, IMEX variational integration of igly oscillatory problems Structured Integrators Worksop, May 7, 9 Summary Te variational IMEX metod is developed by splitting te discrete Lagrangian into slow explicit and fast implicit components, and applying separate quadrature rules trapezoidal and midpoint, respectively. For igly oscillatory problems, tis is equivalent to Störmer/Verlet wit a modified mass matrix. Tis leads to unconditional linear stability in te fast modes, and in particular, te absence of linear resonance instability. Te Fermi Pasta Ulam example demonstrates tat te variational IMEX metod does not attain its stability merely by smooting out te fast frequencies, in a way tat migt destroy te structure of any fast-slow nonlinear coupling. Rater, despite te fact tat it does not resolve te fast frequencies, te metod is still capable of capturing te complex multiscale interactions seen in te FPU problem. 9