Department of Aerospace Engineering

Slides:



Advertisements
Similar presentations
Chapter 6 Differential Equations
Advertisements

Automatic Generation and Integration of Equations of Motion for Linked Mechanical Systems D. Todd Griffith, John L. Junkins, James D. Turner Department.
Mechatronics 1 Weeks 5,6, & 7. Learning Outcomes By the end of week 5-7 session, students will understand the dynamics of industrial robots.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Dynamics of Serial Manipulators
Dynamics of Articulated Robots Kris Hauser CS B659: Principles of Intelligent Robot Motion Spring 2013.
ME 4135 Fall 2011 R. R. Lindeke, Ph. D. Robot Dynamics – The Action of a Manipulator When Forced.
Lagrangian and Hamiltonian Dynamics
Ch. 7: Dynamics.
Dr. Y.P. Daniel Chang Weidong Zhang Velocity Transformation Based Multi-Body Approach for Vehicle Dynamics Abstract: An automobile is a complex close loop.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Introduction to ROBOTICS
Start Presentation November 29, th Homework – Solution In this homework, we shall attempt the modeling of a planar mechanical system. We shall.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
3.7. O THER G AME P HYSICS A PPROACHES Overview of other game engine physics approaches.
Velocities and Static Force
Definition of an Industrial Robot
Spring Topic Outline for Physics 1 Spring 2011.
Start Presentation November 22, th Homework In this homework, we shall attempt the modeling of a planar mechanical system. We shall do so once.
ME451 Kinematics and Dynamics of Machine Systems
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Robot Dynamics – Slide Set 10 ME 4135 R. R. Lindeke, Ph. D.
A PPLIED M ECHANICS Lecture 02 Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Dynamics.  relationship between the joint actuator torques and the motion of the structure  Derivation of dynamic model of a manipulator  Simulation.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 1, 2011 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2011.
Introduction to SimCreator and Multi-Body Dynamics  April 25, 2005.
Numerical Integration and Rigid Body Dynamics for Potential Field Planners David Johnson.
Dynamics of Articulated Robots. Rigid Body Dynamics The following can be derived from first principles using Newton’s laws + rigidity assumption Parameters.
ME451 Kinematics and Dynamics of Machine Systems Review of Linear Algebra 2.1, 2.2, 2.3 September 06, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Review of Differential Calculus 2.5, 2.6 September 11, 2013 Radu Serban University of Wisconsin-Madison.
Some Applications of Automatic Differentiation to Rigid, Flexible, and Constrained Multibody Dynamics D. T. Griffith Sandia National Laboratories J. D.
Texas A&M University, Department of Aerospace Engineering AN EMBEDDED FUNCTION TOOL FOR MODELING AND SIMULATING ESTIMATION PROBLEMS IN AEROSPACE ENGINEERING.
1 Dynamics Differential equation relating input torques and forces to the positions (angles) and their derivatives. Like force = mass times acceleration.
Lagrangian Mechanics A short overview. Introduction Previously studied Kinematics and differential motions of robots Now Dynamic analysis Inertias, masses,
Phy 303: Classical Mechanics (2) Chapter 3 Lagrangian and Hamiltonian Mechanics.
Robotics II Copyright Martin P. Aalund, Ph.D.
INTRODUCTION TO DYNAMICS ANALYSIS OF ROBOTS (Part 4)
The Hamiltonian method
Robot Formations Motion Dynamics Based on Scalar Fields 1.Introduction to non-holonomic physical problem 2.New Interaction definition as a computational.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 9, 2010 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2010.
Molecular dynamics (3) Equations of motion for (semi) rigid molecules. Restrained MD.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Chapter 4 Dynamic Analysis and Forces 4.1 INTRODUCTION In this chapters …….  The dynamics, related with accelerations, loads, masses and inertias. In.
Texas A&M University, Department of Aerospace Engineering AUTOMATIC GENERATION AND INTEGRATION OF EQUATIONS OF MOTION BY OPERATOR OVER- LOADING TECHNIQUES.
Flexible gear dynamics modeling in multi-body analysis Alberto Cardona Cimec-Intec (UNL/Conicet) and UTN-FRSF, Santa Fe, Argentina and Didier Granville.
Velocity Propagation Between Robot Links 3/4 Instructor: Jacob Rosen Advanced Robotic - MAE 263D - Department of Mechanical & Aerospace Engineering - UCLA.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 9, 2010 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2010.
Advanced Computer Graphics Rigid Body Simulation
INTEGRATOR CLASSIFICATION & CHARACTERISTICS
ECE 383 / ME 442 Fall 2015 Kris Hauser
Classical Mechanics Lagrangian Mechanics.
Manipulator Dynamics 1 Instructor: Jacob Rosen
Introduction To Robotics
Yueshi Shen Dept. of Information Engineering
Manipulator Dynamics 4 Instructor: Jacob Rosen
3.7. Other Game Physics Approaches
Zaid H. Rashid Supervisor Dr. Hassan M. Alwan
Manipulator Dynamics 2 Instructor: Jacob Rosen
Advanced Computer Graphics Spring 2008
GENERAL VIEW OF KRATOS MULTIPHYSICS
Continuous Systems and Fields
Rigid Body Dynamics (unconstrained)
Try Lam Jet Propulsion Laboratory California Institute of Technology
© Sharif University of Technology - CEDRA By: Professor Ali Meghdari
Physics 451/551 Theoretical Mechanics
Chapter 4 . Trajectory planning and Inverse kinematics
Chapter 3 Modeling in the Time Domain
Computer Animation Algorithms and Techniques
CHAPTER 3-2. Planar Cartesian Kinematics
Presentation transcript:

Department of Aerospace Engineering AUTOMATIC GENERATION AND INTEGRATION OF EQUATIONS OF MOTION BY OPERATOR OVER-LOADING TECHNIQUES 1 2 N D. Todd Griffith, Andrew J. Sinclair, James D. Turner, John E. Hurtado, and John L. Junkins Texas A&M University Department of Aerospace Engineering College Station, TX 77840 Texas A&M University, Department of Aerospace Engineering

Presentation Outline Introduction and previous work Overview of automatic differentiation by OCEA Equation of motion formulation using automatic differentiation A new algorithm for numerical integration Examples Texas A&M University, Department of Aerospace Engineering

Introduction and previous work Work on multibody dynamics dates back to around 1960’s Multibody dynamics is a mature field; many codes and many books have been written in the area Authors include: Shabana, Scheihlen, Garcia de Jalon In general, many methods exist for equation of motion generation. Typically, Lagrange’s equations, Kane’s equations, or Newton/Euler Methods employed The primary question is which method for generation of equations of motion is most suitable for problem complexity, generality desired, computational issues, and computational resources to name a few. Texas A&M University, Department of Aerospace Engineering

Equation of motion formulation using automatic differentiation Lagrange’s equations: Lagrangian: T, V: kinetic and potential energy q: generalized coordinates Q: generalized force C: constraint matrix l: Lagrange multipliers subject to Of course, many choices for equation of motion formulation exist; however, the utility of automatic differentiation is immediately seen for implementing Lagrange’s Equations………………... Texas A&M University, Department of Aerospace Engineering

Presentation Outline Introduction and previous work Overview of automatic differentiation by OCEA Equation of motion formulation using automatic differentiation A new algorithm for numerical integration Examples Texas A&M University, Department of Aerospace Engineering

Overview of automatic differentiation by OCEA(1) OCEA (Object Oriented Coordinate Embedding Method) Extension for FORTRAN90 (F90) written by James D. Turner Automatic Differentiation (AD) equation manipulation package in which new data types are created in order to define independent and dependent variables (functions) OCEA description Automatic differentiation enabled by coding rules for differentiation - Chain rule of calculus Can compute first through fourth-order partial derivatives of scalar, vector, matrix, and higher order tensors Standard mathematical library functions (e.g. sin, cos, exp) are overloaded Scalars are replaced by differential n-tuple Texas A&M University, Department of Aerospace Engineering

Overview of automatic differentiation by OCEA(2) OCEA description (cont’d) Intrinsic operators such as ( +, - , * , / , = ) are also overloaded to enable, for example, addition and multiplication of OCEA variables: Partial derivative computation is hidden to the user - takes place in the background without user intervention. Access to partial derivatives (e.g. Jacobian, Hessian, etc.) made simple by overloading of the “ = “ sign. Texas A&M University, Department of Aerospace Engineering

Overview of automatic differentiation by OCEA(3) The need for computation of partial derivatives is found in numerous applications Previous applications include Root solving and Optimization Second and higher-order GLSDC algorithms (AAS 04-148) In this paper, we consider automatic generation of equations of motion for linked mechanical systems Texas A&M University, Department of Aerospace Engineering

Presentation Outline Introduction and previous work Overview of automatic differentiation by OCEA Equation of motion formulation using automatic differentiation A new algorithm for numerical integration Examples Texas A&M University, Department of Aerospace Engineering

Approach (1): Direct approach(1) By differentiating the Lagrangian Automatic Differentiation (AD) Specified AD or specified many methods Mass matrix and its time derivative computed by second-order differentiation……….. Texas A&M University, Department of Aerospace Engineering

Approach (1): Direct approach(2) By differentiating the Lagrangian Can also compute constraint matrix, C, automatically for holonomic type constraint. Now forming equations: Accelerations computed after generating or prescribing all terms here. Now, can proceed with numerical integration……. Texas A&M University, Department of Aerospace Engineering

Approach (2): A modified form of Lagrange’s Equations In this approach, we can bypass forming the kinetic energy function. Must still form potential energy (if you want to), but most importantly need an efficient method for computing the mass matrix and partial derivatives of mass matrix………….. Texas A&M University, Department of Aerospace Engineering

Approach (2): Identifying the mass matrix (1) KE for system of rigid bodies For the case of planar rigid bodies, transformation matrices specialize to partials of position of mass center and partials of angular orientations Introduce the following velocity transformation matrices: Additionally, Bi is a constant vector of 1’s and 0’s for a minimal coordinate planar system Texas A&M University, Department of Aerospace Engineering

Approach (2): Identifying the mass matrix (2) Introduce transformations Need not specify T, can get M by forming mass center positions vectors…... Mass matrix and mass matrix partials Texas A&M University, Department of Aerospace Engineering

Presentation Outline Introduction and previous work Overview of automatic differentiation by OCEA Equation of motion formulation using automatic differentiation A new algorithm for numerical integration Examples Texas A&M University, Department of Aerospace Engineering

Numerical Integration: Solving Fourth-order Runge-Kutta algorithm Utilizes approximate derivatives through fourth order So called Taylor integration scheme: Can compute through fourth-order time derivatives exactly. Potentially fifth-order method. Texas A&M University, Department of Aerospace Engineering

Presentation Outline Introduction and previous work Overview of automatic differentiation by OCEA Equation of motion formulation using automatic differentiation A new algorithm for numerical integration Examples Texas A&M University, Department of Aerospace Engineering

Spring Pendulum by Direct method (1) Texas A&M University, Department of Aerospace Engineering

Spring Pendulum by Direct method (2) SUBROUTINE SPRING_PEND_EQNS( PASS, TIME, X0, DXDT, FLAG ) USE EB_HANDLING IMPLICIT NONE **************************************** !.....LOCAL VARIABLES TYPE(EB)::L, T, V ! LAGRANGIAN, KINETIC, POTENTIAL REAL(DP):: M, K ! MASS AND STIFFNESS VALUES REAL(DP), DIMENSION(NV):: JAC_L REAL(DP), DIMENSION(NV,NV):: HES_L T = 0.5D0*M*(X0(3)**2 + X0(1)**2*X0(4)**2) ! DEFINE KE V = 0.5D0*K*(X0(1)-R0)**2 + M*GRAV*(R0-X0(1)*COS(X0(2))) ! DEFINE PE L = T – V ! DEFINE LAGRANGIAN FUNCTION JAC_L = L ! dL/(dq,dqdot) JAC_L_Q = JAC_L(1:NV/2) ! dL/dq HES_L = L ! EXTRACT SECOND ORDER PARTIALS OF LAGRANGIAN MASS = HES_L(NV/2+1:NV,NV/2+1:NV) ! COMPUTE MASS MATRIX MASSDOT = HES_L(NV/2+1:NV,1:NV/2) !COMPUTE MDOT DXDT(1)%E = X0(3)%E ! RDOT DXDT(2)%E = X0(4)%E ! THETADOT DXDT(3)%E = QDOTDOT(1) ! RDOTDOT DXDT(4)%E = QDOTDOT(2) ! THETADOTDOT END SUBROUTINE SPRING_PEND_EQNS Texas A&M University, Department of Aerospace Engineering

Open-chain Topology of Rigid Bodies (1) Mass center location can be recursively formulated and utilized to compute velocity transformation matrices and ultimately the mass matrix and its partial derivatives. Generation of Equations of motion for open-chain topologies can be automated to the point of simply specifying the number of bodies and the initial conditions, while for closed chain-topologies we additionally need to prescribe the constraint equations. 1 2 N Texas A&M University, Department of Aerospace Engineering

Open-chain Topology of Rigid Bodies (2) 10 body model for laboratory deployment of inflated aerospace structure. Model easily updated to include joint torques (e.g. damping) Texas A&M University, Department of Aerospace Engineering

Closed-chain Topology Example 5 link manipulator example. Two holonomic constraints specified. Driving torque on link 1. Payload Motion Texas A&M University, Department of Aerospace Engineering

Conclusion Introduced an automatic differentiation (AD) tool: OCEA Implemented Lagrange’s equations using AD Mass matrix and it’s time derivatives computed by direct differentiation of T and by recursive formulation Suggested a new algorithm for numerical integration Examples included simulations of a generalized code for planar n-body systems with open and closed-chain topologies Future work includes computational studies, extension to 3D topologies, and efforts to validate solutions for flexible body systems Texas A&M University, Department of Aerospace Engineering