返回首页

如何利用matlab求应力Sigma

时间:2015-07-04 21:33来源:知行网www.zhixing123.cn 编辑:麦田守望者

工字钢沿Z轴向下,
Lz是nx1的Array
Mz是nx2的Vector, Mz(:,1)是x向, Mz(:,2)是y向:

 

 

% Sigma of 9 points
% 4 ___ ___ 3
% \ \ \ \
% \ \8__________7_\ \
% Y+/____\_________9 \
% \ \ ______\_______ \
% \ \ 5 \ 6\ \
% \__\ \ \__\
% 1 _\/ 2
% X
%
% 9个点坐标
Points = [...
B, H/2;
B, -H/2;
-B, -H/2;
-B, H/2;
t/2, h/2;
t/2, -h/2;
-t/2, -h/2;
-t/2, h/2;
0, 0;
];
Sigma = ...
repmat(Lz / area,1,9) ...
+ repmat(Mz(:,1),1,9) ...
.* repmat(Points(:,2),1,length(Mz))' / obj.smaIx ...
- repmat(Mz(:,2),1,9) ...
.* repmat(Points(:,1),1,length(Mz))' / obj.smaIy;

 


下面附带是个实验:

a =repmat([1:20]',1,9);
b =repmat([1:9]',1,20);
a .* b'

------分隔线----------------------------
标签(Tag):MATLAB
------分隔线----------------------------
推荐内容
猜你感兴趣