A model for electromigration behaviour in terms of flux divergences