MarketSymplectic integrator
Company Profile

Symplectic integrator

In mathematics, a symplectic integrator (SI) is a numerical integration scheme for Hamiltonian systems. Symplectic integrators form the subclass of geometric integrators which, by definition, are canonical transformations. They are widely used in nonlinear dynamics, molecular dynamics, discrete element methods, accelerator physics, plasma physics, quantum physics, and celestial mechanics.

Introduction
Symplectic integrators are designed for the numerical solution of Hamilton's equations, which read \dot p = -\frac{\partial H}{\partial q} \quad\mbox{and}\quad \dot q = \frac{\partial H}{\partial p}, where q denotes the position coordinates, p the momentum coordinates, and H is the Hamiltonian. The set of position and momentum coordinates (q,p) are called canonical coordinates. (See Hamiltonian mechanics for more background.) The time evolution of Hamilton's equations is a symplectomorphism, meaning that it conserves the symplectic 2-form . A numerical scheme is a symplectic integrator if it also conserves this 2-form. Symplectic integrators possess, as a conserved quantity, a Hamiltonian which is slightly perturbed from the original one. By virtue of these advantages, the SI scheme has been widely applied to the calculations of long-term evolution of chaotic Hamiltonian systems ranging from the Kepler problem to the classical and semi-classical simulations in molecular dynamics. Most of the usual numerical methods, such as the primitive Euler scheme and the classical Runge–Kutta scheme, are not symplectic integrators. == Methods for constructing symplectic algorithms ==
Methods for constructing symplectic algorithms
Splitting methods for separable Hamiltonians A widely used class of symplectic integrators is formed by the splitting methods. Assume that the Hamiltonian is separable, meaning that it can be written in the form This happens frequently in Hamiltonian mechanics, with being the kinetic energy and the potential energy. For the notational simplicity, let us introduce the symbol z=(q,p) to denote the canonical coordinates including both the position and momentum coordinates. Then, the set of the Hamilton's equations given in the introduction can be expressed in a single expression as {{NumBlk||\dot{z} = \{z,H(z)\},|}} where \{\cdot, \cdot\} is a Poisson bracket. Furthermore, by introducing an operator D_H \cdot = \{\cdot, H\}, which returns a Poisson bracket of the operand with the Hamiltonian, the expression of the Hamilton's equation can be further simplified to \dot{z} = D_H z. The formal solution of this set of equations at time t is given as a matrix exponential: Note the positivity of t D_H in the matrix exponential. When the Hamiltonian has the form of equation (), the solution () is equivalent to The SI scheme approximates the time-evolution operator \exp[t (D_T + D_V)] in the formal solution () by a product of operators as {{NumBlk||\begin{align} \exp[t (D_T + D_V)] & = \prod_{i=k, \dots, 1} \exp(t d_i D_T) \exp(t c_i D_V) + O(t^{k+1}) \\ &= \exp(t d_k D_T) \exp(t c_k D_V) \cdots \exp(t d_1 D_T) \exp(t c_1 D_V) + O(t^{k+1}), \end{align}|}} where c_i and d_i are real numbers, k is an integer, which is called the order of the integrator, and where \sum_{i=1}^k c_i = \sum_{i=1}^k d_i = 1. Note that each of the operators \exp(t c_i D_V) and \exp(t d_i D_T) provides a symplectic map, so their product appearing in the right-hand side of () also constitutes a symplectic map. Since D_T^2 z = \{\{z,T\},T\} = \{(\dot{q}, 0),T\} = (0,0) for all z, we can conclude that By using a Taylor series, \exp(a D_T) can be expressed as {{NumBlk||\exp(a D_T) = \sum_{n=0}^\infty \frac{{\left(a D_T\right)}^n}{n!},|}} where a is an arbitrary real number. Combining () and (), and by using the same reasoning for D_V as we have used for D_T, we get {{NumBlk||\begin{cases} \exp(a D_V) = 1 + a D_V, \\[2pt] \exp(a D_T) = 1 + a D_T. \end{cases}|}} In concrete terms, \exp(t c_i D_V) gives the mapping \begin{pmatrix} q \\ p \end{pmatrix} \mapsto \begin{pmatrix} q \\ p - t c_i \frac{\partial V}{\partial q}(q) \end{pmatrix}, and \exp(t d_i D_T) gives \begin{pmatrix} q \\ p \end{pmatrix} \mapsto \begin{pmatrix} q + t d_i \frac{\partial T}{\partial p}(p) \\ p \end{pmatrix}. Note that both of these maps are practically computable. Algorithm In each time step, the general algorithm for this class of symplectic integrators maps some initial state (q_0, p_0) to the state (q_k, p_k) one timestep t later. This is done through the sequence of substeps (q_0, p_0) \mapsto (q_1, p_1) \mapsto \dots \mapsto (q_{k-1}, p_{k-1}) \mapsto (q_k, p_k). For every i = 1, \dots, k, the following equations are used to compute the substep (q_{i-1}, p_{i-1}) \mapsto (q_i, p_i): \begin{align} p_i &= p_{i-1} + t c_i F(q_{i-1}) \\[1ex] q_i &= q_{i-1} + t d_i \frac{p_i}{m} \end{align} where q is the position, p is the momentum, F(q) = -\tfrac{\partial V}{\partial q}(q) is the force vector at q, and m is the scalar quantity of mass. Equivalently, after converting into Lagrangian coordinates, each substep becomes \begin{align} v_i &= v_{i-1} + t c_i a(x_{i-1}) \\[1ex] x_i &= x_{i-1} + t d_i v_i \end{align} where x is the position, v is the velocity, and a(x) is the acceleration vector at x. Several symplectic integrators are given below. A first-order example The symplectic Euler method is the first-order integrator with k=1 and coefficients c_1 = d_1 = 1. Note that the algorithm above does not work if time-reversibility is needed. The algorithm has to be implemented in two parts, one for positive time steps, one for negative time steps. A second-order example The Verlet method is the second-order symplectic integrator with k=2 and coefficients c_1 = \tfrac{1}{2}, \qquad d_1 = 1, \qquad c_2 = \tfrac{1}{2}, \qquad d_2 = 0. Note that the coefficients c_1 = 0, \qquad d_1 = \tfrac{1}{2}, \qquad c_2 = 1, \qquad d_2 = \tfrac{1}{2} also form a second-order symplectic integrator One of the many solutions is given by \begin{align} c_1 &= \tfrac{7}{24}, & c_2 &= \tfrac{3}{4}, & c_3 &= -\tfrac{1}{24}, \\[1ex] d_1 &= \tfrac{2}{3}, & d_2 &= -\tfrac{2}{3}, & d_3 &= 1. \end{align} A fourth-order example A fourth-order integrator (with k=4) was also discovered by Ruth in 1983 and distributed privately to the particle-accelerator community at that time. This was described in a lively review article by Forest. This fourth-order integrator was published in 1990 by Forest and Ruth and also independently discovered by two other groups around that same time: \begin{align} c_1 &= c_4 = \frac{1}{2 \left(2-2^{1/3}\right)}, & c_2 &= c_3 = \frac{1 - 2^{1/3}}{2\left(2 - 2^{1/3}\right)}, \\[1ex] d_1 &= d_3 = \frac{1}{2-2^{1/3}}, & d_2 &= -\frac{2^{1/3}}{2-2^{1/3}}, \qquad d_4 = 0, \end{align} or alternatively, \begin{align} c_1 &= 0, \qquad c_3 = -\frac{2^{1/3}}{2-2^{1/3}}, & c_2 &= c_4 = \frac{1}{2-2^{1/3}}, \\[1ex] d_1 &= d_4 = \frac{1}{2 \left(2-2^{1/3}\right)}, & d_2 &= d_3 = \frac{1 - 2^{1/3}}{2\left(2 - 2^{1/3}\right)}. \end{align} To determine these coefficients, the Baker–Campbell–Hausdorff formula can be used. Yoshida, in particular, gives an elegant derivation of coefficients for higher-order integrators. further developed partitioned Runge–Kutta methods for the integration of systems with separable Hamiltonians with very small error constants. Numerov%27s method, developed by the Russian astronomer Boris Vasil'evich Numerov in 1924, is also a fourth-order symplectic integrator. Splitting methods for general nonseparable Hamiltonians General nonseparable Hamiltonians can also be explicitly and symplectically integrated. To do so, Tao introduced a restraint that binds two copies of phase space together to enable an explicit splitting of such systems. The idea is, instead of H(Q,P), one simulates \bar{H}(q,p,x,y) = H(q,y) + H(x,p) + \omega \left( \tfrac{1}{2} {\left\|q-x\right\|}_2^2 + \tfrac{1}{2} {\left\|p-y\right\|}_2^2\right), whose solution agrees with that of H(Q,P) in the sense that The new Hamiltonian is advantageous for explicit symplectic integration, because it can be split into the sum of three sub-Hamiltonians, H_A = H(q,y), H_B=H(x,p), and H_C = \omega \left(\frac{1}{2}\left\|q-x\right\|_2^2 + \frac{1}{2} \left\|p-y\right\|_2^2\right). Exact solutions of all three sub-Hamiltonians can be explicitly obtained: both H_A, H_B solutions correspond to shifts of mismatched position and momentum, and H_C corresponds to a linear transformation. To symplectically simulate the system, one simply composes these solution maps. == Applications ==
Applications
In plasma physics In recent decades symplectic integrator in plasma physics has become an active research topic, because straightforward applications of the standard symplectic methods do not suit the need of large-scale plasma simulations enabled by the peta- to exa-scale computing hardware. Special symplectic algorithms need to be customarily designed, tapping into the special structures of the physics problem under investigation. One such example is the charged particle dynamics in an electromagnetic field. With the canonical symplectic structure, the Hamiltonian of the dynamics is H(\boldsymbol{p},\boldsymbol{x}) = \tfrac{1}{2} \left(\boldsymbol{p}-\boldsymbol{A}\right)^2 + \phi, whose \boldsymbol{p}-dependence and \boldsymbol{x}-dependence are not separable, and standard explicit symplectic methods do not apply. For large-scale simulations on massively parallel clusters, however, explicit methods are preferred. To overcome this difficulty, we can explore the specific way that the \boldsymbol{p}-dependence and \boldsymbol{x}-dependence are entangled in this Hamiltonian, and try to design a symplectic algorithm just for this or this type of problem. First, we note that the \boldsymbol{p}-dependence is quadratic, therefore the first order symplectic Euler method implicit in \boldsymbol{p} is actually explicit. This is what is used in the canonical symplectic particle-in-cell (PIC) algorithm. To build high order explicit methods, we further note that the \boldsymbol{p}-dependence and \boldsymbol{x}-dependence in this H(\boldsymbol{p},\boldsymbol{x}) are product-separable, 2nd and 3rd order explicit symplectic algorithms can be constructed using generating functions, and arbitrarily high-order explicit symplectic integrators for time-dependent electromagnetic fields can also be constructed using Runge-Kutta techniques. A more elegant and versatile alternative is to look at the following non-canonical symplectic structure of the problem, \begin{align} i_{(\dot{\boldsymbol{x}},\dot{\boldsymbol{v}})} \Omega &= -dH, \\ \Omega &= d(\boldsymbol{v}+\boldsymbol{A}) \wedge d\boldsymbol{x}, \\[1ex] H &= \tfrac{1}{2}\boldsymbol{v}^{2}+\phi. \end{align} Here \Omega is a non-constant non-canonical symplectic form. General symplectic integrator for non-constant non-canonical symplectic structure, explicit or implicit, is not known to exist. However, for this specific problem, a family of high-order explicit non-canonical symplectic integrators can be constructed using the He splitting method. Splitting H into 4 parts, H = H_x + H_y + H_z + H_\phi,\begin{align} H_x &= \tfrac{1}{2} v_x^2, & H_y &= \tfrac{1}{2} v_y^2, \\[2pt] H_z &= \tfrac{1}{2} v_z^2, & H_\phi &= \phi, \end{align} we find serendipitously that for each subsystem, e.g., i_{(\dot{\boldsymbol{x}},\dot{\boldsymbol{v}})}\Omega=-dH_{x} and i_{(\dot{\boldsymbol{x}},\dot{\boldsymbol{v}})} \Omega = -dH_{\phi}, the solution map can be written down explicitly and calculated exactly. Then explicit high-order non-canonical symplectic algorithms can be constructed using different compositions. Let \Theta_{x},\Theta_{y},\Theta_{z} and \Theta_{\phi} denote the exact solution maps for the 4 subsystems. A 1st-order symplectic scheme is \begin{aligned} \Theta_1{\left(\Delta\tau\right)} = \Theta_x{\left(\Delta\tau\right)} \, \Theta_y{\left(\Delta\tau\right)} \, \Theta_z{\left(\Delta\tau\right)} \, \Theta_\phi{\left(\Delta\tau\right)} \,. \end{aligned} A symmetric 2nd-order symplectic scheme is, \begin{aligned} \Theta_2{\left(\Delta\tau\right)} = {} & \Theta_x{\left(\tfrac{\Delta\tau}{2}\right)} \, \Theta_y{\left(\tfrac{\Delta\tau}{2}\right)} \, \Theta_z{\left(\tfrac{\Delta\tau}{2}\right)} \, \Theta_\phi{\left(\Delta\tau\right)} \\ & \Theta_z{\left(\tfrac{\Delta t}{2}\right)} \, \Theta_y{\left(\tfrac{\Delta t}{2}\right)} \, \Theta_x{\left(\tfrac{\Delta t}{2}\right)}, \end{aligned} which is a customarily modified Strang splitting. A 2(\ell+1)-th order scheme can be constructed from a 2\ell-th order scheme using the method of triple jump, \Theta_{2(\ell+1)}(\Delta\tau) = \Theta_{2\ell}(\alpha_{\ell}\Delta\tau) \, \Theta_{2\ell}(\beta_{\ell}\Delta\tau) \, \Theta_{2\ell}(\alpha_{\ell}\Delta\tau) \, , \begin{align} \alpha_{\ell} & = \frac{1}{2-2^{1/(2\ell+1)}}, & \beta_{\ell} & = 1 - 2\alpha_{\ell}\,. \end{align} The He splitting method is one of key techniques used in the structure-preserving geometric particle-in-cell (PIC) algorithms. == See also ==
tickerdossier.comtickerdossier.substack.com