OptFEM3DP1 Toolbox  V1.0
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D
 All Files Functions Variables Pages
ElemMassVFMat3DBbP1.m
Go to the documentation of this file.
1 function M=ElemMassVFMat3DBbP1(volume)
2 %D=(ones(4,4)+eye(4,4))*volume/20;
3 % Copyright:
4 % See \ref license
5 D=ElemMassMat3DP1D0(volume);
6 M=zeros(12,12);
7 
8 I=1:4;
9 for d=1:3
10  M(I,I)=D;
11  I=I+4;
12 end