Modelling of magnetic pull in large size generator