FEM-Course-Matlab/10.四节点八节点四边形单元悬臂梁的Matlab有限元编程/8_nodes/ShapeFun.m

15 lines
451 B
Mathematica
Raw Permalink Normal View History

2024-01-28 16:46:36 +00:00
function N=ShapeFun(s,t) % 4
%%
%
N1=1/4*(1-s)*(1+t)*(-s+t-1);
N2=1/4*(1-s)*(1-t)*(-s-t-1);
N3=1/4*(1+s)*(1-t)*(s-t-1);
N4=1/4*(1+s)*(1+t)*(s+t-1);
%
N5=1/2*(1-t^2)*(1-s);
N7=1/2*(1-t^2)*(1+s);
N6=1/2*(1-s^2)*(1-t);
N8=1/2*(1-s^2)*(1+t);
N=[N1 0 N2 0 N3 0 N4 0 N5 0 N6 0 N7 0 N8 0;
0 N1 0 N2 0 N3 0 N4 0 N5 0 N6 0 N7 0 N8];