Creating a report

After completing your stackup you'll want to create a nice report of your work. To do this you save your work to a text file and then open that text file with Microsoft Word or an equivalent word processing program. The save function of the stackups program will applies proper formating to the text file.

In [3]:
from stackups import *   # start up the stackups program

path = '/home/ken/Dropbox/dbDocuments/python2/stackups/'
file = 'stks_example.stk'

s = load(path + file)

In the Loading stored data tutorial you learned how to save stackup data to a file. The file extension you used was "stk". To save to a text file, simply substitute the extension stk for txt.

In [10]:
s.save(path + 'stks_example.txt', pagebreak=False)  # For Microsoft Word, leave pagebreak at its default: True

Here is what the report looks like:


Example stacks, i.e. an example for stackups.py
===============================================


Stack Titles
============
[1]: PN16/NJ210E - gap between cover and bearing (shaft pushed rt.)
[2]: PN03, required thickness for shim
[3]: PN09, required thickness for shim
[4]: P15/PN02, Gear overhang, lf side (idler pushed rt)
[5]: P15/PN02, Gear overhang, rt side (idler pushed lf)
[6]: PN06/PN12, Gear overhang, lf side (idler pushed lf)
[7]: PN06/PN12, Gear overhang, rt side (idler pushed rt)


Stackunits
==========
su σ    d        dt     pn & n
14 6  0.8804 ± 0.0047 24780/24720, Bearing pressed width
13 6  1.1764 ± 0.0028 478/473, Bearing pressed width
 2 6  0.9031 ± 0.0024 NJ2210E, Bearing width
 3 6  0.3730 ± 0.0050 PN01, Thickness
 4 6  2.3170 ± 0.0100 PN02, Gear width
 5 6  0.3850 ± 0.0050 PN05, Mounting face to rt. end
 6 6  0.5360 ± 0.0050 PN06, Shoulder
 7 6  5.9170 ± 0.0150 PN07, Output pocket depth
 8 6 10.4860 ± 0.0100 PN07, Overall width
15 6  4.0670 ± 0.0100 PN07, Input pocket depth
22 6  0.2150 ± 0.0150 PN07, Input cap to idler cap
17 6  0.2000 ± 0.0050 PN10, Mounting face to brg stop
16 6  2.1450 ± 0.0050 PN11, Shoulder to shoulder
20 6  1.5720 ± 0.0150 PN11, Gear width
21 6  0.4470 ± 0.0150 PN11, Lf brg shldr to gear
 9 6  1.4070 ± 0.0050 PN12, Width
10 6  0.5780 ± 0.0050 PN14, Width
11 6  6.0390 ± 0.0050 PN15, Lf brg shldr to gear shldr
18 6  5.2950 ± 0.0150 PN15, Lf side of small gear to gear shldr
19 6  2.4640 ± 0.0150 PN15, Gear width
12 6  0.3190 ± 0.0050 PN16, Mounting face to rt. end


Where used
==========
2 : [1, 4, 5, 6, 7]
3 : [2, 4, 5]
4 : [2, 4]
5 : [2]
6 : [2]
7 : [2, 4, 5]
8 : [1, 4]
9 : [1, 4, 6]
10 : [1, 4, 6, 7]
11 : [1, 5]
12 : [1, 4, 5, 6, 7]
13 : [2, 4, 5]
14 : [3, 6, 7]
15 : [3, 6]
16 : [3, 6]
17 : [3, 7]
18 : [4, 5]
19 : [5]
20 : [6]
21 : [6, 7]
22 : [6, 7]


Stacks
======

[1] PN16/NJ210E - gap between cover and bearing (shaft pushed rt.)
r  su  σ  j     d        dt     pn & n
1  12  6  -  0.3190 ± 0.0050  PN16, Mounting face to rt. end
2   8  6  + 10.4860 ± 0.0100  PN07, Overall width
3  12  6  -  0.3190 ± 0.0050  PN16, Mounting face to rt. end
4   2  6  -  0.9031 ± 0.0024  NJ2210E, Bearing width
5  10  6  -  0.5780 ± 0.0050  PN14, Width
6   9  6  -  1.4070 ± 0.0050  PN12, Width
7  11  6  -  6.0390 ± 0.0050  PN15, Lf brg shldr to gear shldr
8   2  6  -  0.9031 ± 0.0024  NJ2210E, Bearing width
------------------------------------------------------------
  0.0177 ± 0.0397  [-0.0220, 0.0574]  100% possible
  0.0177 ± 0.0154  [0.0024, 0.0331]  6σ, 99.73% probable
  0.0177 ± 0.0102  [0.0075, 0.0280]  4σ, 95.46% probable
  0.0177 ± 0.0051  [0.0126, 0.0228]  2σ, 68.26% probable
  σ = 0.00512

[2] PN03, required thickness for shim
r  su  σ  j     d       dt     pn & n
1   5  6  + 0.3850 ± 0.0050  PN05, Mounting face to rt. end
2  13  6  + 1.1764 ± 0.0028  478/473, Bearing pressed width
3   6  6  + 0.5360 ± 0.0050  PN06, Shoulder
4   4  6  + 2.3170 ± 0.0100  PN02, Gear width
5   3  6  + 0.3730 ± 0.0050  PN01, Thickness
6  13  6  + 1.1764 ± 0.0028  478/473, Bearing pressed width
7   7  6  - 5.9170 ± 0.0150  PN07, Output pocket depth
------------------------------------------------------------
 0.0468 ± 0.0456  [0.0012, 0.0924]  100% possible
 0.0468 ± 0.0204  [0.0265, 0.0672]  6σ, 99.73% probable
 0.0468 ± 0.0136  [0.0333, 0.0604]  4σ, 95.46% probable
 0.0468 ± 0.0068  [0.0400, 0.0536]  2σ, 68.26% probable
  σ = 0.00680

[3] PN09, required thickness for shim
r  su  σ  j     d       dt     pn & n
1  15  6  - 4.0670 ± 0.0100  PN07, Input pocket depth
2  14  6  + 0.8804 ± 0.0047  24780/24720, Bearing pressed width
3  16  6  + 2.1450 ± 0.0050  PN11, Shoulder to shoulder
4  14  6  + 0.8804 ± 0.0047  24780/24720, Bearing pressed width
5  17  6  + 0.2000 ± 0.0050  PN10, Mounting face to brg stop
------------------------------------------------------------
 0.0387 ± 0.0294  [0.0093, 0.0681]  100% possible
 0.0387 ± 0.0139  [0.0248, 0.0526]  6σ, 99.73% probable
 0.0387 ± 0.0093  [0.0294, 0.0480]  4σ, 95.46% probable
 0.0387 ± 0.0046  [0.0341, 0.0433]  2σ, 68.26% probable
  σ = 0.00465

[4] P15/PN02, Gear overhang, lf side (idler pushed rt)
 r  su  σ  j     d        dt     pn & n
 1  18  6  +  5.2950 ± 0.0150  PN15, Lf side of small gear to gear shldr
 2   9  6  +  1.4070 ± 0.0050  PN12, Width
 3  10  6  +  0.5780 ± 0.0050  PN14, Width
 4   2  6  +  0.9031 ± 0.0024  NJ2210E, Bearing width
 5  12  6  +  0.3190 ± 0.0050  PN16, Mounting face to rt. end
 6   8  6  - 10.4860 ± 0.0100  PN07, Overall width
 7   7  6  +  5.9170 ± 0.0150  PN07, Output pocket depth
 8  13  6  -  1.1764 ± 0.0028  478/473, Bearing pressed width
 9   3  6  -  0.3730 ± 0.0050  PN01, Thickness
10   4  6  -  2.3170 ± 0.0100  PN02, Gear width
------------------------------------------------------------
  0.0667 ± 0.0752  [-0.0084, 0.1419]  100% possible
  0.0667 ± 0.0276  [0.0391, 0.0943]  6σ, 99.73% probable
  0.0667 ± 0.0184  [0.0483, 0.0851]  4σ, 95.46% probable
  0.0667 ± 0.0092  [0.0575, 0.0759]  2σ, 68.26% probable
  σ = 0.00921

[5] P15/PN02, Gear overhang, rt side (idler pushed lf)
r  su  σ  j     d       dt     pn & n
1   3  6  + 0.3730 ± 0.0050  PN01, Thickness
2  13  6  + 1.1764 ± 0.0028  478/473, Bearing pressed width
3   7  6  - 5.9170 ± 0.0150  PN07, Output pocket depth
4  12  6  + 0.3190 ± 0.0050  PN16, Mounting face to rt. end
5   2  6  + 0.9031 ± 0.0024  NJ2210E, Bearing width
6  11  6  + 6.0390 ± 0.0050  PN15, Lf brg shldr to gear shldr
7  18  6  - 5.2950 ± 0.0150  PN15, Lf side of small gear to gear shldr
8  19  6  + 2.4640 ± 0.0150  PN15, Gear width
------------------------------------------------------------
 0.0626 ± 0.0652  [-0.0026, 0.1277]  100% possible
 0.0626 ± 0.0276  [0.0349, 0.0902]  6σ, 99.73% probable
 0.0626 ± 0.0184  [0.0441, 0.0810]  4σ, 95.46% probable
 0.0626 ± 0.0092  [0.0533, 0.0718]  2σ, 68.26% probable
  σ = 0.00921

[6] PN06/PN12, Gear overhang, lf side (idler pushed lf)
 r  su  σ  j     d       dt     pn & n
 1  20  6  + 1.5720 ± 0.0150  PN11, Gear width
 2  21  6  + 0.4470 ± 0.0150  PN11, Lf brg shldr to gear
 3  16  6  - 2.1450 ± 0.0050  PN11, Shoulder to shoulder
 4  14  6  - 0.8804 ± 0.0047  24780/24720, Bearing pressed width
 5  15  6  + 4.0670 ± 0.0100  PN07, Input pocket depth
 6  22  6  + 0.2150 ± 0.0150  PN07, Input cap to idler cap
 7  12  6  - 0.3190 ± 0.0050  PN16, Mounting face to rt. end
 8   2  6  - 0.9031 ± 0.0024  NJ2210E, Bearing width
 9  10  6  - 0.5780 ± 0.0050  PN14, Width
10   9  6  - 1.4070 ± 0.0050  PN12, Width
------------------------------------------------------------
 0.0685 ± 0.0821  [-0.0136, 0.1506]  100% possible
 0.0685 ± 0.0300  [0.0385, 0.0986]  6σ, 99.73% probable
 0.0685 ± 0.0200  [0.0485, 0.0885]  4σ, 95.46% probable
 0.0685 ± 0.0100  [0.0585, 0.0785]  2σ, 68.26% probable
  σ = 0.01002

[7] PN06/PN12, Gear overhang, rt side (idler pushed rt)
r  su  σ  j     d       dt     pn & n
1  10  6  + 0.5780 ± 0.0050  PN14, Width
2   2  6  + 0.9031 ± 0.0024  NJ2210E, Bearing width
3  12  6  + 0.3190 ± 0.0050  PN16, Mounting face to rt. end
4  22  6  - 0.2150 ± 0.0150  PN07, Input cap to idler cap
5  17  6  - 0.2000 ± 0.0050  PN10, Mounting face to brg stop
6  14  6  - 0.8804 ± 0.0047  24780/24720, Bearing pressed width
7  21  6  - 0.4470 ± 0.0150  PN11, Lf brg shldr to gear
------------------------------------------------------------
 0.0578 ± 0.0521  [0.0057, 0.1099]  100% possible
 0.0578 ± 0.0235  [0.0343, 0.0813]  6σ, 99.73% probable
 0.0578 ± 0.0157  [0.0421, 0.0735]  4σ, 95.46% probable
 0.0578 ± 0.0078  [0.0500, 0.0656]  2σ, 68.26% probable
  σ = 0.00784
< Previous | Next >