25 views

Original Title: Publish Spring Mass Damper Free Response

Uploaded by Anjali Sharma

- Physics I Problems (149).pdf
- Embedded Systems Project
- 8 2 Mass Spring Damper Tutorial 11-08-08
- Spring Mass Damper
- Rotor-dynamics Analysis Process
- Fundamentals of vibration
- Mass Spring Damper
- Accelerometers
- First-Order Feedback Systems
- Embedded Systems training report
- Water Level Control System Two Tank Nurilyani Razak TJ213.N87 2006
- Noise and Vibration
- Final Exam Questions #8 - SHM
- Engineering Models 2 Lab 3
- r05220205-control-systems
- PID-control-of-water-level-in-a-coupled-tank-system.pdf
- Diseño Sismico Con Amortiguadores Viscosos
- InTech-Seismic Response Reduction of Eccentric Structures Using Liquid Dampers
- Basic C Programs
- Using Matlab for First Order ODEs

You are on page 1of 5

Table of Contents

Initial Value Problem ................................................................................................... 1 Set physical and derived parameters. ............................................................................... 1 Set initial conditions. ................................................................................................... 1 Set simulation parameters. ............................................................................................ 2 Undamped system. ...................................................................................................... 2 Consider several damping ratios. .................................................................................... 3 Track characteristic roots as damping ratio increases. ......................................................... 4 Show the "odesys" function. .......................................................................................... 5

Consider the system described by the following second-order, ordinary differential equation and associated initial conditions:

We would like to examine the behavior of the free response of the system as the damping ratio changes. This will be done first by solving the initial value problem for various damping ratios and plotting the results. Then, we will explore changes in the damping ratio affect the characteristic roots. (Recall that the characteristic roots dictate the free-response behavior.)

To enable numerical solution of the differential equation, we will set specific values for the mass and (linear) spring rate. We will then use these to derive the (circular) natural frequency. param.m = 1; param.k = 1; param.wn = sqrt(param.k/param.m); % Mass [kg] % Spring rate [N/m] % (Circular) natural frequency [rad/s]

To solve our 2nd order differential equation, we need two initial conditions: one on position, the other on velocity. Moreover, recall from the accompanying PowerPoint slides that we have represented our 2nd order linear ODE into a system of 1st order ODE's amenable to solution using MATLAB. Having defined position and velocity as our system states, we must define an initial state vector. x0 = 1; % Position [m] 1

Transient Behavior and Location of Characteristic Roots in the Complex Plane x0_dot = 0; z0 = [x0 ; x0_dot]; % Velocity [m/s] % Initial condition on state vector

We will define the duration of our simulation to be approximately 4 periods. To accommodate changes in physical parameters, we will parameterize the duration by the natural frequency. We then define the associated time step and vector of simulation time. Note that the time step dt serves to define the times at which output will be provided, not the solver time step. tend = 4*round((2*pi)/param.wn); dt = round((2*pi)/param.wn)/1000; tsim = 0:dt:tend; % Simulate for approximately 4 periods [s] % Time step [s] % Vector of simulation times [s]

Undamped system.

We first consider an undamped system, characterized by a damping ratio of zero. Physically, this represents a system with zero dissipation of energy. We will plot the free response to confirm the expected behavior. To solve the system of 1st order ODE's, we will use the baseline ode45 solver. The solver requires a vector of state derivatives; in this case, we call upon a function to define them. param.zeta = 0; % Damping ratio

[t,z] = ode45(@(t,z) odesys( t,z,param ),tsim,z0); x(:,1) = z(:,1); % Save solution for future plotting. plot(t,x(:,1),'linewidth',2);grid on;hold all ylim([-1 1]) xlabel('Time [s]'); ylabel('Position [m]') title('Free Response: Undamped 2nd Order System');

Now we will consider four distinct values of the damping ratio corresponding to four distinct types of system behavior: undamped, underdamped, critically damped, and overdamped. These terms refer to the behavior of the system as it returns to its equilibrium state. We will plot and compare the free responses for these cases. zetavals = [0 1/sqrt(2) 1 1.5]; % Damping ratios to consider. case1 case2 case3 case4 = = = = 'Undamped: zeta = 0' ; 'Underdamped: zeta = 0.707' ; 'Critically Damped: zeta = 1' ; 'Overdamped: zeta = 1.5' ;

for i = 2: length(zetavals) param.zeta = zetavals(i); % Set current damping ratio. [t,z] = ode45(@(t,z) odesys( t,z,param ),tsim,z0); % Compute free response. x(:,i) = z(:,1); % Save solution for future plotting. end; figure % Plot results

plot(t,x,'linewidth',2);grid on xlabel('Time [s]'); ylabel('Position [m]') title('Free Response of 2nd Order System for Various Damping Ratios'); legend(case1,case2,case3,case4,0) 3

Recalling that the free response of a system is governed by its characteristic roots, we will examine the changes in these roots as the damping ratio changes over a more finely spaced set of values. Since the roots may have real and imaginary parts, we will plot them in the complex plane. For each value of the damping ratio, we will compute the characteristic roots as the eigenvalues of the associated state matrix. zeta_range = 0:0.01:1.5; S = zeros(2,length(zeta_range)); for i = 1:length(zeta_range) % Damping ratio: undamped to overdamped. % Initialize characteristic roots array.

S(:,i) = eig([0 1; -param.wn^2 -2*zeta_range(i)*param.wn]); % Characteristic ro end; figure % Plot characteristic roots in complex plane.

plot(S,'bx','linewidth',2,'markersize',5); grid on; set(gca,'YAxisLocation','right') xlabel('Real Axis','Position',[-1.5 -0.1 1]) ylabel('Imaginary Axis') title('Loci of Characteristic Roots in Complex Plane for Various Damping Ratios

Here we record the function used to define the state matrix corresponding to our system of ordinary differential equations. type odesys.m

function [ dz ] = odesys( ~,z,param ) % Copyright 2011 The MathWorks, Inc. % Uses natural frequency (wn) and damping ratio (zeta) to form state % equations for a standard 2nd order system. The time derivative of % the state vector is: dz = [0 1; -param.wn^2 -2*param.zeta*param.wn]*z; end

- Physics I Problems (149).pdfUploaded byBOSS BOSS
- Embedded Systems ProjectUploaded bymrs.mohmed
- 8 2 Mass Spring Damper Tutorial 11-08-08Uploaded bykhayat
- Spring Mass DamperUploaded byAmit Sharma
- Rotor-dynamics Analysis ProcessUploaded byLaksh Man
- Fundamentals of vibrationUploaded byMatheus Albuquerque
- Mass Spring DamperUploaded byPranav Birajdar
- AccelerometersUploaded bycoolhemakumar
- First-Order Feedback SystemsUploaded byCarl Jamilkowski
- Embedded Systems training reportUploaded bySantosh Singh Chauhan
- Water Level Control System Two Tank Nurilyani Razak TJ213.N87 2006Uploaded byLeonardus Harsa
- Noise and VibrationUploaded bystefano lovato
- Final Exam Questions #8 - SHMUploaded byanonslu2012
- Engineering Models 2 Lab 3Uploaded byBill Williams
- r05220205-control-systemsUploaded bySrinivasa Rao G
- PID-control-of-water-level-in-a-coupled-tank-system.pdfUploaded byDinesh Kumar
- Diseño Sismico Con Amortiguadores ViscososUploaded byTre0
- InTech-Seismic Response Reduction of Eccentric Structures Using Liquid DampersUploaded byEldisonMalaj
- Basic C ProgramsUploaded bysoumyojit2013
- Using Matlab for First Order ODEsUploaded byAmoh Junior
- MCQ Ch# 7Uploaded byranaateeq
- Water Level ControllerUploaded bynithinrmu
- First Order System ResponseUploaded byMaciora
- Dynamics of Structures- 2nd Edition (j l Humar )Uploaded byjoejo_s
- 9702_y15_syUploaded byokafellay
- MP1718Uploaded byPaul Lee
- 1-s2.0-S1877705816302983-mainUploaded byzaza
- Must See Befor FinalUploaded byheypartygirl
- 1. Mathematics - IJMCAR- Vibration Control of a Cantilever Beam of Varying Orientation Subject to Parametric and Direct ExcitationUploaded byTJPRC Publications
- Oscillation sUploaded bybharath

- Automatic Street Light ControllerUploaded byAnjali Sharma
- Best 12 Volt Auto Battery Charger Circuit Using LM311Uploaded byAnjali Sharma
- English Question'sUploaded bySiddharth Gautam
- 3. Process Control and InstrumentationUploaded byJyoti Swaroop
- Industrial Automation - Technical Interview QuestionsUploaded byAnjali Sharma
- Unit - 5 PEUploaded byAnjali Sharma
- Microwave Engineering Eec 603 6Uploaded byAnjali Sharma
- Bio Instrumentation Eee051 (1)Uploaded byAnjali Sharma
- V-2030Uploaded byAnjali Sharma
- ee syallabusUploaded byRanjith Rajaram
- Eee-Viii-power System Operation and Control [06ee82]-NotesUploaded bykeerthanavijaya
- Jane Eyre is the Rare Book That Manages to Be Good by Virtue of Ineffable Charm AloneUploaded byAnjali Sharma
- Automatic Street Light Control SystemUploaded byAnjali Sharma
- paper inverterUploaded byAnjali Sharma
- inverterUploaded byAnjali Sharma
- inverterUploaded byAnjali Sharma
- ee_2Uploaded byPraveen Chand G
- Ee 1352 Power System AnalysisUploaded bySandhosh Raja
- fingerprintrecognition.pdfUploaded bySamathu
- 132kvsub-stvisit-090328064243-phpapp02Uploaded byAnjali Sharma
- Mod1-URUploaded byswathi_gren

- ARM Processor Asczsignment(1)Uploaded bydelinquent_abhishek
- SystemC Primer 1_1Uploaded bya_patiar273
- Optimal control short courseUploaded byIvan Broggi
- Archinteriors Vol 29Uploaded bygombestralala
- Ioi SyllabusUploaded byTrpe Trpcevski
- jaspaUploaded byKevin Gerardo Moscosa Cadena
- Ejemplos Pic 16f887 PbpUploaded byleo2tv
- Berklee Accidentals TheoryUploaded byKenny Paul
- Javascript Es6 PresentationUploaded byAvinash Kundaliya
- sybUploaded byskrtripathi
- COM-61-SE Common Data in BAAN LNUploaded byarty121ru
- 18. Reva MishraUploaded byscholarlyreseachj
- BI Feasibility StudyUploaded bymrdeibel
- 17SARelationshipUploaded bySiva Pittu
- Incident Activity ReportUploaded by0x776b7364
- WhatsNewInInfoWorksCSAndSD90.pdfUploaded byDaniel Rial
- Domain Specific Software Engineering(DSSE)Uploaded byvinay_vadrevu
- Java Basics for AnyLogicUploaded byhanamichipbc
- snapdeal_casestudyUploaded byNaval Garg
- A Review on Marathi Language Speech Database Development for Automatic Speech Recognition (ASR) System.Uploaded byAnonymous 7VPPkWS8O
- s41044-016-0016-yUploaded byMaz Har Ul
- OGPL Community FRDUploaded byRamasundari Vadali
- 370988085-Learn-HANA-in-1Day-Definitive-Guide-to-Learn-SAP.pdfUploaded byhebermsdias1
- Gcc Lab Manual2Uploaded byarungladston
- Distributed Databases.docxUploaded byKandiga Parandhaman
- Fuzzy Arithmetic With and Without Using Alpha CutUploaded byGanesan Kandasamy
- Live CacheUploaded byanirudha-sahu-9933
- 001_GetStarted_EditorManual.pdfUploaded byLuka S
- top_40_crmUploaded byrajeshamexs
- All Subject 3Uploaded bygokulagro