Question: please fix my mathlab code : % Parameters E = 2 1 0 e 9 ; % Young's Modulus ( Pa ) for steel R
please fix my mathlab code : Parameters
E e; Young's Modulus Pa for steel
R ; Outer radius m
r ; Inner radius m
P ; Applied force N
L ; Length of the beam m
d ; Distance of force application from the lefthand edge m
Calculate the second moment of area I for a hollow circular crosssection
I pi R r;
Define the bending moment Mx
syms x
M piecewisex & x dP L d x L
x d & x LP d L x L;
Solve EI dydx Mx
syms yx
eqn E I diffy x M;
ysol dsolveeqn;
Apply boundary conditions: y yL
C dsolveeqn y yL;
Solve for constants of integration
ysol simplifyC;
Display results
dispBeam Deflection Function, yx:;
dispysol;
Plot the deflection
fplotysol L;
xlabelx m;
ylabelDeflection yxm;
titleDeflection of EulerBernoulli Beam';
grid on
EulerBernoulli Beam Bending.
out radius Rm and inner radius rm A force, PN is applied m away from the lefthand edge.
The deflection, y in an EulerBernoulli beam is related to the bending moment, M as illustrated in the diagram above and Equation
EIdydxMx
depends on the location of the applied force as shown in Equation
MxPLdxL for xdPdLxL for dxL:
Additionally, due to the immovable supports on either end of the beam, we will enforce the two boundary conditions shown in Equation
yx and yxL
Part a
lecture. Remember to enforce the boundary conditions at both endpoints, x and xL
Part b
boundary conditions. Note that our sign convention dictates that a downwardpointing force be denoted with a negative sign.
Part c
occur?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
