OptFEM2DP1 Toolbox  V1.2b3
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
 All Files Functions Pages
ElemMassMatP1.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 = ElemMassMatP1 (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 ElemMassMatP1.m.

Function Documentation

function AElem = ElemMassMatP1 (   area)

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

Example
    area=1/2.;
    AElem=ElemMassMatP1(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 ElemMassMatP1.m.