feode2l.m
来自「《The finite element method using Matlab》」· M 代码 · 共 26 行
M
26 行
function [k]=feode2l(acoef,bcoef,ccoef,eleng)
%-------------------------------------------------------------------
% Purpose:
% element matrix for (a u'' + b u' + c u)
% using linear element
%
% Synopsis:
% [k]=feode2l(acoef,bcoef,ccoef,eleng)
%
% Variable Description:
% k - element matrix (size of 2x2)
% acoef - coefficient of the second order derivative term
% bcoef - coefficient of the first order derivative term
% ccoef - coefficient of the zero-th order derivative term
% eleng - element length
%-------------------------------------------------------------------
% element matrix
a1=-(acoef/eleng); a2=bcoef/2; a3=ccoef*eleng/6;
k=[ a1-a2+2*a3 -a1+a2+a3;...
-a1-a2+a3 a1+a2+2*a3];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?