Rev Author Line No. Line
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)
4277 jacho 6 {
7 difference()
8 {
9  
10 cylinder (h = stator3_vyska, r=(prumer_rotoru1)/2, center = true, $fn=100);
11  
12 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);
15  
4288 jacho 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);
4277 jacho 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  
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  
35  
36  
37  
38  
39  
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])
49 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
50  
51 //otvor pro sroub 2
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  
61  
62 //dno stator3
63  
64 translate([0,0,-(stator3_vyska-stator3_sila_steny)/2])
65  
66 difference()
67 {
68 cylinder (h = stator3_sila_steny, r=(prumer_rotoru1)/2, center = true, $fn=100);
69  
70 //otvory pro uchyceni stator 3
71 //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])
73 cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100);
74  
75  
76  
77 //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])
79 cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100);
80  
81 //srouby pro uchycení anemometru
82 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);
84  
85 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);
87  
88 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);
90  
91 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);
93  
4288 jacho 94 //dira na kabel
95  
96 cylinder (h = vyska_stator4+0.1, r=(kabel_prumer/2+0.1), center = true, $fn=100);
4277 jacho 97 }
98 }