set the rotational reference frame, Vd ref = 0 and Vq ref = fixed value
the fixed value of the Vq ref depends on how much modulation index you want to apply for the inverter
for more information regarding the modelling of the IPMSM for FOC please read the following paper:
L. Zhong, M. F. Rahman, W. Y. Hu and K. W. Lim, "Analysis of direct torque control in permanent magnet synchronous motor drives," in IEEE Transactions on Power Electronics, vol. 12, no. 3, pp. 528-536, May 1997, doi: 10.1109/63.575680.