A dynamic global model of the plasmasphere