How is open solar magnetic flux lost over the solar cycle