summaryrefslogtreecommitdiffabout
path: root/fanduct.scad
authorMichael Krelin <hacker@klever.net>2016-07-01 13:31:30 (UTC)
committer Michael Krelin <hacker@klever.net>2016-07-01 13:31:30 (UTC)
commit098bb6886664983fa14c2f37ddaf117406534521 (patch) (unidiff)
tree83cec7246abdea72c7804754b1f0250620bf5c8e /fanduct.scad
parentdfdd8df14a551e9af62a7730bf65a4c512bc1b3f (diff)
downloadfanductory-098bb6886664983fa14c2f37ddaf117406534521.zip
fanductory-098bb6886664983fa14c2f37ddaf117406534521.tar.gz
fanductory-098bb6886664983fa14c2f37ddaf117406534521.tar.bz2
minor dual airguides adjustments
Diffstat (limited to 'fanduct.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--fanduct.scad11
1 files changed, 6 insertions, 5 deletions
diff --git a/fanduct.scad b/fanduct.scad
index 132b9e8..690a4c8 100644
--- a/fanduct.scad
+++ b/fanduct.scad
@@ -214,69 +214,70 @@ module fanduct(type=type,ductshape=ductshape,dual=dual) {
214 } 214 }
215 } 215 }
216 216
217 module dual(what=what) { 217 module dual(what=what) {
218 module hulls(spots=dual_spots) { 218 module hulls(spots=dual_spots) {
219 for(my=[0,1]) mirror([0,my,0]) for(pn=[0:1:len(spots)-2]) hull() { 219 for(my=[0,1]) mirror([0,my,0]) for(pn=[0:1:len(spots)-2]) hull() {
220 for(p=[spots[pn],spots[pn+1]]) translate(p) children(0); 220 for(p=[spots[pn],spots[pn+1]]) translate(p) children(0);
221 children([1:$children-1]); 221 children([1:$children-1]);
222 } 222 }
223 } 223 }
224 if(what=="in") { 224 if(what=="in") {
225 cfn= 4; // clearance cutout $fn 225 cfn= 4; // clearance cutout $fn
226 difference() { 226 difference() {
227 hulls() { 227 hulls() {
228 cylinder(d=fanduct_w+2*fanduct_shell,h=2*fanduct_shell+fanduct_h/2); 228 cylinder(d=fanduct_w+2*fanduct_shell,h=2*fanduct_shell+fanduct_h/2);
229 translate([0,-nozzles_apart/2,-fanduct_elevation-fanduct_blowtarget]) sphere(d=.1); 229 translate([0,-nozzles_apart/2,-fanduct_elevation-fanduct_blowtarget]) sphere(d=.1);
230 } 230 }
231 translate([0,0,epsilon]) hull() for(my=[0:1]) mirror([0,my,0]) for(s=dual_spots) translate(s) 231 translate([0,0,epsilon]) hull() for(my=[0:1]) mirror([0,my,0]) for(s=dual_spots) translate(s)
232 mirror([0,0,1]) cylinder(d=fanduct_w+2*fanduct_shell+2,h=fanduct_elevation-fanduct_blowtarget+1); 232 mirror([0,0,1]) cylinder(d=fanduct_w+2*fanduct_shell+2,h=fanduct_elevation-fanduct_blowtarget+1);
233 for(s=[-1,1]) translate([0,s*nozzles_apart/2,-1]) 233 for(s=[-1,1]) translate([0,s*nozzles_apart/2,-1])
234 rotate([0,0,180/cfn]) cylinder(r=hotend_clearance/cos(180/cfn),h=fanduct_h+2*fanduct_shell+2,$fn=cfn); 234 rotate([0,0,180/cfn]) cylinder(r=hotend_clearance/cos(180/cfn),h=fanduct_h+2*fanduct_shell+2,$fn=cfn);
235 } 235 }
236 }else if(what=="out") { 236 }else if(what=="out") {
237 hulls() { 237 hulls() {
238 translate([0,0,fanduct_shell]) cylinder(d=fanduct_w,h=fanduct_h/2-fanduct_shell/2); 238 translate([0,0,fanduct_shell]) cylinder(d=fanduct_w,h=fanduct_h/2-fanduct_shell/2);
239 translate([0,-nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) sphere(d=.1); 239 translate([0,-nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) sphere(d=.1);
240 } 240 }
241 }else if(what=="airguides") { 241 }else if(what=="airguides") {
242 far = fanduct_ir+fanduct_shell+fanduct_w; 242 far = fanduct_ir+fanduct_shell+fanduct_w;
243 near = fanduct_ir; 243 near = fanduct_ir;
244 union() { 244 union() {
245 for(my=[0,1]) mirror([0,my,0]) { 245 for(my=[0,1]) mirror([0,my,0]) {
246 guideline([ [-far ,0], [0,0] ]); 246 guideline([ [-far ,0], [0, nozzles_apart/8] ]);
247 guideline([ [-far ,inlet_w/2/4], 247 guideline([ [-far ,inlet_w/2/4 ],
248 [-near ,nozzles_apart/2] ]); 248 [-near ,to_midduct/2] ]);
249 guideline([ [-near-fanduct_w/3,nozzles_apart/2+near+fanduct_w/3] ]); 249 guideline([ [-near-fanduct_w/3, to_midduct/2 ],
250 guideline([ [0 ,nozzles_apart/2+near+fanduct_w/2] ]); 250 [-near ,nozzles_apart/2+near ] ]);
251 guideline([ [0 ,nozzles_apart/2+near+fanduct_w*space_behind_nozzle/to_midduct] ]);
251 } 252 }
252 } 253 }
253 } 254 }
254 } 255 }
255 256
256 if(dual) dual(what); 257 if(dual) dual(what);
257 else if(type=="circular") circus(what); 258 else if(type=="circular") circus(what);
258 else if(type=="3jets") jets(what); 259 else if(type=="3jets") jets(what);
259 } 260 }
260 261
261 // ***air intake 262 // ***air intake
262 module intake(what) { 263 module intake(what) {
263 module placeit() { 264 module placeit() {
264 translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell]) 265 translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell])
265 rotate([0,-90,0]) 266 rotate([0,-90,0])
266 children(); 267 children();
267 } 268 }
268 if(what=="in") { 269 if(what=="in") {
269 placeit() translate([0,-inlet_w/2,0]) { 270 placeit() translate([0,-inlet_w/2,0]) {
270 difference() { 271 difference() {
271 cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); 272 cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]);
272 translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell]) 273 translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell])
273 rotate([-90,0,0]) 274 rotate([-90,0,0])
274 translate([0,0,-1]) 275 translate([0,0,-1])
275 cylinder(r=inlet_h,h=inlet_w+2*fanduct_shell+2,$fn=inlet_h*4); 276 cylinder(r=inlet_h,h=inlet_w+2*fanduct_shell+2,$fn=inlet_h*4);
276 } 277 }
277 // supports 278 // supports
278 for(i=[-1,0,1]) 279 for(i=[-1,0,1])
279 translate([-fanduct_shell, 280 translate([-fanduct_shell,
280 (i+1)*(inlet_w-extrusion_width)/2, 281 (i+1)*(inlet_w-extrusion_width)/2,
281 -inlet_away-fanduct_w/2]) 282 -inlet_away-fanduct_w/2])
282 cube(size=[fanduct_shell+1, 283 cube(size=[fanduct_shell+1,