OptFEM2D  0.1
Matlab optimized FEM2D
 All Files Functions Groups Pages
ElemMassWMatP1.m
Go to the documentation of this file.
1 function AElem=ElemMassWMatP1(area,w)
2 % function AElem=ElemMassWMatP1(area,w)
3 % Computation of the element weight mass matrix for a triangle with area 'area'.
4 %
5 % Parameters:
6 % area: triangle area
7 % w: weight function values at the triangle vertices
8 %
9 % Return values:
10 % AElem: `3\times 3` matrix
11 %
12  AElem=(area/30)*[ 3*w(1)+w(2)+w(3), w(1)+w(2)+w(3)/2, w(1)+w(2)/2+w(3); ...
13  w(1)+w(2)+w(3)/2, w(1)+3*w(2)+w(3), w(1)/2+w(2)+w(3); ...
14  w(1)+w(2)/2+w(3), w(1)/2+w(2)+w(3), w(1)+w(2)+3*w(3)];