Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 6 Chapra 2.21) Figure P2.21a shows a uniform beam subject to a linearly

ID: 3661869 • Letter: Q

Question

Question 6 Chapra 2.21) Figure P2.21a shows a uniform beam subject to a linearly increasing distributed load. As depicted in Fig. P2.21b, deflection y (m) can be computed with: L x) 120EIL. (h) (a) FIGURE P2.21 where E the modulus of elasticity and l the moment of inertia (m4). Employ this equation and calculus to generate MATLAB plots of the following quantities versus distance along the beam: V(x) El d3y/dx3 (a) displacement y (d) shear e(x) dy/dx (e) loading w(x) El d y/dx (b) slope M(x) El d2y/dx2 (c) moment Use the following parameters for your computation: L 600 cm, E 50,000 kN/cm I 30,000 cm wo 2.5 kN/cm. (i) Derive expressions for e(x), M(x), V(x), and w(x) by hand (i.ee., use calculus, not numerical differentiation). (ii) Employ the subplot function to display all the plots vertically on the same page in the order (a) to (e). Include all labels and use consistent units. Prepare your plots using a data point every 10 cm. Please submit a copy of your m-file and your five-plot figure.

Explanation / Answer

Hope you have derived the expressions as required in part (i) of problem. I am giving a sample matlab code that will help you plot the various expressions.

-------------------------------------------------------

Matlab code:

% This code shows the use of plot and subplot function.
% subplot() function lets display multiple plot in same figure. It divides the figure into a grid of order m x n (m rows and n columns).
% Then based on a position p, a plot can be shown in a given cell of grid.
% Syntax: subplot(m,n,p) - creates grid of m x n order and put the plot in position p.

x=linspace(10,100,10); %values to be plotted along x axis
y1=linspace(10,50,10); %values to be plotted along y axis of subplot 1
y2=linspace(10,100,10); %values to be plotted along y axis of subplot 2

m=2; %no. of rows in grid
n=1; %no. of columns in grid
p=1:2; %vector for positions in the grid. length of this vector should be as per the order of grid.

figure;
subplot(m,n,p(1));
plot(x,y1,'b',x,y1,'b*');
xlim([10 100]);
ylabel("y1");
title("Subplot 1: x Vs y1");

subplot(m,n,p(2));
plot(x,y2,'b',x,y2,'b*');
xlim([10 100]);
xlabel("x");
ylabel("y2");
title("Subplot 2: x Vs y2");

-------------------------------------------------------------

Here while plotting your graphs, in place of y1, y2... used in example, you can use your calculated expressions of displacement, slope etc. As there are 5 expressions, you will need to set value of m to 5.

Hope this helps you. Best of luck.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote