Does anyone have experience of modeling a PMSG on the d/q reference frame? I built one simple model according to the governing equation. The inputs are Vd, Vq and Omega. Outputs are id and iq. I set values for input variables which corresponds to zero d-axis value in a steady state of the generator. So I was hoping a zero id value would be obtained. But the results was not as that I wanted. I checked the equation and everything, seemed like nothing was wrong. Anyone had this problem before? Please tell me how to solve the problem.