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 |
module stator3(stator3_vyska,prumer_rotoru1,lozisko_vyska,sila_pod_loziskem,sila_materialu,vule1,stator3_sila_steny, |
4 |
module stator3(stator3_vyska,prumer_rotoru1,lozisko_vyska,sila_pod_loziskem,sila_materialu,vule1,stator3_sila_steny, |
5 |
stator3_vyska_prekryti,prumer_hlavy_sroubu,stator3_vzdalenost_od_steny,lozisko_vyska,prumer_sroubu,roztec_sroubu,uchyt_prumer_sroubu,vyska_stator4,kabel_prumer) |
5 |
stator3_vyska_prekryti,prumer_hlavy_sroubu,stator3_vzdalenost_od_steny,lozisko_vyska,prumer_sroubu,roztec_sroubu,uchyt_prumer_sroubu,vyska_stator4,kabel_prumer) |
6 |
{ |
6 |
{ |
7 |
difference() |
7 |
difference() |
8 |
{ |
- |
|
9 |
|
8 |
{ |
10 |
cylinder (h = stator3_vyska, r=(prumer_rotoru1)/2, center = true, $fn=100); |
9 |
cylinder (h = stator3_vyska, r=(prumer_rotoru1)/2, center = true, $fn=100); |
11 |
|
10 |
|
12 |
translate([0,0,(stator3_vyska-lozisko_vyska-sila_pod_loziskem)/2]) |
11 |
translate([0,0,(stator3_vyska-lozisko_vyska-sila_pod_loziskem)/2]) |
13 |
|
- |
|
14 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny)/2, center = true, $fn=100); |
12 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny)/2, center = true, $fn=100); |
15 |
|
13 |
|
16 |
cylinder (h = stator3_vyska+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-1)/2, center = true, $fn=100); |
14 |
cylinder (h = stator3_vyska+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-1)/2, center = true, $fn=100); |
17 |
|
- |
|
18 |
|
- |
|
19 |
|
- |
|
20 |
|
- |
|
21 |
translate([0,0,(stator3_vyska-stator3_vyska_prekryti)/2]) |
- |
|
22 |
difference() |
- |
|
23 |
{ |
- |
|
24 |
|
- |
|
25 |
cylinder (h = stator3_vyska_prekryti+0.1, r=(prumer_rotoru1+0.1)/2, center = true, $fn=100); |
- |
|
26 |
|
- |
|
27 |
|
15 |
|
28 |
cylinder (h = stator3_vyska_prekryti+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1)/2, center = true, $fn=100); |
- |
|
29 |
|
- |
|
30 |
} |
- |
|
31 |
|
- |
|
32 |
|
- |
|
33 |
|
- |
|
34 |
|
16 |
|
- |
|
17 |
translate([0,0,(stator3_vyska-stator3_vyska_prekryti)/2]) |
- |
|
18 |
difference() |
- |
|
19 |
{ |
- |
|
20 |
|
- |
|
21 |
cylinder (h = stator3_vyska_prekryti+0.1, r=(prumer_rotoru1+0.1)/2, center = true, $fn=100); |
- |
|
22 |
|
- |
|
23 |
cylinder (h = stator3_vyska_prekryti+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1)/2, center = true, $fn=100); |
35 |
|
24 |
|
- |
|
25 |
} |
36 |
|
26 |
|
- |
|
27 |
//otvory pro uchyceni stator 3 |
- |
|
28 |
//otvor pro sroub 1 |
- |
|
29 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
- |
|
30 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
37 |
|
31 |
|
- |
|
32 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
- |
|
33 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
38 |
|
34 |
|
- |
|
35 |
//otvor pro sroub 2 |
- |
|
36 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
- |
|
37 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
39 |
|
38 |
|
40 |
|
- |
|
41 |
|
- |
|
42 |
|
- |
|
43 |
//otvory pro uchyceni stator 3 |
- |
|
44 |
//otvor pro sroub 1 |
- |
|
45 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
- |
|
46 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
47 |
|
- |
|
48 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
39 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
49 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
40 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
50 |
|
- |
|
51 |
//otvor pro sroub 2 |
41 |
} |
52 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
- |
|
53 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
54 |
|
- |
|
55 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
- |
|
56 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
- |
|
57 |
|
- |
|
58 |
|
- |
|
59 |
} |
- |
|
60 |
|
42 |
|
61 |
|
43 |
|
62 |
//dno stator3 |
44 |
//dno stator3 |
63 |
|
45 |
|
64 |
translate([0,0,-(stator3_vyska-stator3_sila_steny)/2]) |
46 |
translate([0,0,-(stator3_vyska-stator3_sila_steny)/2]) |
65 |
|
- |
|
66 |
difference() |
47 |
difference() |
67 |
{ |
48 |
{ |
68 |
cylinder (h = stator3_sila_steny, r=(prumer_rotoru1)/2, center = true, $fn=100); |
49 |
cylinder (h = stator3_sila_steny, r=(prumer_rotoru1)/2, center = true, $fn=100); |
69 |
|
50 |
|
70 |
//otvory pro uchyceni stator 3 |
51 |
//otvory pro uchyceni stator 3 |
71 |
//otvor pro sroub 1 |
52 |
//otvor pro sroub 1 |
72 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
53 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
73 |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
54 |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
74 |
|
55 |
|
75 |
|
56 |
|
76 |
|
57 |
|
77 |
//otvor pro sroub 2 |
58 |
//otvor pro sroub 2 |
78 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
59 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
79 |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
60 |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
80 |
|
61 |
|
81 |
//srouby pro uchycení anemometru |
62 |
//srouby pro uchycení anemometru |
82 |
translate([roztec_sroubu/2,roztec_sroubu/2,0]) |
63 |
translate([roztec_sroubu/2,roztec_sroubu/2,0]) |
83 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
64 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
84 |
|
65 |
|
85 |
translate([-roztec_sroubu/2,roztec_sroubu/2,0]) |
66 |
translate([-roztec_sroubu/2,roztec_sroubu/2,0]) |
86 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
67 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
87 |
|
68 |
|
88 |
translate([roztec_sroubu/2,-roztec_sroubu/2,0]) |
69 |
translate([roztec_sroubu/2,-roztec_sroubu/2,0]) |
89 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
70 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
90 |
|
71 |
|
91 |
translate([-roztec_sroubu/2,-roztec_sroubu/2,0]) |
72 |
translate([-roztec_sroubu/2,-roztec_sroubu/2,0]) |
92 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
73 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
93 |
|
74 |
|
94 |
//dira na kabel |
75 |
//dira na kabel |
95 |
|
- |
|
96 |
cylinder (h = vyska_stator4+0.1, r=(kabel_prumer/2+0.1), center = true, $fn=100); |
76 |
cylinder (h = vyska_stator4+0.1, r=(kabel_prumer/2+0.1), center = true, $fn=100); |
97 |
} |
77 |
} |
98 |
} |
78 |
} |