L k X2 Two masses are attached to a wall by linear springs (see the Figure above). Force balancing based on Newton's second law leads to the following equations: d²x1 k2 -(x) - L) + (x2 m1 - x¡ – wj -...





MATLAB/Octave











L<br>k<br>X2<br>Two masses are attached to a wall by linear springs (see the Figure above). Force balancing based on Newton's second law leads to the following equations:<br>d²x1<br>k2<br>-(x) - L) +<br>(x2<br>m1<br>- x¡ – wj - L2)<br>dt2<br>d²x2<br>dt²<br>k2<br>(x2 - X - uw – L2)<br>m2<br>Here k1 and k2 are spring constants, m1 and m2 are masses and w1 and w2 are their widths. L1 and L2 are the un-stretched lengths of the springs.<br>(a) Solve the above differential equations any of the ODE solvers available in MATLAB/Octave from t = 0 to 50<br>(b) Construct the time series plots of x1 and x, and their derivatives.<br>(x1 and x2 versus time in one plot, v1 and v2 versus time in another plot)<br>(c) Construct phase-plane plot between x, and x2 (x1 versus x2).<br>Use the following parameters (in arbitrary units):<br>k1 = k2 = 5; m1=m2 = 2<br>W1 = w2 = 5; L1= L2 = 2<br>Initial Conditions:<br>X1 = L1 and x2 = L1 + w1+ L2+ 6.<br>

Extracted text: L k X2 Two masses are attached to a wall by linear springs (see the Figure above). Force balancing based on Newton's second law leads to the following equations: d²x1 k2 -(x) - L) + (x2 m1 - x¡ – wj - L2) dt2 d²x2 dt² k2 (x2 - X - uw – L2) m2 Here k1 and k2 are spring constants, m1 and m2 are masses and w1 and w2 are their widths. L1 and L2 are the un-stretched lengths of the springs. (a) Solve the above differential equations any of the ODE solvers available in MATLAB/Octave from t = 0 to 50 (b) Construct the time series plots of x1 and x, and their derivatives. (x1 and x2 versus time in one plot, v1 and v2 versus time in another plot) (c) Construct phase-plane plot between x, and x2 (x1 versus x2). Use the following parameters (in arbitrary units): k1 = k2 = 5; m1=m2 = 2 W1 = w2 = 5; L1= L2 = 2 Initial Conditions: X1 = L1 and x2 = L1 + w1+ L2+ 6.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here