1 |
$fn=40; // model faces resolution. |
1 |
$fn=40; // model faces resolution. |
2 |
include <../configuration.scad> |
2 |
include <../configuration.scad> |
3 |
|
3 |
|
4 |
include <polyScrewThread_r1.scad> |
4 |
include <polyScrewThread_r1.scad> |
5 |
|
5 |
|
6 |
PI=3.141592; |
6 |
PI=3.141592; |
7 |
|
7 |
|
- |
|
8 |
S01_vyska=80; |
- |
|
9 |
S01_prumer_vnitrni=30; |
- |
|
10 |
S01_sila_materialu=2; |
- |
|
11 |
S01_vyska_horni_zavit=10; |
- |
|
12 |
S01_vyska_spodniho_zavitu=10; |
- |
|
13 |
S01_sila_drzaku_RJ11=2; |
- |
|
14 |
|
- |
|
15 |
|
- |
|
16 |
module WINDGAUGE02A_S01(S01_vyska,S01_prumer_vnitrni,S01_sila_materialu) |
- |
|
17 |
{ |
- |
|
18 |
|
- |
|
19 |
difference() |
- |
|
20 |
{ |
- |
|
21 |
|
- |
|
22 |
union() |
- |
|
23 |
{ |
- |
|
24 |
//základní válec |
- |
|
25 |
cylinder (h = S01_vyska-S01_vyska_horni_zavit, r=(S01_prumer_vnitrni)/2+S01_sila_materialu, $fn=100); |
- |
|
26 |
|
- |
|
27 |
//horní závit |
- |
|
28 |
translate([0,0,S01_vyska-S01_vyska_horni_zavit]) |
- |
|
29 |
screw_thread((S01_prumer_vnitrni+2*S01_sila_materialu),S01_hloubka_zavitu,55,S01_vyska_horni_zavit,PI/2,2); |
- |
|
30 |
|
- |
|
31 |
} |
- |
|
32 |
|
- |
|
33 |
//vystouplá část |
- |
|
34 |
translate([0,0,S01_vyska_spodniho_zavitu+S01_sila_drzaku_RJ11-0.3]) |
- |
|
35 |
cylinder (h = S01_sila_drzaku_RJ11, r=(S01_prumer_vnitrni)/2-1-S01_hloubka_zavitu/2, $fn=100); |
- |
|
36 |
//otvor na drzak rj11 |
- |
|
37 |
translate([0,0,S01_vyska_spodniho_zavitu]) |
- |
|
38 |
cylinder (h = S01_sila_drzaku_RJ11-0.3, r=(S01_prumer_vnitrni)/2-S01_hloubka_zavitu/2, $fn=100); |
- |
|
39 |
|
- |
|
40 |
//spodní závit |
- |
|
41 |
screw_thread((S01_prumer_vnitrni),S01_hloubka_zavitu,55,S01_vyska_spodniho_zavitu+0.01,PI/2,2); |
- |
|
42 |
|
- |
|
43 |
//otvor skrz |
- |
|
44 |
translate([0,0,S01_vyska_spodniho_zavitu+2*S01_sila_drzaku_RJ11-0.3]) |
- |
|
45 |
cylinder (h = S01_vyska, r=(S01_prumer_vnitrni)/2-1, $fn=100); |
- |
|
46 |
} |
- |
|
47 |
} |
- |
|
48 |
|
- |
|
49 |
|
- |
|
50 |
WINDGAUGE02A_S01(S01_vyska,S01_prumer_vnitrni,S01_sila_materialu); |
- |
|
51 |
|
- |
|
52 |
|
- |
|
53 |
|
- |
|
54 |
|
- |
|
55 |
|
- |
|
56 |
|
- |
|
57 |
|
- |
|
58 |
|
- |
|
59 |
|
- |
|
60 |
/* |
8 |
module WINDGAUGE02A_S01(R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,S01_vyska_zuzene_casti,S01_vyska_na_elektroniku,S01_vyska_zavitu_na_nasroubovani_drzaku,S01_vyska_prechodu,vule_mezi_statorem_rotorem,S01_vyska_zavitu_na_nasroubovani_drzaku,S01_sila_materialu) |
61 |
module WINDGAUGE02A_S01(R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,S01_vyska_zuzene_casti,S01_vyska_na_elektroniku,S01_vyska_zavitu_na_nasroubovani_drzaku,S01_vyska_prechodu,vule_mezi_statorem_rotorem,S01_vyska_zavitu_na_nasroubovani_drzaku,S01_sila_materialu) |
9 |
{ |
62 |
{ |
10 |
|
63 |
|
11 |
//zuzena cas komponentu |
64 |
//zuzena cas komponentu |
12 |
|
65 |
|
13 |
translate([0,0,(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+S01_vyska_zuzene_casti)/2+S01_vyska_prechodu]) |
66 |
translate([0,0,(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+S01_vyska_zuzene_casti)/2+S01_vyska_prechodu]) |
14 |
|
67 |
|
15 |
difference() |
68 |
difference() |
16 |
{ |
69 |
{ |
17 |
cylinder (h = S01_vyska_zuzene_casti, 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); |
70 |
cylinder (h = S01_vyska_zuzene_casti, 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); |
18 |
|
71 |
|
19 |
translate([0,0,-S01_vyska_zuzene_casti/2+S01_vyska_zuzene_casti-R02_sila_mateiralu_pod_lopatkami-S01_vyska_komponentu_na_lozisko]) |
72 |
translate([0,0,-S01_vyska_zuzene_casti/2+S01_vyska_zuzene_casti-R02_sila_mateiralu_pod_lopatkami-S01_vyska_komponentu_na_lozisko]) |
20 |
|
73 |
|
21 |
screw_thread((R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem),S01_hloubka_zavitu,55,S01_vyska_zuzene_casti+0.01,PI/2,2); |
74 |
screw_thread((R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem),S01_hloubka_zavitu,55,S01_vyska_zuzene_casti+0.01,PI/2,2); |
22 |
|
75 |
|
23 |
translate([0,0,-(S01_vyska_zuzene_casti/2)+(S01_vyska_zuzene_casti-R02_sila_mateiralu_pod_lopatkami-S01_vyska_komponentu_na_lozisko)/2]) |
76 |
translate([0,0,-(S01_vyska_zuzene_casti/2)+(S01_vyska_zuzene_casti-R02_sila_mateiralu_pod_lopatkami-S01_vyska_komponentu_na_lozisko)/2]) |
24 |
cylinder (h = S01_vyska_zuzene_casti-R02_sila_mateiralu_pod_lopatkami-S01_vyska_komponentu_na_lozisko+0.01, r=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2, center = true, $fn=100); |
77 |
cylinder (h = S01_vyska_zuzene_casti-R02_sila_mateiralu_pod_lopatkami-S01_vyska_komponentu_na_lozisko+0.01, r=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2, center = true, $fn=100); |
25 |
|
78 |
|
26 |
|
79 |
|
27 |
//translate([0,0,(stator3_vyska-stator3_vyska_prekryti)/2]) |
80 |
//translate([0,0,(stator3_vyska-stator3_vyska_prekryti)/2]) |
28 |
|
81 |
|
29 |
|
82 |
|
30 |
} |
83 |
} |
31 |
|
84 |
|
32 |
difference() |
85 |
difference() |
33 |
{ |
86 |
{ |
34 |
|
87 |
|
35 |
translate([0,0,(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+S01_vyska_prechodu)/2]) |
88 |
translate([0,0,(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+S01_vyska_prechodu)/2]) |
36 |
|
89 |
|
37 |
cylinder(h=S01_vyska_prechodu,r1=(S01_prumer_zavitu+2*S01_sila_materialu)/2, r2=(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); |
90 |
cylinder(h=S01_vyska_prechodu,r1=(S01_prumer_zavitu+2*S01_sila_materialu)/2, r2=(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); |
38 |
|
91 |
|
39 |
|
92 |
|
40 |
translate([0,0,(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+S01_vyska_prechodu)/2]) |
93 |
translate([0,0,(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+S01_vyska_prechodu)/2]) |
41 |
|
94 |
|
42 |
cylinder(h=S01_vyska_prechodu,r1=(S01_prumer_zavitu)/2, r2=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2, center=true); |
95 |
cylinder(h=S01_vyska_prechodu,r1=(S01_prumer_zavitu)/2, r2=(R02_vzdalenost_mezi_uchyty_lopatek+2*L01_sila_zapusteni_drzaku+2*L01_hloubka_zapusteni+2*vule_mezi_statorem_rotorem)/2, center=true); |
43 |
|
96 |
|
44 |
|
97 |
|
45 |
|
98 |
|
46 |
} |
99 |
} |
47 |
|
100 |
|
48 |
|
101 |
|
49 |
//spodni cast se zavitem |
102 |
//spodni cast se zavitem |
50 |
|
103 |
|
51 |
difference() |
104 |
difference() |
52 |
{ |
105 |
{ |
53 |
cylinder (h = S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko, r=(S01_prumer_zavitu+2*S01_sila_materialu)/2, center = true, $fn=100); |
106 |
cylinder (h = S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko, r=(S01_prumer_zavitu+2*S01_sila_materialu)/2, center = true, $fn=100); |
54 |
|
107 |
|
55 |
translate([0,0,-(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko)/2]) |
108 |
translate([0,0,-(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko)/2]) |
56 |
// metric_thread (diameter=S01_prumer_zavitu, pitch=1, length=S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+0.01, internal=true, n_starts=6); |
109 |
// metric_thread (diameter=S01_prumer_zavitu, pitch=1, length=S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+0.01, internal=true, n_starts=6); |
57 |
|
110 |
|
58 |
screw_thread(S01_prumer_zavitu,4,55,S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+0.01,PI/2,2); |
111 |
screw_thread(S01_prumer_zavitu,4,55,S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko+0.01,PI/2,2); |
59 |
|
112 |
|
60 |
} |
113 |
} |
61 |
|
114 |
|
62 |
} |
115 |
} |
63 |
|
116 |
*/ |
64 |
|
117 |
|
65 |
|
118 |
|
66 |
|
119 |
|
67 |
|
120 |
|
68 |
WINDGAUGE02A_S01(R02_vzdalenost_mezi_uchyty_lopatek,L01_sila_zapusteni_drzaku,L01_hloubka_zapusteni,S01_vyska_zuzene_casti,S01_vyska_na_elektroniku,S01_vyska_zavitu_na_nasroubovani_drzaku,S01_vyska_prechodu,vule_mezi_statorem_rotorem,S01_vyska_zavitu_na_nasroubovani_drzaku,S01_sila_materialu); |
121 |
|
69 |
|
122 |
|
70 |
|
123 |
|