SlideShare a Scribd company logo
1 of 17
Rafael Cisneros-Magaña
Aurelio Medina-Rios
“Parallel Kalman Filter Based Time Domain
Harmonic State Estimation”
WORKSHOP
April 6, 2016
Morelia, México
Project C0014-2014-03 247099 Institutional Links CONACYT-British Council
“Modeling, analysis and digital/physical simulation of power systems with
integration of renewable energy sources; assessment of their dynamic
behavior and power quality impact”
Meeting, April 6, 2016
Morelia, México
1. Introduction
The state estimation is now solved in time domain
using the parallel Kalman filter (PKF). This filter is
implemented using the CUDA platform and the
CUBLAS library on a GPU and is applied to estimate
harmonics and inter-harmonics.
The sequential parts of an algorithm are executed on
the CPU while the parts that are convenient to be
executed in parallel are run on the GPU using parallel
functions.
2
1. Int.
3
State Space Model: dx/dt=Ax+Bu
y=Cx+Du
Measurement Model: z=Hx
Discrete time:
x(k+1)=F(k)x(k)+B(k)u(k)
z(k)=H(k)x(k)
2 Methodology
4
The PKF evaluates the time domain state
estimation using the following steps:
1. Data allocation in GPU memory.
2. Recursive execution of PKF on GPU.
3. The HSE result is saved.
4. The GPU memory is free when the case
study ends.
2.1 Kalman Filter using CUBLAS library
5
Initial State x0, P0
Project Error Covariance Matrix 2.- P*(k)=F(k)P(k-1)F’(k)+Q(k)
KF Gain 3.- K=P*(k)H’(k)[H(k)P*(k)H’(k)+R(k)]-1
Update State 4.- x(k)=x*(k)+K[z(k)-H(k)x*(k)]
Update Error Covariance Matrix 5.- P(k) =[I-KH(k)]P*(k)
Project State 1.- x*(k)=F(k)x(k-1)+B(k)U(k)
Allocate GPU memory and set data from CPU to GPU
2.1
6
KF Step CUBLAS functions
1 Dgemv, Daxpy
2 Dgemm, Dgeam
3 Dgemm, Dgeam, Dger, Dscal, Dtrsm
4 Dgemv, Daxpy
5 Dgemm, Dgeam
The CUBLAS functions to evaluate the KF steps are
shown. These functions are implemented in the
CUBLAS library to be executed in parallel form on the
GPU.
3 Case Studies of Harmonic State Estimation
The IEEE 14 bus test system is modified to apply the PKF-
HSE method, state space and measurement models are
defined.
The test system is modified injecting harmonics and
interharmonics at buses 5 and 13. Bus voltages, line and load
currents are taken as state variables.
7
3.1 Case Study HSE with harmonic sources buses 5 and 13
Buses 5 and 13 receive injections of harmonics (5, 7, 11, 13).
The simulation time is 0.2 s. Actual, Kalman filter estimate and
difference for line currents are shown. The generators currents
are estimated.
8
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-0.2
0
0.2
0.4
0.6
Generator node 1
Current(pu)
Actual PKF Estimate PSCAD/EMTDC
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-1
0
1
2
Generator node 2
Time ( s )
Current(pu)
Actual PKF Estimate PSCAD/EMTDC
3.1 Case Study
Table shows the harmonics injected at buses 5 and 13, the
harmonic spectrum of generator currents is calculated using
the DFT, the harmonic spectra agree with the injected
harmonics.
9
Bus 5 13
Harmonic 5 7 11 13 5 7 11 13
Peak Value
Amp
6 3 1.5 0.75 3 1.5 0.75 0.37
3 5 7 9 11 13 15
0
1
2
3
4
5
6
7
Harmonic Order
%Fundamental
Generator Node 1
Generator Node 2
3.2 HSE of time-varying harmonics
The PKF is applied under a varying harmonics condition,
Figures show the waveforms (actual, PKF estimate and
PSCAD) and the harmonic spectrum for generator current at
buses 1 and 2.
10
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-0.2
0
0.2
0.4
0.6
0.8
Generator node 1
Current(pu)
True PKF Estimate PSCAD/EMTDC
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-1
0
1
2
Generator node 2
Time ( s )
Current(pu)
True PKF Estimate PSCAD/EMTDC
3.3 Case Study HSE including interharmonics.
The injected harmonics include inter-harmonics to verify the
effect on the system using the PKF-HSE. Figures show actual,
PKF estimate and PSCAD waveforms and the harmonic
spectrum of estimated generator currents.
11
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-0.2
0
0.2
0.4
Generator node 1
Current(pu)
True PKF Estimate PSCAD/EMTDC
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-1
-0.5
0
0.5
1
1.5
2
Generator node 2
Time ( s )
Current(pu)
True PKF Estimate PSCAD/EMTDC
0 1 3 5 7 9 11 13 15
0
5
10
15
20
25
30
35
40
Harmonic Order
%Fundamental
Generator Node 1
Generator Node 2
4. CPU-GPU execution time
12
EXECUTION TIME (S)
Models CPU C++ code CPU-GPU CUBLAS Speed-up
1 36.2 22.5 1.6
2 434.7 52.2 8.3
3 1965 79.1 24.8
The power system model was replicated three times to
simulate larger systems, table presents the execution
time. The speed-up increases with the number of
models.
5. Conclusions
• The HSE-PKF has been evaluated for
computational efficiency on the GPU to show
speed up against the sequential execution.
• Results are successfully compared against the
actual and PSCAD responses.
• A time domain harmonic state estimator based on
PKF using CUDA and CUBLAS on a GPU has been
presented.
13
14
Thank you!
3.4 CPU-GPU Configuration and execution time
CPU: Intel Core TM i7-3770 CPU, 3.4 GHz, 16.0 GB RAM
GPU: NVIDIA GeForce GTX 680
13
NVIDIA GEFORCE GTX 680 GPU DATA
Processor Cores 1536
Clock rate 1.08 Ghz
Memory 2 GB
Memory Clock rate 3 Ghz
Memory Bus Width 256 bit
5 References
[1] J. D. Owens, M. Houston, D. Luebke, S. Green and J. E. Stone,
“GPU Computing”, Proc. IEEE, vol. 96, No. 5, pp. 879-899, May
2008.
[2] R. C. Dugan, M. F. McGranaghan, Surya Santoso and H. Wayne Beaty,
“Electrical Power Quality”, 2nd Ed., McGraw-Hill, 2002.
[3] IEEE Task Force on Harmonics Modeling and Simulation,
“Interharmonics: Theory and Modeling”, IEEE Trans. Power Del., vol 22,
No. 4, pp. 2335-2348, Oct., 2007.
[4] J. Arrillaga, N.R. Watson and S. Chen, Power System Quality
Assessment, John Wiley & Sons, 2000.
[5] K. Kennedy, G. Lightbody and R. Yacamini, “Power system harmonic
analysis using the Kalman filter”, IEEE Power Eng. Soc. General Meet.,
vol. 2, pp. 752-757, 2003.
[6] NVIDIA, CUDA C Programming Guide, Version 5.0, October 2012.
NVIDIA, CUDA API Reference Manual, Version 5.0, October 2012.
NVIDIA, CUDA Toolkit 5.0 CUBLAS Library, April 2012.
17
2.1 Parallel Kalman Filter algorithm using CUBLAS.
7
The CUBLAS functions to implement LU are Dscal and
Dger. These functions evaluate the Crout’s reduction
algorithm and the Dtrsm function implements the
forward and backward substitutions. This step
consumes most of the time execution of the Kalman
filter and is calculated each time-step of the state
estimation.

More Related Content

What's hot

Term question eee 305
Term question eee 305Term question eee 305
Term question eee 305TamimAhmed43
 
A generalized switching function-based SVM algorithm of single-phase three-le...
A generalized switching function-based SVM algorithm of single-phase three-le...A generalized switching function-based SVM algorithm of single-phase three-le...
A generalized switching function-based SVM algorithm of single-phase three-le...IJECEIAES
 
P-Q Theory Based UPQC for Reactive Power Compensation with UCAP
P-Q Theory Based UPQC for Reactive Power Compensation with UCAPP-Q Theory Based UPQC for Reactive Power Compensation with UCAP
P-Q Theory Based UPQC for Reactive Power Compensation with UCAPIRJET Journal
 
POWER SYSTEM ANALYSIS-2
POWER SYSTEM ANALYSIS-2POWER SYSTEM ANALYSIS-2
POWER SYSTEM ANALYSIS-2M Ugur Kebir
 
199833536 ee2404-lab-manual
199833536 ee2404-lab-manual199833536 ee2404-lab-manual
199833536 ee2404-lab-manualhomeworkping4
 
EE6501 Power System Analysis Rejinpaul_Important_Questions
EE6501 Power System Analysis Rejinpaul_Important_QuestionsEE6501 Power System Analysis Rejinpaul_Important_Questions
EE6501 Power System Analysis Rejinpaul_Important_QuestionsSanthosh Kumar
 
Power flow solution
Power flow solutionPower flow solution
Power flow solutionBalaram Das
 
Power system analysis material -Mathankumar.s VMKVEC
Power system analysis material -Mathankumar.s  VMKVECPower system analysis material -Mathankumar.s  VMKVEC
Power system analysis material -Mathankumar.s VMKVECMathankumar S
 
Fundamentals of power system
Fundamentals of power systemFundamentals of power system
Fundamentals of power systemBalaram Das
 
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...sunny katyara
 
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5.	Newton Raphson load flow analysis Matlab SoftwareExp 5 (1)5.	Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5. Newton Raphson load flow analysis Matlab SoftwareShweta Yadav
 
An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...
An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...
An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...IJMTST Journal
 
A Simulink Model for Damping Power System Oscillations Using Fact Devices
A Simulink Model for Damping Power System Oscillations Using Fact DevicesA Simulink Model for Damping Power System Oscillations Using Fact Devices
A Simulink Model for Damping Power System Oscillations Using Fact DevicesIOSR Journals
 
power system analysis lecture 1
power system analysis lecture 1power system analysis lecture 1
power system analysis lecture 1Audih Alfaoury
 
Energy Storage Systems – Grid Connection Using Synchronverters
Energy Storage Systems – Grid Connection Using SynchronvertersEnergy Storage Systems – Grid Connection Using Synchronverters
Energy Storage Systems – Grid Connection Using SynchronvertersGal Barzilai
 

What's hot (20)

Term question eee 305
Term question eee 305Term question eee 305
Term question eee 305
 
EE-524 Project report
EE-524 Project reportEE-524 Project report
EE-524 Project report
 
A generalized switching function-based SVM algorithm of single-phase three-le...
A generalized switching function-based SVM algorithm of single-phase three-le...A generalized switching function-based SVM algorithm of single-phase three-le...
A generalized switching function-based SVM algorithm of single-phase three-le...
 
P-Q Theory Based UPQC for Reactive Power Compensation with UCAP
P-Q Theory Based UPQC for Reactive Power Compensation with UCAPP-Q Theory Based UPQC for Reactive Power Compensation with UCAP
P-Q Theory Based UPQC for Reactive Power Compensation with UCAP
 
POWER SYSTEM ANALYSIS-2
POWER SYSTEM ANALYSIS-2POWER SYSTEM ANALYSIS-2
POWER SYSTEM ANALYSIS-2
 
199833536 ee2404-lab-manual
199833536 ee2404-lab-manual199833536 ee2404-lab-manual
199833536 ee2404-lab-manual
 
D010223139
D010223139D010223139
D010223139
 
EE6501 Power System Analysis Rejinpaul_Important_Questions
EE6501 Power System Analysis Rejinpaul_Important_QuestionsEE6501 Power System Analysis Rejinpaul_Important_Questions
EE6501 Power System Analysis Rejinpaul_Important_Questions
 
EE6501 - Power System Analysis
EE6501 - Power System AnalysisEE6501 - Power System Analysis
EE6501 - Power System Analysis
 
Power flow solution
Power flow solutionPower flow solution
Power flow solution
 
Power system analysis material -Mathankumar.s VMKVEC
Power system analysis material -Mathankumar.s  VMKVECPower system analysis material -Mathankumar.s  VMKVEC
Power system analysis material -Mathankumar.s VMKVEC
 
Loadflowsynopsis
LoadflowsynopsisLoadflowsynopsis
Loadflowsynopsis
 
Fundamentals of power system
Fundamentals of power systemFundamentals of power system
Fundamentals of power system
 
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
 
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5.	Newton Raphson load flow analysis Matlab SoftwareExp 5 (1)5.	Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
 
An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...
An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...
An Enhancement of Power Quality by the use of D-STATCOM and Soft Computing Te...
 
A Simulink Model for Damping Power System Oscillations Using Fact Devices
A Simulink Model for Damping Power System Oscillations Using Fact DevicesA Simulink Model for Damping Power System Oscillations Using Fact Devices
A Simulink Model for Damping Power System Oscillations Using Fact Devices
 
power system analysis lecture 1
power system analysis lecture 1power system analysis lecture 1
power system analysis lecture 1
 
Energy Storage Systems – Grid Connection Using Synchronverters
Energy Storage Systems – Grid Connection Using SynchronvertersEnergy Storage Systems – Grid Connection Using Synchronverters
Energy Storage Systems – Grid Connection Using Synchronverters
 
Reactive Power Concepts
Reactive Power ConceptsReactive Power Concepts
Reactive Power Concepts
 

Similar to Parallel kalman filter based time domain harmonic state estimation 160406

Comparison of Reference Signal Extraction Methods
Comparison of Reference Signal Extraction MethodsComparison of Reference Signal Extraction Methods
Comparison of Reference Signal Extraction MethodsRaja Larik
 
Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...IOSRJEEE
 
Joint State and Parameter Estimation by Extended Kalman Filter (EKF) technique
Joint State and Parameter Estimation by Extended Kalman Filter (EKF) techniqueJoint State and Parameter Estimation by Extended Kalman Filter (EKF) technique
Joint State and Parameter Estimation by Extended Kalman Filter (EKF) techniqueIJERD Editor
 
Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...
Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...
Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...Francisco Gonzalez-Longatt
 
Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...
Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...
Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...Garima Bharti
 
Optimal design & analysis of load frequency control for two interconnecte...
Optimal design & analysis of load frequency control for two interconnecte...Optimal design & analysis of load frequency control for two interconnecte...
Optimal design & analysis of load frequency control for two interconnecte...ijctet
 
Modeling & Simulation of PMSM Drives with Fuzzy Logic Controller
Modeling & Simulation of PMSM Drives with Fuzzy Logic ControllerModeling & Simulation of PMSM Drives with Fuzzy Logic Controller
Modeling & Simulation of PMSM Drives with Fuzzy Logic ControllerIJMER
 
COMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTOR
COMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTORCOMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTOR
COMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTORijscai
 
Synchrophasor Fundamentals: from Computation to Implementation
Synchrophasor Fundamentals: from Computation to ImplementationSynchrophasor Fundamentals: from Computation to Implementation
Synchrophasor Fundamentals: from Computation to ImplementationPower System Operation
 
Mechanically actuated capacitor microphone control using mpc and narma l2 con...
Mechanically actuated capacitor microphone control using mpc and narma l2 con...Mechanically actuated capacitor microphone control using mpc and narma l2 con...
Mechanically actuated capacitor microphone control using mpc and narma l2 con...Mustefa Jibril
 
17.pmsm speed sensor less direct torque control based on ekf
17.pmsm speed sensor less direct torque control based on ekf17.pmsm speed sensor less direct torque control based on ekf
17.pmsm speed sensor less direct torque control based on ekfMouli Reddy
 

Similar to Parallel kalman filter based time domain harmonic state estimation 160406 (20)

Work Portfolio
Work PortfolioWork Portfolio
Work Portfolio
 
Comparison of Reference Signal Extraction Methods
Comparison of Reference Signal Extraction MethodsComparison of Reference Signal Extraction Methods
Comparison of Reference Signal Extraction Methods
 
4 2006 vol16_n2
4 2006 vol16_n24 2006 vol16_n2
4 2006 vol16_n2
 
Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...
 
A0710113
A0710113A0710113
A0710113
 
Joint State and Parameter Estimation by Extended Kalman Filter (EKF) technique
Joint State and Parameter Estimation by Extended Kalman Filter (EKF) techniqueJoint State and Parameter Estimation by Extended Kalman Filter (EKF) technique
Joint State and Parameter Estimation by Extended Kalman Filter (EKF) technique
 
Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...
Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...
Design and Analysis of PID and Fuzzy-PID Controller for Voltage Control of DC...
 
Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...
Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...
Enhancement of Power System Static and Dynamic Stability Using UPFC by GA and...
 
Optimal design & analysis of load frequency control for two interconnecte...
Optimal design & analysis of load frequency control for two interconnecte...Optimal design & analysis of load frequency control for two interconnecte...
Optimal design & analysis of load frequency control for two interconnecte...
 
Controller Design of UPQC for Enhancing Power Quality in Distribution System
Controller Design of UPQC for Enhancing Power Quality in Distribution SystemController Design of UPQC for Enhancing Power Quality in Distribution System
Controller Design of UPQC for Enhancing Power Quality in Distribution System
 
DTC-ANN-2-level hybrid by neuronal hysteresis with mechanical sensorless indu...
DTC-ANN-2-level hybrid by neuronal hysteresis with mechanical sensorless indu...DTC-ANN-2-level hybrid by neuronal hysteresis with mechanical sensorless indu...
DTC-ANN-2-level hybrid by neuronal hysteresis with mechanical sensorless indu...
 
Shunt Active Filter Based on Radial Basis Function Neural Network and p-q Pow...
Shunt Active Filter Based on Radial Basis Function Neural Network and p-q Pow...Shunt Active Filter Based on Radial Basis Function Neural Network and p-q Pow...
Shunt Active Filter Based on Radial Basis Function Neural Network and p-q Pow...
 
Modeling & Simulation of PMSM Drives with Fuzzy Logic Controller
Modeling & Simulation of PMSM Drives with Fuzzy Logic ControllerModeling & Simulation of PMSM Drives with Fuzzy Logic Controller
Modeling & Simulation of PMSM Drives with Fuzzy Logic Controller
 
NASA 2004 report
NASA 2004 reportNASA 2004 report
NASA 2004 report
 
Converter driver dc motor
Converter driver dc motorConverter driver dc motor
Converter driver dc motor
 
COMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTOR
COMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTORCOMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTOR
COMPARING OF SWITCHING FREQUENCY ON VECTOR CONTROLLED ASYNCHRONOUS MOTOR
 
Synchrophasor Fundamentals: from Computation to Implementation
Synchrophasor Fundamentals: from Computation to ImplementationSynchrophasor Fundamentals: from Computation to Implementation
Synchrophasor Fundamentals: from Computation to Implementation
 
922214 e002013
922214 e002013922214 e002013
922214 e002013
 
Mechanically actuated capacitor microphone control using mpc and narma l2 con...
Mechanically actuated capacitor microphone control using mpc and narma l2 con...Mechanically actuated capacitor microphone control using mpc and narma l2 con...
Mechanically actuated capacitor microphone control using mpc and narma l2 con...
 
17.pmsm speed sensor less direct torque control based on ekf
17.pmsm speed sensor less direct torque control based on ekf17.pmsm speed sensor less direct torque control based on ekf
17.pmsm speed sensor less direct torque control based on ekf
 

More from Benito Ortiz Bejar

Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...Benito Ortiz Bejar
 
Morelia workshop presentation william ross
Morelia workshop presentation william rossMorelia workshop presentation william ross
Morelia workshop presentation william rossBenito Ortiz Bejar
 
Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...Benito Ortiz Bejar
 
Progress report of project 247099
Progress report of project 247099Progress report of project 247099
Progress report of project 247099Benito Ortiz Bejar
 

More from Benito Ortiz Bejar (7)

Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...
 
Morelia workshop presentation william ross
Morelia workshop presentation william rossMorelia workshop presentation william ross
Morelia workshop presentation william ross
 
Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...Time domain harmonic state estimation using filtered measurements based on fo...
Time domain harmonic state estimation using filtered measurements based on fo...
 
Progress report of project 247099
Progress report of project 247099Progress report of project 247099
Progress report of project 247099
 
Expo unitedking
Expo unitedkingExpo unitedking
Expo unitedking
 
Attachment shcm
Attachment shcmAttachment shcm
Attachment shcm
 
Attachment shcm
Attachment shcmAttachment shcm
Attachment shcm
 

Recently uploaded

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 

Recently uploaded (20)

🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 

Parallel kalman filter based time domain harmonic state estimation 160406

  • 1. Rafael Cisneros-Magaña Aurelio Medina-Rios “Parallel Kalman Filter Based Time Domain Harmonic State Estimation” WORKSHOP April 6, 2016 Morelia, México Project C0014-2014-03 247099 Institutional Links CONACYT-British Council “Modeling, analysis and digital/physical simulation of power systems with integration of renewable energy sources; assessment of their dynamic behavior and power quality impact” Meeting, April 6, 2016 Morelia, México
  • 2. 1. Introduction The state estimation is now solved in time domain using the parallel Kalman filter (PKF). This filter is implemented using the CUDA platform and the CUBLAS library on a GPU and is applied to estimate harmonics and inter-harmonics. The sequential parts of an algorithm are executed on the CPU while the parts that are convenient to be executed in parallel are run on the GPU using parallel functions. 2
  • 3. 1. Int. 3 State Space Model: dx/dt=Ax+Bu y=Cx+Du Measurement Model: z=Hx Discrete time: x(k+1)=F(k)x(k)+B(k)u(k) z(k)=H(k)x(k)
  • 4. 2 Methodology 4 The PKF evaluates the time domain state estimation using the following steps: 1. Data allocation in GPU memory. 2. Recursive execution of PKF on GPU. 3. The HSE result is saved. 4. The GPU memory is free when the case study ends.
  • 5. 2.1 Kalman Filter using CUBLAS library 5 Initial State x0, P0 Project Error Covariance Matrix 2.- P*(k)=F(k)P(k-1)F’(k)+Q(k) KF Gain 3.- K=P*(k)H’(k)[H(k)P*(k)H’(k)+R(k)]-1 Update State 4.- x(k)=x*(k)+K[z(k)-H(k)x*(k)] Update Error Covariance Matrix 5.- P(k) =[I-KH(k)]P*(k) Project State 1.- x*(k)=F(k)x(k-1)+B(k)U(k) Allocate GPU memory and set data from CPU to GPU
  • 6. 2.1 6 KF Step CUBLAS functions 1 Dgemv, Daxpy 2 Dgemm, Dgeam 3 Dgemm, Dgeam, Dger, Dscal, Dtrsm 4 Dgemv, Daxpy 5 Dgemm, Dgeam The CUBLAS functions to evaluate the KF steps are shown. These functions are implemented in the CUBLAS library to be executed in parallel form on the GPU.
  • 7. 3 Case Studies of Harmonic State Estimation The IEEE 14 bus test system is modified to apply the PKF- HSE method, state space and measurement models are defined. The test system is modified injecting harmonics and interharmonics at buses 5 and 13. Bus voltages, line and load currents are taken as state variables. 7
  • 8. 3.1 Case Study HSE with harmonic sources buses 5 and 13 Buses 5 and 13 receive injections of harmonics (5, 7, 11, 13). The simulation time is 0.2 s. Actual, Kalman filter estimate and difference for line currents are shown. The generators currents are estimated. 8 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -0.2 0 0.2 0.4 0.6 Generator node 1 Current(pu) Actual PKF Estimate PSCAD/EMTDC 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -1 0 1 2 Generator node 2 Time ( s ) Current(pu) Actual PKF Estimate PSCAD/EMTDC
  • 9. 3.1 Case Study Table shows the harmonics injected at buses 5 and 13, the harmonic spectrum of generator currents is calculated using the DFT, the harmonic spectra agree with the injected harmonics. 9 Bus 5 13 Harmonic 5 7 11 13 5 7 11 13 Peak Value Amp 6 3 1.5 0.75 3 1.5 0.75 0.37 3 5 7 9 11 13 15 0 1 2 3 4 5 6 7 Harmonic Order %Fundamental Generator Node 1 Generator Node 2
  • 10. 3.2 HSE of time-varying harmonics The PKF is applied under a varying harmonics condition, Figures show the waveforms (actual, PKF estimate and PSCAD) and the harmonic spectrum for generator current at buses 1 and 2. 10 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -0.2 0 0.2 0.4 0.6 0.8 Generator node 1 Current(pu) True PKF Estimate PSCAD/EMTDC 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -1 0 1 2 Generator node 2 Time ( s ) Current(pu) True PKF Estimate PSCAD/EMTDC
  • 11. 3.3 Case Study HSE including interharmonics. The injected harmonics include inter-harmonics to verify the effect on the system using the PKF-HSE. Figures show actual, PKF estimate and PSCAD waveforms and the harmonic spectrum of estimated generator currents. 11 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -0.2 0 0.2 0.4 Generator node 1 Current(pu) True PKF Estimate PSCAD/EMTDC 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -1 -0.5 0 0.5 1 1.5 2 Generator node 2 Time ( s ) Current(pu) True PKF Estimate PSCAD/EMTDC 0 1 3 5 7 9 11 13 15 0 5 10 15 20 25 30 35 40 Harmonic Order %Fundamental Generator Node 1 Generator Node 2
  • 12. 4. CPU-GPU execution time 12 EXECUTION TIME (S) Models CPU C++ code CPU-GPU CUBLAS Speed-up 1 36.2 22.5 1.6 2 434.7 52.2 8.3 3 1965 79.1 24.8 The power system model was replicated three times to simulate larger systems, table presents the execution time. The speed-up increases with the number of models.
  • 13. 5. Conclusions • The HSE-PKF has been evaluated for computational efficiency on the GPU to show speed up against the sequential execution. • Results are successfully compared against the actual and PSCAD responses. • A time domain harmonic state estimator based on PKF using CUDA and CUBLAS on a GPU has been presented. 13
  • 15. 3.4 CPU-GPU Configuration and execution time CPU: Intel Core TM i7-3770 CPU, 3.4 GHz, 16.0 GB RAM GPU: NVIDIA GeForce GTX 680 13 NVIDIA GEFORCE GTX 680 GPU DATA Processor Cores 1536 Clock rate 1.08 Ghz Memory 2 GB Memory Clock rate 3 Ghz Memory Bus Width 256 bit
  • 16. 5 References [1] J. D. Owens, M. Houston, D. Luebke, S. Green and J. E. Stone, “GPU Computing”, Proc. IEEE, vol. 96, No. 5, pp. 879-899, May 2008. [2] R. C. Dugan, M. F. McGranaghan, Surya Santoso and H. Wayne Beaty, “Electrical Power Quality”, 2nd Ed., McGraw-Hill, 2002. [3] IEEE Task Force on Harmonics Modeling and Simulation, “Interharmonics: Theory and Modeling”, IEEE Trans. Power Del., vol 22, No. 4, pp. 2335-2348, Oct., 2007. [4] J. Arrillaga, N.R. Watson and S. Chen, Power System Quality Assessment, John Wiley & Sons, 2000. [5] K. Kennedy, G. Lightbody and R. Yacamini, “Power system harmonic analysis using the Kalman filter”, IEEE Power Eng. Soc. General Meet., vol. 2, pp. 752-757, 2003. [6] NVIDIA, CUDA C Programming Guide, Version 5.0, October 2012. NVIDIA, CUDA API Reference Manual, Version 5.0, October 2012. NVIDIA, CUDA Toolkit 5.0 CUBLAS Library, April 2012. 17
  • 17. 2.1 Parallel Kalman Filter algorithm using CUBLAS. 7 The CUBLAS functions to implement LU are Dscal and Dger. These functions evaluate the Crout’s reduction algorithm and the Dtrsm function implements the forward and backward substitutions. This step consumes most of the time execution of the Kalman filter and is calculated each time-step of the state estimation.