// ChatGPTCode Open Multi-GPU AI Workstation · CC-BY-SA 4.0 // https://www.chatgptcode.cn/rig-3d · Units: mm · Bambu/Prusa/Voron PETG-CF /* [Architecture] */ gpu_count = 2; // [1,2,4,8] gpu_length_mm = 313; // [200:1:400] chassis_arch = "fulltower"; // ["itx","matx","atx","panoramic","fulltower","eatx","rack2u","rack4u","node8"] part_to_export = "assembly"; // ["assembly","outer_shell","front_bezel","gpu_bracket","rear_shroud","cable_comb","egpu_dock"] explode_mm = 0; // [0:5:120] /* [Manufacturing] */ wall_t = 3.2; m3_insert_od = 4.6; print_tol = 0.25; chassis_w = chassis_arch == "itx" ? 190 : (chassis_arch == "rack4u" || chassis_arch == "node8" ? 438 : 230); chassis_d = chassis_arch == "itx" ? 360 : max(480,gpu_length_mm+167); chassis_h = chassis_arch == "rack2u" ? 88 : (chassis_arch == "rack4u" || chassis_arch == "node8" ? 177 : 465); module insert(x,y,z) { translate([x,y,z]) cylinder(d=m3_insert_od,h=5,$fn=32); } module hollow_shell(w,d,h,t) { difference(){ cube([w,d,h]); translate([t,t,t]) cube([w-2*t,d,h-t*2]); } } module outer_shell() { difference(){ hollow_shell(chassis_w,chassis_d,chassis_h,wall_t); translate([12,-1,20]) cube([chassis_w-24,wall_t+2,chassis_h-40]); for(x=[14,chassis_w-14]) for(y=[20,chassis_d-20]) translate([x,y,-1]) insert(0,0,0); } for(z=[18,110,300]) translate([8,chassis_d-12,z]) cube([chassis_w-16,6,12]); } module front_bezel() { difference(){ cube([chassis_w,12,chassis_h]); translate([10,-1,10]) cube([chassis_w-20,14,chassis_h-20]); } for(z=[14:14:chassis_h-14]) translate([10,2,z]) cube([chassis_w-20,6,4]); } module gpu_bracket() { cube([gpu_length_mm,30,4]); cube([gpu_length_mm,4,32]); translate([0,0,28]) cube([gpu_length_mm,24,4]); for(i=[0:max(0,gpu_count-1)]) translate([45+i*70,0,4]) cube([6,26,24]); for(x=[45,gpu_length_mm-45]) translate([x,8,24]) cube([26,20,6]); } module rear_shroud() { difference(){ cube([260,5,125]); for(x=[65,195]) translate([x,-1,62]) rotate([-90,0,0]) cylinder(d=114,h=8,$fn=64); } cube([5,26,125]); translate([255,0,0]) cube([5,26,125]); translate([126,0,0]) cube([8,26,125]); } module cable_comb() { cube([95,22,3]); for(x=[3:8.2:91]) translate([x,2,0]) cube([3,17,10]); translate([0,19,0]) cube([95,3,12]); translate([0,0,9]) cube([95,3,3]); } module egpu_dock() { difference(){ cube([240,360,150]); translate([5,-1,5]) cube([230,356,140]); } for(y=[20,325]) translate([15,y,4]) cube([210,8,5]); translate([102,20,4]) cube([36,320,5]); } if(part_to_export=="outer_shell") outer_shell(); else if(part_to_export=="front_bezel") front_bezel(); else if(part_to_export=="gpu_bracket") gpu_bracket(); else if(part_to_export=="rear_shroud") rear_shroud(); else if(part_to_export=="cable_comb") cable_comb(); else if(part_to_export=="egpu_dock") egpu_dock(); else { color("#35465a") outer_shell(); color("#2ed3b7") translate([0,-14-explode_mm,0]) front_bezel(); color("#ffad63") translate([0,70,55+explode_mm*.3]) gpu_bracket(); color("#8999aa") translate([-15,chassis_d+explode_mm,80]) rear_shroud(); translate([20,20,20]) cable_comb(); }