Dietro
lo Stampo
How a fan drawn for a 3D printer became a moulding cell: the request, the research, the prototype that rendered black, the simulation, and the narrated demo. One session, in the order it happened.
One fan, made by the thousandThe brief, as it arrived
Produce the fan not with a 3D printer but with industrial moulding. Design a 3D simulation of a press that can mass-produce it, as a single HTML file with an animated press and mould, research the best practice to run it without flash and burrs, and test it in the Orca IDE browser.
The part already existed as fan-print.stl, built parametrically for a low-poly GPU model. Before designing anything, the file was measured: the mould, the press and every number that follows are sized on these figures, not on assumptions.
Each bar is a number that changed the design: the undercut ruled out bump-off ejection, the hub wall set the cycle time, the vent limits became the flash monitor's thresholds.
Primary sources, read in the backgroundA research agent worked while the scene was being built
The question was narrow: how are small helical fan impellers actually moulded, and what keeps the parting line closed? The agent was told to trust supplier processing guides, tooling catalogues, machine data sheets and patents, and to label anything weaker as secondary.
Output: research-fan-injection-molding.md, about 2 400 words, every number linked to its source. It settled the parting surface (contoured along the blades, no slides, because the tip width of 0.84 rad is under the 0.898 rad pitch), the gate (centre of the hub) and the ejection (sleeve on the hub, core that collapses).
The first render was blackThree bugs, three different ways of finding them
- Mojibake
Labels showed
·and▶. The file had nometa charsetand the test server sends none, so the browser guessed Windows-1252. Seen in the first Orca screenshot. - Dead script
The flash model variable was read before its
let, which threw at start-up and killed the whole page. Orca's console was empty; Playwright's main-world console showed the stack trace in one call. - Wrong by 175 mm
The moving half of the mould was never offset to the parting line, so the core plate sat inside the fixed platen and the fans were behind the cavity camera. Found by asking the page where a fan actually was: (0.3, 75, 75) instead of (−175, 75, 75).
- Lesson
Orca's
evalruns in an isolated world and cannot see page globals, and its frame counter is throttled. A probe written into the DOM reported the truth: 72 to 103 fps, not 7.
A press that obeys the numbersWhat the model actually computes
The scene is built in millimetres: an 800 kN toggle press, a 296 × 296 mm mould base with four cavities on a 150 mm pitch, a hot-runner manifold with a valve-gate drop on each hub, cooling circuits, a collapsible core and an ejector sleeve per cavity. The real STL is the part in every cavity, quantised to 16-bit and decoded in the page.
- Fill is a shader: fragments beyond the melt-front radius are discarded, so the cavity fills from the hub gate to the blade tips, exactly as a centre-gated impeller does.
- Clamp comes from the toggle geometry: two links of 385 mm, knee height √(L² − D²/4), locked over at full extension.
- Flash is a rule set on the setpoints: margin under 1.1× warns, under 1.0× flashes; vents deeper than the material limit flash at the tips; hold above 80 % of peak and melt outside the window warn. The parting line on parts and mould turns red.
- Time is real: 1.5 s close, 0.9 s fill, 4 s hold, 16 s cooling, 1.4 s open, 1.7 s eject, with the pressure and clamp traces drawn against it.
From STL to a tab in the IDEEvery step is a file or a command you can rerun
- 19 screenshots decoded from the CLI's base64 and read back, each one driving the next fix: charset, the dead script, the chart overflowing its row, cameras inside opaque steel, the 175 mm offset.
- Behaviour checked by driving the DOM: sliders set to 400 kN and 0.05 mm vents produced "Flash · bava" with the two causes named; switching to ABS reset melt, vents and the 13.0 g shot.
- Performance from inside the page: an in-page probe writes fps and the update, render and chart milliseconds into a data attribute once a second. Orca's own GPU is an AMD Radeon through Direct3D 11; the page draws a frame in under 2 ms.
Making the loop readableTwo requests on the finished page
The cycle is honest about time, and honesty is slow: sixteen seconds of cooling is most of the loop. The first request was to accelerate the long phases. The second, once notes had been added to every phase, was that they went by too fast to read.
Demo
Hold runs at 2.5×, cooling at 6×. The loop takes about 20 s while every gauge and the chart axis stay in real seconds.
Tour
The camera follows the phase: cell for closing, X-ray cavity for fill and hold, toggle for cooling, mould for opening and ejection.
Notes
Thirteen notes tied to sub-steps. In Demo the simulation holds 4 s on each new note while a bar counts down, then continues.
Three files and one design changeAnd what to do next
fan-press-sim.html
The simulation, one self-contained file, also published as an artifact with a private link.
research-fan-injection-molding.md
The sourced numbers behind every threshold in the page.
work/template.html + build.py
The editable source and a one-command rebuild, with a flag to re-quantise the STL.
The finding
The snap chamber in the bore is an 18 % undercut. Glass-filled nylon strips 1–2 %. Move the snap into the metal pin and the mould loses its only expensive part.
Next, if the fan goes to a toolmaker: core the hub to halve the 25 s cycle, add a balancing land on the hub back face, and write the 0.05 mm blade-edge flash limit on the drawing.