?? boundquad2.m
字號:
function int=boundquad2(g);
%boundquad2 Computes the boundary integral of the product of two quadratic basis functions
% Function int=boundquad2(g) calculates the boundary integral
% of the product of two quadratic basis function over the curve defined by the coordinates in g.
%
% INPUT
%
% g = global coordinates of the integration curve
%
% OUTPUT
%
% int = value of the integral
w=[5/18,8/18,5/18];
ip=[1/2-1/10*sqrt(15),1/2,1/2+1/10*sqrt(15)];
int=0;
for ii=1:3
S=[2*ip(ii)^2-3*ip(ii)+1; ...
-4*ip(ii)^2+4*ip(ii); ...
2*ip(ii)^2-ip(ii)];
dJt=sqrt((g(1,1)*(4*ip(ii)-3)+g(2,1)*(4-8*ip(ii))+g(3,1)*(4*ip(ii)-1))^2+ ...
(g(1,2)*(4*ip(ii)-3)+g(2,2)*(4-8*ip(ii))+g(3,2)*(4*ip(ii)-1))^2);
int=int+w(ii)*S*S'*dJt;
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -