close all
clear all
% Liftbeam stress and deflection calculations for Multibeam AUV

F = 1000:100:4000;  %Weight at Lift Point

l = 16.75;   %Length of lift beam (inches)
E = 16500000; %Titanium Elastic Modulus
%E = 28000000;

c = 2.5;

for I = 4.68
    
Mmax = F*l/4;
Ymax = F*(l*l*l)/(48*E*I);
SIGmax = Mmax*c/I;

figure(1)
hold on
plot(F,Ymax);

figure(2)
hold on
plot(F,SIGmax);

end


figure(1)
ylabel('Inches');
xlabel('F (lbs)');

figure(2)
ylabel('Max Stress (psi)');
xlabel('F (lbs)');