A plasmoid model for the solar wind