We wish to determine the displacement of a simply supported beam at some locatio
ID: 2989963 • Letter: W
Question
We wish to determine the displacement of a simply supported beam at some location x from the supported end of a beam. The beam is subjected to a distributed load applied over half its length, as shown below. The equations to determine the displacement and the appropriate geometry are provided below.
y = (- wx / 384EI) (16x^3 - 24Lx^2 + 9L^3), if 0 _< x _< L / 2
y = (- wL / 384EI) (8x^3 - 24Lx^2 +17 L^2 x - L^3), if L/2 _< x _< L
where w is the distributed load applied to the beam, E is Young
Explanation / Answer
%%%Part2_fun code
function [y] = part2_fun(w,I, E, L,x)
if x>=0 && x< L/2
y = (- w*x / 384*E*I)*(16*x^3 - 24*L*x^2 + 9*L^3);
else
y = (- w*L / 384*E*I)*(8*x^3 - 24*L*x^2 +17*x*L^2 - L^3);
end
end
%%% Part2_script code
clear all
w = 100;
I = 0.2;
E = 30e6;
L = 10;
x = input('Enter the value of x: ');
if x>=0 && x<= L
y = part2_fun(w,I,E,L,x)
else
y = NaN
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Results:
% Enter the value of x: -2
%
% y =
%
% NaN
%
% Enter the value of x: 2
%
% y =
%
% -2.5525e+010
%
% Enter the value of x: 6
%
% y =
%
% -3.5750e+010
%
% Enter the value of x: 12
%
% y =
%
% NaN
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.