Open magnetic fields and the solar cycle