Сравнение техник моделирования DC/DC преобразователей
作者
贡献者
%% Parameters for DC-DC Converter Model Fidelity Comparison example
% This example shows how to use different levels of fidelity in DC-DC
% converters. The system contains three buck-boost converters. The top
% converter uses an ideal switch at a sample time of 10 us. To yield
% accurate results even though the model is under sampled at a sample
% time of 50 us, the middle converter uses an averaged switch with
% averaged pulse. To further increase the sample rate and to operate as
% an ideal averaged converter, the bottom converter uses an averaged
% switch and duty cycle instead of gate pulse. The Control subsystem
% contains a PWM generator. The Scopes subsystem contains Scope blocks
% that allow you to see the simulation results.
% Copyright 2019-2023 The MathWorks, Inc.
%% System Parameters
Vdc = 48; % DC supply voltage (V)
Ron = 0.01; % Converter On-state resistance (Ohm)
diode_Vf = 0.6; % Converter protection diode forward voltage (V)
diode_Ron = 0.001; % Converter protection diode on resistance (Ohm)
diode_Goff = 1e-5; % Converter protection diode off conductance (1/Ohm)
Ldcdc = 8e-4; % Converter inductance (H)
Cdcdc = 2e-4; % Converter capacitance (F)
Rload = 2; % Load resistance (Ohm)
%% Control parameters
fsw = 1e3; % Converter switching frequency (Hz)
Ts = 1e-5; % Sample time for PWM generation