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