3 % Computation of the element weight mass matrix
for a triangle with area
'area'.
7 % w: weight
function values at the triangle vertices
10 % AElem: `3\times 3` matrix
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)];