3 % Computation of the element stiffness elasticity matrix
for
4 % `P_1`-Lagrange method.
5 % The method for numbering the degrees of freedom is local alternate numbering (classical method)
11 % Numbering of local points in reference element is :
12 % P=[(0, 0), (1, 0), (0, 1)]
15 % ql : array of coordinates of the vertices of the triangle, 2-by-3 matrix (
double)
16 % area : triangle area (
double)
17 % C : Hooke's matrix (3-by-3
double)
20 % Elem : element stiffness elasticity matrix, 6-by-6 matrix (
double)
27 % C=[lambda+2*mu, lambda, 0;lambda, lambda + 2*mu, 0;0, 0, mu];
35 % Matrice des déformations (x par 2*area)
36 B=[u(2),0,v(2),0,w(2),0; ...
37 0,-u(1),0,-v(1),0,-w(1); ...
38 -u(1),u(2),-v(1),v(2),-w(1),w(2)];