| OptFEM2DP1 Toolbox V1.2b2 Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D

- Main Page
- Related Pages
- Files

- File List
- File Members

All Files Functions Pages
BuildElemStiffElasMatFunc.m
Go to the documentation of this file.
1 function ElemStiffElasMat=BuildElemStiffElasMatFunc(Num)
2 % function ElemStiffElasMat=BuildElemStiffElasMatFunc(Num)
3 % Definition of the ElemStiffElasMat function 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 % #ElemStiffElasMatP1Ba, #ElemStiffElasMatP1Bb
13 % Example:
14 % @verbatim
15 % ElemStiffElasMat=BuildElemStiffElasMatFunc(0);
16 % @endverbatim
17 % Copyright:
18 % See \ref license
19 switch Num
20 case {0,1}
21 ElemStiffElasMat=@(q1,q2,q3,area,lambda,mu) ElemStiffElasMatP1Ba(q1,q2,q3,area,lambda,mu);
22 case {2,3}
23 ElemStiffElasMat=@(q1,q2,q3,area,lambda,mu) ElemStiffElasMatP1Bb(q1,q2,q3,area,lambda,mu);
24 end