# SM 414 Stress Analysis of a Beam Structure

A concentrated load of P = 70 kips is applied to beam AB as shown in the
figure below. Beam AB is 12 feet in length, and the force P can be applied
at any value of 'x' along its length. Rod (1) has a diameter of 1.50
inches, and its yield strength is 60 ksi. Pin A is supported in a double
shear connection, and the ultimate shear strength of pin A is 80 ksi.
(a) Determine the normal stress in rod (1) for a value of load P placement
of x = 8 feet.
(b) Determine the factor of safety with respect to the yield strength for
rod (1) with a value of load P placement of x = 8 feet.
(c) Plot the normal stress and the factor of safety (yield strength) for
rod (1) for values of the load P placement 'x' ranging from 2 feet to
12 feet.
(c) If a factor of safety of 3.0 with respect to the ultimate strength is
specified for pin A, determine the minimum required pin diameter at A
for a load 'P' placement of x = 8 feet. Also, plot the minimum
required pin diameter at A for load 'P' placement ranging from x = 0
to 12 feet and a factor of safety = 3.0.
(d) At what value of 'x' should load 'P' be positioned that results in
the absolute minimum diameter for pin A (assuming a factor of safety =
3.0 for pin A)?
Script File:
clear; clf; imshow('P4_14.png'); clc;
d1=1.5; A1=pi/4*d1^2; ys1=60e3; ussa=80e3;
h1=8.5; h2=10/12; P=70e3; fsa=3;

syms x ax ay bx by cx cy da
Fab=[bx by 0]+[0 -P 0]+[ax ay 0];
Mab=cross([12-x 0 0],[0 -P 0])+cross([12 -h2 0],[ax ay 0]);
F1=[-bx -by 0]+[cx cy 0];
M1=cross([12 h1 0],[cx cy 0]);

sol=solve(Fab(1),Fab(2),Mab(3),F1(1),F1(2),M1(3),...
'st1=sqrt(bx^2+by^2)/A1','fs1=ys1/st1',...
'ax,ay,bx,by,cx,cy,st1,fs1'); results2(sol,1);

figure(2); clf(2)
hold on
fsx=@(x) subs(fs1);
fplot(fsx,[2 12]), grid
set(gca,'FontSize',16)
xlabel(' Distance from Right End of Beam - feet ');
ylabel(' Factor of Safety ');
title(' Factor of Safety ');
text(4,1,' Factor of Safety ','FontSize',20)

figure(3); clf(3)
hold on
st1x=@(x) subs(st1)/1e3;
fplot(st1x,[2 12]), grid
set(gca,'FontSize',16)
xlabel(' Distance from Right End of Beam - feet ');
ylabel(' Stress in Rod 1 - ksi ');
title(' Stress in Rod "1" ');
text(6,20,' Stress in Rod 1 ','FontSize',20)

da=solve(sqrt(ax^2+ay^2)/(2*pi/4*da^2)-ussa/3,da); da=da(1);
figure(4); clf(4)
hold on
dax=@(x) subs(da);
fplot(dax,[0 12]), grid
set(gca,'FontSize',16)
xlabel(' Distance from Right End of Beam - feet ');
ylabel(' Minimum Required Diameter for Pin "A" - inches ');
title(' Diameter for pin "A" for a factor of safety = 3 ');
text(6,1.16,' Diameter of pin "A" ','FontSize',20)

fprintf('Normal stress in rod (1) at x = 8 feet: %1.2f ksi\n',st1x(8))
fprintf('Factor of safety in rod (1) at x = 8 feet: %1.3f\n',fsx(8))
fprintf('Minimum diameter of pin "A" at x = 8 feet: %1.3f
inches\n',dax(8))

x2=solve(diff(dax(x),x)); x2=subs(x2);
fprintf('\n\nAssuming a factor of safety = 3.0 the following applies:')
fprintf('\nThe absolute minimum diameter for pin A occurs at a value of ')
fprintf('\n x = %1.3f feet from the right end of the beam',x2)
fprintf('\nThe resulting absolute minimum diameter ')
fprintf('for pin A = %1.3f inches\n',dax(x2))
Results:
Normal stress in rod (1) at x = 8 feet: 41.61 ksi
Factor of safety in rod (1) at x = 8 feet: 1.442
Minimum diameter of pin "A" at x = 8 feet: 1.255 inches
Assuming a factor of safety = 3.0 the following applies:
The absolute minimum diameter for pin A occurs at a value of
x = 4.402 feet from the right end of the beam.
The resulting absolute minimum diameter for pin A is 1.168 inches.