필터 지우기
필터 지우기

Calculate normal and shear stress of a beam where values of depth and width are under certain conditions

조회 수: 5 (최근 30일)
close all
clear
clc
b = 1:200;
d = 1:200;
A = 2640;
F = 300e3;
d_max = 125;
b_min = 20;
NL = length(b);
sigma_max = zeros(1,NL);
tau_max = zeros(1,NL);
for i = 1
if (b(i)>=d(i)) && (d(i)<=d_max) && (b(i)>=b_min) && (b(i)*d(i)==A)
My = F*(b(i)/2);
Iyy = (b(i)*d(i)^3)/12;
sigma_max(i) = (My*Iyy)*(d(i)/2);
Qy = (b(i)*d(i)^2)/8;
tau_max(i) = (Vz/(Iyy*b(i)))*Qy;
end
end

채택된 답변

VBBV
VBBV 2023년 3월 31일
편집: VBBV 2023년 3월 31일
close all
clear
clc
b = 1:200;
d = 1:200;
A = 2640;
F = 300e3;
d_max = 125;
b_min = 20;
NL = length(b);
sigma_max = zeros(1,NL);
tau_max = zeros(1,NL);
for i = 1:NL
if ((b(i)>=d(i)) | (d(i)<=d_max)) & ((b(i)>=b_min) | (b(i)*d(i)==A))
My(i) = F*(b(i)/2);
Iyy(i) = (b(i)*d(i)^3)/12;
sigma_max(i) = (My(i)/Iyy(i))*(d(i)/2);
Qy(i) = (d(i)*b(i)^2)/6;
tau_max(i) = (My(i)/Iyy(i))*(d(i)/2)*Qy(i);
end
end
% normal stress
figure
bar(b,sigma_max)
xlim([min(b) max(b)])
%shear stress
figure
bar(b,tau_max)
xlim([min(b) max(b)])
  댓글 수: 1
Zara
Zara 2023년 4월 4일
How can I get the values for sigma_max and tau_max to be saved in the arrays I created to allow for further calculations in the future?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Stress and Strain에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by