author | Michael Krelin <hacker@klever.net> | 2016-07-01 13:31:30 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-07-01 13:31:30 (UTC) |
commit | 098bb6886664983fa14c2f37ddaf117406534521 (patch) (unidiff) | |
tree | 83cec7246abdea72c7804754b1f0250620bf5c8e /fanduct.scad | |
parent | dfdd8df14a551e9af62a7730bf65a4c512bc1b3f (diff) | |
download | fanductory-098bb6886664983fa14c2f37ddaf117406534521.zip fanductory-098bb6886664983fa14c2f37ddaf117406534521.tar.gz fanductory-098bb6886664983fa14c2f37ddaf117406534521.tar.bz2 |
minor dual airguides adjustments
-rw-r--r-- | fanduct.scad | 11 |
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 | |||
@@ -198,101 +198,102 @@ module fanduct(type=type,ductshape=ductshape,dual=dual) { | |||
198 | intersection() { | 198 | intersection() { |
199 | translate([md-fanduct_w/2,-jww/2+fanduct_shell,fanduct_shell]) | 199 | translate([md-fanduct_w/2,-jww/2+fanduct_shell,fanduct_shell]) |
200 | cube(size=[fanduct_w/2,jww-2*fanduct_shell,od-2*fanduct_shell]); | 200 | cube(size=[fanduct_w/2,jww-2*fanduct_shell,od-2*fanduct_shell]); |
201 | duct(what=what); | 201 | duct(what=what); |
202 | } | 202 | } |
203 | translate([0,0,-fanduct_elevation]) sphere(r=.2); | 203 | translate([0,0,-fanduct_elevation]) sphere(r=.2); |
204 | } | 204 | } |
205 | } | 205 | } |
206 | } | 206 | } |
207 | if(what=="in") { | 207 | if(what=="in") { |
208 | translate([0,0,-fanduct_elevation-2+epsilon]) | 208 | translate([0,0,-fanduct_elevation-2+epsilon]) |
209 | cylinder(r=fanduct_ir+fanduct_shell*2+fanduct_w+1,h=fanduct_elevation+2); | 209 | cylinder(r=fanduct_ir+fanduct_shell*2+fanduct_w+1,h=fanduct_elevation+2); |
210 | translate([0,0,-hotend_clearance]) | 210 | translate([0,0,-hotend_clearance]) |
211 | rotate([0,0,30]) | 211 | rotate([0,0,30]) |
212 | cylinder(r1=hotend_clearance*2,r2=0,h=hotend_clearance*2,$fn=6); | 212 | cylinder(r1=hotend_clearance*2,r2=0,h=hotend_clearance*2,$fn=6); |
213 | } | 213 | } |
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, |
283 | extrusion_width, | 284 | extrusion_width, |
284 | inlet_long_l+fanduct_shell+inlet_away+fanduct_w/2]); | 285 | inlet_long_l+fanduct_shell+inlet_away+fanduct_w/2]); |
285 | } | 286 | } |
286 | hull() { | 287 | hull() { |
287 | placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0]) | 288 | placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0]) |
288 | cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]); | 289 | cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]); |
289 | translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0]) | 290 | translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0]) |
290 | translate([0,-inlet_w/2-fanduct_shell/2,0]) | 291 | translate([0,-inlet_w/2-fanduct_shell/2,0]) |
291 | cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]); | 292 | cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]); |
292 | } | 293 | } |
293 | }else if(what=="out") { | 294 | }else if(what=="out") { |
294 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) | 295 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) |
295 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_long_l+fanduct_shell+1]); | 296 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_long_l+fanduct_shell+1]); |
296 | hull() { | 297 | hull() { |
297 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) | 298 | placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) |
298 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,fanduct_shell]); | 299 | cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,fanduct_shell]); |