Documentation Home Page eHS Toolbox Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Three Phase Diode Rectifier - SPS

Description


This model illustrates the use of the eHS solver to compute the outputs of a diode bridge rectifier with tri-phased inputs. A serial RL component is added on each phase to model the source impedance. In this example we used a SimPowerSystems model.

sim power systems OP4510 OP5607 OP5707

Table of Contents

Requirements


To run your mode propely, the folllowing software must be installed:

  • RT-LAB.

  • RT-EVENTS.

  • eFPGASIM.

  • SimPowerSystems

The eHS solver requires an FPGA-based hardware board. This board will be configured with the attached binary file automatically when the model is loaded in the RT-LAB interface. This model uses either a VC707, TE0741 as its active carrier board (OP5607 / OP5700 or OP4510 simulators). Please refer to the product documentation for details on version compatibility.

Setup and Connections


This model must be run with the Hardware Synchronized option, with the XHP mode enabled. It does not require any external I/O hardware except the active control card, which can be either a VC707 or TE0741 (OP5607 / OP5700 or OP4510 simulators).

Please note that following setup :

  • The VC707/TE0741 kit must be connected to the target PCIe bus and detected through the RT-LAB interface "Tools > Get I/O Infos" procedure.

  • The Simulink simulation step time is set to 20 microseconds as the variable Ts in the RT-LAB model "InitFcn" and "PreLoadFcn" callbacks. To modify it, select "File > Model Properties...", and then select the "Callbacks" tab.

Procedure with SimPowerSystems


  1. Click on "Run this demo" on the top of this page (if this page is displayed in the Matlab demo browser). A popup window will let you select the platform on which the solver should be running. Select the appropriate platform according to your system documentation, then select OK. Go to SM_eHS\eHS\eHS CommBlk and select the name of SimPowerSystemss model in circuit file name section. The RT-LAB model using the eHS solver will open automatically, as well as the SimPowerSystems model describing the circuit to be solved. Note that depending on the platform selected, a different RT-LAB model is opened, with an appropriately configured OpCtrl block, but both versions refer to the same SimPowerSystems circuit.

  2. Verify that the ML605EX1, OP7161EX1, VC707 or OP4500 board ID is set correctly in the OpCtrl block in the RT-LAB model SM_Controller subsystem.

  3. You will find two SimPowerSystemss models for the same circuit in each model, you will find a three-phase diode bridge that implements a voltage rectifier. You will also find a RL branch on each phase of the three-phase inputs. This is added to model the input impedance. You will finally see a resistive load, and various voltage and current measurement blocks. For more information on components supported by eHS, please consult section 3 of the eHS user guide.

  1. The three sources of the three phases in input (Va, Vb, Vc) will be controlled from the RT-LAB console during the real-time simulation. Similarly, all seven voltage and current measurements will be sent back to the RT-LAB model console. Open both the RT-LAB console and master subsystem to see how the three sources are controlled from parameters in the console and generated as a three equally separated phases of a sine wave in the RT-LAB master subsystem.

  1. When the model is compiled in Simulink, the configuration of the eHS solver will be generated according to the SimPowerSystems circuit characteristics. Elements will be put into matrices and stored into .mat files that will be transferred into the solver when the model is run from the RT-LAB interface. To generate the matrices, go to SM_eHS\eHS\eHS Gen3 CommBlk and select "Update eHS matrices". This step is facultative, as matrices are regenerated during model compilation in RT-LAB.

  2. To run a simulation including the eHS solver in real time, create a RT-LAB project and add the RT-LAB model of this example into the project. The SimPowerSystems model should not be added to the RT-LAB project, as it does not need to be transferred to the target computer for execution. Compile the model, then assign a target node to run it in real time, then load the model onto it

  3. Execute the real-time simulation, changing the 3-phase input frequency, amplitude and phase for better results. The following results have been obtained from the original model by setting the RT-LAB Probe control to acquire 2000 samples per signal for acquisition group #1.

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter