testGibbon

Below is a demonstration of the features of the testGibbon function

Contents

clear; close all; clc;

Syntax

testGibbon(varargin);

Description

testGibbon can be used to run the help and demo (documentation) file for GIBBON. By default the function will run all help and demo files in test mode. However the user may select just the help files or just the demo files and choose publish mode instead of test mode.

Optional inputs: testSet --- 'all', 'help', or 'demo' testMode ---'test' or 'pub' i.e. test run the file or publish the file approveQuestion --- 1 or 0, For 1 the user will be asked to proceed to the next file. If no is answered the file is opened for editing startInd --- e.g. 1 for the first file

Examples

testGibbon('help','test',1,2);
 
testGibbon -> Test file:2 of 117 HELP_addConstraintsLevel_FEB.m
 
Adding Constraints level
<?xml version="1.0" encoding="utf-8"?>
<febio_spec>
   <Constraints>
      <rigid_body mat="2">
         <fixed bc="Rx"/>
         <fixed bc="Ry"/>
         <fixed bc="Rz"/>
         <prescribed bc="x" lc="1">3.1415927e+00</prescribed>
         <prescribed bc="y" lc="1">1.0000000e+00</prescribed>
         <prescribed bc="z" lc="1">-5.0000000e+00</prescribed>
      </rigid_body>
   </Constraints>
</febio_spec>
 
testGibbon -> Test file:3 of 117 HELP_addContactLevel_FEB.m
 
Adding Contact field
----> Defining contact
----> Setting contact parameters
----> Defining contact surface pair
<?xml version="1.0" encoding="utf-8"?>
<febio_spec>
   <Contact>
      <contact type="sticky">
         <laugon>0.000000e+00</laugon>
         <tolerance>1.000000e-01</tolerance>
         <penalty>5.000000e+02</penalty>
         <minaug>0.000000e+00</minaug>
         <maxaug>1.000000e+01</maxaug>
         <search_tolerance>1.000000e-02</search_tolerance>
         <max_traction>0.000000e+00</max_traction>
         <snap_tol>1.000000e-02</snap_tol>
         <surface set="Contact_master_indentor" type="master"/>
         <surface set="Contact_slave_gel" type="slave"/>
      </contact>
   </Contact>
</febio_spec>

GIBBON www.gibboncode.org

Kevin Mattheus Moerman, [email protected]