Line 2... |
Line 2... |
2 |
//include <../configuration.scad> |
2 |
//include <../configuration.scad> |
3 |
|
3 |
|
4 |
module stator2(lozisko_vyska,sila_pod_loziskem,prumer_rotoru1,sila_materialu,vule1,stator3_sila_steny,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv, |
4 |
module stator2(lozisko_vyska,sila_pod_loziskem,prumer_rotoru1,sila_materialu,vule1,stator3_sila_steny,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv, |
5 |
prumer_sroubu, |
5 |
prumer_sroubu, |
6 |
lozisko_vyska,vzdalenost_der_x,vzdalenost_der_y,vyska_hlavy_sroubu,prumer_hlavy_sroubu,prumer_rotoru1,stator3_vzdalenost_od_steny) |
6 |
lozisko_vyska,vzdalenost_der_x,vzdalenost_der_y,vyska_hlavy_sroubu,prumer_hlavy_sroubu,prumer_rotoru1,stator3_vzdalenost_od_steny) |
7 |
|
- |
|
8 |
|
- |
|
9 |
{ |
7 |
{ |
10 |
difference() |
8 |
difference() |
11 |
{ |
9 |
{ |
12 |
cylinder (h = lozisko_vyska+sila_pod_loziskem, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny-0.5)/2, center = true, $fn=100); |
10 |
cylinder (h = lozisko_vyska+sila_pod_loziskem, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny-0.5)/2, center = true, $fn=100); |
13 |
|
11 |
|
14 |
|
12 |
|
15 |
//otvor pro lozisko |
13 |
//otvor pro lozisko |
16 |
translate([0,0,sila_pod_loziskem]) |
14 |
translate([0,0,sila_pod_loziskem]) |
17 |
cylinder (h = lozisko_vyska+0.1, r=(lozisko_prumer_vnejsi+0.1)/2, center = true, $fn=100); |
15 |
cylinder (h = lozisko_vyska+0.1, r=(lozisko_prumer_vnejsi+0.1)/2, center = true, $fn=100); |
18 |
|
16 |
|
19 |
//otvor pro hridel rotoru |
17 |
//otvor pro hridel rotoru |
20 |
translate([0,0,0]) |
18 |
translate([0,0,0]) |
21 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+2)/2, center = true, $fn=100); |
19 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+2)/2, center = true, $fn=100); |
22 |
|
20 |
|
23 |
//otvor pro sroub 1 |
21 |
//otvor pro sroub 1 |
24 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
22 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
25 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
23 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
26 |
|
24 |
|
27 |
//otvor pro sroub 2 |
25 |
//otvor pro sroub 2 |
28 |
rotate(a=[0,0,120]) |
26 |
rotate(a=[0,0,120]) |
29 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
27 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
30 |
|
- |
|
31 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
28 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
32 |
|
29 |
|
33 |
//otvor pro sroub 3 |
30 |
//otvor pro sroub 3 |
34 |
rotate(a=[0,0,240]) |
31 |
rotate(a=[0,0,240]) |
35 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
32 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
36 |
|
- |
|
37 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
33 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
38 |
|
34 |
|
39 |
//otvory pro uchyceni senzoru |
35 |
//otvory pro uchyceni senzoru |
- |
|
36 |
|
40 |
//otvor pro sroub 1 |
37 |
//otvor pro sroub 1 |
41 |
|
- |
|
42 |
translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,0]) |
38 |
translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,0]) |
- |
|
39 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
43 |
|
40 |
|
44 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
45 |
|
- |
|
46 |
translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
41 |
translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
47 |
|
- |
|
48 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
42 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
49 |
|
- |
|
50 |
|
43 |
|
51 |
|
44 |
|
52 |
//otvor pro sroub 2 |
45 |
//otvor pro sroub 2 |
53 |
rotate(a=[0,0,0]) |
46 |
rotate(a=[0,0,0]) |
54 |
translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,0]) |
47 |
translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,0]) |
55 |
|
- |
|
56 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
48 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
57 |
|
49 |
|
58 |
translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
50 |
translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
- |
|
51 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
59 |
|
52 |
|
60 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
- |
|
61 |
|
- |
|
62 |
|
- |
|
63 |
|
- |
|
64 |
|
- |
|
65 |
//otvor pro sroub 1 |
53 |
//otvor pro sroub 3 |
66 |
rotate(a=[0,0,0]) |
54 |
rotate(a=[0,0,0]) |
67 |
translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,0]) |
55 |
translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,0]) |
- |
|
56 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
68 |
|
57 |
|
69 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
70 |
|
- |
|
71 |
translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
58 |
translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
72 |
|
- |
|
73 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
- |
|
74 |
|
- |
|
75 |
|
- |
|
76 |
//otvor pro sroub 1 |
- |
|
77 |
rotate(a=[0,0,0]) |
- |
|
78 |
translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,0]) |
- |
|
79 |
|
- |
|
80 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
81 |
|
- |
|
82 |
translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
- |
|
83 |
|
- |
|
84 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
59 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
85 |
|
- |
|
86 |
|
60 |
|
87 |
|
61 |
|
- |
|
62 |
//otvor pro sroub 4 |
- |
|
63 |
rotate(a=[0,0,0]) |
- |
|
64 |
translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,0]) |
- |
|
65 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
88 |
|
66 |
|
- |
|
67 |
translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2]) |
- |
|
68 |
cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
89 |
|
69 |
|
90 |
|
70 |
|
91 |
//otvory pro uchyceni stator 3 |
71 |
//otvory pro uchyceni stator 3 |
92 |
//otvor pro sroub 1 |
72 |
//otvor pro sroub 1 |
93 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
73 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
94 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
74 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
95 |
|
75 |
|
96 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
76 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
97 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
77 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
98 |
|
78 |
|
99 |
//otvor pro sroub 2 |
79 |
//otvor pro sroub 2 |
100 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
80 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
101 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
81 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
102 |
|
- |
|
103 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
- |
|
104 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
- |
|
105 |
|
82 |
|
- |
|
83 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
- |
|
84 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
106 |
|
85 |
|
107 |
} |
86 |
} |
108 |
|
87 |
|
109 |
} |
88 |
} |
110 |
|
89 |
|
111 |
|
90 |
|
112 |
|
91 |
|
113 |
|
92 |
|