ME451 Kinematics and Dynamics of Machine Systems

58
ME451 Kinematics and Dynamics of Machine Systems Dynamics: Review November 4, 2013 Radu Serban University of Wisconsin, Madison

description

ME451 Kinematics and Dynamics of Machine Systems. Dynamics: Review November 4 , 2013. Radu Serban University of Wisconsin, Madison. Dynamics M&S. Dynamics Modeling - PowerPoint PPT Presentation

Transcript of ME451 Kinematics and Dynamics of Machine Systems

Page 1: ME451  Kinematics and Dynamics of Machine Systems

ME451 Kinematics and Dynamics

of Machine Systems

Dynamics: ReviewNovember 4, 2013

Radu SerbanUniversity of Wisconsin, Madison

Page 2: ME451  Kinematics and Dynamics of Machine Systems

2

Dynamics M&S

Dynamics Modeling

Formulate the system of equations that govern the time evolution of a system of interconnected bodies undergoing planar motion under the action of applied (external) forces These are differential-algebraic equations Called Equations of Motion (EOM)

Understand how to handle various types of applied forces and properly include them in the EOM

Understand how to compute reaction forces in any joint connecting any two bodies in the mechanism

Dynamics Simulation

Understand under what conditions a solution to the EOM exists Numerically solve the resulting (differential-algebraic) EOM

Page 3: ME451  Kinematics and Dynamics of Machine Systems

3

Newton’s Laws of Motion

1st LawEvery body perseveres in its state of being at rest or of moving uniformly straight forward, except insofar as it is compelled to change its state by forces impressed.

2nd LawA change in motion is proportional to the motive force impressed and takes place along the straight line in which that force is impressed.

3rd LawTo any action there is always an opposite and equal reaction; in other words, the actions of two bodies upon each other are always equal and always opposite in direction.

Newton’s laws are applied to particles (idealized single point masses) only hold in inertial frames are valid only for non-relativistic speeds

Isaac Newton(1642 – 1727)

Page 4: ME451  Kinematics and Dynamics of Machine Systems

Variational EOM for a Single Rigid Body

Page 5: ME451  Kinematics and Dynamics of Machine Systems

5

Newton’s EOM for a Differential Mass dm(P)

Apply Newton’s 2nd law to the differential mass located at point P, to get

This is a valid way of describing the motion of a body: describe the motion of every single particle that makes up that body

However It involves explicitly the internal forces acting within the body (these are

difficult to completely describe) Their number is enormous

Idea: simplify these equations taking advantage of the rigid body assumption

Page 6: ME451  Kinematics and Dynamics of Machine Systems

6

The Rigid Body Assumption:Consequences

The distance between any two points and on a rigid body is constant in time:

and therefore

The internal force acts along the line between and and therefore is also orthogonal to :

Page 7: ME451  Kinematics and Dynamics of Machine Systems

7

Variational EOM for a Rigid Body

Page 8: ME451  Kinematics and Dynamics of Machine Systems

8

Principle of Virtual Work

Principle of Virtual Work If a system is in (static) equilibrium, then the net work done by external

forces during any virtual displacement is zero The power of this method stems from the fact that it excludes from the

analysis forces that do no work during a virtual displacement, in particular constraint forces

D’Alembert’s Principle A system is in (dynamic) equilibrium when the virtual work of the sum

of the applied (external) forces and the inertial forces is zero for any virtual displacement

“D’Alembert had reduced dynamics to statics by means of his principle” (Lagrange)

The underlying idea: we can say something about the direction of constraint forces, without worrying about their magnitude

Page 9: ME451  Kinematics and Dynamics of Machine Systems

9

Virtual Displacements in terms ofVariations in Generalized Coordinates (1/2)

Page 10: ME451  Kinematics and Dynamics of Machine Systems

10

Virtual Displacements in terms ofVariations in Generalized Coordinates (2/2)

Page 11: ME451  Kinematics and Dynamics of Machine Systems

Variational EOM with Centroidal CoordinatesNewton-Euler Differential EOM

Page 12: ME451  Kinematics and Dynamics of Machine Systems

12

Variational EOM with Centroidal LRF

Page 13: ME451  Kinematics and Dynamics of Machine Systems

13

Variational EOM with Centroidal LRF

Page 14: ME451  Kinematics and Dynamics of Machine Systems

14

Differential EOM for a Single Rigid Body:Newton-Euler Equations

The variational EOM of a rigid body with a centroidal body-fixed reference frame were obtained as:

Assume all forces acting on the body have been accounted for. Since and are arbitrary, using the orthogonality theorem, we get:

Important: The Newton-Euler equations are valid only if all force effects have been accounted for! This includes both appliedforces/torques and constraint forces/torques(from interactions with other bodies).

Isaac Newton(1642 – 1727)

Leonhard Euler(1707 – 1783)

Page 15: ME451  Kinematics and Dynamics of Machine Systems

Virtual Work and Generalized Force

Page 16: ME451  Kinematics and Dynamics of Machine Systems

16

Calculating Generalized Forces

Nomenclature: generalized accelerations generalized virtual displacements generalized mass matrix generalized forces

Recipe for including a force in the EOM: Write the virtual work of the given force effect (force or torque) Express this virtual work in terms of the generalized virtual

displacements Identify the generalized force Include the generalized force in the matrix form of the variational

EOM

Page 17: ME451  Kinematics and Dynamics of Machine Systems

17

Including a Point Force

Page 18: ME451  Kinematics and Dynamics of Machine Systems

18

Including a Torque

Page 19: ME451  Kinematics and Dynamics of Machine Systems

19

Setup Compliant connection between points on body and on body In its most general form it can consist of:

A spring with spring coefficient and free length A damper with damping coefficient An actuator (hydraulic, electric, etc.) which applies a force

The distance vector between points and is defined as

and has a length of

(TSDA)Translational Spring-Damper-Actuator (1/2)

Page 20: ME451  Kinematics and Dynamics of Machine Systems

20

(TSDA)Translational Spring-Damper-Actuator (2/2) General Strategy

Write the virtual work produced by the force element in terms of an appropriate virtual displacement

where

Express the virtual work in terms of the generalized virtual displacements and

Identify the generalized forces (coefficients of and )

Note: tension defined as positive

Note: positive separates the bodies

Hence the negative sign in the virtual work

Page 21: ME451  Kinematics and Dynamics of Machine Systems

21

Setup Bodies and connected by a revolute joint at Torsional compliant connection at the common point In its most general form it can consist of:

A torsional spring with spring coefficient and free angle

A torsional damper with damping coefficient An actuator (hydraulic, electric, etc.) which

applies a torque

The angle from to (positive counterclockwise) is

(RSDA)Rotational Spring-Damper-Actuator (1/2)

Page 22: ME451  Kinematics and Dynamics of Machine Systems

22

(RSDA)Rotational Spring-Damper-Actuator (2/2) General Strategy

Write the virtual work produced by the force element in terms of an appropriate virtual displacement

where

Express the virtual work in terms of the generalized virtual displacements and

Identify the generalized forces (coefficients of and )

Note: tension defined as positive

Note: positive separates the axes

Hence the negative sign in the virtual work

Page 23: ME451  Kinematics and Dynamics of Machine Systems

Variational Equations of Motion for Planar Systems

Page 24: ME451  Kinematics and Dynamics of Machine Systems

24

Matrix Form of the EOM for a Single Body

Generalized Force; includes all forces acting on body :This includes all

applied forces and all reaction forces

Generalized Virtual Displacement

(arbitrary)

Generalized Mass Matrix

Generalized Accelerations

Page 25: ME451  Kinematics and Dynamics of Machine Systems

25

Variational EOM for the Entire System

Matrix form of the variational EOM for a system made up of bodies

Generalized Force

Generalized Virtual Displacement

Generalized Mass Matrix

Generalized Accelerations

Page 26: ME451  Kinematics and Dynamics of Machine Systems

26

Constraint Forces Constraint Forces

Forces that develop in the physical joints present in the system:(revolute, translational, distance constraint, etc.)

They are the forces that ensure the satisfaction of the constraints (they are such that the motion stays compatible with the kinematic constraints)

KEY OBSERVATION: The net virtual work produced by the constraint forces present in the system as a result of a set of consistent virtual displacements is zero Note that we have to account for the work of all reaction forces present in the

system This is the same observation we used to eliminate the internal interaction

forces when deriving the EOM for a single rigid body

Therefore

provided q is a consistent virtual displacement

Page 27: ME451  Kinematics and Dynamics of Machine Systems

27

Consistent Virtual Displacements

What does it take for a virtual displacement to be consistent (with the set of constraints) at a given, fixed time ?

Start with a consistent configuration ; i.e., a configuration that satisfies the constraint equations:

A consistent virtual displacement is a virtual displacement which ensures that the configuration is also consistent:

Apply a Taylor series expansion and assume small variations:

Page 28: ME451  Kinematics and Dynamics of Machine Systems

28

Constrained Variational EOM

We can eliminate the (unknown) constraint forces if we compromise to only consider virtual displacements that are consistent with the constraint equations

Arbitrary Arbitrary Consistent

Constrained Variational Equations of Motion

Condition for consistent virtual displacements

Page 29: ME451  Kinematics and Dynamics of Machine Systems

29

Lagrange Multiplier Theorem

Joseph-Louis Lagrange

(1736– 1813)

Page 30: ME451  Kinematics and Dynamics of Machine Systems

30

Mixed Differential-Algebraic EOM

Constrained Variational Equations of Motion

Condition for consistent virtual displacements

Lagrange Multiplier Formof the EOM

Page 31: ME451  Kinematics and Dynamics of Machine Systems

31

Lagrange Multiplier Form of the EOM

Equations of Motion

Position Constraint Equations

Velocity Constraint Equations

Acceleration Constraint Equations

Most Important Slide in ME451

Page 32: ME451  Kinematics and Dynamics of Machine Systems

Initial Conditions Reaction Forces

Page 33: ME451  Kinematics and Dynamics of Machine Systems

33

Initial Conditions

Page 34: ME451  Kinematics and Dynamics of Machine Systems

34

Reaction Forces

Page 35: ME451  Kinematics and Dynamics of Machine Systems

Numerical Integration

Page 36: ME451  Kinematics and Dynamics of Machine Systems

36

Basic Concept IVP

In general, all we can hope for is approximating the solution at a sequence of discrete points in time Uniform grid (constant step integration) Adaptive grid (variable step integration)

Basic idea: somehow turn the differential problem into an algebraic problem (approximate the derivatives)

IVP in dynamics: What we calculate are the accelerations Oversimplifying, we get something like

This is a second-order DE which needs to be integrated to obtain velocities and positions

Page 37: ME451  Kinematics and Dynamics of Machine Systems

37

Simplest method: Forward Euler

Starting from the IVP

Use the simplest approximation to the derivative

Rewrite the above as

and use ODE to obtain

Forward Euler Methodwith constant step-size

Page 38: ME451  Kinematics and Dynamics of Machine Systems

38

FE: Geometrical Interpretation

IVP

Forward Euler integration formula

Page 39: ME451  Kinematics and Dynamics of Machine Systems

39

Stiff Differential Equations

Problems for which explicit integration methods (such as Forward Euler) do not work well Other explicit formulas: Runge-Kutta (RK4), DOPRI5, Adams-

Bashforth, etc.

Stiff problems require a different class of integration methods: implicit formulas The simplest implicit integration formula: Backward Euler (BE)

Page 40: ME451  Kinematics and Dynamics of Machine Systems

40

BE: Geometrical Interpretation

IVP

Forward Euler integration formula

Backward Euler integration formula

Page 41: ME451  Kinematics and Dynamics of Machine Systems

41

Forward Euler vs. Backward Euler

Page 42: ME451  Kinematics and Dynamics of Machine Systems

42

Stability of a Numerical Integrator

The problem: How big can the integration step-size be without the numerical solution

blowing up?

Tough question, answered in a Numerical Analysis class

Different integration formulas, have different stability regions

We would like to use an integration formula with large stability region: Example: Backward Euler, BDF methods, Newmark, etc.

Why not always use these methods with large stability region? There is no free lunch: these methods are implicit methods that require the

solution of an algebraic problem at each step

Page 43: ME451  Kinematics and Dynamics of Machine Systems

43

Accuracy of a Numerical Integrator

The problem: How accurate is the formula that we are using? If we decrease , how will the accuracy of the numerical solution improve? Tough question, answered in a Numerical Analysis class

Examples: Forward and Backward Euler: accuracy RK45: accuracy

Why not always use methods with high accuracy order? There is no free lunch: these methods usually have very small stability regions Therefore, they are limited to using very small values of

Page 44: ME451  Kinematics and Dynamics of Machine Systems

44

Implicit Integration: Conclusions

Stiff problems require the use of implicit integration methods

Because they have very good stability, implicit integration methods allow for step-sizes that could be orders of magnitude larger than those needed if using explicit integration

However, for most real-life IVPs, discretization using an implicit integration formula leads to another nasty problem:

To find the solution at the new time, we must solve a nonlinear algebraic problem

This brings back into the picture the Newton-Raphson method (and its variants) We have to deal with providing a good starting point (initial guess), computing the

matrix of partial derivatives, etc.

Page 45: ME451  Kinematics and Dynamics of Machine Systems

Putting it all together: Mechanism Analysis

Page 46: ME451  Kinematics and Dynamics of Machine Systems

46

Dynamics Modeling & Simulation

We are given a mechanism… Describe how we would model this mechanism. How many bodies? How many

GCs? What kinematic constraints would we use? What is KDOF? Write down the

equations that model those constraints. What external forces act on the mechanism? Write down the corresponding

generalized forces. Assemble the resulting EOM. What is the initial configuration? Write down the additional conditions used to

specify initial conditions. Calculate the initial positions and velocities. Calculate the accelerations and Lagrange multipliers at the initial time. How would you solve these equations? Assuming we have the solution to the Dynamics problem, in particular the

Lagrange multipliers, calculate constraint reaction forces. If the mechanism is kinematically driven, what is the interpretation of the constraint

forces/torques corresponding to a driver constraint?

Page 47: ME451  Kinematics and Dynamics of Machine Systems

47

Mechanism Analysis

Page 48: ME451  Kinematics and Dynamics of Machine Systems

48

Mechanism AnalysisModel

Page 49: ME451  Kinematics and Dynamics of Machine Systems

49

Mechanism Analysis: Kinematics

Constraint Equations

Acceleration EquationVelocity Equation

Jacobian

Page 50: ME451  Kinematics and Dynamics of Machine Systems

50

Mechanism Analysis: Generalized Forces

Page 51: ME451  Kinematics and Dynamics of Machine Systems

51

Mechanism Analysis: Equations of Motion

Lagrange Multiplier Formof the EOM

Page 52: ME451  Kinematics and Dynamics of Machine Systems

52

Mechanism Analysis: DAEs

Acceleration Equation

Velocity Equation

Constraint Equations

EOM

Page 53: ME451  Kinematics and Dynamics of Machine Systems

53

Find a set of consistent initial conditions (ICs) so that the mechanism starts in an “all stretched out” configuration, with body 1 having an angular velocity .

Kinematic constraint equations

Additional conditions (for position ICs)

Solve for the initial positions

Mechanism Analysis: Position ICs

Page 54: ME451  Kinematics and Dynamics of Machine Systems

54

Find a set of consistent initial conditions (ICs) so that the mechanism starts in an “all stretched out” configuration, with body 1 having an angular velocity .

Jacobian and velocity equation

Additional conditions (for position ICs)

Solve for the initial positions

Mechanism Analysis: Velocity ICs

Page 55: ME451  Kinematics and Dynamics of Machine Systems

55

The accelerations and Lagrange multipliers at the initial time can be directly obtained using the EOM and acceleration equation (once consistent initial conditions for positions and velocities are available):

Mechanism Analysis: Accelerations and Lagrange Multipliers at Initial Time

Page 56: ME451  Kinematics and Dynamics of Machine Systems

56

Mechanism Analysis: Inverse Dynamics

Page 57: ME451  Kinematics and Dynamics of Machine Systems

57

Mechanism Analysis: Inverse Dynamics

Page 58: ME451  Kinematics and Dynamics of Machine Systems

58

The “reaction force” associated with the driver constraint provides the force/torque required to impose the prescribed motion

Driver constraint and Jacobian blocks

Mechanism Analysis: Inverse Dynamics