OptFEM2DP1 Toolbox  V1.2b3
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
 All Files Functions Pages
BuildElemStiffElasMatOptV0Func.m
Go to the documentation of this file.
1 function ElemStiffElasMat=BuildElemStiffElasMatOptV0Func(Num)
2 % function ElemStiffElasMat=BuildElemStiffElasMatOptV0Func(Num)
3 % Definition of the function computing the Element Elasticity Stiffness Matrix, depending on the
4 % parameter Num of numbering of degrees of freedom.
5 %
6 % Parameters:
7 % Num: Choice of the local numbering of degrees of freedom
8 % - 0, 1 alternate numbering (classical method),
9 % - 2, 3 block numbering
10 %
11 % See also
12 % #ElemStiffElasMatP1BaOptV0, #ElemStiffElasMatP1BbOptV0
13 % Copyright:
14 % See \ref license
15 switch Num
16 case {0,1}
17  ElemStiffElasMat=@(ql,area,C) ElemStiffElasMatP1BaOptV0(ql,area,C);
18 case {2,3}
19  ElemStiffElasMat=@(ql,area,C) ElemStiffElasMatP1BbOptV0(ql,area,C);
20 end