Built · two weeks and six revisions; a second part in November
Hood vent adapter
A 3D-printed duct that joins a cooker hood to a wall pipe that is 85 mm higher and 95 mm to one side of it, designed in Python rather than CAD and printed in four bolted pieces.
Built with: Python · numpy · trimesh · manifold3d · PETG · Bambu Lab P1S
The cooker hood’s outlet points upwards. The pipe through the wall is 85 mm above the top of the hood and 95 mm to the right of the outlet, and it’s a different diameter. No fitting you can buy makes that journey in the space available, and the usual answer, a length of flexible hose crushed into the gap, throttles the hood.
So I measured everything with a tape and described the problem to Claude, and we designed the part in Python. I’m not a 3D modeller and Fusion 360 was available but declined. The duct is a lofted sweep along a cubic Bézier centreline with a rotation-minimising frame. The clever bit is that the cross-section is ovalised: flattened in the plane of the bend and widened across it, so the free area stays constant through a bend far tighter than any off-the-shelf elbow. Then it’s split into four printable pieces, lengthwise along a seam and across at mid-length, with bolted flanges. Airflow was checked two ways, with handbook loss coefficients and with a potential-flow solve over a voxelised copy of the actual airway. It costs 30 Pa at 300 m³/h, against 72 for a mitred elbow and 107 for flexible hose. Almost all of the difference is the bend itself: by holding the bend radius to hydraulic diameter at 0.68 with the ovalised section, it pays a loss coefficient of 0.44 for the turn where a mitred elbow pays 1.2 and crushed hose 1.5.
How it was built
Mostly by printing things and finding out. A green PLA test print of the whole duct, a printed jig of just the flange rings to check the offsets against the real wall, then the final pieces in PETG. Six revisions, and every serious defect was found at the printer rather than by the model’s own checks:
- Rev 3 exported all four pieces upside down. One sign flip in the alignment, so the first layer was a few square millimetres instead of a few thousand. Every preview rendered with the same wrong transform, so it looked fine on screen.
- Rev 4 had an 18 mm condensate trough at the bottom of the bend. The lateral bend was the tightest, so the oval rolled tall and narrow there and the floor dropped. I spotted it in the printed jig.
- Rev 5 added a buttress so the thinnest piece would stop failing mid-print. The buttress destroyed 15 of the 18 bolt seats, which came to light after all four PETG pieces were printed.
Both of the last two were things that had been measured correctly at an earlier revision and then silently invalidated by a later change. The fix was a set of hard gates that run on every build and raise rather than warn: fold margin, floor dip, and a ray probe of every bolt hole for a flat washer seat on both faces. Bolt placement became self-validating, choosing from candidates along the seam and around the ring and rejecting any without a seat. Rather than reprint half a kilo of PETG, I glued the rev-5 pieces together using the bolts as alignment guides. It’s installed and it works.