2 %
function AElem=ElemMassMat(area)
3 % Computation of the element mass matrix
for
4 % `P_1`-Lagrange finite elements
10 % AElem: Element mass matrix, `3\times 3` matrix
11 % ``AElem=\frac{area}{12}\left( \begin{array}{ccc}
15 % \end{array} \right)``
24 AElem=(area/12)*[2 1 1; 1 2 1; 1 1 2];