-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVOC_param.m
More file actions
54 lines (45 loc) · 1.43 KB
/
VOC_param.m
File metadata and controls
54 lines (45 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
clear all
clc
%%%%%%%% source voltage %%%%%%%%%%%%%%%%
U = 311 ; % Amplitude voltage
RMS = U / sqrt(2) ; % Phase voltage V
f=50 ; % Source voltage frequency
w=2*pi*f ; % source voltage pulsation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% Modélisation et commande d’une génératrice
%%% Synchrone à aimants permanents dédiée
%%% à la conversion de l’énergie éolienne
%Rs = 1.137 ;
%Ls = 2.7e-3 ;
fluxeff = 0.15 ;
Ka = fluxeff ;
p = 4 ; % nombre de paires de pôles
L = 8e-3 ; % Inductor of the source
R = 0.1 ; % Resistance of the source
C = 2350e-6 ; % DC-link capacitor
RL =120 ; % Load resistance
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% Udcref controller %%%%%%%%%%%%%%%%%%%%
Udcref = 120 ; % DC_link voltage (V)
Hp = 0 ;
Hq = 0 ;
fs = 500000 ; % sampling period
Ts = 1/fs ; % sampling period
Fsw = 10e3 ; % Switching frequency
Tsw = Ts * 10 ;
fsw_diviser = 5 ;
alphai = 0.9*(2*pi*fs/10) ; %(3.12 equation)
U_Kp = 1 ;
U_Ki = 1 ;
Id_Kp = alphai*L ;
Id_Ki = alphai*R ; % 100000
Iq_Kp = Id_Kp ;
Iq_Ki = Id_Ki ; % 1000000
Carrier_amp = 100; % Triangular wave Amplitude
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% constant conversion %%%%%%%%%%%%%%%%
radps2rpm = 30/pi ; % rad/s to tr/min
rpm2radps = pi/30 ; % tr/min ro rad/s
wm2we = p ; % mecanical velocity to electrical velocity
radps2hz = 1/(2*pi) ; % rad/s to Hz
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%