Numerous methods are developed to take into account the movement in electrical machines. In this paper, two methods are compared. The first one studies the mortar element method and the second is based on the polynomial interpolation. To solve the Maxwell equation, we used the scalar potential formulation. We will study the numerical behavior of the two methods and apply to a variable reluctance machine.