![]() |
OptFEM2DP1 Toolbox
1.2b4
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
|
00001 function ElemStiffElasMat=BuildElemStiffElasMatFunc(Num) 00002 % function ElemStiffElasMat=BuildElemStiffElasMatFunc(Num) 00003 % Definition of the function computing the Element Elasticity Stiffness Matrix, depending on the 00004 % parameter Num of numbering of degrees of freedom. 00005 % 00006 % Parameters: 00007 % Num: Choice of the local numbering of degrees of freedom 00008 % - 0, 1 alternate numbering (classical method), 00009 % - 2, 3 block numbering 00010 % 00011 % See also 00012 % #ElemStiffElasMatBa2DP1, #ElemStiffElasMatBb2DP1 00013 % Copyright: 00014 % See \ref license 00015 switch Num 00016 case {0,1} 00017 ElemStiffElasMat=@(ql,area,C) ElemStiffElasMatBa2DP1(ql,area,C); 00018 case {2,3} 00019 ElemStiffElasMat=@(ql,area,C) ElemStiffElasMatBb2DP1(ql,area,C); 00020 end