OptFEM3DP1 Toolbox  V1.0
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D
 All Files Functions Variables Pages
runBenchs.m File Reference

Run 3D benchs for Mass (benchMass3DP1), Stiff (benchStiff3DP1), MassVF (benchMassVF3DP1) and StiffElas (benchStiffElas3DP1) matrices. For each assembly matrix, we compare computation times of corresponding functions for version base, OptV0, OptV1 and OptV2. More...

Go to the source code of this file.

Functions

function  runBenchs (varargin)
 Run 3D benchs for Mass (benchMass3DP1), Stiff (benchStiff3DP1), MassVF (benchMassVF3DP1) and StiffElas (benchStiffElas3DP1) matrices. For each assembly matrix, we compare computation times of corresponding functions for version base, OptV0, OptV1 and OptV2.
 
function  runBenchs>BenchToLatexTabular (bench, LaTeXFilename)
 

Detailed Description

Run 3D benchs for Mass (benchMass3DP1), Stiff (benchStiff3DP1), MassVF (benchMassVF3DP1) and StiffElas (benchStiffElas3DP1) matrices. For each assembly matrix, we compare computation times of corresponding functions for version base, OptV0, OptV1 and OptV2.

Definition in file runBenchs.m.

Function Documentation

function runBenchs>BenchToLatexTabular (   bench,
  LaTeXFilename 
)

Definition at line 136 of file runBenchs.m.

function runBenchs (   varargin)

Run 3D benchs for Mass (benchMass3DP1), Stiff (benchStiff3DP1), MassVF (benchMassVF3DP1) and StiffElas (benchStiffElas3DP1) matrices. For each assembly matrix, we compare computation times of corresponding functions for version base, OptV0, OptV1 and OptV2.

Optional parameters
  • save : true for saving each bench in latex files. (default false)
  • directory : name of the directory for saving $\LaTeX{}$ files. (default latex)
  • name : base name of $\LaTeX{}$ files. (default bench)
  • LN : List of N parameters for CubeMesh function. (default [5:2:11])
Example
     runBenchs('save',true,'name','benchMatlabR2012b','LN',5:3:20)
Results under Matlab R2012b
Here are the results on our reference machine.
  • functions MassAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchMatlabR2012b_Mass3DP1.tex}} \]

  • functions StiffAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchMatlabR2012b_Stiff3DP1.tex}} \]

  • functions StiffElasAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchMatlabR2012b_StiffElas3DP1.tex}} \]

  • functions MassVFAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchMatlabR2012b_MassVF3DP1.tex}} \]

Results under Octave 3.6.3
Here are the results on our reference machine.
  • functions MassAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchOctave3.6.3_Mass3DP1.tex}} \]

  • functions StiffAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchOctave3.6.3_Stiff3DP1.tex}} \]

  • functions StiffElasAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchOctave3.6.3_StiffElas3DP1.tex}} \]

  • functions MassVFAssembling3DP1

    \[\mbox{\input{\INPUTLATEXDIR/benchOctave3.6.3_MassVF3DP1.tex}} \]

See Also
benchMass3DP1, benchStiff3DP1, benchStiffElas3DP1, benchMassVF3DP1, InitOptFEM3D
Copyright
See License issues
Parameters
varargin
runBenchs ( [ "save", save_value ] [, "directory", directory_value ]
[, "name", name_value ] [, "LN", LN_value ] )
Named Parameters for varargin:
  • save save ( Default: false )
  • directory directory ( Default: latex )
  • name name ( Default: bench )
  • LN LN ( Default: [5:2:11] )

Definition at line 17 of file runBenchs.m.