This document contains a program for calculating deflection and slope for statically indeterminate frames. The program prompts the user to input various parameters describing the frame geometry and loads. It then calculates the reactions at supports A and D, as well as the deflection and slope of the frame, which it displays to the user. If any errors occur, it prompts the user to try running the program again.
This document contains a program for calculating deflection and slope for statically indeterminate frames. The program prompts the user to input various parameters describing the frame geometry and loads. It then calculates the reactions at supports A and D, as well as the deflection and slope of the frame, which it displays to the user. If any errors occur, it prompts the user to try running the program again.
This document contains a program for calculating deflection and slope for statically indeterminate frames. The program prompts the user to input various parameters describing the frame geometry and loads. It then calculates the reactions at supports A and D, as well as the deflection and slope of the frame, which it displays to the user. If any errors occur, it prompts the user to try running the program again.
disp('HELLO AND WELOCME ; This is our program for Deflection and Slope Calculator
for the Statically Undeterminate Frames');
disp('analyze Roller and Pin supports');
%%%%%%%%%%%%%%%%%%%%%%%%% INPUTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% h=input('Enter the Hieght of the Frame (mm) ='); l=input('Enter the length of the frame (mm)='); p=input('Enter the pointed load at the Upper member(Positive for downward direction)(N)='); x=input('Enter the location of the pointed load at the Upper member(mm) ='); w=input('Enter the distributed load @ The Upper member (Positive for downward direction)(N)='); p1=input('Enter the pointed load @ The left vertical member (Positive for right side)(N)='); y1=input('Enter the location of the pointed load for the Left member (mm)='); % vertical distance from the pin support% N=input('Enter the distributed load @ The left vertical member (Positive for right side)(N)='); %The left vertical member% p2=input('Enter the pointed load at the Right vertical member (Positive for left side)(N)='); z1=input('Enter the location of the pointed load for the Right member (mm)='); % vertical distance from the roller support% M=input('Enter the distributed load @ The Right vertical member (Positive for left side)(N)='); %The right vertical member% E=input('Enter the Young Modulus(MPa)='); I=input('Enter the area moment of inertia(mm^4)='); %%%%%%%%%%%%%%%%%%%%%%%% REACTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Ax=(-N*h)+(M*h)-p1+p2; Ay=(p)+(w*l)-((p1*y1)/(l))-((N*h^2)/(2*l))-((p*x)/(l))-((w*l)/(2))+((p2*z1)/(l))+ ((M*h^2)/(2*l)); Dy=((p1*y1)/(l))+((N*h^2)/(2*l))+((p*x)/(l))+((w*l)/(2))-((p2*z1)/(l))-((M*h^2)/ (2*l)); %%%%%%%%%%%%%%%%%%%%%%%%% RESULTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Deflection=((1)/(E*I))*(((N*h^4)/(3))-((M*h^4)/(3))+((p1*h^3)/(3))-((p2*h^3)/(3))- ((N*h^4)/(8))-((p1*h^3)/(3))+((p1*y1*h^2)/(2))+(N*l*h^3)-(M*l*h^3)+(p1*l*h^2)- (p2*l*h^2)-((N*l*h^3)/(2))-(p1*l*h)+(p1*y1*h*l)+((p*h*l^2)/(2))+((w*h*l^3)/(2))- ((p1*y1*h*l^2)/(2*l))-((N*(l^2)*(h^3))/(4*l))-((p*x*h*l^2)/(2*l))-((w*h*l^3)/(4))+ ((p2*z1*h*l^2)/(2*l))+((M*(h^3)*(l^2))/(4*l))-((p*h*l^2)/(2))+(p*x*h*l)- ((w*h*l^3)/(6))-((M*h^4)/(8))-((p2*h^3)/(3))+((p2*z1*h^2)/(2))); Slope=((1)/(E*I))*((-Ax*h*l)-((N*l*h^2)/(2))-(p1*h*l)+(p1*l*y1)+((Ay*l^2)/(2))- ((w*l^3)/(6))-((p*l^2)/(2))+(p*x*l)+((p2*h^2)/(2))-(p2*z1*h)+((M*h^3)/(6))); disp('The results are:'); disp('The Horizontal Reaction at A is (N) ='); disp(Ax); disp('The Vertical Reaction at A is (N)='); disp(Ay); disp('The Vertical Reaction at D is (N)='); disp(Dy); disp('The Deflection is (mm)='); disp(Deflection); disp('The Slope is (rad)='); disp(Slope); slope_in_deg=(Slope*(180)/(pi)); disp('The Slope is (deg)='); disp(slope_in_deg)
ChatGPT Money Machine 2024 - The Ultimate Chatbot Cheat Sheet to Go From Clueless Noob to Prompt Prodigy Fast! Complete AI Beginner’s Course to Catch the GPT Gold Rush Before It Leaves You Behind