OptFEM3DP1 Toolbox  20130618_070730
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D
 All Files Functions Variables Pages
ElemMassMat3DP1D0.m
Go to the documentation of this file.
1 function [Elem]=ElemMassMat3DP1D0(V)
2 % NAME
3 % [Elem]=ElemMassMat3DP1D0(V)
4 % INPUTS
5 % V : double (element volume)
6 % OUTPUTS
7 % Elem : matrix 4x4
8 % DESCRIPTION
9 % Compute P1-Lagrange elementary Mass matrix.
10 % Numbering of local points in reference element is :
11 % P=[(0, 0, 0), (1, 0, 0), (0, 1, 0), (0, 0, 1)]
12 %----------------------------------------
13 % Automatic generation with sage
14 % (c) Cuvelier F. email:cuvelier@math.univ-paris13.fr
15 % Copyright:
16 % See \ref license
17 Elem=[ ...
18 [ 2, 1, 1, 1]; ...
19 [ 1, 2, 1, 1]; ...
20 [ 1, 1, 2, 1]; ...
21 [ 1, 1, 1, 2]]*V/20;
22 %Elem=(ones(4,4)+eye(4,4))*volume/12;