This is a Parametric Hose Adapter & Reducer designed for 3D printing. It creates a custom coupling to connect two pipes or hoses of different sizes (e.g., connecting a 60mm dust collection hose to an 80mm machine port).
It features a smooth, tapered internal transition to minimize air turbulence and clogs. It is fully parametric, meaning you can configure both sides independently to fit either inside a flexible hose (male connector) or over a rigid pipe (female/sleeve connector) simply by changing the settings.
Parameter Guide
General Settings
-
wall_thickness: The thickness of the plastic walls in millimeters. A value of 2.0 to 3.0 is standard for rigid adapters.
-
$fn: Controls the "smoothness" of the cylinder. A value of 200 or higher makes the circle look smooth; a low value (like 6) creates a hexagon.
Side A / Side B Settings
-
side_x_size: The specific dimension (in mm) of the hose or pipe you currently possess.
-
side_x_type: This tells the script how to interpret the size above.
-
ID (Hose Inner Diameter): Select this if you measured the hole of your hose. The adapter will generate a male end to plug INSIDE your hose.
-
OD (Hose Outer Diameter): Select this if you measured the exterior of a pipe. The adapter will generate a female sleeve to slide OVER your pipe.
-
-
side_x_length: How long (in mm) the straight connection section should be before the transition starts.
Transition Settings
-
transition_length: The length of the conical section connecting Side A to Side B. A longer transition creates a gentler slope, which improves airflow and reduces air resistance.
OpenSCAD
This model is built using OpenSCAD, a free, open-source software for creating 3D CAD models through code. Unlike traditional modeling software where you click and drag shapes, OpenSCAD reads a script (like the one provided) and builds the object based on your parameters. This makes it incredibly powerful for designs like this adapter, where exact dimensions matter.
How to use it:
-
Download: Install OpenSCAD for free from openscad.org.
-
Download: The file: ParametricHoseAdapter.scad from here and open it in OpenSCAD.
-
Customize: Open the Customizer panel (Window > Customizer) to see the easy-to-use sliders and dropdowns described above. Change the values to match your hoses.
-
Export: Press F6 to render the final model, then press F7 to save it as an .stl file for your 3D printer.
Tags
Source du modèle
