Multibody System Dynamics

Course edition: 2023 - 2024

Master’s Degree in Mechanical Engineering
Mechanical Engineering Department, UPC-BarcelonaTech

From left to right: The Atlas robot from Boston Dynamics, an America's Cup yacht, the Perseverance robot landing on Mars, and Starship leaving the Earth.

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.

Table of Contents

Course data

Methodology

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.

Grading

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.

Calendar

Here’s a calendar for the course. We may change it on the fly depending on the course evolution. Any changes will be announced.

Course material

This section provides the whole teaching material, including theory and exercises.

U0 - Introduction

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).

U1 - Rigid body kinematics

U2 - Rigid body dynamics

U3 - Introduction to multibody system kinematics

U4 - Lagrange equations

Lab assignments

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!

Lab 1: Simulation of a driven pendulum

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:

Lab 2: Simulation of an acrobot

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.

Lab 3: Control of a Scara robot

Final exam

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).

What you can/cannot bring

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.

Priority topics

Help

Vocabulary table

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)

How to install MATLAB

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.

Bibliography

On rigid body mechanics

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.

On Matlab

An excellent book introducing Matlab is Higham:

A MATLAB cheat sheet from MIT.

Trick: expand all or collapse all in Matlab file.