Elementary numerical methods and programming

Assignment Help MATLAB Programming
Reference no: EM1395869

1235_Determine the dynamics of the double pendulum.png

This project involes determining the dynamics of the double pendulum with a sliding base (see figure above). Each link is assumed to be of square cross section.

The objective is to determine the angles θ1 and θ2 over the time period of t = 0 s to t = 4 s. Let the base motion be prescribed as x(t)= 1/8 sin(4.2t). Based on the Newton's second law, the equations of motion (for the angular acceleration of each link) are given by

1992_Determine the dynamics of the double pendulum1.png

where m and l are the mass and length of the links and Ic = ml2/12 is the moment of inertia of each link. Important note: the 'dot' notation over the symbol means the corresponding derivative with respect to time.

The values of various parameters to be used in the calculations are:

g = 9.81 m/s2; I = 0.50 m; p = 6500 kg/m3 (link density); b = .05 m (dimension of square link cross-section); m =1*(b*b)op kg; lc = m*I*1/12.0 m3.

The above is a system of two 2nd order ordinary differential equations (ODEs). In order to be able to solve this, first transform them into an equivalent four 1st order ODEs. This can be accomplished as follows: Inverting or solving the system of equations above (using the backslash operator or other techniques in MATLAB) and using the fact that dθ1/ dt = .θ1 d.θ1/dt = ..θ1 (and similarly for θ2 ) will provide the values needed to complete the right hand side of the following representation of the system of four 1st order ODEs

110_Determine the dynamics of the double pendulum3.png

Write a MATLAB program that solves for y' over the interval t = 0 s to t = 4 s using three different methods: the Euler method, the mid-point method (2nd Order Runge­Kutta), and the classical 4th Order Runge-Kutta method.

To evaluate the effect of your step size (h) on the results for each of the three methods, use the following six values of h (units of seconds): 0.02, 0.01, 0.005, 0.0025, 0.00125, and 0.000625. For step sizes 0.01s and smaller, calculate the approximate percent relative error in θ1 at t = 4 s between the current step size and the next largest step size.

For example, for a step size of 0.01, the approximate percent relative error is:

1666_Determine the dynamics of the double pendulum4.png

Reference no: EM1395869

Questions Cloud

Do you agree with Friedman explain why : This is fundamentally a subversive doctrine. If businessmen do have a social responsibility other than maximum profits for stockholders, Explain how are they to know illustrate what it is?"
Discuss how a myocardial infarction could occur : Discuss how a myocardial infarction could occur and explain how drugs, angioplasty and coronary bypass can help the patient.
Point effect large enough to statistically significant : If the population standard deviation is σ = 20 is the 6 point effect large enough to be statistically significant? Use the two - tailed test with α = .05
What type of factors change decision to centralize : What type of factors change decision to centralize or decentralize authority over time in the comparative environment like the home building supply?
Elementary numerical methods and programming : Project involes determining the dynamics of the double pendulum with a sliding base. Each link is assumed to be of square cross section - MECH 3010: Elementary Numerical Methods and Programming
Why computer literacy has become fourth fundamental skill : Explain whether today, computer literacy (knowledge of how to properly use computer and its software applications) has become fourth basic skill.
Describe the principle behind highly sensitive eias : World Health Organization has set up strict guidlines for laboratory detection of avian influenze virus in human or animals speciments.
Gender-ethnicity play main role in mathematics community : Gender and ethnicity play very main role in the Mathematics Education community when it comes to overall performance and mastery of skills.
Explanatory variable and response variable : In a recent study, a random sample of children in grades two through four showed a significant negative relationship between the amount of homework assigned and student attitudes. What is the explanatory variable and what is the response variable?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd