%% Skript zur Berechnung der Verluste der Gleichrichter-FETs

clear all
close all




fs = 100e3;             %Switching frequency [Hz]
n = 12;                 %Turns ratio
V_DS_max = 600/n *2;    %Maximum Drain-Source-Voltage [V]
Is_rms = 1000/24;       %Secondary RMS Current [A]
R_DS = 0.13;            %Drain-Source-Resistance [Ohm]
C_oss = 53e-12;         %Output Capacitance [F]
V_DS_meas = 400;        %Drain-Source-Voltage during measurement of Coss [V]
C_oss_avg = C_oss*sqrt(V_DS_meas/V_DS_max); %Average output capacitance [F]
t_r = 30e-9;            %Rise time [s]
t_f = 30e-9;            %Fall time [s]     
V_GS = 10;              %Gate-Source-Voltage [V]
Q_g = 100e-9;           %Gate Charge Miller Plateau[C]

%Calculate losses
P_cond = power(Is_rms,2)*R_DS;      %Conduction Losses [W]
P_cap = 2*(Q_g*V_GS*fs/2 + V_DS_max*V_DS_max*C_oss_avg*fs/2);            %Capacitive switching losses [W]
P_sw = 1/2 * Is_rms * V_DS_max * fs * (t_r+t_f);                         %Switching loss [W]
P_loss = 2*(P_cond+P_cap+P_sw);     %Losses of the rectifier [W]








