I am unable to get the deflection of beam correctly and the plot is incorrect.Even when i am using the right code. Also i tryed to distribute my beam into sections.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
% Plot the bending of a beam with rectangular cross section
% The cross section is in the plane of y-z
% The longitudinal axis of the beam is parallel to the x axis
scale=50;
E= 1.999*10^11; % N/m2
nu = 0.3;
I= 7.74.*10^-7; % m^4
H = 0.0762;% m
R1 = 2224; % N
R2 = 2224; % N
P = 2224; % N
L = 3.0; % m
L1= 0.91; % m
L2= 2.09; %m
N=20;
x=(0:L/N:L);
DIM =size(x);
y= zeros(DIM);
figure(1)
plot(x,y,'.-')
axis equal
hold on
xlabel('Distance(m)')
ylabel('vertical deformation (m)')
title('Deformation of a beam')
xd=x;
yd=y;
for ii=1:length(x)
v=(1/E*I).*(2224*x(ii).^3/6)-(2208.021*x(ii)-(2224*(x(ii)-L1).^3/6)...
-(2224*(x(ii)-L2).^3/6));
yd(ii) = y(ii)+scale.*v;
end
figure(1)
plot(xd,yd,'o-')
axis equal
hold on
1 Kommentar
Chuguang Pan
am 12 Feb. 2024
The plot like a sine curve, maybe the code to calculate the deflecction of beam is incorrect.
Antworten (1)
VBBV
am 12 Feb. 2024
Bearbeitet: VBBV
am 12 Feb. 2024
scale = 50;
E= 1.999*10^11; % N/m2
nu = 0.3;
I= 7.74.*10^-7; % m^4
H = 0.0762;% m
R1 = 2224; % N
R2 = 2224; % N
P = 2224; % N
L = 3.0; % m
L1= 0.91; % m
L2= 2.09; %m
N=50;
x=(0:L/N:L);
DIM =size(x);
y= zeros(DIM);
% figure(1)
% plot(x,y,'.-')
% axis equal
% yyaxis right
xd=x;
yd=y;
for ii=1:length(x)
v=(1/(E*I)).*((2224*x(ii)^3)/6-2208.021*x(ii)-(2224*(x(ii)-L1)^3)/6 ...
-(2224*(x(ii)-L2)^3)/6);
yd(ii) = y(ii)+scale.*v;
end
figure(1)
plot(xd,real(yd),'o-')
axis equal
xlabel('Distance(m)')
ylabel('vertical deformation (m)')
title('Deformation of a beam')
3 Kommentare
VBBV
am 14 Feb. 2024
The code which you shared in question is modified to give outputs as shown in this thread. If you run the code, you would get a deflection curve shown from modified code with correct values. To obtain defelction in sections you need to split the equation as below
scale = 50;
E= 1.999*10^11; % N/m2
nu = 0.3;
I= 7.74.*10^-7; % m^4
H = 0.0762;% m
R1 = 2224; % N
R2 = 2224; % N
P = 2224; % N
L = 3.0; % m
L1= 0.91; % m
L2= 2.09; %m
N=50;
x=(0:L/N:L);
DIM =size(x);
y= zeros(DIM);
% figure(1)
% plot(x,y,'.-')
% axis equal
% yyaxis right
xd=x;
yd=y;
for ii=1:length(x)
v=(1/(E*I)).*((2224*x(ii)^3)/6-2208.021*x(ii)-(2224*(x(ii)-L1)^3)/6 ...
-(2224*(x(ii)-L2)^3)/6);
yd(ii) = y(ii)+scale.*v;
v1(ii) = (1/(E*I)).*(2224*x(ii)^3)/6; % section 1
v2(ii) = (1/(E*I)).*(-2208.021*x(ii)); % section 2
v3(ii) = (1/(E*I)).*(-2224*(x(ii)-L1)^3)/6; % section 3
v4(ii) = (1/(E*I)).*(-2224*(x(ii)-L2)^3)/6; % section 4
end
disp([v1.', v2.', v3.', v4.'])
figure(1)
plot(xd,real(yd),'o-')
axis equal
xlabel('Distance(m)')
ylabel('vertical deformation (m)')
title('Deformation of a beam')
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!