X hits on this document

# Master of Science Thesis in Electric Power Engineering - page 112 / 114

321 views

0 shares

112 / 114

APPENDICES

%******************************************** % CONTROLLER PARAMETERS %********************************************

Ts

=

Fs

=

0.5*Tc; 1/Ts;

%

Sample

time,

half

of

triangul

# %ESTIMATED PARAMETERS

R_hat = R; L_hat = L; C_hat = C; Vpcc_hat = E

% probably, C hat = C OK g ; % Ph-to-gnd - Possible for st _

# Eg

%CURRENT PI Regulato alphaI = Fs/10*2*pi; Kpi = alphaI*L_hat Kii = alphaI*R_hat

r (thesis, state % Bandwidth

%VOLTAGE PI Regulato

r (thesis, state

alphaV = Fs/100*2*pi;

% Bandwidth

Kpv = alphaV*C hat/(3*Vpcc hat) Kiv = 0.01 _ _

• -

variable

• -

variable

%SATURATION (TO MODIFY, depends on r I s a t u r a t i o n _ u p p e r _ l i m i t = 5 0 ; % s a t u r I s a t u r a t i o n _ l o w e r _ l i m i t = - 5 0 ;

ectifier ation on

%FEEDFOWARD Ed_hat/Eq_hat FILTER alphaf_ff = alphaI/10;

%*********************************** % PLL PARAMETERS %*********************************** %Gain gamma1&2 : calculated in simul

*********

********* ink (we a

change) Fbandwidth_pll = 20; rho_pll = 2*pi*Fbandwidth_pll; gam1 = (rho_pll^2)/Vpcc_hat gam2 = 2*rho_pll/Vpcc_hat

%ban

dwidth in

%ban

dwidth in

%*********************************** % TESTS %*********************************** %INPUT STEP input_step_time = 0.025; input_step_value = 100;

*********

*********

103

***************************

*************************** ar wave period, Fs = 2*Fc

iff grid, otherwise, Vpcc <

# W=Vdc^2)

limit) Iref, V PI controller

***************************

*************************** ssume Ed hat and Eq hat can

_

_