OptFEM2DP1 Toolbox  1.2b4
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
base/BuildElemStiffElasMatFunc.m
Go to the documentation of this file.
00001 function ElemStiffElasMat=BuildElemStiffElasMatFunc(Num)
00002 % function ElemStiffElasMat=BuildElemStiffElasMatFunc(Num)
00003 % Definition of the ElemStiffElasMat function 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 %  #ElemStiffElasMat2DP1Ba, #ElemStiffElasMat2DP1Bb
00013 % Example:
00014 % @verbatim
00015 % ElemStiffElasMat=BuildElemStiffElasMatFunc(0);
00016 % @endverbatim
00017 % Copyright:
00018 %   See \ref license
00019 switch Num
00020 case {0,1}
00021   ElemStiffElasMat=@(ql,area,C) ElemStiffElasMatBa2DP1(ql,area,C);
00022 case {2,3}
00023   ElemStiffElasMat=@(ql,area,C) ElemStiffElasMatBb2DP1(ql,area,C);
00024 end
 All Files Functions