Professional Documents
Culture Documents
Contents
1 Introduction 2
5 Conclusions 6
5.1 Development of the practice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
5.2 Conclusions on the sensitivity of the active power . . . . . . . . . . . . . . . . . . . . 6
5.3 Conclusions on the performance of the control of the voltage source . . . . . . . . . . 7
Appendices 8
List of Figures
1 Source changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Vdc2 control scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3 Profile references. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4 General System Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5 Tmabcdq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
6 V dc2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
7 Results for V dcref , Pref and Idc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
8 Compensator value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
9 Plots of the points asked. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1
1 Introduction
For the development of this document, the MatLab/Simulink program was used to build the system
and subsystems presented in the practice guide. In addition, the results of the different points of the
system that are requested are presented. Throughout the report, we will see the analysis of the graphs
and the system, so as their conclusions.
• 2. Remove the DC voltage source and add a DC current source in parallel with a DC capacitor
as suggested in the figures below:
• 3. Use the following value for the DC capacitor’s capacitance: Cc=5000e-6; %dc link capaci-
tance in farad
• 4. Augment the control scheme by generating Pref from the DC voltage control loop as suggested
below:
• 5. Use 600 (V) for the reference voltage. Design a PI controller that yields acceptable transient
performance.
• 6. Notice that now your commands (references) are Vdc,ref and Qref . The interpretation of Qref
remains the same, that is, you would change Qref in order to inject adjustable reactive power
into the ac grid. Control over Vdc has two main functions. First, it may be desired to keep Vdc
2
constant if the main objective is to transfer a variable amount of dc power into the ac grid.
This means the controller should be able to keep Vdc = Vdc,ref as Idc changes. Second, some dc
power sources (e.g., photovoltaic systems) require adjustment of Vdc in order to operate at their
maximum power point. This means Vdc,ref may need to be adjusted in order to drive Vdc to
such operating point. The literature calls such control strategy maximum power point tracking
(MPPT).
To test these control objectives, run your simulation for the profiles below:
Illustrate representative signals (from both the power and control stages) and comment on your
results obtained.
3
3 Diagram of the Systems
3.1 General System
Figure 5: Tmabc
dq .
4
3.3 Vdc2 to obtain Pref
Figure 6: V dc2 .
5
4 Results of the assignment
5 Conclusions
5.1 Development of the practice
For this new assignment, we changed from a DC Voltage Source to a DC Controlled Current Source.
We added a capacitor to the general system to keep it balanced and we placed it to have an initial
power of 600 Volts charged in the capacitor. The Idc reference given in Figure 3 graph 2, is the input
value for this DC Controlled Current Source.
After that, we did the V dc2 system in order to get the value of Pref . We used as input values both
V dc voltages, the V dc regular input obtain from the general system, and the V dcref value given in
Figure 3 graph number 3.
As well, we did some changes in our modulation transformation. As shown in Figure 5 we changed
the V dc value inputs almost at the end of the transformation. We also changed the entrance of the
Pref value to the one we obtained with the V dc2 system presented in 6. The value of Qref changed to
the new one shown in Figure 3 graph 1.
We placed the values of V dcref and Idc given in the Figure 3 graphs 1 and 2, as we mentioned
before.
To finish with this system, we calculated the compensator value with help of the sisotool as shown
in Figure 8. We used a given equation for ”TpiV dc ”, also for the value of ”T auv ”, and the value of
”P o”. These values help to obtain the compensator values that we mentioned before.
6
see that in graph 1 of Figure 9, the change in the Idc value is presented at time 0.5 as well. With
this step change, the value of the Voltage source changes as well. Now, for the changes shown after
1.5 seconds of analysis, we can see that it matches the value of V dcref presented in graph 3 of Figure
3. We also see these changes at the same time of 1.5 seconds at the V dc graph.
7
Appendices
A Appendix 1 Matlab System Parameters
1 % FILE HW4_MTLB . m
2
3 Vg =270; % AC GRID VOLTAGE
4 RMS = sqrt (2) / sqrt (3) ; % RMS CALCULATION
5 ph_g =0; % AC GRID PHASE ANGLE
6 Fp =60; % AC GRID FREQUENCY
7 R =1.458 e -4; % SERIES RESISTANCE
8 L =38.675 e -6; % FILTER INDUCTOR
9 Vdc =600; % DC LINK VOLTAGE
10 Cc =5000 e -6; % DC LINK CAPACITANCE
11 Vpeak = sqrt (2) *( Vg / sqrt (3) ) ;
12
13 Ti =0.5 e -3; % TAU VALUE
14
15 Kp = L / Ti ; % P VALUE OF THE PI
16 Ki = R / Ti ; % I VALUE OF THE PI
17
18 Po =100 e3 ;
19 Vd = Vpeak * cos ( ph_g ) ;
20 Tau_v =(2* L * Po ) /(3* Vd ^2) ;
21 T = tf ( 's ') ;
22 T_pi_Vdc =(1/( Ti * T +1) ) *((2/ Cc ) *((1+ Tau_v * T ) / T ) )
8
21
22 % PLOT OF Qref
23 subplot (5 ,1 ,2)
24 hold on
25 plot ( out . tout , out . Qref . Data (: ,1) , ' Linewidth ' ,2 , ' color ' ,153/255*[0 1
0]) ;
26 hold off
27 axis ([0 2 -10000 110000])
28 grid on
29 box on
30 ylabel ( ' Qref ' , ' FontSize ' ,7 , ' Interpreter ' , ' latex ') ;
31
32 % PLOT OF Vdc
33 subplot (5 ,1 ,3)
34 hold on
35 plot ( out . tout , out . Vdc . Data (: ,1) , ' Linewidth ' ,2 , ' color ' ,153/255*[1 0
0]) ;
36 hold off
37 axis ([0 2 550 700])
38 grid on
39 box on
40 ylabel ( ' Vdc ' , ' FontSize ' ,7 , ' Interpreter ' , ' latex ') ;
41
42 % PLOT OF P AND PREF
43 subplot (5 ,1 ,4)
44 hold on
45 plot ( out . tout , out . Instant_Pout . Data (: ,1) , ' Linewidth ' ,2 , ' color '
,153/255*[1 0 1]) ;
46 plot ( out . tout , out . Pref . Data (: ,1) , ' Linewidth ' ,2 , ' color ' ,153/255*[0 1
1]) ;
47 hold off
48 axis ([0 2 280000 410000])
49 grid on
50 box on
51 ylabel ( 'P and Pref ' , ' FontSize ' ,7 , ' Interpreter ' , ' latex ') ;
52
53 % PLOT OF Q AND Q REF
54 subplot (5 ,1 ,5)
55 hold on
56 plot ( out . tout , out . Instant_Qout . Data (: ,1) , ' Linewidth ' ,2 , ' color '
,153/255*[1 1 0]) ;
57 plot ( out . tout , out . Qref . Data (: ,1) , ' Linewidth ' ,2 , ' color ' ,153/255*[1 1
1]) ;
58 hold off
59 axis ([0 2 -10000 110000])
60 grid on
61 box on
62 ylabel ( 'Q and Qref ' , ' FontSize ' ,7 , ' Interpreter ' , ' latex ') ;
63 xlabel ( ' Time ( sec ) ' , ' FontSize ' ,9 , ' Interpreter ' , ' latex ') ;