OptFEM2DP1 Toolbox  V1.2
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
base/ElemMassMat2DP1.m File Reference

Computation of the element mass matrix for $P_1$-Lagrange finite elements. More...

Go to the source code of this file.

Functions

function AElem = ElemMassMat2DP1 (area)
 Computation of the element mass matrix for $P_1$-Lagrange finite elements.

Detailed Description

Computation of the element mass matrix for $P_1$-Lagrange finite elements.

Definition in file ElemMassMat2DP1.m.


Function Documentation

function AElem = ElemMassMat2DP1 (   area)

Computation of the element mass matrix for $P_1$-Lagrange finite elements.

Example
        area=1/2.;
        AElem=ElemMassMat2DP1(area);
      
Copyright
See License issues
Parameters:
areatriangle area
Return values:
AElemElement mass matrix, $3\times 3$ matrix

\[AElem=\frac{area}{12}\left( \begin{array}{ccc} 2 &1 &1 \\ 1 &2 &1 \\ 1 &1 &2 \end{array} \right)\]

Definition at line 17 of file ElemMassMat2DP1.m.

 All Files Functions