Line 1... |
Line 1... |
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> |
- |
|
4 |
PI=3.141592; |
- |
|
5 |
WINDGAUGE02A_R01(); |
3 |
|
6 |
|
4 |
|
7 |
//Model lopatky |
5 |
module WINDGAUGE02A_R01() |
8 |
module WINDGAUGE02A_R01() |
6 |
{ |
9 |
{ |
7 |
difference() |
10 |
difference() |
- |
|
11 |
{ |
- |
|
12 |
union() |
8 |
{ |
13 |
{ |
- |
|
14 |
//koule vrchní - kryt |
- |
|
15 |
translate([0,0,R01_vyska_preryti_statoru]) |
- |
|
16 |
sphere(d = (S01_prumer_vnitrni/2+4*S01_sila_materialu)*2, $fn=100); |
9 |
|
17 |
|
- |
|
18 |
//spodní válec |
- |
|
19 |
cylinder (h = R01_vyska_preryti_statoru, r=S01_prumer_vnitrni/2+4*S01_sila_materialu, $fn=100); |
10 |
|
20 |
|
- |
|
21 |
//lopatka 1 |
11 |
cylinder (h = R02_sila_mateiralu_pod_lopatkami+2*L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru,r=(S01_prumer_vnitrni+4*S01_sila_materialu)/2+S01_mezera_mezi_statorem_rotorem, $fn=100); |
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(); |
12 |
|
24 |
|
- |
|
25 |
//lopatka 2 |
13 |
//otvor na osičku |
26 |
rotate([0, 0, 120]) |
14 |
cylinder (h = R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku, r=(prumer_osicky+3*S01_sila_materialu)/2+0.3, $fn=100); |
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 |
|
15 |
|
30 |
//lopatka 3 |
16 |
//odstranění výpnlně |
31 |
rotate([0, 0, 240]) |
17 |
translate([0,0,R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku]) |
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(); |
18 |
|
34 |
} |
- |
|
35 |
|
- |
|
36 |
//Odečet spodního válce |
- |
|
37 |
translate([0,0,-(S01_prumer_vnitrni/2+2*S01_sila_materialu)]) |
19 |
cylinder (h = L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01, r=(S01_prumer_vnitrni+2*S01_sila_materialu)/2+S01_mezera_mezi_statorem_rotorem, $fn=100); |
38 |
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); |
20 |
|
39 |
|
21 |
|
40 |
//odecet koule |
- |
|
41 |
translate([0,0,R01_vyska_preryti_statoru]) |
- |
|
42 |
sphere(d = (S01_prumer_vnitrni/2+3*S01_sila_materialu)*2, $fn=100); |
- |
|
43 |
} |
- |
|
44 |
|
- |
|
45 |
difference() |
22 |
|
46 |
{ |
- |
|
47 |
union() |
23 |
|
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); |
24 |
|
52 |
|
- |
|
53 |
vyztuhy(); |
25 |
|
54 |
} |
26 |
|
55 |
|
27 |
//otvor pro lopatku 1 |
56 |
//vnitrni zavit |
28 |
rotate(a=[0,0,0]) |
57 |
translate([0,0,-5]) |
- |
|
58 |
screw_thread((11),3,55,R01_vyska_preryti_statoru+10,PI/2,2); |
- |
|
59 |
|
29 |
|
60 |
//za závitem aby to slo tisknout |
30 |
translate([(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni)/2-L01_hloubka_zapusteni-L01_sila_zapusteni_drzaku/2,0,(R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku/2)]) |
61 |
translate([0,0,R01_vyska_preryti_statoru+5]) |
31 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
62 |
cylinder(h=(5), r1=(11)/2, r2=0, center=false, $fn=100); |
32 |
|
63 |
|
33 |
rotate(a=[0,0,0]) |
64 |
} |
34 |
translate([(S01_prumer_vnitrni+4*S01_sila_materialu)/2+S01_mezera_mezi_statorem_rotorem,0,R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku+(L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01)/2]) |
65 |
} |
35 |
cube([3*R01_sila_materialu_pro_prekriti+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01],true); |
- |
|
36 |
|
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); |
37 |
|
77 |
|
38 |
//otvor pro lopatku 2 |
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 |
39 |
rotate(a=[0,0,120]) |
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); |
40 |
|
96 |
|
41 |
translate([(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni)/2-L01_hloubka_zapusteni-L01_sila_zapusteni_drzaku/2,0,(R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku/2)]) |
- |
|
42 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
- |
|
43 |
rotate(a=[0,0,120]) |
97 |
translate([0,0,R01_vyska_preryti_statoru]) |
44 |
translate([(S01_prumer_vnitrni+4*S01_sila_materialu)/2+S01_mezera_mezi_statorem_rotorem,0,R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku+(L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01)/2]) |
- |
|
45 |
cube([3*R01_sila_materialu_pro_prekriti+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01],true); |
98 |
sphere(d = (S01_prumer_vnitrni/2+3*S01_sila_materialu)*2, $fn=100); |
46 |
|
99 |
|
- |
|
100 |
} |
- |
|
101 |
} |
47 |
|
102 |
} |
- |
|
103 |
|
48 |
//otvor pro lopatku 3 |
104 |
module lopatka() |
- |
|
105 |
{ |
- |
|
106 |
difference() |
- |
|
107 |
{ |
- |
|
108 |
union() |
- |
|
109 |
{ |
49 |
rotate(a=[0,0,240]) |
110 |
translate([0,0,L01_prumer_lopatky/2]) |
- |
|
111 |
sphere(d = L01_prumer_lopatky, $fn=100); |
50 |
|
112 |
|
51 |
translate([(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni)/2-L01_hloubka_zapusteni-L01_sila_zapusteni_drzaku/2,0,(R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku/2)]) |
113 |
translate([0,0,0]) |
52 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
114 |
cube([L01_hrana_drzaku_a,L01_delka_uchytu+L01_prumer_lopatky/2+10,L01_hrana_drzaku_b],center=false); |
- |
|
115 |
|
53 |
|
116 |
//podpěra |
54 |
rotate(a=[0,0,240]) |
117 |
translate([0,0,0]) |
55 |
translate([(S01_prumer_vnitrni+4*S01_sila_materialu)/2+S01_mezera_mezi_statorem_rotorem,0,R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku+(L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01)/2]) |
118 |
cylinder(h=(L01_prumer_lopatky/2), r1=L01_prumer_lopatky/3.5, r2=L01_prumer_lopatky/2, center=false, $fn=100); |
56 |
cube([3*R01_sila_materialu_pro_prekriti+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku+L01_hrana_drzaku_b+2+R01_vyska_preryti_statoru+0.01],true); |
- |
|
- |
|
119 |
|
- |
|
120 |
} |
57 |
|
121 |
|
58 |
|
122 |
|
- |
|
123 |
translate([0,0,L01_prumer_lopatky/2]) |
- |
|
124 |
sphere(d = L01_prumer_lopatky-L01_sila_materialu_lopatky*2, $fn=100); |
59 |
|
125 |
|
- |
|
126 |
translate([-L01_prumer_lopatky+0.01,-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 |
|
60 |
} |
129 |
} |
61 |
} |
130 |
} |
62 |
|
- |
|
63 |
WINDGAUGE02A_R01(); |
- |
|
64 |
|
- |
|
65 |
|
- |
|