InterferenceFit:

--------------------------------------------------------------------------
   Calculates torque transfer and factor of safety.
   Determined from the stress distribution in the fit.
--------------------------------------------------------------------------
   Form:
   [T, FOS] = InterferenceFit ( d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d          (1,1)  Data structure
                     .delta      (1,1)  Total diametral interference (m)
                     .ri         (1,1)  Inner radius of shaft (m)
                     .ro         (1,1)  Outer radius of hub (m)
                     .r          (1,1)  Radius of interference (m)
                     .Eo         (1,1)  Young's modulus (Pa)
                     .Ei         (1,1)  Young's modulus (Pa)
                     .mu         (1,1)  Viscosity (Pa*s)
                     .nuo        (1,1)  Poisson's ratio of Hub
                     .nui        (1,1)  Poisson's ratio of shaft
                     .l          (1,1)  Length of engagement (m)

   -------
   Outputs
   -------
   T          (1,1)  Torque (N*m)
   FOS        (1,1)  Factor of Safety

--------------------------------------------------------------------------
   Reference: Robert L. Norton. Machine Design: An Integrated Approach.
              Upper Saddle River, NJ: Prentice Hall, 2000
--------------------------------------------------------------------------