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