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 |
|
3 |
|
4 |
|
4 |
|
5 |
module WINDGAUGE02A_R01(R02_sila_mateiralu_pod_lopatkami,L01_hloubka_zapusteni_drzaku,R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,prumer_pomocne_trubicky,zapusteni_pomocne_trubicky,vule_mezi_statorem_rotorem,R01_vyska_preryti_statoru,R01_sila_materialu_pro_prekriti,S01_sila_materialu,L01_tolerance_drzaku) |
5 |
module WINDGAUGE02A_R01() |
6 |
{ |
6 |
{ |
7 |
difference() |
7 |
difference() |
8 |
{ |
8 |
{ |
9 |
|
9 |
|
10 |
union() |
10 |
|
- |
|
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); |
11 |
{ |
12 |
|
- |
|
13 |
//otvor na osičku |
12 |
cylinder (h = R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku, r=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem+2*R01_sila_materialu_pro_prekriti+2*S01_sila_materialu)/2, center = true, $fn=100); |
14 |
cylinder (h = R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku, r=(prumer_osicky+3*S01_sila_materialu)/2+0.3, $fn=100); |
13 |
|
15 |
|
14 |
//tvorba prekryti statoru |
16 |
//odstranění výpnlně |
15 |
difference() |
17 |
translate([0,0,R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku]) |
16 |
{ |
18 |
|
17 |
translate([0,0,((R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku)/2)+R01_vyska_preryti_statoru/2]) |
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); |
18 |
|
20 |
|
19 |
cylinder (h = R01_vyska_preryti_statoru, r=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem+2*R01_sila_materialu_pro_prekriti+2*S01_sila_materialu)/2, center = true, $fn=100); |
21 |
|
20 |
|
22 |
|
21 |
translate([0,0,((R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku)/2)+R01_vyska_preryti_statoru/2]) |
- |
|
22 |
|
- |
|
23 |
cylinder (h = R01_vyska_preryti_statoru+0.1, r=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem+2*S01_sila_materialu)/2, center = true, $fn=100); |
- |
|
24 |
|
23 |
|
25 |
} |
- |
|
26 |
|
24 |
|
27 |
} |
25 |
|
28 |
|
26 |
|
29 |
//otvor pro lopatku 1 |
27 |
//otvor pro lopatku 1 |
30 |
rotate(a=[0,0,0]) |
28 |
rotate(a=[0,0,0]) |
31 |
|
29 |
|
32 |
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)-L01_hloubka_zapusteni_drzaku/2]) |
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)]) |
33 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
31 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
34 |
|
32 |
|
35 |
rotate(a=[0,0,0]) |
33 |
rotate(a=[0,0,0]) |
36 |
translate([(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2+R01_sila_materialu_pro_prekriti,0,((R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku)/2)+R01_vyska_preryti_statoru/2]) |
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]) |
37 |
cube([3*R01_sila_materialu_pro_prekriti+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,R01_vyska_preryti_statoru+L01_tolerance_drzaku],true); |
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); |
38 |
|
36 |
|
39 |
|
37 |
|
40 |
//otvor pro lopatku 2 |
38 |
//otvor pro lopatku 2 |
41 |
rotate(a=[0,0,120]) |
39 |
rotate(a=[0,0,120]) |
42 |
|
40 |
|
43 |
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)-L01_hloubka_zapusteni_drzaku/2]) |
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)]) |
44 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
42 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
45 |
rotate(a=[0,0,120]) |
43 |
rotate(a=[0,0,120]) |
46 |
translate([(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2+R01_sila_materialu_pro_prekriti,0,((R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku)/2)+R01_vyska_preryti_statoru/2]) |
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]) |
47 |
cube([3*R01_sila_materialu_pro_prekriti+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,R01_vyska_preryti_statoru+L01_tolerance_drzaku],true); |
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); |
48 |
|
46 |
|
49 |
|
47 |
|
50 |
//otvor pro lopatku 3 |
48 |
//otvor pro lopatku 3 |
51 |
rotate(a=[0,0,240]) |
49 |
rotate(a=[0,0,240]) |
52 |
|
50 |
|
53 |
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)-L01_hloubka_zapusteni_drzaku/2]) |
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)]) |
54 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
52 |
cube([L01_sila_zapusteni_drzaku+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,L01_hloubka_zapusteni_drzaku],true); |
55 |
|
53 |
|
56 |
rotate(a=[0,0,240]) |
54 |
rotate(a=[0,0,240]) |
57 |
translate([(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2+R01_sila_materialu_pro_prekriti,0,((R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku)/2)+R01_vyska_preryti_statoru/2]) |
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]) |
58 |
cube([3*R01_sila_materialu_pro_prekriti+L01_tolerance_drzaku,L01_hrana_drzaku_a+L01_tolerance_drzaku,R01_vyska_preryti_statoru+L01_tolerance_drzaku],true); |
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); |
59 |
//otvor na hřídelku |
- |
|
60 |
|
- |
|
61 |
cylinder (h = R02_sila_mateiralu_pod_lopatkami+L01_hloubka_zapusteni_drzaku+0.1, r=prumer_osicky/2, center = true, $fn=100); |
- |
|
62 |
|
57 |
|
63 |
|
58 |
|
64 |
|
59 |
|
65 |
} |
60 |
} |
66 |
} |
61 |
} |
67 |
|
62 |
|
68 |
WINDGAUGE02A_R01(R02_sila_mateiralu_pod_lopatkami,L01_hloubka_zapusteni_drzaku,R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,prumer_pomocne_trubicky,zapusteni_pomocne_trubicky,vule_mezi_statorem_rotorem,R01_vyska_preryti_statoru,R01_sila_materialu_pro_prekriti,S01_sila_materialu,L01_tolerance_drzaku); |
63 |
WINDGAUGE02A_R01(); |
69 |
|
64 |
|
70 |
|
65 |
|