The design of electromagnetic devices submitted to high mechanical stress is a growing issue and requires consequently appropriate modeling tools. We propose in this paper to implement a multiscale model for magneto-elastic behavior into a finite-element code. The 2-D magneto-elastic constitutive law is derived from a multiscale model based on a local energetic approach. The method is applied to study the effect of stress on the magnetic behavior of a switched reluctance motor. This work provides a finite-element tool for the modeling of the effect of multiaxial stress on electrotechnical devices.