4277 |
jacho |
1 |
$fn=40; // model faces resolution. |
4288 |
jacho |
2 |
//include <../configuration.scad> |
4277 |
jacho |
3 |
|
|
|
4 |
module stator3(stator3_vyska,prumer_rotoru1,lozisko_vyska,sila_pod_loziskem,sila_materialu,vule1,stator3_sila_steny, |
4288 |
jacho |
5 |
stator3_vyska_prekryti,prumer_hlavy_sroubu,stator3_vzdalenost_od_steny,lozisko_vyska,prumer_sroubu,roztec_sroubu,uchyt_prumer_sroubu,vyska_stator4,kabel_prumer) |
4297 |
jacho |
6 |
{ |
|
|
7 |
difference() |
|
|
8 |
{ |
|
|
9 |
cylinder (h = stator3_vyska, r=(prumer_rotoru1)/2, center = true, $fn=100); |
4277 |
jacho |
10 |
|
4297 |
jacho |
11 |
translate([0,0,(stator3_vyska-lozisko_vyska-sila_pod_loziskem)/2]) |
|
|
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); |
4277 |
jacho |
13 |
|
4297 |
jacho |
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); |
|
|
15 |
|
4277 |
jacho |
16 |
|
4297 |
jacho |
17 |
translate([0,0,(stator3_vyska-stator3_vyska_prekryti)/2]) |
|
|
18 |
difference() |
|
|
19 |
{ |
4277 |
jacho |
20 |
|
4297 |
jacho |
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); |
4277 |
jacho |
24 |
|
4297 |
jacho |
25 |
} |
4277 |
jacho |
26 |
|
4297 |
jacho |
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); |
4277 |
jacho |
31 |
|
4297 |
jacho |
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); |
4277 |
jacho |
34 |
|
4297 |
jacho |
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); |
4277 |
jacho |
38 |
|
4297 |
jacho |
39 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
|
|
40 |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
|
|
41 |
} |
4277 |
jacho |
42 |
|
|
|
43 |
|
|
|
44 |
//dno stator3 |
|
|
45 |
|
4297 |
jacho |
46 |
translate([0,0,-(stator3_vyska-stator3_sila_steny)/2]) |
|
|
47 |
difference() |
|
|
48 |
{ |
|
|
49 |
cylinder (h = stator3_sila_steny, r=(prumer_rotoru1)/2, center = true, $fn=100); |
4277 |
jacho |
50 |
|
4297 |
jacho |
51 |
//otvory pro uchyceni stator 3 |
|
|
52 |
//otvor pro sroub 1 |
|
|
53 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
|
|
54 |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
4277 |
jacho |
55 |
|
|
|
56 |
|
|
|
57 |
|
4297 |
jacho |
58 |
//otvor pro sroub 2 |
|
|
59 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
|
|
60 |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
4277 |
jacho |
61 |
|
4297 |
jacho |
62 |
//srouby pro uchycení anemometru |
|
|
63 |
translate([roztec_sroubu/2,roztec_sroubu/2,0]) |
|
|
64 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
4277 |
jacho |
65 |
|
4297 |
jacho |
66 |
translate([-roztec_sroubu/2,roztec_sroubu/2,0]) |
|
|
67 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
4277 |
jacho |
68 |
|
4297 |
jacho |
69 |
translate([roztec_sroubu/2,-roztec_sroubu/2,0]) |
|
|
70 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
4277 |
jacho |
71 |
|
4297 |
jacho |
72 |
translate([-roztec_sroubu/2,-roztec_sroubu/2,0]) |
|
|
73 |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
4277 |
jacho |
74 |
|
4288 |
jacho |
75 |
//dira na kabel |
4297 |
jacho |
76 |
cylinder (h = vyska_stator4+0.1, r=(kabel_prumer/2+0.1), center = true, $fn=100); |
|
|
77 |
} |
|
|
78 |
} |