Try Lam 25 April 2007 Aerospace and Mechanical Engineering

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Geometric Integration of Differential Equations 1. Introduction and ODEs Chris Budd.
Eric Prebys, FNAL.  We have focused largely on a kinematics based approach to beam dynamics.  Most people find it more intuitive, at least when first.
Isoparametric Elements Element Stiffness Matrices
Integration Techniques
Physics 430: Lecture 16 Lagrange’s Equations with Constraints
1cs542g-term Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.
MAT 594CM S10Fundamentals of Spatial ComputingAngus Forbes Week 2 : Dynamics & Numerical Methods Goal : To write a simple physics simulation Topics: Intro.
Lagrangian and Hamiltonian Dynamics
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
Mechanics.
Kinematics of Particles Lecture II. Subjects Covered in Kinematics of Particles Rectilinear motion Curvilinear motion Rectangular coords n-t coords Polar.
Theoretical Mechanics - PHY6200 Chapter 6 Introduction to the calculus of variations Prof. Claude A Pruneau, Physics and Astronomy Department Wayne State.
Chapter 16 Integration of Ordinary Differential Equations.
Ordinary Differential Equations (ODEs)
Kinetics of Particles:
Dynamics. Chapter 1 Introduction to Dynamics What is Dynamics? Dynamics is the study of systems in which the motion of the object is changing (accelerating)
Erin Catto Blizzard Entertainment Numerical Integration.
Revision Previous lecture was about Generating Function Approach Derivation of Conservation Laws via Lagrangian via Hamiltonian.
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
ME451 Kinematics and Dynamics of Machine Systems
Dr. Wang Xingbo Fall , 2005 Mathematical & Mechanical Method in Mechanical Engineering.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
A PPLIED M ECHANICS Lecture 02 Slovak University of Technology Faculty of Material Science and Technology in Trnava.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 1, 2011 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2011.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
1 CE 530 Molecular Simulation Lecture 23 Symmetric MD Integrators David A. Kofke Department of Chemical Engineering SUNY Buffalo
HEAT TRANSFER FINITE ELEMENT FORMULATION
5. Integration method for Hamiltonian system. In many of formulas (e.g. the classical RK4), the errors in conserved quantities (energy, angular momentum)
Phy 303: Classical Mechanics (2) Chapter 3 Lagrangian and Hamiltonian Mechanics.
The Hamiltonian method
Discrete Geometric Mechanics for Variational Time Integrators Ari Stern Mathieu Desbrun Geometric, Variational Integrators for Computer Animation L. Kharevych.
Canonical Equations of Motion -- Hamiltonian Dynamics
The Lagrangian Equation INTERMEDIATE MECHANICS WESLEY QUEEN.
Particle Kinematics Direction of velocity vector is parallel to path Magnitude of velocity vector is distance traveled / time Inertial frame – non accelerating,
Celestial Mechanics VI The N-body Problem: Equations of motion and general integrals The Virial Theorem Planetary motion: The perturbing function Numerical.
1 Variational and Weighted Residual Methods. 2 Introduction The Finite Element method can be used to solve various problems, including: Steady-state field.
From physical assumptions to classical Hamiltonian and Lagrangian particle mechanics Gabriele Carcassi, Christine A. Aidala, David John Baker and Lydia.
1 CHAP 3 WEIGHTED RESIDUAL AND ENERGY METHOD FOR 1D PROBLEMS FINITE ELEMENT ANALYSIS AND DESIGN Nam-Ho Kim.
ECE 383 / ME 442 Fall 2015 Kris Hauser
Quantum One.
Numerical Solutions to the Diffusion Equation
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Classical Mechanics Lagrangian Mechanics.
Canonical Quantization
Mathematical & Mechanical Method in Mechanical Engineering
Dr.Mohammed Abdulrazzaq Mechanical Department College of Enginerring
Kinetics of Particles: Newton’s Second Law
Manipulator Dynamics 1 Instructor: Jacob Rosen
Integrators of higher order
Larmor Orbits The general solution of the harmonic oscillator equation
Yueshi Shen Dept. of Information Engineering
Morphing and Shape Processing
Geometric Integrators in the Study of Gravitational Collapse
Section 3.5 – Curvilinear Motion
Autonomous Cyber-Physical Systems: Dynamical Systems
Quantum One.
Variational Time Integrators
Gravitational Potential energy Mr. Burns
PHYS 211 Exam 1 HKN Review Session
Manipulator Dynamics 2 Instructor: Jacob Rosen
Advanced Computer Graphics Spring 2008
Try Lam Jet Propulsion Laboratory California Institute of Technology
SKTN 2393 Numerical Methods for Nuclear Engineers
Introduction Constraint: important features in computer animation
Physics 451/551 Theoretical Mechanics
Introduction to Fluid Mechanics
Presentation transcript:

Variational Integrators with Applications to Celestial Mechanics AME-599 Final Project Try Lam 25 April 2007 Aerospace and Mechanical Engineering Viterbi School of Engineering University of Southern California 26 April 2007 AME 599 - Advance Dynamics

Introduction When one models a physical system numerical integrations is usually not part of the design process For example, when modeling a particle one can Come up with the Lagrangian of the system, then Derive the equations of motion using the Euler-Lagrange equations (via Hamilton’s Principle) Then, if we cannot describe the dynamics in any close form, the system is numerically integrated using some ODE solver 26 April 2007 AME 599 - Advance Dynamics

Introduction Question: What happens to this new discretize EOM, does it behave as the “true” solution? Answer: Not always! Because arbitrary numerical schemes know nothing of the problem one is solving It does not understand the “geometry” of the problem It does not understand any conservation laws (energy and momentum) This may lead to incorrect solutions (e.g., energy drifts for conserved systems) 26 April 2007 AME 599 - Advance Dynamics

Introduction Solution: Use “Geometric” (structure preserving or symplectic) integrators which captures important structures and maintain certain conservation laws or other important features to the problem. For example: Numerical integration of initial value problems (IVP) for ODEs is done by discretizing the derivatives via finite differences, for example How do discretize the RHS? LHS 26 April 2007 AME 599 - Advance Dynamics

Introduction For an Hamiltonian system It can be shown that for the above system, H is constant along solutions (at all time), but How does one discretize the equations such that this is guaranteed, and It is known that for Hamiltonian systems the flow is symplectic, but will the discrete integrator maintain this? Symplectic integrators preserve these properties while arbitrary integrators may not 26 April 2007 AME 599 - Advance Dynamics

Introduction This does not mean that we should stop using all off-the-shelf integrators, but is useful for applications when local accuracy is not necessary desired but instead on global behavior of a system, e.g., Statistical results Monte-Carlo analyses Long-term propagations With the emergence of “geometric” integrators numerical schemes can now be part of the design process. 26 April 2007 AME 599 - Advance Dynamics

Aim of this Presentation This presentation will discuss about discrete variational mechanics and deriving variational integrators for problems in celestial dynamics Examples will be given for Planar Circular Restricted Three Body Problem (PCR3BP) Simplified 4-Body Solar System Problem (Sun, Jupiter, Saturn, and Uranus) 26 April 2007 AME 599 - Advance Dynamics

Aim of this Presentation An in-depth study of variational integrators requires the understanding of geometric mechanics and differential geometry To NOT complicate the subject matter any further this talk will try to exclude discussion regarding manifolds, tangent bundles, forms, flow, etc. Instead focus on applications and practical examples 26 April 2007 AME 599 - Advance Dynamics

Variational Integrators Variational integrators (VI) are symplectic integrators derived using the Lagrangian based on discrete variational principles (where previous work focused on the Hamiltonian, e.g., using generating functions or the Hamilton-Jacobi equation). More to follow . . . 26 April 2007 AME 599 - Advance Dynamics

Lagrange Mechanics Given a Lagrangian of the form And a correspond action Hamilton’s Principle states that the actual physical path taken is a stationary point of S, i.e., S = 0 This gives the Euler-Lagrange equation and Newton’s equation 26 April 2007 AME 599 - Advance Dynamics

Discrete Lagrange Mechanics Instead of considering and lets consider two position , and a t Now consider a discrete Lagrangian approximating the action integral along the segment between the two position by quadrature rule of interpolating functions (more later) Now instead of an action integral we have an action sum 26 April 2007 AME 599 - Advance Dynamics

Discrete Lagrange Mechanics Analogous to the continuous derivation we compute the variations of the action sum with the boundary points held fixed (Hamilton’s Principle) This results in the discrete Euler-Lagrange equations For the Lagrangian given on slide 10 the discrete Euler-Lagrange equation becomes a discretization of Newton’s equation 26 April 2007 AME 599 - Advance Dynamics

Discrete Lagrange Mechanics In pictures . . . qk q(t) q(b) qN q(t) qk q(a) q0 Q Q Hamilton’s Principle 26 April 2007 AME 599 - Advance Dynamics

Variational Integrators Using the discrete Euler-Lagrange equations we now have a map to take us from q0 to q1, i.e., integrate the trajectory Integrators which use the discrete Euler-Lagrange equations are known as variational integrators Before we move to an example, we note that IVP problems are usually not specified with two initial position, but instead an initial position and velocity 26 April 2007 AME 599 - Advance Dynamics

Variational Integrators Thus, we define a discretize conjugate momentum as This allows us to go from (q0, p0) to (qk, pk) Use (*) to find qk (usually an implicit routine) Then use the explicit equation (**) to find pk (*) (**) 26 April 2007 AME 599 - Advance Dynamics

Finding Ld(qk,qk+1) All the equations described so far requires a discrete Lagrangian, but how do we find the discrete version given the continuous Lagrangian Quadrature rule of interpolating functions Many method exist, i.e., rectangular rule, midpoint rule, Newmark method which is common in structural dynamics, But we will focus on the Trapezoidal Rule (Verlet or Störmer rule) which is commonly used in molecular dynamics and provide explicit relations for (*) 26 April 2007 AME 599 - Advance Dynamics

Example 1: PCR3BP Planar Circular Restricted 3-Body Problem (PCR3BP) The normalized equations of motions are where The Lagrangian is given as 26 April 2007 AME 599 - Advance Dynamics

Example 1: PCR3BP Discretizing the Lagrangian we get where Using Eqs. (*) and (**) rearranging the equations a little we get an explicit set of expression for the position and momentum at time step k+1 provided a set of initial conditions at step k (see paper). 26 April 2007 AME 599 - Advance Dynamics

Example 1: PCR3BP Sun-Earth system example,  = 3.04036e-006 Sun Earth tf = 291 years 26 April 2007 AME 599 - Advance Dynamics

Example 1: PCR3BP Note that for this system there is only one conserved quantity, the Jacobi constant integration times VI: 101.078 secs RK4: 296.813 secs ODE45: 248.766 secs 300 TU = 17,439.4 yrs 26 April 2007 AME 599 - Advance Dynamics

Example 1: PCR3BP ODE45 Poincaré Section 26 April 2007 AME 599 - Advance Dynamics

VI Poincaré Section (took about 1/3 the time) Example 1: PCR3BP VI Poincaré Section (took about 1/3 the time) 26 April 2007 AME 599 - Advance Dynamics

Example 2: 4-Body Problem 4-body simplified solar system model including the Sun, Jupiter, Saturn, and Uranus with their initial conditions specified in the J2000 frame with respect to the solar system barycenter on 01-JAN-2000 The Lagrangian for this system is (for N=4) Solving for the position and momentum at the next time step we have where the 12-by-1 vector 26 April 2007 AME 599 - Advance Dynamics

Example 2: 4-Body Problem Short propagation of 100 years 1 day step sizes VI RK4 ODE45: (1.0E-10) ODE45: (5.0E-14) 26 April 2007 AME 599 - Advance Dynamics

Example 2: 4-Body Problem It appears that the high tolerance ODE45 and the RK4 scheme has better energy conservation that of the variational integrator for propagations under 100 year (but this is only due to the short integration time) What happens when we start propagating for 1000s of years or millions? Note that there is a drift in the ODE45 scheme But is there such drift in the RK4 scheme? 26 April 2007 AME 599 - Advance Dynamics

Long-term Energy Behavior Average energy for the VI remains fairly constant for a wide range of time steps Energy drift for the RK4 which can be minimize by taking smaller time steps RK4 Variational Integrator 26 April 2007 AME 599 - Advance Dynamics

What if Local Accuracy is Important? VI: 500,000 year propagation with a step size of 200 days Remarkably stable for such a coarse step size, which RK4 could not accomplish 26 April 2007 AME 599 - Advance Dynamics

Conclusions and Comments Variational integrators are straight forward to design and implement for simple dynamical systems Variational integrators inherently conserved important quantities of dynamical system RK4 perform surprising very well (for small time steps) for many mission design and navigation applications when short integration times are sufficient. For longer term propagations and for larger step sizes, variational integrators are very beneficial No energy drifts Faster integration time Reasonably accurate solutions 26 April 2007 AME 599 - Advance Dynamics

If I had time . . . Re-write code in Fortran or Python instead of Matlab Look at adding non-conservative forces Look at the application of using variation integrators for highly stiff dynamical problems, i.e., systems with many kinematics constraints 26 April 2007 AME 599 - Advance Dynamics