Rev Author Line No. Line
4124 kaklik 1 heatsink_xsize = 50;
2 heatsink_ysize = 50;
3 heatsink_zsize = 50;
4  
4125 kaklik 5 TEG_xsize = 30;
6 TEG_ysize = 30;
7 TEG_zsize = 5;
4124 kaklik 8  
9 mount_hole = 3.5;
10 clearance = 0.175;
11 sealing_ring_width = 3;
12 wall_thickness = 10;
13  
14 height = heatsink_zsize + wall_thickness;
15  
16  
17 difference () {
18 union (){
19 cube([heatsink_xsize+2*wall_thickness,heatsink_ysize+2*wall_thickness,heatsink_zsize+wall_thickness]); // overal plastic brick
20 // cube([heatsink_xsize+2*wall_thickness,heatsink_ysize+2*wall_thickness,heatsink_zsize+wall_thickness]); // overal plastic brick
21 }
22  
23 translate ([wall_thickness-clearance, wall_thickness-clearance, wall_thickness-clearance])
24 cube([heatsink_xsize+2*clearance, heatsink_ysize+2*clearance, heatsink_xsize+2*clearance]); // hollow for heat sink and heat storage liquid.
25  
4125 kaklik 26 translate ([((heatsink_xsize+2*wall_thickness)-TEG_xsize)/2 - clearance, ((heatsink_ysize+2*wall_thickness)-TEG_ysize)/2 - clearance, 0])
4124 kaklik 27 cube([TEG_xsize+2*clearance, TEG_ysize+2*clearance, wall_thickness]); // hollow for the thermoelectric generator
28  
4125 kaklik 29 translate ([wall_thickness, wall_thickness, height-sealing_ring_width])
30 union () {
4124 kaklik 31 difference () {
32 minkowski() {
33 cube([heatsink_xsize-sealing_ring_width/2, heatsink_xsize-sealing_ring_width/2, 5]); // Rib for o-ring.
34 cylinder(r=wall_thickness/2,h=0.1);
35 }
36  
4125 kaklik 37 translate ([sealing_ring_width, sealing_ring_width, 0])
4124 kaklik 38 minkowski() {
39 cube([heatsink_xsize+sealing_ring_width/2, heatsink_xsize+sealing_ring_width/2, 5]); // Rib for o-ring.
40 cylinder(r=wall_thickness/2,h=0.1);
41 }
42 }
4125 kaklik 43 }
4124 kaklik 44 /*
45 rotate([0,0,-45]) // hole for top part mounting nut
46 translate ([ 0, -y_size/3, thickness/3])
47 cube([6, 3, thickness], center = true);
48  
49 rotate([90,0,-45]) // hole for top part mounting screw.
50 translate ([ 0, 1.8, 0])
51 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=20);
52 */
53 }
54  
55 // Heat reservoir cover
56  
57 translate ([0, 0, 2*height])
58 cube([heatsink_xsize+2*wall_thickness,heatsink_ysize+2*wall_thickness,wall_thickness]);
59