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