Spring Pendulum example

Spring Pendulum example - Spring Pendulum example. MATLAB...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Spring Pendulum example. MATLAB ‘m’ files – SETUP, EQUATIONS and SOLVER. % File: SpringPend_Setup.m % Spring-pendulum model 02/21/07 % Example has multiple EPs that are parameter-dependent. %---------------------------------------------------------------- global M L Jp g k bp % str= 'Spring Pendulum run with parameters:' M= 2.0 % kg L= 0.5 % m Jp= M*L*L % kg-m^2 (derived for specific model) g= 9.81 % m/s^2 % k value is critical for fixed M, L, g % Free length of spring is zero % If k is 0, then classical pendulum system % If k < (M*g)/L, then weak spring and stable at theta = 0 % If k > (M*g/L), then strong spring and unstab;e at theta = 0 % Kcrit= M*g/L = 39.24 %SpringPend_Solver.m %k= 0.0; % Nm/rad %k= 20.0 % weak spring k= 50.0 % N/m % bp= 10.0 % Nms pin friction to converge oscillations somewhat if desired % %---------------------------------------------------------------- % File: SpringPend_Eqs.m % function xdot= SpringPend_Eqs(t,x) % Spring-pendulum model 02/20/07 % Example has multiple EPs that are parameter-dependent. % % x(1) is w, ang_vel
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/25/2008 for the course ME 457 taught by Professor Rosenberg during the Spring '07 term at Michigan State University.

Page1 / 2

Spring Pendulum example - Spring Pendulum example. MATLAB...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online