OptFEM3DP1 Toolbox  20130618_070730
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D
 All Files Functions Variables Pages
BuildElemStiffElasMatFuncVec.m
Go to the documentation of this file.
1 function ElemStiffElasMatVec=BuildElemStiffElasMatFuncVec(Num)
2 % function ElemStiffElasMatVec=BuildElemStiffElasMatFuncVec(Num)
3 % return handle of the function Elementary Stiffness Elasticity matrix
4 % associated with local numbering Num.
5 %
6 % Parameters:
7 % Num:
8 % - 0 global alternate numbering with local alternate numbering (classical method),
9 % - 1 global block numbering with local alternate numbering,
10 % - 2 global alternate numbering with local block numbering,
11 % - 3 global block numbering with local block numbering.
12 %
13 % Return values:
14 % ElemStiffElasMatVec: handle function of parameters (q,me,volumes,lambda,mu)
15 %
16 % See also:
17 % #ElemStiffElasMatBaVecP1D0OptV0, #ElemStiffElasMatBbVecP1D0
18 % Copyright:
19 % See \ref license
20 switch Num
21 case {0,1}
22  ElemStiffElasMatVec=@(q,me,volumes,lambda,mu) ElemStiffElasMatBaVecP1D0OptV0(q,me,volumes,lambda,mu);
23 case {2,3}
24  ElemStiffElasMatVec=@(q,me,volumes,lambda,mu) ElemStiffElasMatBbVecP1D0(q,me,volumes,lambda,mu);
25 end