MP-Based Automated Systems - Lecture 11
MP-Based Automated Systems - Lecture 11
Lecture: Lecture # 11
.
The Main Components of the Power Measurement
• LABTOP+ ATP and MATLAB Software,
• Instrument Transformers (three phase VTs and three phase CTs),
• Power Grid, and
• The Algorithm of the Power Measurement.
(I) Computing the Active Power (P) using the three phase AC voltage and current signals,
(II) Computing the Reactive Power (Q) using the three phase AC voltage and current signals,
(III) Computing the Power Factor (PF) using the calculated Active Power (P) and the Reactive
Power (Q) ,
.
2. Proposed technique
2.1 Basic concept
2.1.1 Instantaneous power
The total average power (P(k)) is formulated as:
P ( k ) Pa ( k ) Pb ( k ) Pc ( k ) (1)
Q ( k ) Qa ( k ) Qb ( k ) Qc ( k ) (3)
1
Q(k ) [va ( k ) (ic ( k ) ib ( k )) vb ( k ) (ia ( k ) ic ( k ))
3
vc ( k ) (ib ( k ) ia ( k ))] ( 4)
The Power Factor (PF(k)) and Power Factor Angle (PFA(k)) can be calculated as:
Q(k )
PF ( k ) cos(tan 1 ( )) (5)
P(k )
180 Q(k )
PFA ( k ) (tan 1 ( )) (6)
P(k )
2. Proposed technique
2.1 Basic concept
2.1.2 Electrical energy calculation (for Three phase system)
T is the total time selected for computing the total energy. It is considered hour, day, month, or year,
3. Simulated power system
va(n), vb(n) and vc(n) The voltage measurements of a, b and c phases, respectively, at the instant n taken at the synchronous generator load They are measured online and
terminals, updated
ia(n), ib(n) and ic(n) The current measurements of a, b and c phases, respectively, at the instant n taken at the synchronous generator load
terminals,
Fc The fundamental cycle frequency for electrical signals 50 Hz
Tc The cycle time interval 20 milliseconds
Fsp The frequency rate of the digital system 5 kHz
Tsp The sampling time span 0.2 milliseconds
Nc The sample size per each one cycle, Nc = Tc / Tsp or Nc = Fsp / Fc 100 samples/cycle
Ns The sample size per each data set area, Ns = Nc 100 samples/data set
Case 1 SLG (A-G) fault 21o fault inception time (tf) = 0.102
Case 2 21.5o Sec (at sample index of 510),
Case 3 22.5o F1 (located at and ,CTR= 12000/1
the fault clearing time (tc)= 0.0 and j0+0.5
primary side of
0.202 Sec (at sample index of
SUT) 1010) VTR= 11 kV/100 V
Table 4 Pre-fault values of electrical quantities, correlation coefficients and deduced factors obtained from the
simulation results
Case study 3 Case study 2 Case study 1 Parameter data
Out-of-step Critical synchronous operation Synchronous operation Generator status
δ1= 22.5o δ1= 21.5o δ1= 21o Operating power angles
δ 2 = 0o δ 2 = 0o δ2 = 0 o
va(kV)
3-ph voltages(va,vb,and vc)
40
vb(kV)
vc(kV)
20
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 4(a) Three-phase primary voltage signals (va, vb and vc) at SG output
40
ia(kA)
3-ph currents(ia,ib,and ic)
ib(kA)
20 ic(kA)
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 4(b) Three-phase primary current signals (ia, ib and ic) at SG output
Figs. 4(a-d) Generated electrical signals for case study 1 (synchronous operation).
Case study 1: Normal and synchronous operation (δ1= 21o) 4.1
300
3-ph A.powers(Pa,Pb,and Pc)
Pa(MW)
Pb(MW)
200
Pc(MW)
100
-100
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 4(c) Three-phase primary average power signals (Pa, Pb and Pc) at SG output
600
3-ph R.powers(Qa,Qb,and Qc)
Qa(MVAR)
400 Qb(MVAR)
Qc(MVAR)
200
-200
-400
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 4(d) Three-phase primary reactive power signals (Qa, Qb and Qc) at SG output
Figs. 4(a-d) Generated electrical signals for case study 1 (synchronous operation).
Case study 1: Normal and synchronous operation (δ1= 21o) 4.1
300
Total active and reactive powers
P(MW)
Q(MVAR)
200
100
-100
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 5(a) Total primary average and reactive power signals (P and Q) at SG output
60
PF angle(Deg)
40
Power factor angle
20
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 5(b) Estimated power factor angle in the case of synchronous operation
Figs. 5(a-d) Total active and reactive powers, PF, FE and F for case study 1 (synchronous operation).
Case study 2: Critical synchronous operation (δ1= 21.5o) 4.2
3-ph voltages(va,vb,and vc)
40 va(kV)
vb(kV)
20 vc(kV)
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 8(a) Three-phase primary voltage signals (va, vb and vc) at SG output
40
3-ph currents(ia,ib,and ic)
ia(kA)
ib(kA)
20
ic(kA)
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 8(b) Three-phase primary current signals (ia, ib and ic) at SG output
Figs. 8(a-d) Generated electrical signals for case study 2 (Critical synchronous operation).
Case study 2: Critical synchronous operation (δ1= 21.5o) 4.2
300
3-ph A.powers(Pa,Pb,and Pc)
Pa(MW)
Pb(MW)
200
Pc(MW)
100
-100
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 8(c) Three-phase primary average power signals (Pa, Pb and Pc) at SG output
600
3-ph R.powers(Qa,Qb,and Qc)
Qa(MVAR)
400 Qb(MVAR)
Qc(MVAR)
200
-200
-400
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 8(d) Three-phase primary reactive power signals (Qa, Qb and Qc) at SG output
Figs. 8(a-d) Generated electrical signals for case study 2 (Critical synchronous operation).
Case study 2: Critical synchronous operation (δ1= 21.5o) 4.2
300
Total active and reactive powers
P(MW)
Q(MVAR)
200
100
-100
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 9(a) Total primary average and reactive power signals (P and Q) at SG output
80
PF angle(Deg)
60
Power factor angle
40
20
0
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 9(b) Estimated power factor angle in the case of synchronous operation
Figs. 9(a-d) Total active and reactive powers, PF, FE and F for case study 2 (Critical synchronous operation).
Case study 3: Out-of-step condition (δ1= 22.5o) 4.3
40
va(kV)
3-ph voltages(va,vb,and vc)
vb(kV)
20 vc(kV)
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 12(a) Three-phase primary voltage signals (va, vb and vc) at SG output
40
ia(kA)
3-ph currents(ia,ib,and ic)
ib(kA)
20 ic(kA)
-20
-40
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 12(b) Three-phase primary current signals (ia, ib and ic) at SG output
Figs. 12(a-d) Generated electrical signals for case study 3 (out-of-step condition).
Case study 3: Out-of-step condition (δ1= 22.5o) 4.3
300
Pa(MW)
3-ph A.powers(Pa,Pb,and Pc)
200 Pb(MW)
Pc(MW)
100
-100
-200
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 12(c) Three-phase primary average power signals (Pa, Pb and Pc) at SG output
600
3-ph R.powers(Qa,Qb,and Qc)
Qa(MVAR)
400 Qb(MVAR)
Qc(MVAR)
200
-200
-400
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 12(d) Three-phase primary reactive power signals (Qa, Qb and Qc) at SG output
Figs. 12(a-d) Generated electrical signals for case study 3 (out-of-step condition).
Case study 3: Out-of-step condition (δ1= 22.5o) 4.3
300
P(MW)
Total active and reactive powers
200 Q(MVAR)
100
-100
-200
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 13(a) Total primary average and reactive power signals (P and Q) at SG output
100
PF angle(Deg)
50
Power factor angle
-50
-100
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Sample no.(k)
.Fig. 13(b) Estimated power factor angle in the case of asynchronous operation
Figs. 13(a-d) Total active and reactive powers, PF, FE and F for case study 3 (out-of-step condition).
Conclusions
The presented algorithm can be used to various functions such as:
● Active and reactive power (P & Q) measurement,
● Active and reactive energy (Ep & Eq) measurement,
● PF measurement,
● PF disturbance detector,
● Voltage and current disturbance detector, and
● Voltage and current unbalance detector,
Numerical Electrical Power Measurement
Algorithm
Numerical Electrical Power Measurement
%tmax=2 %sec
dt=0.0002; %sec
%S1=.02/0.0002=100 %sample per cycle
%tfault=0.102 sec=510 %sample
%tclear=0.202 sec=1010 %sample
%Nf=510 sample
%Nc=1010 sample
%Ns=100 sample
figure(55);
plot(pa,'k');
%title(' primary active power signal Pa');
xlabel('sample no.(k)');
ylabel('Pa(MW)');
grid on;
hold on;
figure(56);
plot(pb,'k');
%title(' primary active power signal Pb');
xlabel('sample no.(k)');
ylabel('Pb(MW)');
grid on;
hold on;
Numerical Electrical Power Measurement
figure(57);
plot(pc,'k');
%title(' primary active power signal Pc');
xlabel('sample no.(k)');
ylabel('Pc(MW)');
grid on;
hold on;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 3- calculation of the reactive power (Qo)
for k=1:10000;
qa(k)=(va(k,1)*(ic(k,1)-ib(k,1))/sqrt(3))/(1000000); %MVAR
qb(k)=(vb(k,1)*(ia(k,1)-ic(k,1))/sqrt(3))/(1000000); %MVAR
qc(k)=(vc(k,1)*(ib(k,1)-ia(k,1))/sqrt(3))/(1000000); %MVAR
q(k)=(qa(k)+qb(k)+qc(k)); %MVAR
End
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 4- calculation of the power factor (PF)
for k=1:10000;
PF(k)= cos(atan(q(k)/p(k))); %PF= power factor= cos(theta)
PFA(k)= (180/pi)*(atan(q(k)/p(k))); %PFA= power factor angle= theta
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Numerical Electrical Power Measurement
% 5- Draw the reactive power (Qo)
figure(63);
plot(q,'k');
%title('reactive power signal Q');
xlabel('sample no.(k)');
ylabel('Q(MVAR)');
grid on;
hold on;
figure(550);
plot(qa,'k');
%title(' primary reactive power signal Qa');
xlabel('sample no.(k)');
ylabel('Qa(MVAR)');
grid on;
hold on;
figure(560);
plot(qb,'k');
%title(' primary reactive power signal Qb');
xlabel('sample no.(k)');
ylabel('Qb(MVAR)');
grid on;
hold on;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Numerical Electrical Power Measurement
figure(570);
plot(qc,'k');
%title(' primary reactive power signal Qc');
xlabel('sample no.(k)');
ylabel('Qc(MVAR)');
grid on;
hold on;
figure(177770);
k = 1:1:10000;
plot(k,va,'-k',k,vb,'--k',k,vc,':r')
h = legend('va','vb','vc');
%title('va,vb,vc Three phase voltages');
xlabel('sample no.(k)');
ylabel('Three phase voltages(va,vb and vc)');
grid on;
hold on;
figure(177771);
k = 1:1:10000;
plot(k,ia,'-k',k,ib,'--k',k,ic,':r')
h = legend('ia','ib','ic');
%title('ia,ib,ic Three phase currents');
xlabel('sample no.(k)');
ylabel('Three phase currents(ia,ib and ic)');
grid on;
hold on;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Numerical Electrical Power Measurement
figure(177772);
k = 1:1:10000;
plot(k,pa,'-k',k,pb,'--k',k,pc,':r')
h = legend('Pa','Pb','Pc');
%title('pa,pb,pc Three phase Average powers');
xlabel('sample no.(k)');
ylabel('Three phase Average powers(Pa,Pb and Pc)');
grid on;
hold on;
figure(177773);
k = 1:1:10000;
plot(k,qa,'-k',k,qb,'--k',k,qc,':r')
h = legend('Qa','Qb','Qc');
%title('Qa,Qb,Qc Three phase reactive powers');
xlabel('sample no.(k)');
ylabel('Three phase reactive powers(Qa,Qb and Qc)');
grid on;
hold on;
figure(177774);
k = 1:1:10000;
plot(k,p,'-k',k,q,'--r')
h = legend('P','Q');
%title('P and Q Total average and reactive powers');
xlabel('sample no.(k)');
ylabel('Total average and reactive powers(P and Q)');
grid on;
Numerical Electrical Power Measurement
figure(177775);
k = 1:1:10000;
plot(k,PF,'-k')
h = legend('PF');
%title('PF= Power factor');
xlabel('sample no.(k)');
ylabel('PF= Power factor');
grid on;
hold on;
figure(177776);
k = 1:1:10000;
plot(k,PFA,'-k')
h = legend('Power factor angle');
%title('PFA= Power factor angle');
xlabel('sample no.(k)');
ylabel('Power factor angle');
grid on;
hold on;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
By the end of this course
You will be able to:
• Design Algorithm, Hardware, and Connected Power System for the following applications (smart
devices) based on the microprocessor system using ATP/EMTP/MATLAB/LABVIEW Programs:
1- Digital estimator for Decay Time Constant (Tp= L/R ratio),
2- Digital Protective Relay (such as Digital Overcurrent Relay),
3- Automatic Transfer Switch (ATS) for two AC sources,
4- Digital Automatic Synchronizer (SCR),
5- Digital Trip Circuit Supervision (TCS),
6- Disconnecting Switch (DS)/ Earthing Switch (ES) Control Circuits,
7- Digital Frequency/Power Meter,
8- Digital V/F Measurement,
9- Automatic Voltage Regulator (AVR),
10- Automatic Power Factor Correction (APFC), and
11- A microprocessor Automatic Door Opener.