82 lines
2.6 KiB
OpenSCAD
82 lines
2.6 KiB
OpenSCAD
/* https://github.com/BelfrySCAD/BOSL2 */
|
|
include <BOSL2/std.scad>
|
|
|
|
fan_size = 80;
|
|
plate_thickness = 2;
|
|
|
|
mounting_hole_offset = 71.5/2;
|
|
mounting_hole_diameter = 4.5;
|
|
|
|
shroud_length = 25;
|
|
shroud_thickness = 4;
|
|
shroud_offset_v = 0; // positive = fan to the bottom
|
|
shroud_offset_h = 0; // positive = fan to the right
|
|
|
|
fan_diameter = fan_size-2;
|
|
|
|
gpu_width = 18.7;
|
|
gpu_height = 54.5;
|
|
gpu_length = 15;
|
|
gpu_pcb_width = 1.7;
|
|
gpu_pcb_height = 56.6;
|
|
gpu_pcb_h_offset = 18.5/2-2.6-1.7/2;
|
|
gpu_pcb_l_offset = 2;
|
|
|
|
$fn = 150;
|
|
|
|
difference() {
|
|
group() {
|
|
/* Plate */
|
|
cuboid([fan_size, fan_size, plate_thickness], rounding=mounting_hole_diameter, edges="Z");
|
|
|
|
/* Shroud outside */
|
|
hull() {
|
|
cylinder(d=fan_diameter, h=plate_thickness, center=true);
|
|
|
|
translate([shroud_offset_h, (gpu_height+shroud_thickness-fan_size)/2+shroud_offset_v, shroud_length])
|
|
cube([gpu_width+shroud_thickness, gpu_height+shroud_thickness, shroud_thickness], center=true);
|
|
}
|
|
|
|
/* Straight piece outside */
|
|
translate([shroud_offset_h, (gpu_height+shroud_thickness-fan_size)/2+shroud_offset_v, shroud_length+gpu_length/2])
|
|
cube([gpu_width+shroud_thickness, gpu_height+shroud_thickness, gpu_length], center=true);
|
|
}
|
|
|
|
group() {
|
|
/* Plate hole */
|
|
cylinder(d=fan_diameter-2*shroud_thickness, h=plate_thickness, center=true);
|
|
|
|
|
|
/* Shroud inside */
|
|
hull() {
|
|
cylinder(d=fan_diameter-2*shroud_thickness, h=plate_thickness, center=true);
|
|
|
|
translate([shroud_offset_h, (gpu_height+shroud_thickness-fan_size)/2+shroud_offset_v, shroud_length])
|
|
cube([gpu_width, gpu_height, shroud_thickness], center=true);
|
|
}
|
|
|
|
/* Straight piece inside */
|
|
translate([shroud_offset_h, (gpu_height+shroud_thickness-fan_size)/2+shroud_offset_v, 0]) {
|
|
group() {
|
|
translate([0, 0, shroud_length+gpu_length/2])
|
|
cube([gpu_width, gpu_height, gpu_length], center=true);
|
|
|
|
/* PCB cutout */
|
|
translate([-gpu_pcb_h_offset, 0, shroud_length+gpu_length/2+gpu_pcb_l_offset])
|
|
cube([gpu_pcb_width, gpu_pcb_height, gpu_length-gpu_pcb_l_offset], center=true);
|
|
}
|
|
}
|
|
|
|
/* Mounting holes */
|
|
for (i = [-1, 1]) {
|
|
for (j = [-1, 1]) {
|
|
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
|
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|