Course edition: 2023 - 2024
Master’s Degree in Mechanical Engineering
Mechanical Engineering Department, UPC-BarcelonaTech
This course explores the modelling and simulation of multibody systems composed of rigid bodies. On completion of the course, students should be able to model a multibody system and perform kinematic and dynamic analyses by means of computational simulation methods. The course also emphasizes connections to control theory by means of lab exercises that guide students from building a system’s dynamic model to designing a control law to track a given trajectory.
The subject will be worked out in theory and problem sessions, and by means of lab sessions with personal computers. Please install Matlab in your laptop (instructions below), and be ready to bring it to class with enough battery.
Theory slides and their notes will be published before each class so the student can print them for annotation.
Depending on the course evolution, seminar sessions might be programmed as well. In them the active participation of the assistants is fundamental, and the teacher’s task is, essentially, to present and set the topics in context and coordinate the discussion among participants.
Global course grade NFIN will be based on the following partial grades:
The final mark will be
A student will pass the course if NFIN ≥ 5.
Clarity of presentation is a must. Poorly presented answers or reports may reduce the score up to 30% of the maximum one achievable.
Here’s a calendar for the course. We may change it on the fly depending on the course evolution. Any changes will be announced.
This section provides the whole teaching material, including theory and exercises.
After studying the previous material, you can proceed to the Lab1 assignment.
For those needing more background on numerical methods to solve ODEs you can read this document. From the beginning to the trapezoidal rule is sufficient (but knowledge of the Runge-Kutta methods is useful in engineering).
In each lab practice we provide you with the Latex source of the assignment as a zip file. This facilitates the preparation of your lab report using Overleaf if you want. Just go to
http://www.overleaf.com > "New project" > "Upload project"
and drag and drop your zip file there!
Preparation for this practice: Study the theory of Unit 0 before attempting to solve this lab practice. Also understand the practice assignment and the program pendulum.m in detail. The following videos may be of help:
Preparation for this practice: Read the practice assignment and the document “Preparation for Lab practice 2”. The latter gives a piece of theory needed to understand the concepts of mass matrix, Coriolis matrix, and gravity term. You will also need to understand the theory of Units 1 and 2 regarding the formulation of velocities and kinetic/potential energies. After that, proceed to solve the practice assignment. You’ll need to have the symbolic math toolbox of Matlab installed in your laptop. Type “ver” in the Matlab command window. If the toolbox is listed, it means you already have it installed.
Update: we have finally devoted two sessions to this practice, and I’ve given you this material:
Curiosities: motivated by a question by Weike Liao, here’s an animation that shows the effect of chaos on a triple pendulum. It shows the simulation of many triple pendula whose initial conditions are almost the same (they just differ slightly). Initially the motions coincide, but soon they diverge because of chaos (high sensitivity of the evolution of the system to its initial conditions). A similar effect arises in the double pendulum of this practice and could be reproduced by applying some edits in acrobot.m. Despite chaos arises in many systems, the time it manifests itself is very variable. For example, the solar system is chaotic, but for reasonably close initial conditions its simulations almost coincide during time horizons of millions of years.
The final exam took place on Friday 14 June 15:00-18:30 in room L-LS.4.
Here’s the exam (in Catalan and Spanish) and its solution (in English).
You can bring:
You cannot bring any device with the ability to communicate with others. In particular, cell phones must be shut down during the exam. Computers will not be allowed as a substitute of a scientific calculator.
Unit 0: The whole unit, and in special: the concept of state, how to transform a 2nd order ODE into a 1st order one, numerical integration through Euler’s method, and the concept of initial value problem and its geometric interpretation.
Unit 1: The whole unit with an emphasis on velocities, and less on accelerations. You have to master: the formulation of velocities of points by any means (taking derivatives of position vectors in fixed or moving bases, and using composition or propagation of velocities), the formulation of angular velocities, the concept of instantaneous center of rotation and how to formulate velocities of other points using such a center.
Unit 2: Moment of inertia. Steiner’s theorem. How to formulate spring and damper forces. How to express the kinetic and potential energy functions of a multibody system in terms of q and qdot (potential energy may be due to gravity and spring forces). How to compute the attractive/repulsive force of a spring in an equilibrium configuration of your multibody system (this may require the application of statics conditions on bodies of your system, so you may need to identify constraint forces/torques transmitted through joints).
Unit 3: Distinction between constrained and unconstrained system. You must know which kind of Lagrange equation applies to each type of system (ordinary or with multipliers).
Unit 4: You should know how to formulate Lagrange’s equation for systems with or without nonconservative forces. How to formulate the generalized force F_nc^* (right hand side of Lagrange’s equation). Also how to rewrite Lagrange’s equation in the standard form M·qdd + C·qd + G = F_nc^* and how to convert this equation into a 1st order ODE (to have it prepared to solve initial value problems).
Lab practices: all concepts of the practices may be subject to evaluation, but a computer will not be needed. We will not ask you to implement any Matlab program.
We list the concepts in order of appearance in the course:
English | Catalan | Spanish |
---|---|---|
Revolute joint | Enllaç de revolució | Enlace de revolución o articulación de rotación |
Reference frame | Referència | Referencia |
Coordinate system | Sistema de coordenades | Sistema de coordenadas |
Trihedral | Tríedre | Trihedro |
Pose (position+orientation) | Posa (posició+orientació) | Pose (posición+orientación) |
Skew symmetric matrix | Matriu antisimètrica | Matriz antisimétrica |
Transportation velocity | Velocitat d’arrossegament | Velocidad de arrastre |
Transportation acceleration | Acceleració d’arrossegament | Aceleración de arrastre |
Sliding | Lliscament | Deslizamiento |
Instantaneous axis of rotation | Eix instantani de rotació | Eje instantáneo de rotación |
Torque (or couple) | Parell | Par |
Moment | Moment | Momento |
Constraint force | Força d’enllaç | Fuerza de enlace |
Wrench | Torsor de forces | Torsor de fuerzas |
Spring | Molla | Muelle |
Damper | Amortidor | Amortiguador |
Linear momentum | Quantitat de moviment | Cantidad de movimiento |
Angular momentum | Moment cinètic (o angular) | Momento cinético (o angular) |
If you have specific instructions given to you by UPC, please follow them.
Otherwise, try the UPC instructions in this page. The web portal they refer to is this one.
You will need the login credentials of the Mathworks account associated with your university license. In principle, they coincide with those you use to access the UPC intranet.
We recommend to install all toolboxes available.
A helpful web is (connection is safe):
The course books of reference are:
Catalan versions of these books are:
Further material is available in Prof. Agulló’s page, including Spanish versions of the books and collections of solved exercises.
An excellent book introducing Matlab is Higham:
A MATLAB cheat sheet from MIT.