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