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.
v2.20 Thermal loss feature - S-Function - eHS Gen4
Description
This model illustrates the use of the thermal loss in eHS solver. User can see the different type of thermal loss based on the voltage, current, temperature and switching characteristics of the four inverter legs in real-time from CPU.
SCHEMATIC EDITOR S-function OP4512 OP4610 OP5607 OP5707
Requirements
The RT-LAB, Schematic Editor/Unified Database and eFPGASIM toolboxes must be installed on the host and target computers in order to run this example model properly. Please refer to the product documentation for details on version compatibility.
This example model does not require any IO connection.
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.
Please note that following setup:
The VC707 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 "PostLoadFcn" callbacks. To modify it, double-click on the "Model Initialization" block in the root of the RT-LAB model and modify accordingly the definition of the variable "Ts".
Procedure with SimPowerSystems
Run this demo : efsOpenExample('ThermalLosses_SE_rtlab');
Click on "Run this demo" on the top of this page (if this page is displayed in the Matlab demo browser). The RT-LAB model using the eHS solver will open automatically.
Verify that the VC707 board ID is set correctly in the OpCtrl block in the RT-LAB model SM_eHS subsystem.
There is 4 types of losses; turn ON switching loss, turn OFF switching loss, direct conducting loss, and reverse conducting loss for MOSFET. The Schematic Editor model has 4 inverter legs with a current source on the AC side, and a voltage source on the DC side. For each leg, only 1 type of losses will be assigned to the diode and to the switch.
Looking at the configuration, for each table you can see that most of the losses are multiplied by 0.
When the model is compiled in Simulink, the configuration of the eHS solver will be generated according to the Schematic Editor 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 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. Compile the model, then assign a target node to run it in real time, then load the model onto it;
Execute the real-time simulation, changing the Vdc, Iac, PWM frequency, and temperature will affect the loose. The following results have been obtained from the original model.
In the result, the blue waveforms show the expected losses based on the current, voltage and temperature. The yellow waveforms show the result obtained, in real-time, when adding switching information. Yellow waveforms should either be 0 or superimposed with the blue waveform.
Using the Foster network block heat transfer for the different component and table can be observed. In this example since only some losses are applied to each component, most component will remain at the ambient temperature.
Temperature for each table can be observed using the selector.
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