In this paper, the boundary discretization method is used to improve the traditional subdomain model. The improved model can be used to calculate the magnetic field distribution in the region containing non-orthogonal boundary, avoiding the influence of the simplified stator slot or permanent magnet shape on the results in calculating the motor magnetic field using the traditional subdomain model. In addition, the improved subdomain model can also be used to calculate the air-gap flux density when the rotor is eccentric, instead of segmenting the air-gap to an equivalent state without eccentricity. The calculation object of this paper is a surface-mount permanent magnet motor with a rectangular stator slot. The air-gap flux density under no-load and load conditions is calculated, respectively. Since the improved subdomain model does not need to simplify the stator slot shape, the magnetic potential in the stator slot is also calculated. Finally, the air-gap flux density under rotor eccentricity is calculated, and the influence of the calculating parameters on the results of the improved subdomain model is discussed. All the calculated results are compared with those obtained by the finite element method, which verifies the accuracy of the improved calculation model.