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 |
//rotor2 (vyska_rotoru2,prumer_rotoru1,vyska_kryti,sila_materialu,stator1_sila,vyska_matky,vzdalenost_rot_stat,lozisko_prumer_vnitrni,lozisko_prekryv,sila_pod_loziskem,delka_hridele,lozisko_vyska,sirka_matky_tol,sirka_matky,hloubka_uchytu,vyska_rotoru1,prumer_sroubu,vyska_matky,prumer_orechu,vzdalenost_rot_stat2,sirka_matky_tol); |
5 |
|
5 |
|
6 |
|
6 |
|
7 |
|
7 |
|
8 |
module rotor2 (vyska_rotoru2,prumer_rotoru1,vyska_kryti,sila_materialu,stator1_sila,vyska_matky,vzdalenost_rot_stat,lozisko_prumer_vnitrni,lozisko_prekryv,sila_pod_loziskem,delka_hridele,lozisko_vyska,sirka_matky_tol,sirka_matky,hloubka_uchytu,vyska_rotoru1,prumer_sroubu,vyska_matky,prumer_orechu,vzdalenost_rot_stat2,sirka_matky_tol) |
8 |
module rotor2 (vyska_rotoru2,prumer_rotoru1,vyska_kryti,sila_materialu,stator1_sila,vyska_matky,vzdalenost_rot_stat,lozisko_prumer_vnitrni,lozisko_prekryv,sila_pod_loziskem,delka_hridele,lozisko_vyska,sirka_matky_tol,sirka_matky,hloubka_uchytu,vyska_rotoru1,prumer_sroubu,vyska_matky,prumer_orechu,vzdalenost_rot_stat2,sirka_matky_tol) |
9 |
{ |
9 |
{ |
10 |
|
10 |
|
11 |
difference() |
11 |
difference() |
12 |
{ |
12 |
{ |
13 |
union () |
13 |
union () |
14 |
{ |
- |
|
15 |
|
14 |
{ |
16 |
cylinder (h = vyska_rotoru2, r=prumer_rotoru1/2, center = true, $fn=100); |
15 |
cylinder (h = vyska_rotoru2, r=prumer_rotoru1/2, center = true, $fn=100); |
17 |
|
16 |
|
18 |
|
- |
|
19 |
|
- |
|
20 |
|
- |
|
21 |
//kryci kroužek |
17 |
//kryci kroužek |
22 |
translate([0,0,-(vyska_rotoru2)/2-(vyska_kryti)/2]) |
18 |
translate([0,0,-(vyska_rotoru2)/2-(vyska_kryti)/2]) |
23 |
|
19 |
|
24 |
|
20 |
|
25 |
difference () |
21 |
difference () |
26 |
{ |
22 |
{ |
27 |
cylinder (h = vyska_kryti, r=(prumer_rotoru1/2), center = true, $fn=100); |
23 |
cylinder (h = vyska_kryti, r=(prumer_rotoru1/2), center = true, $fn=100); |
28 |
|
24 |
|
29 |
cylinder (h = vyska_kryti+0.1, r=(prumer_rotoru1/2-sila_materialu), center = true, $fn=100); |
25 |
cylinder (h = vyska_kryti+0.1, r=(prumer_rotoru1/2-sila_materialu), center = true, $fn=100); |
30 |
|
26 |
|
31 |
|
- |
|
32 |
|
- |
|
33 |
} |
27 |
} |
34 |
|
28 |
|
35 |
|
29 |
|
36 |
|
30 |
|
37 |
//doraz na lozisko |
31 |
//doraz na lozisko |
38 |
translate([0,0,-(vyska_rotoru2+stator1_sila+vyska_matky+vzdalenost_rot_stat)/2]) |
32 |
translate([0,0,-(vyska_rotoru2+stator1_sila+vyska_matky+vzdalenost_rot_stat)/2]) |
39 |
cylinder (h = stator1_sila+vyska_matky+vzdalenost_rot_stat, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv)/2, center = true, $fn=100); |
33 |
cylinder (h = stator1_sila+vyska_matky+vzdalenost_rot_stat, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv)/2, center = true, $fn=100); |
40 |
|
34 |
|
41 |
//hridel |
35 |
//hridel |
42 |
translate([0,0,-(vyska_rotoru2+stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele)/2]) |
36 |
translate([0,0,-(vyska_rotoru2+stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele)/2]) |
43 |
cylinder (h = stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele, r=(lozisko_prumer_vnitrni/2), center = true, $fn=100); |
37 |
cylinder (h = stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele, r=(lozisko_prumer_vnitrni/2), center = true, $fn=100); |
44 |
|
38 |
|
45 |
|
39 |
|
46 |
} |
40 |
} |
47 |
|
41 |
|
48 |
//otvor v hřídeli |
42 |
//otvor v hřídeli |
49 |
translate([0,0,-(stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele)/2]) |
43 |
translate([0,0,-(stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele)/2]) |
50 |
cylinder (h = vyska_rotoru2+stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele+0.1, r=(prumer_sroubu/2), center = true, $fn=100); |
44 |
cylinder (h = vyska_rotoru2+stator1_sila+vyska_matky+vzdalenost_rot_stat+lozisko_vyska+sila_pod_loziskem+delka_hridele+0.1, r=(prumer_sroubu/2), center = true, $fn=100); |
51 |
|
45 |
|
52 |
|
46 |
|
53 |
//otvor pro matku |
47 |
//otvor pro matku |
54 |
translate([0,0,(vyska_rotoru2-vyska_matky)/2]) |
48 |
translate([0,0,(vyska_rotoru2-vyska_matky)/2]) |
55 |
cylinder (h = vyska_matky+0.1, r= (sirka_matky+sirka_matky_tol)/2, center = true,$fn=6); |
49 |
cylinder (h = vyska_matky+0.1, r= (sirka_matky+sirka_matky_tol)/2, center = true,$fn=6); |
56 |
|
50 |
|
57 |
|
51 |
|
58 |
|
52 |
|
59 |
|
53 |
|
60 |
|
54 |
|
61 |
//otvor pro uchyceni prvni lopatky |
55 |
//otvor pro uchyceni prvni lopatky |
62 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0]) |
56 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0]) |
63 |
cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
57 |
cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
64 |
|
58 |
|
65 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru2)/2+vyska_matky/2]) |
59 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru2)/2+vyska_matky/2]) |
66 |
cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100); |
60 |
cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100); |
67 |
|
61 |
|
68 |
//otvor pro uchyceni druhe lopatky |
62 |
//otvor pro uchyceni druhe lopatky |
69 |
rotate(a=[0,0,120]) |
63 |
rotate(a=[0,0,120]) |
70 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0]) |
64 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0]) |
71 |
cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
65 |
cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
72 |
|
66 |
|
73 |
rotate(a=[0,0,120]) |
67 |
rotate(a=[0,0,120]) |
74 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru2)/2+vyska_matky/2]) |
68 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru2)/2+vyska_matky/2]) |
75 |
cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100); |
69 |
cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100); |
76 |
|
70 |
|
77 |
//otvor pro uchyceni treti lopatky |
71 |
//otvor pro uchyceni treti lopatky |
78 |
rotate(a=[0,0,240]) |
72 |
rotate(a=[0,0,240]) |
79 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0]) |
73 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0]) |
80 |
cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
74 |
cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
81 |
|
75 |
|
82 |
rotate(a=[0,0,240]) |
76 |
rotate(a=[0,0,240]) |
83 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru2)/2+vyska_matky/2]) |
77 |
translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru2)/2+vyska_matky/2]) |
84 |
cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100); |
78 |
cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100); |
85 |
|
79 |
|
86 |
} |
80 |
} |
87 |
} |
81 |
} |
88 |
|
82 |
|
89 |
|
83 |
|
90 |
|
84 |
|