IGBT Parameterized from SPICE Results

This example shows one method for tuning Simscape models to match results from SPICE simulators. Simulations are run externally in LTSpice and the lookup table parameters are extracted from those results.

Contents

Workflow

The following image shows the workflow to extract the fundamental switching characteristics from LTSpice devices to Lookup Table Data, to be used for the Simscape Electrical N-Channel IGBT block

Model

open_system('ee_igbt_param_LTS')

set_param(find_system('ee_igbt_param_LTS','FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off')

Simulation Results from Simscape Logging

The plot below compares the results of simulations in Simscape with results from LTSpice. They do not match because the parameter values in Simscape are simply the default value and do not match the device modeled in LTSpice.

load IGBT_LUT_Default
h2_ee_igbt_param_LTS = ee_igbt_param_LTS_plot2compare('IRF1310', vGVec);
Simscape simulation started with vG = 2.8 V
Simscape simulation started with vG = 8.35 V
Simscape simulation started with vG = 15.78 V

Using MATLAB, a netlist for a MOSFET test harness is created. Simulations in LTSpice are run using a batch file, and the results are brought back into MATLAB. Postprocessing the results generates the lookup table parameters we can use in the Simscape Electrical IGBT model.

Repeating the comparison, we see the simulation results now match.

ee_igbt_param_LTS_generate_param_IRF1310
Started LTSpice simulation
Finished LTSpice simulation
Warning: Directory already exists. 
Generated mat file for Gate Voltage: -2V
Generated mat file for Gate Voltage: -1V
Generated mat file for Gate Voltage: 0V
Generated mat file for Gate Voltage: 1V
Generated mat file for Gate Voltage: 2V
Generated mat file for Gate Voltage: 3V
Generated mat file for Gate Voltage: 4V
Generated mat file for Gate Voltage: 5V
Generated mat file for Gate Voltage: 6V
Generated mat file for Gate Voltage: 7V
Generated mat file for Gate Voltage: 8V
Generated mat file for Gate Voltage: 9V
Generated mat file for Gate Voltage: 10V
Generated mat file for Gate Voltage: 11V
Generated mat file for Gate Voltage: 12V
Generated mat file for Gate Voltage: 13V
Generated mat file for Gate Voltage: 14V
Generated mat file for Gate Voltage: 15V
Generated mat file for Gate Voltage: 16V
Generated mat file for Gate Voltage: 17V
Generated mat file for Gate Voltage: 18V
Generated mat file for Gate Voltage: 19V
Generated mat file for Gate Voltage: 20V
Simscape simulation started with vG = 2.8 V
Simscape simulation started with vG = 8.35 V
Simscape simulation started with vG = 15.78 V
%clear all
close all
bdclose all