This is a PMSM model which I tried developing. Following were my approach:
1) Maximum usage of self made Simulink blocks rather talking from simscape library
2) Parks and Clarks transormation done without the blocks
Kindly let me know the errors since I am not getting the desired output
Both the Simulink Model and the MATLAB Code are attached.