Rev Author Line No. Line
4536 jacho 1 $fn=40; // model faces resolution.
2 include <../configuration.scad>
3 include <polyScrewThread_r1.scad>
4 PI=3.141592;
5 WINDGAUGE01A_R01();
6  
7 //Model lopatky
8 module WINDGAUGE01A_R01()
9 {
10 difference()
11 {
12 union()
13 {
14 //koule vrchní - kryt
15 translate([0,0,R01_vyska_preryti_statoru])
16 sphere(d = (S01_prumer_vnitrni/2+5*S01_sila_materialu)*2, $fn=100);
17  
18 //spodní válec
19 cylinder (h = R01_vyska_preryti_statoru, r=S01_prumer_vnitrni/2+5*S01_sila_materialu, $fn=100);
20  
21 //lopatka 1
22 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0])
23 lopatka();
24  
25 //lopatka 2
26 rotate([0, 0, 120])
27 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0])
28 lopatka();
29  
30 //lopatka 3
31 rotate([0, 0, 240])
32 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0])
33 lopatka();
34 }
35  
36 //Odečet spodního válce
37 translate([0,0,-(S01_prumer_vnitrni/2+2*S01_sila_materialu)])
38 cylinder (h = R01_vyska_preryti_statoru+(S01_prumer_vnitrni/2+2*S01_sila_materialu), r=S01_prumer_vnitrni/2+4*S01_sila_materialu, $fn=100);
39  
40 //odecet koule
41 translate([0,0,R01_vyska_preryti_statoru])
42 sphere(d = (S01_prumer_vnitrni/2+4*S01_sila_materialu)*2, $fn=100);
43 }
44  
45 difference()
46 {
47 union()
48 {
49 //závit na ukotvení rotoru
50 //zakladni material
51 cylinder (h = (S01_prumer_vnitrni/2+2*S01_sila_materialu)+R01_vyska_preryti_statoru, r=(lozisko_prumer_vnejsi/2-1), $fn=100);
52  
53 vyztuhy();
54 }
55  
56 //vnitrni zavit
57 translate([0,0,-5])
58 screw_thread((11),3,55,R01_vyska_preryti_statoru+10,PI/2,2);
59  
60 //za závitem aby to slo tisknout
61 translate([0,0,R01_vyska_preryti_statoru+5])
62 cylinder(h=(5), r1=(11)/2, r2=0, center=false, $fn=100);
63  
64 }
65 }
66  
67 module vyztuhy()
68 {
69 difference()
70 {
71 translate([0,0,R01_vyska_preryti_statoru])
72 cylinder(h=(S01_prumer_vnitrni/2+4*S01_sila_materialu), r1=(lozisko_prumer_vnejsi/2-1), r2=(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu)-R01_vyska_preryti_statoru, center=false, $fn=100);
73  
74 //vykousnutí 1
75 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
76 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
77  
78 //vykousnutí 2
79 rotate([0, 0, 90])
80 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
81 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
82  
83 //vykousnutí 3
84 rotate([0, 0, 180])
85 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
86 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
87  
88 //vykousnutí 4
89 rotate([0, 0, 270])
90 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
91 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
92 difference()
93 {
94 translate([0,0,R01_vyska_preryti_statoru])
95 sphere(d = (S01_prumer_vnitrni/2+12*S01_sila_materialu)*2, $fn=100);
96  
97 translate([0,0,R01_vyska_preryti_statoru])
98 sphere(d = (S01_prumer_vnitrni/2+3*S01_sila_materialu)*2, $fn=100);
99  
100 }
101 }
102 }
103  
104 module lopatka()
105 {
106 difference()
107 {
108 union()
109 {
110 translate([0,0,L01_prumer_lopatky/2])
111 sphere(d = L01_prumer_lopatky, $fn=100);
112  
113 translate([-L01_hrana_drzaku_a,0,0])
114 cube([L01_hrana_drzaku_a,L01_delka_uchytu+L01_prumer_lopatky/2+10,L01_hrana_drzaku_b],center=false);
115  
116 //podpěra
117 translate([0,0,0])
118 cylinder(h=(L01_prumer_lopatky/2), r1=L01_prumer_lopatky/3.5, r2=L01_prumer_lopatky/2, center=false, $fn=100);
119  
120 }
121  
122  
123 translate([0,0,L01_prumer_lopatky/2])
124 sphere(d = L01_prumer_lopatky-L01_sila_materialu_lopatky*2, $fn=100);
125  
126 translate([0,-L01_prumer_lopatky,0])
127 cube([L01_prumer_lopatky+0.01,2*(L01_delka_uchytu+L01_prumer_lopatky/2+10),L01_prumer_lopatky],center=false);
128  
129 }
130 }