Most diodes rectify because of a p-n junction's built-in electric field. A self-switching nanodiode does it a completely different way: a single, undoped semiconductor sheet is cut by two insulating trenches into a narrow, deliberately bent channel a few tens of nanometres wide. Electrons steered in from the "easy" side flow smoothly through the kink; electrons pushed in from the other side strike the trench wall at a bad angle and are mostly reflected, so the identical piece of material conducts far better one way than the other — rectification from shape alone. This simulation renders that channel in 3D, streams individual electrons through it as instanced particles under a controllable bias, and lets you tune the bend angle and neck width to see how the geometry — not doping — sets the rectification ratio, including an AC-drive mode showing the same mechanism turning an oscillating voltage into a mostly one-directional current, as used in real zero-bias THz rectennas.