OptFEM2DP1 Toolbox  V1.2
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
base/ElemMassWMat2DP1.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 = ElemMassWMat2DP1 (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 ElemMassWMat2DP1.m.


Function Documentation

function AElem = ElemMassWMat2DP1 (   area,
  w 
)

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

Example
        area=1/2.;
        w=ones(3,1);
        AElem=ElemMassWMat2DP1(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 ElemMassWMat2DP1.m.

 All Files Functions