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