Rev Author Line No. Line
4431 jacho 1 $fn=40; // model faces resolution.
2 include <../configuration.scad>
3  
4436 jacho 4 include <polyScrewThread_r1.scad>
4431 jacho 5  
4436 jacho 6 PI=3.141592;
7  
4462 jacho 8 module WINDGAUGE02A_S03(S01_sila_materialu,S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,lozisko_vyska,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,vyska_matky,prumer_orechu,prumer_sroubu,vyska_hlavy_sroubu,prumer_hlavy_sroubu,S01_tolerance_zavit,R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,vule_mezi_statorem_rotorem,S01_sila_materialu,S01_hloubka_zavitu)
4431 jacho 9 {
4462 jacho 10 union()
11 {
12 //valec se zavitem
4431 jacho 13 difference()
14 {
4462 jacho 15  
4472 jacho 16 screw_thread((R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)-S01_tolerance_zavit,S01_hloubka_zavitu,55,S01_vyska_komponentu_na_lozisko,PI/2,2);
4462 jacho 17  
18 translate([0,0,S01_sila_materialu+S01_vyska_komponentu_na_lozisko/2])
4472 jacho 19 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=((R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)-S01_tolerance_zavit/2)/2-S01_hloubka_zavitu/2-S01_sila_materialu, center = true, $fn=100);
4436 jacho 20  
4462 jacho 21 //otvor na pruchod hridelky
22 translate([0,0,S01_sila_materialu/2])
23 cylinder (h = S01_sila_materialu+0.01, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+0.2)/2, center = true, $fn=100);
24 }
4431 jacho 25  
26 //otvory na ložisko
4462 jacho 27 translate([0,0,lozisko_vyska/2+S01_sila_materialu])
28 difference()
29 {
30 cylinder (h = lozisko_vyska, r=(lozisko_prumer_vnejsi+2*S01_sila_materialu)/2, center = true, $fn=100);
4431 jacho 31 cylinder (h = lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100);
32  
33  
4462 jacho 34 }
35  
36 }
37 }
4431 jacho 38  
39  
40  
41  
42  
4462 jacho 43 WINDGAUGE02A_S03(S01_sila_materialu,S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,lozisko_vyska,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,vyska_matky,prumer_orechu,prumer_sroubu,vyska_hlavy_sroubu,prumer_hlavy_sroubu,S01_tolerance_zavit,R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,vule_mezi_statorem_rotorem,S01_sila_materialu,S01_hloubka_zavitu);