This tutorial describes how to configure the OPAL-RT Power Electronics Add-On to simulate a grid-tied PMSM drive and machine with a closed-loop controller. We will discuss deploying, running, and monitoring the simulation in real-time.
The eHS circuit model used in this example was created using the Simscape Electrical Specialized Power Systems Simulink Blockset (see below). It represents a grid-tied, three-phase diode rectifier for charging the DC Link, as well as a two-Level, three-phase universal bridge. The bridge is electrically connected to the PMSM SH model through the project configuration. We generate three sine waves using the built-in FPGA signal generators to simulate the U01 Va, U02 Vb, and U03 Vc AC sources in the electrical circuit. The universal bridge gates SW01_06 INVERTER are controlled using signals from the Sinusoidal PWM generators. The PMSM calculated currents are fed back to the universal bridge through the current sources U04 IaPMSM and U05 IbPMSM. Nominal operating speeds of the example PMSM are between 1500 and 3000 RPM.
The tutorial has been split into the following sections: