diff --git a/Dom/kaloryfer_wiatraki.scad b/Dom/kaloryfer_wiatraki.scad index 448f2ab..55b7a86 100644 --- a/Dom/kaloryfer_wiatraki.scad +++ b/Dom/kaloryfer_wiatraki.scad @@ -4,39 +4,48 @@ include include include +// ------- VARIABLES BEGIN ------------- + // 1 - straight section // 2 - fan section // 3 - blind end section -model = 1; -fan_down = false; -conn = true; -center_fan_hole = true; +model = 2; +fan_down = false; // the direction the fan adapter should be moved in relation to the radiator +conn = false; // connecting tabs +center_fan_hole = false; // for model 1; an additional hole for a fan // północny kaloryfer w dużym pokoju - 42, 97, 7.5 +// południowy kaloryfer w dużym pokoju - 60, 97, 7.5 h = 60; // total height -w = 97; // górna kratka na kaloryferze -lip = 7.5; +w = 97; // inner width +lip = 7.5; // height of lip for radiator overlap -l = model != 1 ? 70 : 180; // 18cm druk, 5cm adapter do wiatraka +l = model != 1 ? 70 : 180; // 18cm for model 1, 7cm for others -t = 2; -fan_t = 5; +t = 2; // wall thickness +// chamfers ch_top = 6; -ch_bottom = 10; +ch_bottom = 10; // lip chamfer size for radiator support +// connecting tab size conn_t = 2; conn_l = 20; -fan_dist = 75; -fan_width = 85; -fan_t = 5; +// fan adapter settings +fan_spec1 = fan80x25; // model 1 +fan_spec2 = fan80x25; // model 2 +fan_dist = 75; // distance to the main channel body in model 2 +fan_width = 85; // model 2 - size of the box containing the fan cutout +fan_t = 5; // model 2 - thickness of adapter + +// ------- VARIABLES END ------------- // main body difference() { up(h/2) cuboid([w+2*t,l,h]); up(h/2 - t) cuboid([w,l+1,h]); - if(center_fan_hole && model == 1) {up(h/2) fan_holes(fan80x25);} + if(center_fan_hole && model == 1) {up(h/2) fan_holes(fan_spec1);} } // chamfers union() { @@ -67,7 +76,7 @@ if(model == 2) { back(l/2 + fan_dist) up(fan_width/2) down(tmp_h) union() { difference() { cuboid([fan_width, fan_t,fan_width]); - xrot(90) fan_holes(fan80x25); + xrot(90) fan_holes(fan_spec2); } chain_hull() { up(fan_width/2 - t/2) fwd(fan_t/2) yrot(90) cyl(h=fan_width, d=t);