4437 |
jacho |
1 |
$fn=40; // model faces resolution. |
|
|
2 |
include <../configuration.scad> |
4524 |
jacho |
3 |
include <polyScrewThread_r1.scad> |
|
|
4 |
PI=3.141592; |
4517 |
jacho |
5 |
WINDGAUGE02A_L01(); |
4437 |
jacho |
6 |
|
|
|
7 |
//Model lopatky |
4524 |
jacho |
8 |
module WINDGAUGE02A_L01() |
|
|
9 |
{ |
|
|
10 |
difference() |
|
|
11 |
{ |
|
|
12 |
union() |
|
|
13 |
{ |
|
|
14 |
//koule vrchní |
|
|
15 |
translate([0,0,R01_vyska_preryti_statoru]) |
4526 |
jacho |
16 |
sphere(d = (S01_prumer_vnitrni/2+4*S01_sila_materialu)*2, $fn=100); |
4524 |
jacho |
17 |
|
|
|
18 |
|
|
|
19 |
//spodní válec |
4526 |
jacho |
20 |
cylinder (h = R01_vyska_preryti_statoru, r=S01_prumer_vnitrni/2+4*S01_sila_materialu, $fn=100); |
4524 |
jacho |
21 |
|
|
|
22 |
|
|
|
23 |
//lopatka 1 |
|
|
24 |
translate([-L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0]) |
|
|
25 |
lopatka(); |
|
|
26 |
|
|
|
27 |
//lopatka 2 |
|
|
28 |
rotate([0, 0, 120]) |
|
|
29 |
translate([-L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0]) |
|
|
30 |
lopatka(); |
4437 |
jacho |
31 |
|
4524 |
jacho |
32 |
//lopatka 3 |
|
|
33 |
rotate([0, 0, 240]) |
|
|
34 |
translate([-L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0]) |
|
|
35 |
lopatka(); |
4437 |
jacho |
36 |
|
|
|
37 |
|
4524 |
jacho |
38 |
|
|
|
39 |
} |
|
|
40 |
|
|
|
41 |
//Odečet spodního válce |
|
|
42 |
translate([0,0,-(S01_prumer_vnitrni/2+2*S01_sila_materialu)]) |
4526 |
jacho |
43 |
cylinder (h = R01_vyska_preryti_statoru+(S01_prumer_vnitrni/2+2*S01_sila_materialu), r=S01_prumer_vnitrni/2+3*S01_sila_materialu, $fn=100); |
4524 |
jacho |
44 |
//odecet koule |
|
|
45 |
translate([0,0,R01_vyska_preryti_statoru]) |
4526 |
jacho |
46 |
sphere(d = (S01_prumer_vnitrni/2+3*S01_sila_materialu)*2, $fn=100); |
4524 |
jacho |
47 |
|
|
|
48 |
} |
|
|
49 |
difference() |
|
|
50 |
{ |
|
|
51 |
union() |
|
|
52 |
{ |
|
|
53 |
//závit na ukotvení rotoru |
|
|
54 |
//zakladni material |
|
|
55 |
|
|
|
56 |
cylinder (h = (S01_prumer_vnitrni/2+2*S01_sila_materialu)+R01_vyska_preryti_statoru, r=(lozisko_prumer_vnejsi/2-1), $fn=100); |
|
|
57 |
|
|
|
58 |
vyztuhy(); |
|
|
59 |
} |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
translate([0,0,-5]) |
4526 |
jacho |
64 |
screw_thread((11),3,55,R01_vyska_preryti_statoru+10,PI/2,2); |
|
|
65 |
|
|
|
66 |
//za závitem |
|
|
67 |
translate([0,0,R01_vyska_preryti_statoru+5]) |
|
|
68 |
cylinder(h=(5), r1=(11)/2, r2=0, center=false, $fn=100); |
|
|
69 |
|
4524 |
jacho |
70 |
} |
|
|
71 |
} |
4526 |
jacho |
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
4524 |
jacho |
78 |
module vyztuhy() |
|
|
79 |
{ |
|
|
80 |
difference() |
|
|
81 |
{ |
|
|
82 |
|
|
|
83 |
translate([0,0,R01_vyska_preryti_statoru]) |
4526 |
jacho |
84 |
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); |
4524 |
jacho |
85 |
|
|
|
86 |
|
|
|
87 |
//vykousnutí 1 |
|
|
88 |
translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) |
4526 |
jacho |
89 |
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); |
4524 |
jacho |
90 |
|
|
|
91 |
//vykousnutí 2 |
|
|
92 |
rotate([0, 0, 90]) |
|
|
93 |
translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) |
4526 |
jacho |
94 |
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); |
4524 |
jacho |
95 |
|
|
|
96 |
//vykousnutí 3 |
|
|
97 |
rotate([0, 0, 180]) |
|
|
98 |
translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) |
4526 |
jacho |
99 |
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); |
4524 |
jacho |
100 |
|
|
|
101 |
//vykousnutí 4 |
|
|
102 |
rotate([0, 0, 270]) |
|
|
103 |
translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) |
4526 |
jacho |
104 |
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); |
4524 |
jacho |
105 |
difference() |
|
|
106 |
{ |
|
|
107 |
translate([0,0,R01_vyska_preryti_statoru]) |
|
|
108 |
sphere(d = (S01_prumer_vnitrni/2+12*S01_sila_materialu)*2, $fn=100); |
|
|
109 |
|
|
|
110 |
translate([0,0,R01_vyska_preryti_statoru]) |
|
|
111 |
sphere(d = (S01_prumer_vnitrni/2+3*S01_sila_materialu)*2, $fn=100); |
|
|
112 |
|
|
|
113 |
} |
|
|
114 |
} |
|
|
115 |
} |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
module lopatka() |
|
|
120 |
{ |
|
|
121 |
difference() |
|
|
122 |
{ |
|
|
123 |
union() |
|
|
124 |
{ |
|
|
125 |
|
|
|
126 |
translate([0,0,L01_prumer_lopatky/2]) |
|
|
127 |
sphere(d = L01_prumer_lopatky, $fn=100); |
|
|
128 |
|
|
|
129 |
translate([0,0,0]) |
|
|
130 |
cube([L01_hrana_drzaku_a,L01_delka_uchytu+L01_prumer_lopatky/2+10,L01_hrana_drzaku_b],center=false); |
4526 |
jacho |
131 |
//podpěra |
4525 |
jacho |
132 |
translate([0,0,0]) |
4526 |
jacho |
133 |
cylinder(h=(L01_prumer_lopatky/2), r1=L01_prumer_lopatky/3.5, r2=L01_prumer_lopatky/2, center=false, $fn=100); |
4524 |
jacho |
134 |
|
|
|
135 |
} |
4526 |
jacho |
136 |
|
|
|
137 |
|
4524 |
jacho |
138 |
translate([0,0,L01_prumer_lopatky/2]) |
|
|
139 |
sphere(d = L01_prumer_lopatky-L01_sila_materialu_lopatky*2, $fn=100); |
|
|
140 |
|
|
|
141 |
translate([-L01_prumer_lopatky+0.01,-L01_prumer_lopatky,0]) |
|
|
142 |
cube([L01_prumer_lopatky+0.01,2*(L01_delka_uchytu+L01_prumer_lopatky/2+10),L01_prumer_lopatky],center=false); |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
} |
|
|
146 |
} |
|
|
147 |
|
|
|
148 |
//starý model |
|
|
149 |
/* |
4476 |
jacho |
150 |
module WINDGAUGE02A_L01() |
4437 |
jacho |
151 |
|
|
|
152 |
union() |
|
|
153 |
{ |
|
|
154 |
|
|
|
155 |
//prechod lopatka drzak |
|
|
156 |
difference() |
|
|
157 |
{ |
|
|
158 |
translate([-L01_hrana_drzaku_a/2,L01_prumer_lopatky/4,0]) |
|
|
159 |
cube([L01_hrana_drzaku_a,(L01_prumer_lopatky/2)+5,L01_hrana_drzaku_b],center=true); |
|
|
160 |
sphere(d = L01_prumer_lopatky, $fn=100); |
|
|
161 |
} |
|
|
162 |
|
|
|
163 |
difference() |
|
|
164 |
{ |
|
|
165 |
//lopatka |
|
|
166 |
sphere(d = L01_prumer_lopatky, $fn=100); |
|
|
167 |
|
|
|
168 |
sphere(d = L01_prumer_lopatky-2*L01_sila_materialu_lopatky, $fn=100); |
|
|
169 |
|
|
|
170 |
|
|
|
171 |
translate([0,-L01_prumer_lopatky/2,-L01_prumer_lopatky/2]) |
|
|
172 |
cube(size = L01_prumer_lopatky); |
|
|
173 |
} |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
//uchyt_lopatky - tycka |
|
|
177 |
translate([-L01_hrana_drzaku_a/2,L01_prumer_lopatky/2+L01_delka_uchytu/2,0]) |
|
|
178 |
cube([L01_hrana_drzaku_a,L01_delka_uchytu,L01_hrana_drzaku_b],center=true); |
|
|
179 |
|
|
|
180 |
//uchyt_lopatky - tycka v rotoru |
|
|
181 |
translate([-L01_hrana_drzaku_a/2,L01_prumer_lopatky/2+L01_delka_uchytu+L01_hloubka_zapusteni/2,0]) |
|
|
182 |
cube([L01_hrana_drzaku_a,L01_hloubka_zapusteni,L01_hrana_drzaku_b],center=true); |
|
|
183 |
|
|
|
184 |
//uchyt_lopatky - v rotoru |
|
|
185 |
translate([-L01_hrana_drzaku_a/2,L01_prumer_lopatky/2+L01_delka_uchytu+L01_hloubka_zapusteni+L01_sila_zapusteni_drzaku/2,0]) |
|
|
186 |
cube([L01_hrana_drzaku_a,L01_sila_zapusteni_drzaku,L01_hrana_drzaku_b+2*L01_hloubka_zapusteni_drzaku],center=true); |
|
|
187 |
|
|
|
188 |
} |
|
|
189 |
|
|
|
190 |
// WINDGAUGE02A_L01(L01_hloubka_zapusteni,L01_hloubka_zapusteni_drzaku,L01_sila_zapusteni_drzaku,L01_hrana_drzaku_a,L01_hrana_drzaku_b,L01_tolerance_drzaku,L01_delka_uchytu,L01_prumer_lopatky,L01_sila_materialu_lopatky); |