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

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

Go to the source code of this file.

Functions

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

Detailed Description

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

Definition in file ElemMassWMatP1.m.


Function Documentation

function AElem = ElemMassWMatP1 (   area,
  w 
)

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

Example
        area=1/2.;
        w=ones(3,1);
        AElem=ElemMassWMatP1(area);
      
Copyright
See License issues
Parameters:
areatriangle area
wvalues of the weight function at the triangle vertices, $3\times 1$ array
Return values:
AElemElement weighted mass matrix, $3\times 3$ matrix

Definition at line 17 of file ElemMassWMatP1.m.

 All Files Functions