tetrahedronelementvolume.m

来自「matlab编程实现有限元计算,对有限元学习很有帮助」· M 代码 · 共 16 行

M
16
字号
function y = TetrahedronElementVolume(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4)
%TetrahedronElementVolume   This function returns the volume
%                           of the linear tetrahedral element
%                           whose first node has coordinates
%                           (x1,y1,z1), second node has 
%                           coordinates (x2,y2,z2), third node 
%                           has coordinates (x3,y3,z3), and 
%                           fourth node has coordiantes
%                           (x4,y4,z4).
xyz = [1 x1 y1 z1 ; 1 x2 y2 z2 ; 1 x3 y3 z3 ; 1 x4 y4 z4];
y = det(xyz)/6;




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?