-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | fanduct-3jets.scad | 2 | ||||
-rw-r--r-- | fanduct-jets.scad | 2 | ||||
-rw-r--r-- | fanduct.scad | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -1,16 +1,16 @@ | |||
1 | -include Makefile.local | 1 | -include Makefile.local |
2 | 2 | ||
3 | OPENSCAD_APP?=/Applications/OpenSCAD.app | 3 | OPENSCAD_APP?=/Applications/OpenSCAD.app |
4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD | 4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD |
5 | OPENSCAD_FLAGS=-D draft=false | 5 | OPENSCAD_FLAGS=-D draft=false |
6 | 6 | ||
7 | default: fanduct-circular.stl fanduct-3jets.stl fanduct-dual.stl fanduct-dual-jets.stl | 7 | default: fanduct-circular.stl fanduct-jets.stl fanduct-dual.stl fanduct-dual-jets.stl |
8 | 8 | ||
9 | clean: | 9 | clean: |
10 | rm -f *.stl | 10 | rm -f *.stl |
11 | 11 | ||
12 | fanduct-%.stl: fanduct-%.scad fanduct.scad | 12 | fanduct-%.stl: fanduct-%.scad fanduct.scad |
13 | 13 | ||
14 | 14 | ||
15 | %.stl: %.scad | 15 | %.stl: %.scad |
16 | ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<" | 16 | ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<" |
diff --git a/fanduct-3jets.scad b/fanduct-3jets.scad deleted file mode 100644 index cd88ab0..0000000 --- a/fanduct-3jets.scad +++ b/dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use <fanduct.scad>; | ||
2 | fanduct(type="3jets"); | ||
diff --git a/fanduct-jets.scad b/fanduct-jets.scad new file mode 100644 index 0000000..eb8a388 --- a/dev/null +++ b/fanduct-jets.scad | |||
@@ -0,0 +1,2 @@ | |||
1 | use <fanduct.scad>; | ||
2 | fanduct(type="jets"); | ||
diff --git a/fanduct.scad b/fanduct.scad index 2bc5623..efc6a19 100644 --- a/fanduct.scad +++ b/fanduct.scad | |||
@@ -1,54 +1,54 @@ | |||
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 | type="simple"; // circular|3jets | 6 | type="jets"; // jets|circular|simple |
7 | ductshape="square"; // square|round | 7 | ductshape="square"; // square|round |
8 | dual=true; // dual or single | 8 | dual=true; // dual or single |
9 | 9 | ||
10 | nozzles_apart = 18; // distance between nozzles for dual hotend | 10 | nozzles_apart = 18; // distance between nozzles for dual hotend |
11 | space_behind_nozzle = 10;// space behind the nozzle where we're allowed to go | 11 | space_behind_nozzle = 10;// space behind the nozzle where we're allowed to go |
12 | // without the fear of hitting carriage | 12 | // without the fear of hitting carriage |
13 | 13 | ||
14 | inlet_w = 12.5; // inlet width | 14 | inlet_w = 12.5; // inlet width |
15 | inlet_h = 17; // inlet height | 15 | inlet_h = 17; // inlet height |
16 | inlet_short_l = 7;// inlet length of protrusion (or depth of intrusion:)) | 16 | inlet_short_l = 7;// inlet length of protrusion (or depth of intrusion:)) |
17 | inlet_away = 15;// how far away inlet is | 17 | inlet_away = 15;// how far away inlet is |
18 | 18 | ||
19 | inlet_long_l = inlet_short_l+inlet_h; | 19 | inlet_long_l = inlet_short_l+inlet_h; |
20 | function hypothenuse(a,b) = sqrt(pow(a,2)+pow(b,2)); | 20 | function hypothenuse(a,b) = sqrt(pow(a,2)+pow(b,2)); |
21 | 21 | ||
22 | silicone_shell = 2; | 22 | silicone_shell = 2; |
23 | heater_clearance = dual | 23 | heater_clearance = dual |
24 | ? max(20,15.5) - 4.5 + silicone_shell | 24 | ? max(20,15.5) - 4.5 + silicone_shell |
25 | : max( | 25 | : max( |
26 | hypothenuse(16/2 +silicone_shell, 20-4.5 +silicone_shell),// E3D v6 | 26 | hypothenuse(16/2 +silicone_shell, 20-4.5 +silicone_shell),// E3D v6 |
27 | hypothenuse(11.5-4.5 +silicone_shell, 15.5 +silicone_shell)// E3D volcano | 27 | hypothenuse(11.5-4.5 +silicone_shell, 15.5 +silicone_shell)// E3D volcano |
28 | ); | 28 | ); |
29 | 29 | ||
30 | fanduct_elevation = 3; // fanduct elevation above nozzle tip | 30 | fanduct_elevation = 3; // fanduct elevation above nozzle tip |
31 | fanduct_blowtarget = -2; // what to blow at | 31 | fanduct_blowtarget = -2; // what to blow at |
32 | fanduct_h = 6; // inner height of the duct | 32 | fanduct_h = 6; // inner height of the duct |
33 | fanduct_w = 7; // inner width of the duct | 33 | fanduct_w = 7; // inner width of the duct |
34 | fanduct_shell=1.2; // shell thickness | 34 | fanduct_shell=1.2; // shell thickness |
35 | fanduct_ir = heater_clearance+5; // inner radius | 35 | fanduct_ir = heater_clearance+5; // inner radius |
36 | 36 | ||
37 | jet_angle = 60-2; // angular width of the jet | 37 | jet_angle = 60-2; // angular width of the jet |
38 | 38 | ||
39 | hotend_clearance = heater_clearance; | 39 | hotend_clearance = heater_clearance; |
40 | 40 | ||
41 | snapper_d = 8; snapper_overlap=0.2;// snip snap | 41 | snapper_d = 8; snapper_overlap=0.2;// snip snap |
42 | 42 | ||
43 | draft=true; | 43 | draft=true; |
44 | smooth_f = draft? 30 : 120; | 44 | smooth_f = draft? 30 : 120; |
45 | 45 | ||
46 | to_midduct = fanduct_ir+fanduct_shell+fanduct_w/2; | 46 | to_midduct = fanduct_ir+fanduct_shell+fanduct_w/2; |
47 | dual_spots = [ [+space_behind_nozzle, -(to_midduct+nozzles_apart/2)], | 47 | dual_spots = [ [+space_behind_nozzle, -(to_midduct+nozzles_apart/2)], |
48 | [- to_midduct, -(to_midduct+nozzles_apart/2)], | 48 | [- to_midduct, -(to_midduct+nozzles_apart/2)], |
49 | [- to_midduct, 0] ]; | 49 | [- to_midduct, 0] ]; |
50 | 50 | ||
51 | module fanduct(type=type,ductshape=ductshape,dual=dual) { | 51 | module fanduct(type=type,ductshape=ductshape,dual=dual) { |
52 | // ***duct is all around! | 52 | // ***duct is all around! |
53 | 53 | ||
54 | module duct(what) { | 54 | module duct(what) { |
@@ -343,97 +343,97 @@ module fanduct(type=type,ductshape=ductshape,dual=dual) { | |||
343 | } // hull | 343 | } // hull |
344 | }else if(what=="out") { | 344 | }else if(what=="out") { |
345 | hull() { | 345 | hull() { |
346 | intersection() { | 346 | intersection() { |
347 | translate([md-fanduct_w/2,-jww/2+fanduct_shell,fanduct_shell]) | 347 | translate([md-fanduct_w/2,-jww/2+fanduct_shell,fanduct_shell]) |
348 | cube(size=[fanduct_w/2,jww-2*fanduct_shell,od-2*fanduct_shell]); | 348 | cube(size=[fanduct_w/2,jww-2*fanduct_shell,od-2*fanduct_shell]); |
349 | rotate([0,0,-a]) translate([0,-nozzles_apart/2,0]) duct(what=what); | 349 | rotate([0,0,-a]) translate([0,-nozzles_apart/2,0]) duct(what=what); |
350 | } // intersection | 350 | } // intersection |
351 | translate([0,0,-fanduct_elevation]) sphere(r=.5); | 351 | translate([0,0,-fanduct_elevation]) sphere(r=.5); |
352 | } // hull | 352 | } // hull |
353 | } // what=="out" | 353 | } // what=="out" |
354 | if(what=="in") { | 354 | if(what=="in") { |
355 | translate([0,0,-fanduct_elevation/2-1+epsilon]) | 355 | translate([0,0,-fanduct_elevation/2-1+epsilon]) |
356 | cube(size=[2*(fanduct_ir+2*fanduct_shell+fanduct_w+1),nozzles_apart+2*(fanduct_ir+2*fanduct_shell+fanduct_w+1),fanduct_elevation+2],center=true); | 356 | cube(size=[2*(fanduct_ir+2*fanduct_shell+fanduct_w+1),nozzles_apart+2*(fanduct_ir+2*fanduct_shell+fanduct_w+1),fanduct_elevation+2],center=true); |
357 | for(my=[0,1]) mirror([0,my,0]) | 357 | for(my=[0,1]) mirror([0,my,0]) |
358 | translate([0,nozzles_apart/2,-hotend_clearance]) | 358 | translate([0,nozzles_apart/2,-hotend_clearance]) |
359 | cylinder(r1=hotend_clearance*2,r2=0,h=hotend_clearance*2,$fn=4); | 359 | cylinder(r1=hotend_clearance*2,r2=0,h=hotend_clearance*2,$fn=4); |
360 | } | 360 | } |
361 | } // difference | 361 | } // difference |
362 | } | 362 | } |
363 | 363 | ||
364 | module dual_simple(what=what) { | 364 | module dual_simple(what=what) { |
365 | for(my=[0:1]) mirror([0,my,0]) if(what=="in") { | 365 | for(my=[0:1]) mirror([0,my,0]) if(what=="in") { |
366 | difference() { | 366 | difference() { |
367 | hull() { | 367 | hull() { |
368 | translate([0,nozzles_apart/2+fanduct_ir+fanduct_shell+fanduct_w/2,0]) | 368 | translate([0,nozzles_apart/2+fanduct_ir+fanduct_shell+fanduct_w/2,0]) |
369 | cylinder(d=fanduct_w+2*fanduct_shell,h=fanduct_h*2/3+2*fanduct_shell); | 369 | cylinder(d=fanduct_w+2*fanduct_shell,h=fanduct_h*2/3+2*fanduct_shell); |
370 | translate([0,nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) | 370 | translate([0,nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) |
371 | rotate([0,90,0]) cylinder(r=.5,h=fanduct_w*2,center=true); | 371 | rotate([0,90,0]) cylinder(r=.5,h=fanduct_w*2,center=true); |
372 | } | 372 | } |
373 | rr = 2*(fanduct_ir+fanduct_shell*2+fanduct_w+2); | 373 | rr = 2*(fanduct_ir+fanduct_shell*2+fanduct_w+2); |
374 | translate([-rr/2,0,0]) mirror([0,0,1]) cube(size=[rr,rr,rr]); | 374 | translate([-rr/2,0,0]) mirror([0,0,1]) cube(size=[rr,rr,rr]); |
375 | } | 375 | } |
376 | }else if(what=="out") { | 376 | }else if(what=="out") { |
377 | hull() { | 377 | hull() { |
378 | translate([0,nozzles_apart/2+fanduct_ir+fanduct_shell+fanduct_w/2,fanduct_shell]) | 378 | translate([0,nozzles_apart/2+fanduct_ir+fanduct_shell+fanduct_w/2,fanduct_shell]) |
379 | cylinder(d=fanduct_w,h=fanduct_h*2/3); | 379 | cylinder(d=fanduct_w,h=fanduct_h*2/3); |
380 | translate([0,nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) | 380 | translate([0,nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) |
381 | rotate([0,90,0]) cylinder(d=.5,h=fanduct_w*2,center=true); | 381 | rotate([0,90,0]) cylinder(d=.5,h=fanduct_w*2,center=true); |
382 | } | 382 | } |
383 | } | 383 | } |
384 | } | 384 | } |
385 | 385 | ||
386 | if(dual) { | 386 | if(dual) { |
387 | if(type=="simple") dual_simple(what); | 387 | if(type=="simple") dual_simple(what); |
388 | else if(type=="jets") dual_jets(what); | 388 | else if(type=="jets") dual_jets(what); |
389 | else dual(what); | 389 | else dual(what); |
390 | }else if(type=="circular") circus(what); | 390 | }else if(type=="circular") circus(what); |
391 | else if(type=="3jets") jets(what); | 391 | else if(type=="jets") jets(what); |
392 | } | 392 | } |
393 | 393 | ||
394 | // ***air intake | 394 | // ***air intake |
395 | module intake(what) { | 395 | module intake(what) { |
396 | module placeit() { | 396 | module placeit() { |
397 | translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell]) | 397 | translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell]) |
398 | rotate([0,-90,0]) | 398 | rotate([0,-90,0]) |
399 | children(); | 399 | children(); |
400 | } | 400 | } |
401 | if(what=="in") { | 401 | if(what=="in") { |
402 | placeit() translate([0,-inlet_w/2,0]) { | 402 | placeit() translate([0,-inlet_w/2,0]) { |
403 | difference() { | 403 | difference() { |
404 | cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell]) | 404 | cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell]) |
405 | rotate([-90,0,0]) | 405 | rotate([-90,0,0]) |
406 | translate([0,0,-1]) | 406 | translate([0,0,-1]) |
407 | cylinder(r=inlet_h,h=inlet_w+2*fanduct_shell+2,$fn=inlet_h*4); | 407 | cylinder(r=inlet_h,h=inlet_w+2*fanduct_shell+2,$fn=inlet_h*4); |
408 | } | 408 | } |
409 | // supports | 409 | // supports |
410 | for(i=[-1,0,1]) | 410 | for(i=[-1,0,1]) |
411 | translate([-fanduct_shell, | 411 | translate([-fanduct_shell, |
412 | (i+1)*(inlet_w-extrusion_width)/2, | 412 | (i+1)*(inlet_w-extrusion_width)/2, |
413 | -inlet_away-fanduct_w/2]) | 413 | -inlet_away-fanduct_w/2]) |
414 | cube(size=[fanduct_shell+1, | 414 | cube(size=[fanduct_shell+1, |
415 | extrusion_width, | 415 | extrusion_width, |
416 | inlet_long_l+fanduct_shell+inlet_away+fanduct_w/2]); | 416 | inlet_long_l+fanduct_shell+inlet_away+fanduct_w/2]); |
417 | } | 417 | } |
418 | hull() { | 418 | hull() { |
419 | placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0]) | 419 | placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0]) |
420 | cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]); | 420 | cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]); |
421 | translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0]) | 421 | translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0]) |
422 | translate([0,-inlet_w/2-fanduct_shell/2,0]) | 422 | translate([0,-inlet_w/2-fanduct_shell/2,0]) |
423 | cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]); | 423 | cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]); |
424 | } | 424 | } |
425 | }else if(what=="out") { | 425 | }else if(what=="out") { |
426 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) | 426 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) |
427 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_long_l+fanduct_shell+1]); | 427 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_long_l+fanduct_shell+1]); |
428 | hull() { | 428 | hull() { |
429 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) | 429 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) |
430 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,fanduct_shell]); | 430 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,fanduct_shell]); |
431 | translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,fanduct_shell]) | 431 | translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,fanduct_shell]) |
432 | translate([0,-inlet_w/2+fanduct_shell,0]) | 432 | translate([0,-inlet_w/2+fanduct_shell,0]) |
433 | cube(size=[1,inlet_w-2*fanduct_shell,fanduct_h]); | 433 | cube(size=[1,inlet_w-2*fanduct_shell,fanduct_h]); |
434 | } | 434 | } |
435 | } | 435 | } |
436 | } | 436 | } |
437 | 437 | ||
438 | // ***DUCT TAILS!!! WOO-OO! (every day they're out there making duct tails…) | 438 | // ***DUCT TAILS!!! WOO-OO! (every day they're out there making duct tails…) |
439 | module tails(what) { | 439 | module tails(what) { |