bmatrix1d.m
来自「The Finite Element Method Usign MATLAB.p」· M 代码 · 共 12 行
M
12 行
% evaluates derivative of the shape functions (in physical coordinates) at point xt
function B = Bmatrix1D(xt,xe)
include_flags;
if nen == 2 % derivative of linear shape functions
B = 1/(xe(1)-xe(2))*[-1 1];
elseif nen == 3 % derivative of quadratic shape functions
B(1)=(2*xt-xe(2)-xe(3))/((xe(1)-xe(2))*(xe(1)-xe(3)));
B(2)=(2*xt-xe(1)-xe(3))/((xe(2)-xe(1))*(xe(2)-xe(3)));
B(3)=(2*xt-xe(1)-xe(2))/((xe(3)-xe(1))*(xe(3)-xe(2)));
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?