MATLAB Examples

Buck Converter Thermal Model

This example models the thermal dynamics of MOSFETs in a synchronous buck converter. It matches the structure of the Synchronous Buck Converter With Thermal Dynamics model (>> elec_switching_power_supply_thermal). Omitting the electrical switching dynamics allows the simulation to take much larger time steps, dramatically reducing the amount of time it takes for the simulation to calculate steady-state temperatures for the MOSFETS.

The average losses during switching cycles are needed to determine the heat that the MOSFETs produce. This is obtained by running the detailed model (>> elec_switching_power_supply) which postprocesses the logged data and saves the losses to workspace variables P_MOSFET1 and P_MOSFET2. The simplified thermal model can then be run, and the final temperatures of the MOSFETs are saved to workspace variables T_junction1, T_case1, T_heatsink1, T_junction2, T_case2 and T_heatsink2. Re-running the detailed model using these temperatures as the starting conditions yields a more accurate result for the behavior of the system since the device characteristics depend on temperature.



Simulation Results from Simscape Logging

The plot below shows the temperature of the MOSFETS over time. Running the simulation for a long period of time enables the steady-state temperatures to be determined. The final temperatures of this simulation can be used as the starting conditions for a detailed electrical simulation where the device characteristics depend on temperature.