Using Simscape™ for Modeling Vibration Problems:

Slides:



Advertisements
Similar presentations
1 Application Software Course Simulink By: Mahdi Akbari 2010.
Advertisements

1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
System Dynamics, Third Edition
The robot structure model design 2 Curse 5. Modeling: the robot AcTrMStTk V(t) T(t)  (t) q(t) x(t)
Ch 3.8: Mechanical & Electrical Vibrations
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
1 © 2011 The MathWorks, Inc. Designing Pitch and Yaw Actuators for Wind Turbines Steve Miller Technical Marketing, Physical Modeling MathWorks Area A Area.
System Dynamics, Third Edition
Determining Mechanical Loads for Wind Turbines
Using Simscape™ for Modeling Electromechanical Systems:
1 A Tool for System Simulation: SIMULINK Can be used for simulation of various systems: – Linear, nonlinear; Input signals can be arbitrarily generated:
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Chapter 14 Oscillations Chapter Opener. Caption: An object attached to a coil spring can exhibit oscillatory motion. Many kinds of oscillatory motion are.
Simulink ® From Simulink® 7 Getting Started Guide.
Copyright © The McGraw-Hill Companies, Inc. System Dynamics, Third Edition William J. Palm III Using Simscape TM for Modeling Thermal Systems: Dynamics.
DC Motor Model Using Simscape Engr. Salim Lashari.
Physics 6B Oscillations Prepared by Vince Zaccone
EPSII 59:006 Spring Topics Using TextPad If Statements Relational Operators Nested If Statements Else and Elseif Clauses Logical Functions For Loops.
MESB 374 System Modeling and Analysis Translational Mechanical System
Spring-Mass Damper MSC.ADAMS 2005 r2
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
CAMP-G/Matlab Vehicle Crash Test
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
Simulink SubSystems and Masking April 22, Copyright , Andy Packard. This work is licensed under the.
Feedback Control Systems (FCS) Dr. Imtiaz Hussain URL :
System Control Theory Lab
ECEN/MAE 3723 – Systems I MATLAB Lecture 2. Lecture Overview What is Simulink? How to use Simulink  Getting Start with Simulink  Building a model Example.
April Second Order Systems m Spring force ky F(t) (proportional to velocity) (proportional to displacement)
Problem Transient Response By: Matt Lausmann ME 114 Granda Assignment #3.
Regensburg, 24. – Introduction to Simulink Pavel Karban University of West Bohemia, Faculty of Electrical Engineering, Department of Theory.
Autar Kaw Humberto Isaza Transforming Numerical Methods Education for STEM Undergraduates.
Introduction to MATLAB for Engineers Third Edition William J. Palm III Chapter 10 Simulink PowerPoint to accompany Copyright © The McGraw-Hill Companies,
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VII Introduction to SIMULINK Rajeev Madazhy
DC Motor Speed Modeling in Simulink
EE3417 – Introduction to Simulink
Modeling of Power Converters using Matlab and Simulink
Lecture 6: Time Response 1.Time response determination Review of differential equation approach Introduce transfer function approach 2.MATLAB commands.
Simulink Simulink is a graphical extension to MATLAB for modeling and simulation of systems. In Simulink, systems are drawn on screen as block diagrams.
INTRODUCTION TO SIMULINK by Yasmin Hanum Md Thayoob & Aidil Azwin Zainul Abidin.
Simulink Simscape by Dr. Amin Danial Asham.
System Models.
What is called vibration Analysis Design
WS3-1 ADM740, Workshop 3, June 2007 Copyright  2007 MSC.Software Corporation WORKSHOP 3 CREATING AND ADJUSTING SUSPENSIONS.
Dr. Tamer Samy Gaafar Lec. 3 Mathematical Modeling of Dynamic System.
Simulink by Dr. Amin Danial Asham. References  MATLAB Help  Telemark University College - Department of Electrical Engineering, Information Technology.
Simulink  ? 1 Simulink  ( Simu lation and Link ) is an extension of Matlab Offers modeling, simulation, and analysis of dynamical systems; i.e., a system.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
WS2-1 ADM703, Workshop 2, August 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 2 SPRING-DAMPER SYSTEM.
Modeling First Order Systems in Simulink And Analyzing Step, Pulse and Ramp Responses SOEN385 Control Systems and Applications.
Getting started with Simulink
Simulink Modelling Tutorial In Simulink, it is very straightforward to represent a physical system or a model. In general, a dynamic system can be constructed.
Getting started with Simulink An introductory tutorial.
MESB 374 System Modeling and Analysis Translational Mechanical System
Automatic Control Theory CSE 322
WORKSHOP 1 CO-SIMULATION.
Feedback Control Systems (FCS)
SECTION 1 ADAMS/Solver subroutines overview
WORKSHOP 1 CUSTOM TIRE SUBROUTINE
Control Engineering ( ) G-14
Damped Forced Vibrations Analysis Using CAMP-G® and Simulink® Modeled Solutions to Problem (
ECEN/MAE 3723 – Systems I MATLAB Lecture 2.
WORKSHOP 7 OVER-RUNNING PULLEY.
WORKSHOP 3 GSE IMPORT.
Getting Started With Simulink
Modeling & Simulation of Mechanical Systems in MATLAB
Control Systems (CS) Lecture-4-5
Quarter Car Suspension System
Presentation transcript:

Using Simscape™ for Modeling Vibration Problems: PowerPoint slides to accompany System Dynamics, Third Edition William J. Palm III Using Simscape™ for Modeling Vibration Problems: Dynamics of a Vehicle Suspension Copyright © 2014. The McGraw-Hill Companies, Inc.

These slides are intended to be used with the author’s text, System Dynamics, 3/e, published by McGraw-Hill©2014. Acknowledgments The author wishes to acknowledge the support of McGraw-Hill for hosting these slides, and The MathWorks, Inc., who supplied the software. Naomi Fernandes, Dr. Gerald Brusher, and Steve Miller of MathWorks provided much assistance. Dr. Brusher’s contributions formed the basis for many of the Simscape models presented here. MATLAB®, Simulink®, and Simscape™ are registered trademarks and trademarks of The MathWorks, Inc. and are used with permission. The equations and math symbols in these slides were created with the new equation editor in PowerPoint 2010, and thus material containing these elements will appear as graphics when viewed in an earlier version.

Simscape™ extends the capabilities of Simulink® by providing tools for modeling and simulation of multi-domain physical systems, such as those with mechanical, hydraulic, and electrical components. In this presentation, we will show you how to utilize Simscape to construct models of a vehicle suspension, whose representation is shown below. This is the so-called quarter-car model of a vehicle suspension, because it models only the body mass associated with one wheel.

Example 1: A Single-Mass Model First we will start with a simple model, one containing a single mass. This representation is shown below. In this simplified model, the masses of the wheel, tire, and axle are neglected, and the mass m represents one-fourth of the vehicle mass. The spring constant k models the series combination of the elasticity of the tire and the suspension spring. The damping constant c models the shock absorber. The equilibrium position of m when y = 0 is x = 0. The road surface displacement y(t) can be derived from the road surface profile and the car’s speed. This is Example 4.5.8 in System Dynamics, 3/e.

Since the static spring force is canceled by the gravity force mg, we obtain the equation of motion: 𝑚 𝑥 +𝑐 𝑥 +𝑘𝑥=𝑐 𝑦 +𝑘𝑦 Let us use the following parameter values: m = 240 kg, which represents one-fourth of the vehicle mass, and k = 16,000 N/m. The damping ratio is defined to be ζ= 𝑐 2 𝑚𝑘 If we choose the value of c to give a damping ratio of 0.707, we obtain c = 2743 N·s/m. Thus the model becomes 240 𝑥 +2743 𝑥 +16,000𝑥=2743 𝑦 +16,000𝑦

Test case: Let us choose a model of a bump that enables us to solve the equation analytically. Suppose the vehicle encounters a half-meter high bump about one meter in length while moving at 18 m/s (about 40 mph). The bump profile is given by 𝑦 𝑧 =5.437𝑧 𝑒 −4𝑧 where z is the horizontal distance traveled by the vehicle while going over the bump. The displacement y(t) felt by the suspension is related to y(z) through the vehicle speed as follows: z = vt, where v = 18 m/s. Thus 𝑦 𝑡 = 97.858𝑡 𝑒 −72𝑡 and thus 𝑑𝑦 𝑑𝑡 =−72 97.858 𝑡 𝑒 −72𝑡 +97.858 𝑒 −72𝑡 The analytical solution of the differential equation can be found by one of several methods. It is 𝑥 𝑡 =0.0492 𝑒 −5.715𝑡 sin 5.832𝑡 +0.2478 𝑒 −5.715𝑡 cos 5.832𝑡− 0.2478−16.7135𝑡 𝑒 −72𝑡

The solution is plotted along with the bump profile in the figure below. From the plot you can see that although the bump height is 0.5 m, the maximum displacement of the body is only about 0.16 m. The stroke is the difference 𝑥−𝑦. The plot shows that the suspension has done a good job in reducing the effect of the bump on the passenger compartment displacement.

Now let’s construct a Simscape model. The final result is shown below Now let’s construct a Simscape model. The final result is shown below. We will construct it step by step.

Let’s start with the model of the mass, spring, and damper Let’s start with the model of the mass, spring, and damper. From the Simscape>Foundation Library>Mechanical>Translational Elements library, select and place the Mass, Translational Damper, and Translational Spring blocks. Connect them as shown. Let’s look at the Block Parameters window for each of these elements.

The definition of the Mass block is shown in the Block Parameters dialog box. It has two parameters: its mass value, whose units may be selected, and its initial velocity, also specified in selectable units.

The definition of the Translational Spring block is shown in the Block Parameters dialog box. It has two parameters: its spring rate (also called its spring constant), and its initial deformation (which is positive if the spring is compressed). Because we are measuring x from the equilibrium position, and since the weight cancels the static spring force, we can take the initial deformation to be zero. The units for both parameters are selectable. It is important to understand that Simscape is based on power flows. For a mechanical element, power is the product of force and velocity. Thus the ports of the translational spring element must be connected only to elements that store, dissipate, or transmit mechanical power.

The definition of the Translational Damper block is shown in the Block Parameters dialog box. It has one parameter: its damping coefficient. The units are selectable. As with the translational spring element, the R and C ports of the damper element must be connected only to elements that store, dissipate, or transmit mechanical power.

Thus we must apply a velocity input to the C ports of the spring and damper elements, even though our model has a displacement input, the road profile y(t). Thus we must differentiate y(t) before using it as an input. The derivative was given earlier and is programmed as -72*97.858*u*exp(-72*u)+97.858*exp(-72*u) in the Fcn ydot block shown to the right. The Fcn ydot block is in the Simulink>User Defined Functions library. The remaining blocks are discussed on the next two slides.

The Scope and Clock blocks are basic Simulink blocks in the Sinks and Sources libraries, respectively. Select and place them as shown. Select and place the Simulink-PS Converter block from the Simscape>Utilities library. This block converts a Simulink signal to a physical signal (PS) . Its Block Parameters window is shown below. Here the units were selected to be m/s.

Next select and place the Ideal Translational Velocity Source block from the Simscape>Foundation Library>Mechanical> Mechanical Sources library. This element provides a velocity differential that is proportional to the input signal regardless of the force exerted on the system. The block has no parameters.

The model should now look like this.

Now we will add two more blocks: The Solver Configuration block from the Simscape>Utilities library and the Mechanical Translational Reference block from the Simscape>Foundation Library>Mechanical>Translational Elements library. The latter provides a reference point for specifying velocity. Its Block Parameters window is shown below. It has no parameters. Connect it as shown.

The Solver Configuration block defines the solver settings for this Simscape physical network. The Simulink solver for the entire model must be set separately. Its Block Parameters window is shown below. For this example, do not change any of the parameters in this block (all three boxes should be unchecked). Connect it as shown in the figure.

A Note About Solvers: The default solver is ode 45 A Note About Solvers: The default solver is ode 45. It is strongly recommended that you change the solver to a stiff solver (ode15s, ode23t, or ode14x). Do this by selecting “Configuration Parameters” from the Simulation menu, selecting the solver pane from the list on the left, and changing the “Solver” parameter to ode15s. Then click OK.

We will now add four more blocks as shown in the partial diagram below We will now add four more blocks as shown in the partial diagram below. Place the Ideal Translational Motion Sensor block, which is in the Simscape>Foundation Library>Mechanical>Mechanical Sensors library. Connect its R port to the Mass block. The next slide discusses this block. Then select and place the PS-Simulink Converter block in the Simscape>Utilities library. This block converts the input physical signal (PS) to a unit-less Simulink output signal. Connect its input to the lower output port (P) of the motion sensor. This port provides a measurement of the position. The V port gives the velocity. Then connect the Scope as shown, and connect a Mechanical Translational Reference block to the C port of the motion sensor.

The Block Parameters window of the Ideal Translational Motion Sensor block is shown below. It has one parameter, the Initial position, whose units are selectable.

We are now ready to finish the model We are now ready to finish the model. Select and place another Clock and User Defined Function block as shown. The code entered in the Fcn y block is shown on the next slide. Then place the remaining two Scopes, the Mux, and the To Workspace block as shown. This completes the model.

Enter the following into the Fcn y block Enter the following into the Fcn y block. This computes the base motion 𝑦(𝑡). 97.858*u*exp(-72*u) Note that this block does not support array operations (e.g. .*, ./, .^).

To store the values in the model file, you can create a script by selecting Model Properties/Callbacks/InitFcn from the File menu of the model window. You then type in the MATLAB® commands shown in the window below. This script could also be created in the MATLAB editor and pasted into the InitFcn window. Note that you can use it to perform calculations, although this feature is not needed here.

Now set the Stop Time to 0. 5 s and run the model Now set the Stop Time to 0.5 s and run the model. The x, y, and Stroke Scopes should look like the following. These plots agree with the plot of the analytical solution displayed earlier. Thus our Simscape model is working correctly.

Example 2: A Two-Mass Model The suspension model shown below includes the mass of the wheel-tire-axle assembly. The mass 𝑚 1 is one-fourth the mass of the car body, and 𝑚 2 is the mass of the wheel-tire-axle assembly. The spring constant 𝑘 1 represents the suspension’s elasticity, and 𝑘 2 represents the tire’s elasticity.

The Simscape model is shown on the next slide The Simscape model is shown on the next slide. It requires no elements that we have not already discussed. Note that the two springs are connected in series (end-to-end), just as they are in the physical system. The two User Defined Function blocks are programmed just as in Example 1. The InitFcn commands are shown below. % Model Parameters: % m1 = 240; % Quarter body mass [kg] m2 = 36; % Suspension mass [kg] k1 = 1.6e+04; % Suspension stiffness [N/m] k2 = 1.6e+05; % Tire stiffness [N/m] c1 = 2743; % Suspension damping [N/(m/s)]

Set the Stop Time to 0. 5 s and run the model Set the Stop Time to 0.5 s and run the model. You should see the Scope displays shown below. The maximum body displacement is close to that of the 1-DOF model. This shows the value of using a simpler analytical model initially to estimate the required value of the damping coefficient c.

In closing we note that a bump model can also be described with a Signal Builder block. A relevant portion of the model is shown below. This approach is easier for a bump velocity profile that is not describable with a single function. One such profile is shown on the next slide. It models a bump displacement 𝑦(𝑡) that is trapezoidal, reaching 0.2 m in 0.1 s, staying at 0.2 m for 2.9 s, and then dropping to zero at 3.1 s. (See Figure 5.6.16 on p. 305 of System Dynamics, 3/e.) Consistent with the power-flow approach used in Simscape, the signal on the next slide represents the velocity profile of the bump, not the bump profile itself.

Set the Stop Time to 5 s. You should see the following in the Scopes Set the Stop Time to 5 s. You should see the following in the Scopes. This concludes our presentation on solving vibration problems with Simscape.