-rw-r--r-- | fanduct.scad | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fanduct.scad b/fanduct.scad index 563920c..421dd5a 100644 --- a/fanduct.scad +++ b/fanduct.scad | |||
@@ -1,39 +1,43 @@ | |||
1 | use <snapper.scad>; | 1 | use <snapper.scad>; |
2 | extrusion_width=.5; layer_height=.2; // print parameters | 2 | extrusion_width=.5; layer_height=.2; // print parameters |
3 | 3 | ||
4 | epsilon=.005; // for finer cuts | 4 | epsilon=.005; // for finer cuts |
5 | 5 | ||
6 | heater_w = 16; // heatblock width | 6 | function hypothenuse(a,b) = sqrt(pow(a,2)+pow(b,2)); |
7 | heater_l = 20; // heatblock length | 7 | |
8 | nozzle_offset=4.5;// nozzle offset from the edge of heatblock | 8 | silicone_shell = 2; |
9 | heater_clearance = max( | ||
10 | hypothenuse(16/2 +silicone_shell, 20-4.5 +silicone_shell),// E3D v6 | ||
11 | hypothenuse(11.5-4.5 +silicone_shell, 15.5 +silicone_shell)// E3D volcano | ||
12 | ); | ||
9 | 13 | ||
10 | fanduct_elevation = 3; // fanduct elevation above nozzle tip | 14 | fanduct_elevation = 3; // fanduct elevation above nozzle tip |
11 | fanduct_blowtarget = -2; // what to blow at | 15 | fanduct_blowtarget = -2; // what to blow at |
12 | fanduct_h = 6; // inner height of the duct | 16 | fanduct_h = 6; // inner height of the duct |
13 | fanduct_w = 7; // inner width of the duct | 17 | fanduct_w = 7; // inner width of the duct |
14 | fanduct_shell=1.2; // shell thickness | 18 | fanduct_shell=1.2; // shell thickness |
15 | fanduct_ir = sqrt(pow(heater_w/2,2)+pow(heater_l-nozzle_offset,2))+5;// inner radius | 19 | fanduct_ir = heater_clearance+5; // inner radius |
16 | 20 | ||
17 | jet_angle = 60; // angular width of the jet | 21 | jet_angle = 60; // angular width of the jet |
18 | 22 | ||
19 | inlet_w = 12.5; // inlet width | 23 | inlet_w = 12.5; // inlet width |
20 | inlet_h = 17; // inlet height | 24 | inlet_h = 17; // inlet height |
21 | inlet_l = 7; // inlet length of protrusion (or depth of intrusion:)) | 25 | inlet_l = 7; // inlet length of protrusion (or depth of intrusion:)) |
22 | inlet_away = 15;// how far away inlet is | 26 | inlet_away = 15;// how far away inlet is |
23 | 27 | ||
24 | hotend_clearance = 12; | 28 | hotend_clearance = 12; |
25 | 29 | ||
26 | snapper_d = 8; snapper_overlap=0.2;// snip snap | 30 | snapper_d = 8; snapper_overlap=0.2;// snip snap |
27 | 31 | ||
28 | smooth_f = 120; | 32 | smooth_f = 120; |
29 | 33 | ||
30 | type="3jets"; // "3jets" ; // circular|3jets | 34 | type="3jets"; // "3jets" ; // circular|3jets |
31 | 35 | ||
32 | 36 | ||
33 | module fanduct(type=type) { | 37 | module fanduct(type=type) { |
34 | 38 | ||
35 | // ***duct is all around! | 39 | // ***duct is all around! |
36 | module duct(what) { | 40 | module duct(what) { |
37 | if(what=="in") { | 41 | if(what=="in") { |
38 | sh = fanduct_w+2*fanduct_shell; sv = fanduct_h+2*fanduct_shell; | 42 | sh = fanduct_w+2*fanduct_shell; sv = fanduct_h+2*fanduct_shell; |
39 | smax = max(sh,sv); | 43 | smax = max(sh,sv); |