A simulation of the storm-time ring current