ME451 Kinematics and Dynamics of Machine Systems Newton-Raphson Method 4.5 Singular Configurations of Mechanisms 3.7 March 5, 2009 © Dan Negrut, 2009 ME451,

Slides:



Advertisements
Similar presentations
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems: Chapter 6 November 1, 2011 © Dan Negrut, 2011 ME451, UW-Madison TexPoint fonts.
Advertisements

Bison Management Suppose you take over the management of a certain Bison population. The population dynamics are similar to those of the population we.
Click here to enter. Click a menu option to view more details Starters Main Courses Desserts Click on the coffee cup to return when Navigating For Vocabulary.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
ME751 Advanced Computational Multibody Dynamics Section 9.2 February 2, 2010 © Dan Negrut, 2010 ME751, UW-Madison “My own business always bores me to death;
ME751 Advanced Computational Multibody Dynamics Inverse Dynamics Equilibrium Analysis Various Odd Ends March 18, 2010 © Dan Negrut, 2010 ME751, UW-Madison.
ME451 Kinematics and Dynamics of Machine Systems Cam-Follower Constraints – 3.3 Driving Constraints – 3.5 October 11, 2011 © Dan Negrut, 2011 ME451, UW-Madison.
ME751 Advanced Computational Multibody Dynamics Section 9.2 February 9, 2010 © Dan Negrut, 2010 ME751, UW-Madison “In England, if you commit a crime, the.
ME 440 Intermediate Vibrations
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 21 By Herbert I. Gross and Richard A. Medeiros next.
Chapter 3 Root Finding.
ME751 Advanced Computational Multibody Dynamics Implicit Integration Methods BDF Methods Handling Second Order EOMs April 06, 2010 © Dan Negrut, 2010 ME751,
Test Preparation Strategies
Sect. 2-5: Motion at Constant Acceleration
ME451 Kinematics and Dynamics of Machine Systems
ME451 Kinematics and Dynamics of Machine Systems Newton-Raphson Method October 04, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Review of Elements of Calculus – 2.5 Vel. and Acc. of a Point fixed in a Ref Frame – 2.6 Absolute vs.
ME751 Advanced Computational Multibody Dynamics Introduction January 21, 2010 Dan Negrut University of Wisconsin, Madison © Dan Negrut, 2010 ME751, UW-Madison.
ME451 Kinematics and Dynamics of Machine Systems Review of Matrix Algebra – 2.2 Review of Elements of Calculus – 2.5 Vel. and Acc. of a point fixed in.
ME451 Kinematics and Dynamics of Machine Systems
Sect. 2-5: Motion at Constant Acceleration. Motion with Constant Acceleration Many practical situations: –The magnitude of the acceleration is uniform.
ME451 Kinematics and Dynamics of Machine Systems
ME451 Kinematics and Dynamics of Machine Systems Singular Configurations of Mechanisms 3.7 October 26, 2010 © Dan Negrut, 2010 ME451, UW-Madison TexPoint.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
An Introduction to Programming and Algorithms. Course Objectives A basic understanding of engineering problem solving process. A basic understanding of.
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 1, 2011 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2011.
ME 440 Intermediate Vibrations Th, March 26, 2009 Chapter 5: Vibration of 2DOF Systems © Dan Negrut, 2009 ME440, UW-Madison.
ME751 Advanced Computational Multibody Dynamics Solution of the Dynamics Analysis Problem (using BDF implicit integration) April 08, 2010 © Dan Negrut,
ME451 Kinematics and Dynamics of Machine Systems
ME751 Advanced Computational Multibody Dynamics Section 9.3 February 16, 2010 © Dan Negrut, 2010 ME751, UW-Madison “Courage is fear holding on a minute.
ME751 Advanced Computational Multibody Dynamics Section 9.6 February 25, 2010 © Dan Negrut, 2010 ME751, UW-Madison “In China if you are one in a million.
THE ACT TEST Austin English 11. What’s on the Test?????? in English 1.45 minutes – 75 items 1.Tests you knowledge on: Punctuation USAGE & GrammarMECHANICS.
ME451 Kinematics and Dynamics of Machine Systems
ME451 Kinematics and Dynamics of Machine Systems Vel. And Acc. of a Fixed Point in Moving Frame Basic Concepts in Planar Kinematics February.
ME451 Kinematics and Dynamics of Machine Systems Basic Concepts in Planar Kinematics 3.1, 3.2 September 18, 2013 Radu Serban University of Wisconsin-Madison.
Motion with Constant Acceleration. Constant Acceleration In many practical situations: –The magnitude of the acceleration is uniform (constant) –The motion.
ME451 Kinematics and Dynamics of Machine Systems Driving Constraints 3.5 October 19, 2010 © Dan Negrut, 2010 ME451, UW-Madison.
ME451 Kinematics and Dynamics of Machine Systems Introduction to Dynamics 6.1 October 09, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Singular Configurations 3.7 October 07, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Driving Constraints 3.5 September 30, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems March 31, , starting 6.3 © Dan Negrut, 2009 ME451, UW-Madison Quote.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems November 10, , starting 6.3 © Dan Negrut, 2011 ME451, UW-Madison TexPoint.
ME451 Kinematics and Dynamics of Machine Systems
ECE 476 Power System Analysis Lecture 12: Power Flow Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems May 07, 2009 EOM in non-Cartesian Reference Frames ~ not in textbook~ Quote.
This presentation will attempt to guide you through the information needed to solving harder equations of the type ax 2 + bx + c = 0 When you get to the.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems November 08, , 6.1.4, 6.2, starting 6.3 © Dan Negrut, 2011 ME451,
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems November 16, , starting 6.3 © Dan Negrut, 2010 ME451, UW-Madison TexPoint.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 6, 2011 Equilibrium Analysis & Inverse Dynamics Analysis ME451 Wrap.
CSE 311 Foundations of Computing I Lecture 28 Computability: Other Undecidable Problems Autumn 2011 CSE 3111.
ME451 Kinematics and Dynamics of Machine Systems Relative Kinematic Constraints, Composite Joints – 3.3 October 6, 2011 © Dan Negrut, 2011 ME451, UW-Madison.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 9, 2010 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2010.
Solving Quadratic Equations by Factoring. Zero Product Property For any real numbers a and b, if the product ab = 0, then either a = 0, b = 0, or both.
University of Colorado Boulder ASEN 5070 Statistical Orbit determination I Fall 2012 Professor George H. Born Professor Jeffrey S. Parker Lecture 9: Least.
ME451 Kinematics and Dynamics of Machine Systems Driving Constraints 3.5 Start Position, Velocity, and Acc. Analysis 3.6 February 26, 2009 © Dan Negrut,
ME451 Kinematics and Dynamics of Machine Systems Start Position, Velocity, and Acc. Analysis 3.6 October 21, 2010 © Dan Negrut, 2010 ME451, UW-Madison.
ME451 Kinematics and Dynamics of Machine Systems Composite Joints – 3.3 Gears and Cam Followers – 3.4 October 5, 2010 © Dan Negrut, 2010 ME451, UW-Madison.
Objectives. Objective The purpose of this tutorial is to teach the viewer how to solve for the acceleration of each mass in a standard two- body pulley.
ME751 Advanced Computational Multibody Dynamics Section 9.4 February 23, 2010 © Dan Negrut, 2010 ME751, UW-Madison “When You Come to a Fork in the Road,
ME451 Kinematics and Dynamics of Machine Systems Newton-Raphson Method 4.5 October 28, 2010 © Dan Negrut, 2010 ME451, UW-Madison TexPoint fonts used in.
Motion with Constant Acceleration. Constant Acceleration In many practical situations: –The magnitude of the acceleration is uniform (constant) –The motion.
ME451 Kinematics and Dynamics of Machine Systems Review of Elements of Calculus – 2.5 Vel and Acc of a Point fixed in a Ref Frame – 2.6 Jan. 29, 2009 ©
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems November 4, 2010 Chapter 6 © Dan Negrut, 2010 ME451, UW-Madison TexPoint fonts.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 9, 2010 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2010.
ME751 Advanced Computational Multibody Dynamics
ME451 Kinematics and Dynamics of Machine Systems
ME451 Kinematics and Dynamics of Machine Systems
Motion with Constant Acceleration
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Presentation transcript:

ME451 Kinematics and Dynamics of Machine Systems Newton-Raphson Method 4.5 Singular Configurations of Mechanisms 3.7 March 5, 2009 © Dan Negrut, 2009 ME451, UW-Madison

Before we get started… Last Time Discussed Newton’s method for solving nonlinear systems Needed when solving  (q,t)=0 to determine the generalized positions q at each time t Newton method requires two things: A starting point q (0) from where the solution starts being searched for An iterative process in which the approximation of the solution is gradually improved: 2 Announcements Exam coming up next Tu (Mar. 10) Take-home component posted online, due Friday, Mar. 13 (11:59 PM) You can bring to exam one sheet of paper (both sides) with any equations/information that you find useful

Take-Home Exam Component This component of the exam is worth 40% of the exam score More challenging than it seems, start early, particularly if you are not familiar with MATLAB Something other than MATLAB might be acceptable (open to alternatives) You will implement, using MATLAB code discussed on Tu Kinematics Analysis + Design Sensitivity Study 3

Middle of the semester survey Anonymously, please print out on a sheet of paper and bring in on Th (one week from now): Two things that you don’t like about the class and I should avoid doing in the future Any other comments that you might have I’ll get back with you to summarize your comments during next class 4

Newton’s Method: Closing Remarks Can ever things go wrong with Newton’s method? Yes, there are at least three instances: 1. Most commonly, the starting point is not close to the solution that you try to find and the iterative algorithm diverges (goes to infinity) 2. Since a nonlinear system can have multiple solutions, the Newton algorithm finds a solution that is not the one sought (happens if you don’t choose the starting point right) 3. The speed of convergence of the algorithm is not good (happens if the Jacobian is close to being singular (zero determinant) at the root, not that common) 5

Newton’s Method: Closing Remarks What can you do address these issues? You cannot do anything about 3 above, but can fix 1 and 2 provided you choose your starting point carefully Newton’s method converges very fast (quadratically) if started close enough to the solution To help Newton’s method in Position Analysis, you can take the starting point of the algorithm at time t k to be the value of q from t k-1 (that is, the very previous configuration of the mechanism) 6

Position Analysis: Final Form 7 % Driver for Position Analysis % Works for kinematic analysis of any mechanism % User needs to implement three subroutines: % provideInitialGuess % getPhi % getJacobian % general settings normCorrection = 1.0; tolerance = 1.E-8; timeStep = 0.05; timeEnd = 4; timePoints = 0:timeStep:timeEnd; results = zeros(3,length(timePoints)); crntOutputPoint = 0; % start the solution loop q = provideInitialGuess(); for time = 0:timeStep:timeEnd crntOutputPoint = crntOutputPoint + 1; while normCorrection>tolerance, residual = getPhi(q, time); jacobian = getJacobian(q); correction = jacobian\residual; q = q - correction; normCorrection = norm(correction); end results(:, crntOutputPoint) = q; normCorrection = 1; end function phi = getPhi(q, t) % computes the violation in constraints % Input : current position q, and current time t % Output: returns constraint violations dummy1 = q(1) *sin(q(3)); dummy2 = q(2) *cos(q(3)); dummy3 = q(1)*q(1) + q(2)*q(2) - (t/10+0.4)*(t/10+0.4); phi = [ dummy1 ; dummy2 ; dummy3 ]; function jacobian = getJacobian(q) % computes the Jacobian of the constraints % Input : current position q % Output: Jacobian matrix J jacobian = [ *cos(q(3)) ; *sin(q(3)); 2*q(1) 2*q(2) 0 ]; function q_zero = provideInitialGuess() % purpose of function is to provide an initial % guess to start the Newton algorithm at % time=0 q_zero = [0.2 ; 0.2 ; pi/4];

END: Newton Method BEGIN: Singular Configurations of Mechanisms Section 3.7 8

Singular Configurations What are “singular configurations”? Abnormal situations that should be avoided since they indicate either a malfunction of the mechanism (poor design), or a bad model associated with an otherwise well designed mechanism Singular configurations come in two flavors: Physical Singularities (PS): reflect bad design decisions Modeling Singularities (MS): reflect bad modeling decisions Singular configurations do not represent the norm, but you must be aware of their existence A PS is particularly bad and can lead to dangerous situations 9

Singular Configurations In a singular configuration, one of three things can happen: PS1: Your mechanism locks-up PS2: Your mechanism hits a bifurcation MS1: Your mechanism has redundant constraints The important question: How can we characterize a singular configuration in a formal way such that we are able to diagnose it? Look at two examples to see what happens in a singular configuration 10

Mechanism Lock-Up: PS1 (Example 3.7.5, draws on 3.1.2) Investigate what happens to this mechanism when length l= Can you ever get in trouble? Yes, check what happens when t=2 Mechanism hits a lock-up configuration When t=2:

Definition of lock-up configuration: The mechanism cannot proceed anymore Symptoms of “lock-up”: Jacobian in that configuration is singular The rank of the velocity augmented constraint Jacobian is higher than the rank of the constraint Jacobian The velocities and accelerations assume huge values (in fact, going to infinity)  That is, you’re sure not to miss it… 12 Mechanism Lock-Up Velocity augmented constraint Jacobian

Mechanism Lock-Up (Cntd.) Investigate rank of augmented Jacobian Carry out velocity analysis Carry out acceleration analysis 13 time = 1.85 vel = [ ] time = 1.90 vel = [ ] time = 1.95 vel = [ ] time = 2.00 vel = 1.0e+007*[ ] Mechanism moves faster than speed of light… time = 1.80 acc = [ ] time = 1.85 acc = [ ] time = 1.90 acc = [ ] time = 1.95 acc = [ ] time = 2.00 acc = 1.0e+022*[ ]

Bifurcation: PS2 (Example 3.7.5, draws on 3.1.2) Investigate what happens to this mechanism when length l=1 14 Can you ever get in trouble? Yes, check what happens when t=6 Mechanism hits a bifurcation When t=6:

Definition of bifurcation configuration: The mechanism can proceed in more than one way Symptoms of “bifurcation”: Jacobian in that configuration is singular The rank of the velocity and acceleration augmented constraint Jacobians is equal to the rank of the constraint Jacobian The velocities and accelerations do not assume huge values  That’s why it’s tough to spot a bifurcation (unlike a lock-up), often times you cruise through it without knowing it… 15 Bifurcation (Cntd.) Acceleration augmented constraint Jacobian

Bifurcation, Scenario 1: Time Step is 0.06 [s] Investigate rank of augmented Jacobians Carry out velocity analysis Carry out acceleration analysis 16 time = 5.80 vel = [ ] time = 5.86 vel = [ ] time = 5.92 vel = [ ] time = 5.98 vel = [ ] time = 6.04 vel = [ ] time = 6.10 vel = [ ] time = 6.16 vel = [ ] time = 5.80 acc = [ ] time = 5.86 acc = [ ] time = 5.92 acc = [ ] time = 5.98 acc = 1.0e-003 *[ ] time = 6.04 acc = 1.0e-012 *[ ] time = 6.10 acc = 1.0e-012 *[ ] time = 6.16 acc = 1.0e-013 *[ ] NOTE: Stepped over bifurcation configuration and hardly noticed Stepping over bifurcation... Bifurcation Time: T=6

Carry out velocity analysis Carry out acceleration analysis 17 time = 5.85 vel = [ ] time = 5.90 vel = [ ] time = 5.95 vel = [ ] time = 6.00 vel = [ NaN NaN -Inf] Warning: Matrix is singular to working precision. > In function bifurcation at line 14 time = 6.05 vel = [ ] time = 6.10 vel = [ ] time = 6.15 vel = [ ] time = 5.85 acc = [ ] time = 5.90 acc = [ ] time = 5.95 acc = [ ] time = 6.00 acc = [NaN NaN NaN] Warning: Matrix is singular to working precision. > In function bifurcation at line 19 time = acc = 1.0e-011 *[ ] time = acc = 1.0e-012 *[ ] time = acc = 1.0e-012 *[ ] time = acc = 1.0e-013 *[ ] Bifurcation, Scenario 2: Time Step is 0.05 [s] Bifurcation Time: T=6 NOTE: On previous slide we were “lucky”, we chose a step-size that happen to hit right on the bifurcation

Singular Configurations In the end, what is the pattern that emerges? The punch line: The only case when you run into problems is when the constraint Jacobian becomes singular: Otherwise, the Implicit Function Theorem (IFT) gives you the answer: If the constraint Jacobian is nonsingular, IFT says that you cannot be in a singular configuration. And that’s that. 18

Singularities: Closing Remarks Remember that you seldom see singularities To summarize, if the constraint Jacobian is singular, You can be in a lock-up configuration (you won’t miss this, PS1) You might face a bifurcation situation (very hard to spot, PS2) You might have redundant constraints (we didn’t say anything about this, MS1) Singularity analysis is a tough topic. Textbook gives a broader perspective, although not necessarily deeper More thorough treatment in ME751 (particularly for redundant constraints, MS1) Some small mistakes in text 19

Perform Position Analysis for the mechanism below Example of Mechanism Analysis NOTE: the result of this analysis is you being able to say, given the two motions, where each body is, and how it is oriented at each moment in time 20

Strategies for Kinematics Analysis You can embrace one of two strategies to carry out Kinematics Analysis They are different based on the number of generalized coordinates used to carry out the analysis Strategy 1: use a reduced set of generalized coordinates Strategy 2: use Cartesian generalized coordinates 21

The Reduced Set Strategy Advantages Few generalized coordinates lead to few kinematic constraints (that is, number of equations in  (q,t)=0 is small) For small mechanisms (3-4 bodies), easy to solve with pencil and paper Disadvantages This strategy is not general (systematic), but rather is applied on a case by case situation You are back to a ME240 situation, where each problem comes with its own solution Not trivial to use for large systems, especially when you are dealing with 3D mechanisms 22 Reduced set of generalized coordinates: (Example 3.5.5)

The Cartesian Set Strategy Advantages This strategy is general (systematic), it always works (used in ADAMS as well) It is rather mechanical in nature, there is no thinking involved, it’s just simply following a recipe It relies on a very limited number of building blocks (provided in book) to implement a systematic approach that allows for analysis of any mechanism no matter how large it is Disadvantages Larger set of generalized coordinates leads to larger number of kinematic constraints (that is, number of equations in  (q,t)=0 is large) For simple systems it’s an overkill (the mosquito and the cannonball) 23 Cartesian generalized coordinates: (Example 3.5.5)

The Cartesian Set Strategy: Example 24 For the wrecker boom mechanism, use Cartesian coordinates and carry out the steps required by Kinematic Analysis Two motions prescribed to control the motion of the boom: