3 % Run validation tests
for Mass (#
validMass3DP1), Stiff (#validStiffP1),
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 % - validMass3DP1() figure
22 % \image html images/validMass3DP1.png "figure : Mass Matrix order validation"
23 % - validStiff3DP1() figure
24 % \image html images/validStiff3DP1.png "figure : Stiff Matrix order validation"
25 % - validStiffElas3DP1(0) figure
26 % \image html images/validStiffElas3DP1.png "figure : StiffElas Matrix order validation"
27 % - validMassVF3DP1(0) figure
28 % \image html images/validMassVF3DP1.png "figure : MassVF Matrix order validation"
31 % #validMass3DP1, #validStiff3DP1, #validStiffElas3DP1, #validMassVF3DP1, #SaveFigure
43 p.addParamValue(
'save',
false, @islogical );
44 p.addParamValue(
'percent', 50 , @(t) ((t>0)&&(t<=100)) );
54 SaveFigure(
p.Results.save,'validMassVF3DP1',
p.Results.percent)
57 SaveFigure(
p.Results.save,'validStiff3DP1',
p.Results.percent)
60 SaveFigure(
p.Results.save,'validStiffElas3DP1',
p.Results.percent)