Does not run in simulation. Left is mains line voltage 117 R.M.S. with coil of wire wrapped around U shaped or other magnetic material. Lamp is fuse at 5 or 10 amps or thin wire. Close switch blow fuse. If fuse or fine copper wire breaks when voltage is near peak we make our permanent magnet. If not strong enough repeat fuse blow cycle.