4 % Stiff (#
validStiffP1) and StiffElas (
#validStiffElasP1) matrices.
5 % For each assembly matrix, we make 3 tests
6 % - Test 1 : computation of the assembly Matrix using all the versions giving
7 % errors and computation times.
8 % - Test 2 : comparison of the associated integral and its `P_1`-Lagrange approximation.
9 % - Test 3 : retrieving of numerical order for `P_1`-Lagrange approximation.
12 % save : set to true to save figures in 'image' directory.
13 % percent : value for resizing the figure (only png format). See #SaveFigure
17 % runValids('save',true,'percent',50)@endverbatim
19 % Results under Matlab R2012b:
20 % Here are the figures for 'Test 3' obtained on our reference machine.
21 % - validMassP1() figure
22 % \image html images/validMassP1.png "figure : Mass Matrix order validation"
23 % - validMassWP1() figure
24 % \image html images/validMassWP1.png "figure : MassW Matrix order validation"
25 % - validStiffP1() figure
26 % \image html images/validStiffP1.png "figure : Stiff Matrix order validation"
27 % - validStiffElasP1() figure
28 % \image html images/validStiffElasP1.png "figure : StiffElas Matrix order validation"
31 % #validMassP1, #validMassWP1, #validStiffP1, #validStiffElasP1, #SaveFigure
39 p=p.addParamValue('save', false, @islogical );
40 p=p.addParamValue('percent', 50 , @(t) ((t>0)&&(t<=100)) );
41 p=p.parse(varargin{:});
43 p.addParamValue(
'save',
false, @islogical );
44 p.addParamValue(
'percent', 50 , @(t) ((t>0)&&(t<=100)) );
54 SaveFigure(p.Results.save,'validMassWP1',p.Results.percent)
57 SaveFigure(p.Results.save,'validStiffP1',p.Results.percent)
60 SaveFigure(p.Results.save,'validStiffElasP1',p.Results.percent)