[go: up one dir, main page]

CN105116218B - Power circuit current harmonics detection method based on input Observer Theory - Google Patents

Power circuit current harmonics detection method based on input Observer Theory Download PDF

Info

Publication number
CN105116218B
CN105116218B CN201510413687.6A CN201510413687A CN105116218B CN 105116218 B CN105116218 B CN 105116218B CN 201510413687 A CN201510413687 A CN 201510413687A CN 105116218 B CN105116218 B CN 105116218B
Authority
CN
China
Prior art keywords
observer
harmonic
signal
current
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510413687.6A
Other languages
Chinese (zh)
Other versions
CN105116218A (en
Inventor
李钷
张怡茹
洪永强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen University
Original Assignee
Xiamen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen University filed Critical Xiamen University
Priority to CN201510413687.6A priority Critical patent/CN105116218B/en
Publication of CN105116218A publication Critical patent/CN105116218A/en
Application granted granted Critical
Publication of CN105116218B publication Critical patent/CN105116218B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Supply And Distribution Of Alternating Current (AREA)

Abstract

基于输入观测器理论的电力线路电流谐波检测方法,涉及电力线路信号处理。提供能够精确分析出电流信号中谐波分量大小的基于输入观测器理论的电力线路电流谐波检测方法。从电力线路中采样电流和电网电压信号,得到电流信号序列;将采样到的电流信号经过一个积分环节,得到电流信号的积分,并将各频率分量作为新的状态量,建立一个增广的状态空间方程;将采样得到的电网电压信号,经过交流过零检测电路,检测电网电压信号的过零点;通过检测上升沿跳变,求解得到被测信号的频率,同时清零相位累计误差;通过设计一个龙贝格观测器,并证明观测器的有效性,观测各频率分量的大小。

A power line current harmonic detection method based on input observer theory relates to power line signal processing. A power line current harmonic detection method based on input observer theory that can accurately analyze the magnitude of the harmonic component in the current signal is provided. Sampling the current and grid voltage signals from the power line to obtain the current signal sequence; passing the sampled current signal through an integral link to obtain the integral of the current signal, and using each frequency component as a new state quantity to establish an augmented state Space equation; the grid voltage signal obtained by sampling is passed through the AC zero-crossing detection circuit to detect the zero-crossing point of the grid voltage signal; the frequency of the measured signal is obtained by detecting the rising edge jump, and the phase accumulation error is cleared at the same time; through the design A Romberg observer, and prove the effectiveness of the observer, observe the size of each frequency component.

Description

基于输入观测器理论的电力线路电流谐波检测方法Current Harmonic Detection Method of Power Line Based on Input Observer Theory

技术领域technical field

本发明涉及电力线路信号处理,具体是涉及一种电流谐波检测方法。The invention relates to power line signal processing, in particular to a current harmonic detection method.

背景技术Background technique

随着电力电子装置的大量使用,电网中的电流谐波问题引起了广泛关注。当电网中存在的谐波成分超过了限制标准时,将严重影响到电力系统和用电设备运行的安全性、可靠性、稳定性和经济性,同时也污染了周围的电气环境。With the extensive use of power electronic devices, the problem of current harmonics in the power grid has attracted widespread attention. When the harmonic components in the power grid exceed the limit standard, it will seriously affect the safety, reliability, stability and economy of the power system and electrical equipment operation, and also pollute the surrounding electrical environment.

谐波检测是谐波问题的一个重要部分,也是分析和治理谐波问题的出发点和主要依据。一方面,谐波检测能够鉴定实际电力系统和谐波源用户的谐波水平是否符合规定的标准,而且也是评价电能质量的重要依据。谐波检测还能用于谐波源设备和其它电气设备的调试、投运过程的测量,以确保设备投运后电力系统和设备的安全经济运行。另一方面,谐波检测是电能质量补偿的基础,能够提供实时补偿、设备(有源电力滤波器(APF)等)补偿的依据等。因此,电力系统中谐波分量的快速、准确检测对电能质量的治理以及谐波的抑制与补偿具有十分重要的意义。Harmonic detection is an important part of harmonic problems, and it is also the starting point and main basis for analyzing and controlling harmonic problems. On the one hand, harmonic detection can identify whether the harmonic levels of the actual power system and harmonic source users meet the specified standards, and it is also an important basis for evaluating power quality. Harmonic detection can also be used for the debugging of harmonic source equipment and other electrical equipment, and the measurement of the commissioning process, so as to ensure the safe and economical operation of the power system and equipment after the equipment is put into operation. On the other hand, harmonic detection is the basis of power quality compensation, which can provide basis for real-time compensation, equipment (active power filter (APF), etc.) compensation, etc. Therefore, the rapid and accurate detection of harmonic components in power systems is of great significance to the control of power quality and the suppression and compensation of harmonics.

谐波检测伴随着电力系统发展的全过程,经历了频域、时域、神经网络、自适应参数辨识的发展过程,形成了多种检测法。频域谐波检测方法主要包括:基于傅立叶分析的FFT检测法和基于小波变换的检测方法。时域谐波检测方法主要包括:基于Fryze时域分析的广义无功电流分离法和瞬时无功功率理论检测法。其它方法还有基于神经网络的谐波检测方法和自适应参数辨识方法等。Along with the whole process of power system development, harmonic detection has experienced the development process of frequency domain, time domain, neural network, and adaptive parameter identification, and has formed a variety of detection methods. Frequency-domain harmonic detection methods mainly include: FFT detection method based on Fourier analysis and detection method based on wavelet transform. Time-domain harmonic detection methods mainly include: generalized reactive current separation method based on Fryze time-domain analysis and instantaneous reactive power theoretical detection method. Other methods include neural network-based harmonic detection methods and adaptive parameter identification methods.

中国专利CN103547328A公开一种谐波检测方法及相关装置。其中,一种谐波检测方法包括:从电力线路中采样电信号以得到N点的电信号序列;将N点的电信号序列进行N点的实数快速傅立叶变换RFFT运算得到第一复数序列;对第一复数序列进行谐波提取处理得到第二复数序列;对第二复数序列进行虚实结合处理以得到第三复数序列;对第三复数序列进行RFFT运算得到第四复数序列;将第四复数序列进行虚实结合处理以得到N点谐波序列。Chinese patent CN103547328A discloses a harmonic detection method and a related device. Among them, a harmonic detection method includes: sampling the electrical signal from the power line to obtain an electrical signal sequence of N points; performing N-point real fast Fourier transform RFFT operations on the electrical signal sequence of N points to obtain the first complex number sequence; Harmonic extraction processing is performed on the first complex number sequence to obtain a second complex number sequence; virtual and real combination processing is performed on the second complex number sequence to obtain a third complex number sequence; RFFT operation is performed on the third complex number sequence to obtain a fourth complex number sequence; the fourth complex number sequence is obtained. Combine virtual and real to get N-point harmonic sequence.

发明内容Contents of the invention

本发明的目的在于提供能够精确分析出电流信号中谐波分量大小的基于输入观测器理论的电力线路电流谐波检测方法。The purpose of the present invention is to provide a power line current harmonic detection method based on input observer theory that can accurately analyze the magnitude of the harmonic component in the current signal.

本发明包括如下步骤:The present invention comprises the steps:

1)从电力线路中采样电流和电网电压信号,得到电流信号序列;1) Sampling the current and grid voltage signals from the power line to obtain the current signal sequence;

2)将采样到的电流信号经过一个积分环节,得到电流信号的积分,并将各频率分量作为新的状态量,建立一个增广的状态空间方程;将采样得到的电网电压信号,经过交流过零检测电路,检测电网电压信号的过零点;通过检测上升沿跳变,求解得到被测信号的频率,同时清零相位累计误差;2) Pass the sampled current signal through an integral link to obtain the integral of the current signal, and use each frequency component as a new state quantity to establish an augmented state space equation; the sampled grid voltage signal is passed through the AC process The zero detection circuit detects the zero-crossing point of the grid voltage signal; by detecting the rising edge transition, the frequency of the measured signal is obtained by solving, and the accumulated phase error is cleared at the same time;

3)通过设计一个龙贝格观测器,并证明观测器的有效性,观测各频率分量的大小。3) By designing a Romberg observer and proving the effectiveness of the observer, observe the magnitude of each frequency component.

在步骤2)中,具体的实现方法如下:In step 2), the specific implementation method is as follows:

假设im(t)是待测周期性电流信号,由于im(t)可以看作是由直流、基波和谐波分量之和组成的,将其表示成傅里叶级数的形式如下:Assuming that im ( t ) is the periodic current signal to be measured, since im ( t ) can be regarded as composed of the sum of DC, fundamental and harmonic components, it can be expressed as a Fourier series as follows :

其中,角频率ω=2πf,f=50Hz,a0是直流分量,ai cos(iωt)+bi sin(iωt)是频率为:iω(i=1,2...n)的正弦信号,ai、bi是第i次分量的参数,第i次分量的幅值Ai和初始相位为:Among them, angular frequency ω=2πf, f=50Hz, a 0 is a DC component, a i cos(iωt)+b i sin(iωt) is a sinusoidal signal with a frequency of iω(i=1,2...n) , a i , b i are the parameters of the i-th component, the amplitude A i and the initial phase of the i-th component for:

如果观测出参数{a0,a1 b1,...ai bi...an bn}的值,就可以计算出各频率分量的幅值和相位大小,即实现了对电流信号im(t)的直流量、基波和谐波的检测。将im(t)作为输入量,通过一个积分环节构造一个动态系统,该系统的一阶状态空间方程描述如下:If the values of the parameters {a 0 ,a 1 b 1 ,...a i b i ...a n b n } are observed, the amplitude and phase of each frequency component can be calculated, that is, the current Detection of DC magnitude, fundamental and harmonics of signal i m (t). Taking i m (t) as the input quantity, a dynamic system is constructed through an integral link, and the first-order state space equation of the system is described as follows:

其中,输出为y;in, output is y;

在稳态工作的情况下,谐波系数{a0 a1 b1…an bn}是缓慢变化的,为了观测各频率分量系数ai、bi的值,将各个频率分量作为新的状态量,In the case of steady-state work, the harmonic coefficient {a 0 a 1 b 1 …a n b n } changes slowly, in order to observe the values of the coefficients a i and b i of each frequency component, each frequency component is used as a new state quantity,

则原状态空间方程拓展为增广矩阵的形式如下:Then the original state space equation is extended to the form of the augmented matrix as follows:

其中, in,

该模型是线性时变系统。The model is a linear time-varying system.

针对线性时变系统,设计一个时变的龙贝格观测器,实现对参数{a0 a1 b1…an bn}的在线观测。For linear time-varying systems, a time-varying Romberg observer is designed to realize online observation of parameters {a 0 a 1 b 1 …a n b n }.

在步骤3)中,所述观测各频率分量大小的具体方法如下:In step 3), the specific method of the size of each frequency component of the observation is as follows:

设计一个时变的龙贝格观测器,首先,构造一个完全相同的模型,其状态估计值是可以直接测量到的,该模型即为状态观测器,在此基础上,通过输出误差来校正状态的估计模型,使状态估计值趋向于系统真实状态,To design a time-varying Romberg observer, first, construct an identical model whose state estimate can be directly measured, the model is the state observer, on this basis, through the output error to correct the estimated model of the state, so that the estimated value of the state tends to the true state of the system,

其中,误差信号的加权矩阵L(wt)为一个(2n+2)×1的矩阵,Wherein, the weighting matrix L(wt) of the error signal is a matrix of (2n+2)×1,

L(wt)=[l0 la0 la1 cos(ωt) lb1 sin(ωt)…lan cos(nωt) lbn sin(nωt)]T L(wt)=[l 0 l a0 l a1 cos(ωt) l b1 sin(ωt)…l an cos(nωt) l bn sin(nωt)] T

其中,l0 la0 la1...lanlbn为常数,其值决定观测器各状态分量的收敛速度。Among them, l 0 l a0 l a1 ... l an l bn are constants whose values determine the convergence speed of each state component of the observer.

定义误差信号则误差的动态系统为:define error signal Then the dynamic system of the error is:

如果证明了当t→∞时,状态量会收敛于x,即趋近于0,就能证明龙贝格观测器能够观测到im(t)的谐波分量,也即证明了本发明提出的谐波检测方法是有效的。If it is proved that when t→∞, the state quantity will converge to x, that is, is close to 0, it can be proved that the Lomberg observer can observe the harmonic component of i m (t), which also proves that the harmonic detection method proposed by the present invention is effective.

命题1(设计李雅普诺夫函数):定义D={1 1/la0 1/la1 1/lb1…1/lbn}为对角阵,取l0>0,lai>0,lbi>0(i=1,2…n),那么V是一个李雅普诺夫函数。Proposition 1 (Designing Lyapunov Functions): Definition D={1 1/l a0 1/l a1 1/l b1 …1/l bn } is a diagonal matrix, take l 0 >0, l ai >0, l bi >0 (i=1,2…n ), then V is a Lyapunov function.

证明1:由于D是一个正定对角阵,那么Proof 1: Since D is a positive definite diagonal matrix, then

其中,V是连续可微且满足:where V is continuously differentiable and satisfies:

(1)V(0)=0,同时对于所有 (1) V(0)=0, and for all

(2)在R2(n+1)中, (2) In R 2(n+1) ,

故V为李雅普诺夫函数,命题1得证。Therefore, V is a Lyapunov function, Proposition 1 is proved.

命题2(龙贝格观测器收敛性分析):龙贝格观测器的状态量收敛于状态量x。Proposition 2 (convergence analysis of Romberg observer): state quantity of Romberg observer converges to the state quantity x.

证明2:由于误差系统是时变系统,采用拉塞尔不变集原理证明观测器的有效性如下:Proof 2: Since the error system is a time-varying system, the validity of the observer is proved by the Russell invariant set principle as follows:

定义集合可知它是误差系统的一致正不变集。define set It can be seen that it is a consistent positive invariant set of the error system.

定义是集合S(R)中的最大不变集。definition is the largest invariant set in the set S(R).

由拉塞尔不变集原理可知,当t→∞时,每个从S(R)中出发的点都收敛于E,即对于 任意的均满足: According to Russell's invariant set principle, when t→∞, every point starting from S(R) converges to E, that is, for any Both meet:

同时,对于满足:At the same time, for Satisfy:

由于集合{1 cos(ωt) sin(ωt)……cos(nωt) sin(nωt)}是线性无关的,故上述方程解存在且唯一,Since the set {1 cos(ωt) sin(ωt)...cos(nωt) sin(nωt)} is linearly independent, the solution to the above equation exists and is unique,

即最大不变集为单元素集,其元素为原点,命题2得证。the largest invariant set is a single-element set whose element is the origin, and Proposition 2 is proved.

需要说明的是,拉塞尔不变集原理给出了误差系统稳定性的证明,但并没有给出收敛速度的分析。参考李雅普诺夫函数的定义可知l0,lai,lbi(i=1,2…n)值直接影响龙贝格观测器的收敛速度。本发明龙贝格观测器观测第n次谐波的最短收敛时间为(2n+1)Ts,当Ts很小,合理选择l0,lai,lbi,可能得到实时性较好的观测效果。It should be noted that the Russell invariant set principle provides a proof of the stability of the error system, but does not give an analysis of the convergence rate. Refer to the definition of Lyapunov function It can be seen that the values of l 0 , la ai , l bi (i=1,2...n) directly affect the convergence speed of the Romberg observer. The shortest convergence time of the Lomberg observer of the present invention to observe the nth harmonic is (2n+1)Ts. When Ts is very small, reasonable selection of l 0 , lai , lbi may obtain better real-time observation effect .

本发明为了精确地分析出信号中谐波分量的大小,提出了一种新的电流谐波检测方法——基于输入观测器技术的谐波检测方法,而且适用于电力线路中电流的谐波检测。In order to accurately analyze the magnitude of the harmonic components in the signal, the present invention proposes a new current harmonic detection method——a harmonic detection method based on input observer technology, which is also suitable for current harmonic detection in power lines .

需要说明的是,这里所描述的龙贝格观测器,不是一种仪器,而是属于现代控制领域的龙贝格观测器。It should be noted that the Romberg observer described here is not an instrument, but a Romberg observer belonging to the field of modern control.

附图说明Description of drawings

图1为本发明电压信号过零检测原理图。Fig. 1 is a principle diagram of voltage signal zero-crossing detection in the present invention.

图2为本发明观测器状态估计的闭环模型图。Fig. 2 is a closed-loop model diagram of observer state estimation in the present invention.

图3为本发明具体应用在三相不控整流电路中的示例图。FIG. 3 is an example diagram of the present invention specifically applied in a three-phase uncontrolled rectification circuit.

图4为本发明提供的谐波检测方法的步骤流程图。Fig. 4 is a flow chart of the steps of the harmonic detection method provided by the present invention.

图5为本发明算法中相位θ(k)的迭代计算示意图。Fig. 5 is a schematic diagram of iterative calculation of phase θ(k) in the algorithm of the present invention.

图6为本发明仿真电流和观测电流的误差分析图。Fig. 6 is an error analysis diagram of the simulated current and the observed current according to the present invention.

图7为本发明加入了白噪声的被测电流信号波形图。FIG. 7 is a waveform diagram of the measured current signal with white noise added in the present invention.

图8为本发明检测到的基波的电流波形图。Fig. 8 is a current waveform diagram of the fundamental wave detected by the present invention.

图9为本发明检测到的5次谐波的电流波形图。Fig. 9 is a current waveform diagram of the fifth harmonic detected by the present invention.

图10为本发明检测到的7次谐波的电流波形图。Fig. 10 is a current waveform diagram of the 7th harmonic detected by the present invention.

图11为本发明检测到的总谐波的电流波形图。Fig. 11 is a current waveform diagram of total harmonics detected by the present invention.

具体实施方式Detailed ways

本发明提供一种新的谐波检测方法,可以精确地分析出电力线路中电流信号的谐波大小。The invention provides a new harmonic detection method, which can accurately analyze the magnitude of the harmonic of the current signal in the power line.

本发明实施例包括如下步骤:Embodiments of the present invention include the following steps:

1)从电力线路中采样电流和电网电压信号,得到电流信号序列;1) Sampling the current and grid voltage signals from the power line to obtain the current signal sequence;

2)将采样到的电流信号经过一个积分环节,得到电流信号的积分,并将各频率分量作为新的状态量,建立一个增广的状态空间方程;将采样得到的电网电压信号,经过交流过零检测电路,检测电网电压信号的过零点;通过检测上升沿跳变,求解得到被测信号的频率,同时清零相位累计误差;2) Pass the sampled current signal through an integral link to obtain the integral of the current signal, and use each frequency component as a new state quantity to establish an augmented state space equation; the sampled grid voltage signal is passed through the AC process The zero detection circuit detects the zero-crossing point of the grid voltage signal; by detecting the rising edge jump, the frequency of the measured signal is obtained by solving, and the accumulated phase error is cleared at the same time;

3)通过设计一个龙贝格观测器,并证明观测器的有效性,观测各频率分量的大小。3) By designing a Romberg observer and proving the effectiveness of the observer, observe the magnitude of each frequency component.

在步骤2)中,将采样到的被测电流信号将送入积分环节,将采样得到的电网电压信号,经过交流过零检测电路,检测电网电压信号的过零点,如图1所示。通过检测上升沿跳变,求解得到被测信号的频率,同时清零相位累计误差。In step 2), the sampled measured current signal will be sent to the integration link, and the sampled grid voltage signal will pass through the AC zero-crossing detection circuit to detect the zero-crossing point of the grid voltage signal, as shown in Figure 1. By detecting the rising edge transition, the frequency of the measured signal is obtained by solving, and the accumulated phase error is cleared at the same time.

具体的实现方法如下:The specific implementation method is as follows:

假设im(t)是待测周期性电流信号,由于im(t)可以看作是由直流、基波和谐波分量之和组成的,将其表示成傅里叶级数的形式如下:Assuming that im ( t ) is the periodic current signal to be measured, since im ( t ) can be regarded as composed of the sum of DC, fundamental and harmonic components, it can be expressed as a Fourier series as follows :

其中,角频率ω=2πf,f=50Hz,a0是直流分量,ai cos(iωt)+bi sin(iωt)是频率为:iω(i=1,2...n)的正弦信号,ai、bi是第i次分量的参数,第i次分量的幅值Ai和初始相位为:Among them, angular frequency ω=2πf, f=50Hz, a 0 is a DC component, a i cos(iωt)+b i sin(iωt) is a sinusoidal signal with a frequency of iω(i=1,2...n) , a i , b i are the parameters of the i-th component, the amplitude A i and the initial phase of the i-th component for:

如果观测出参数{a0,a1 b1,...ai bi...an bn}的值,就可以计算出各频率分量的幅值和相位大小,即实现了对电流信号im(t)的直流量、基波和谐波的检测。将im(t)作为输入量,通过一个积分环节构造一个动态系统,该系统的一阶状态空间方程描述如下:If the values of the parameters {a 0 ,a 1 b 1 ,...a i b i ...a n b n } are observed, the amplitude and phase of each frequency component can be calculated, that is, the current Detection of DC magnitude, fundamental and harmonics of signal i m (t). Taking i m (t) as the input quantity, a dynamic system is constructed through an integral link, and the first-order state space equation of the system is described as follows:

其中,输出为y。in, The output is y.

在稳态工作的情况下,谐波系数{a0 a1 b1 … an bn}是缓慢变化的。为了观测各频率分量系数ai、bi的值,将各个频率分量作为新的状态量:In the case of steady-state operation, the harmonic coefficient {a 0 a 1 b 1 … a n b n } changes slowly. In order to observe the values of the coefficients a i and b i of each frequency component, each frequency component is used as a new state quantity:

则原状态空间方程拓展为增广矩阵的形式如下:Then the original state space equation is extended to the form of the augmented matrix as follows:

其中, in,

该模型是线性时变系统。接下来本发明针对该系统,设计了一个时变的龙贝格观测器,实现对参数{a0 a1 b1…an bn}的在线观测。The model is a linear time-varying system. Next, the present invention designs a time-varying Romberg observer for this system to realize online observation of parameters {a 0 a 1 b 1 ... a n b n }.

在步骤(3)中,本发明观测谐波的实施方式如下:In step (3), the embodiment of the present invention's observation harmonic is as follows:

设计一个时变的龙贝格观测器,观测器的闭环状态估计模型如图2所示。首先,构造一个完全相同的模型,其状态估计值是可以直接测量到的,这个人为构造的系统就是状态观测器。在此基础上,通过输出误差来校正状态的估计模型,使状态估计值趋向于系统真实状态。A time-varying Romberg observer is designed, and the closed-loop state estimation model of the observer is shown in Figure 2. First, construct an identical model with state estimates It can be measured directly, and this man-made system is the state observer. On this basis, by outputting the error to correct the estimated model of the state, so that the estimated value of the state tends to the real state of the system.

其中,误差信号的加权矩阵L(wt)为一个(2n+2)×1的矩阵,Wherein, the weighting matrix L(wt) of the error signal is a matrix of (2n+2)×1,

L(wt)=[l0 la0 la1 cos(ωt) lb1 sin(ωt)…lan cos(nωt) lbn sin(nωt)]T L(wt)=[l 0 l a0 l a1 cos(ωt) l b1 sin(ωt)…l an cos(nωt) l bn sin(nωt)] T

其中,l0 la0 la1...lanlbn为常数,其值决定观测器各状态分量的收敛速度。Among them, l 0 l a0 l a1 ... l an l bn are constants whose values determine the convergence speed of each state component of the observer.

定义误差信号则误差的动态系统为define error signal Then the dynamic system of the error is

如果证明了当t→∞时,状态量会收敛于x,即趋近于0,就能证明观测器能够观测到im(t)的谐波分量,也即证明了本发明提出的谐波检测方法是有效的。If it is proved that when t→∞, the state quantity will converge to x, that is, is close to 0, it can be proved that the observer can observe the harmonic component of i m (t), which proves that the harmonic detection method proposed by the present invention is effective.

命题1(设计李雅普诺夫函数):定义D={1 1/la0 1/la1 1/lb1…1/lbn}为对角阵,取l0>0,lai>0,lbi>0(i=1,2…n),那么V是一个李雅普诺夫函数。Proposition 1 (Designing Lyapunov Functions): Definition D={1 1/l a0 1/l a1 1/l b1 …1/l bn } is a diagonal matrix, take l 0 >0, l ai >0, l bi >0 (i=1,2…n ), then V is a Lyapunov function.

证明1:由于D是一个正定对角阵,那么Proof 1: Since D is a positive definite diagonal matrix, then

其中,V是连续可微且满足where V is continuously differentiable and satisfies

(1)V(0)=0,同时对于所有 (1) V(0)=0, and for all

(2)在R2(n+1)中, (2) In R 2(n+1) ,

故V为李雅普诺夫函数,命题1得证。Therefore, V is a Lyapunov function, Proposition 1 is proved.

命题2(观测器收敛性分析):观测器的状态量收敛于状态量x。Proposition 2 (Observer Convergence Analysis): The State Quantity of the Observer converges to the state quantity x.

证明2:由于误差系统是时变系统,采用拉塞尔不变集原理证明观测器的有效性如下,Proof 2: Since the error system is a time-varying system, the effectiveness of the observer is proved by the Russell invariant set principle as follows,

定义集合可知它是误差系统的一致正不变集。define set It can be seen that it is a consistent positive invariant set of the error system.

定义是集合S(R)中的最大不变集。definition is the largest invariant set in the set S(R).

由拉塞尔不变集原理可知,当t→∞时,每个从S(R)中出发的点都收敛于E,即对于 任意的均满足 According to Russell's invariant set principle, when t→∞, every point starting from S(R) converges to E, that is, for any Satisfied

同时,对于满足At the same time, for Satisfy

由于集合{1 cos(ωt) sin(ωt)……cos(nωt) sin(nωt)}是线性无关的,故上述方程解存在且唯一,Since the set {1 cos(ωt) sin(ωt)...cos(nωt) sin(nωt)} is linearly independent, the solution to the above equation exists and is unique,

即最大不变集为单元素集,其元素为原点,命题2得证。the largest invariant set is a single-element set whose element is the origin, and Proposition 2 is proved.

需要说明的是,拉塞尔不变集原理给出了误差系统稳定性的证明,但并没有给出收敛速度的分析。参考李雅普诺夫函数的定义可知l0,lai,lbi(i=1,2…n)值直接影响观测器的收敛速度。本发明观测器观测第n次谐波的最短收敛时间为(2n+1)Ts,当Ts很小,合理选择l0,lai,lbi,可能得到实时性较好的观测效果。It should be noted that the Russell invariant set principle provides a proof of the stability of the error system, but does not give an analysis of the convergence rate. Refer to the definition of Lyapunov function It can be seen that the values of l 0 , la ai , l bi (i=1,2...n) directly affect the convergence speed of the observer. The shortest convergence time of the observer observing the nth harmonic of the present invention is (2n+1)Ts. When Ts is very small, reasonable selection of l 0 , lai , lbi may obtain better real-time observation effect.

图3为本发明提供的谐波检测方法的步骤流程图,包括如下步骤:Fig. 3 is the flow chart of the steps of the harmonic detection method provided by the present invention, comprising the following steps:

(1)采集电流和电压信号100。(1) Acquire current and voltage signals 100 .

对电流信号和电压信号分别进行采样。The current signal and the voltage signal are sampled separately.

电流信号接下来送入积分环节见步骤(2)。The current signal is then sent to the integration link, see step (2).

将采集的电压信号转换为方波,并通过软件检测上升沿跳变。由于电网中电流的频率是在变化的,为了保证算法中的频率信息和被测电流的频率一致,需要对相位θ(k)做如下迭代计算,如图4。其中,T0、T1、T2、T3等为某四个连续的计算周期。The collected voltage signal is converted into a square wave, and the rising edge transition is detected by software. Since the frequency of the current in the power grid is changing, in order to ensure that the frequency information in the algorithm is consistent with the frequency of the measured current, it is necessary to perform the following iterative calculation on the phase θ(k), as shown in Figure 4. Wherein, T0, T1, T2, T3, etc. are four consecutive calculation cycles.

T1:θ(k+1)=wT0Ts+θ(k)T1: θ(k+1)=w T0 Ts+θ(k)

T2:θ(k+1)=wT1Ts+θ(k)T2: θ(k+1)=w T1 Ts+θ(k)

T3:θ(k+1)=wT2Ts+θ(k)T3: θ(k+1)=w T2 Ts+θ(k)

……...

首先,由于频率是缓慢变化的,故可以使用上一个工频周期末计算得到的角频率用于本周期(例如T0周期末计算的角频率wT0用于T1周期),进行相位的累加,使算法内部的频率与被测信号的频率近似相等。但是,由于误差存在是不可避免的,在相位累加的过程中会造成误差的累积,为了避免这种情况的发生,在每一个检测到的上升沿,清零θ来消除累积误差,也就在每一个工频周期末清零了相位误差。First of all, since the frequency changes slowly, the angular frequency calculated at the end of the last power frequency cycle can be used for this cycle (for example, the angular frequency w T0 calculated at the end of the T0 cycle is used for the T1 cycle), and the phase is accumulated so that The frequency inside the algorithm is approximately equal to the frequency of the signal under test. However, since the existence of errors is unavoidable, the accumulation of errors will be caused during the phase accumulation process. In order to avoid this situation, at each rising edge detected, θ is cleared to eliminate the accumulated errors, that is, in The phase error is cleared at the end of each power frequency cycle.

(2)将电流信号通过积分环节,建立增广状态方程101。(2) Pass the current signal through the integration link to establish the augmented state equation 101 .

电流信号im(t)作为输入量,通过一个积分环节构造动态系统,The current signal i m (t) is used as the input quantity, and the dynamic system is constructed through an integral link,

其中,输出为y。 where the output is y.

将各个频率分量的谐波系数{a0 a1 b1…an bn}作为新的状态量,构造一个增广状态矩阵,Taking the harmonic coefficient {a 0 a 1 b 1 …a n b n } of each frequency component as a new state quantity, construct an augmented state matrix,

其中 in

(3)构建观测器,观测出各个频率分量的大小102。(3) Build an observer to observe the size 102 of each frequency component.

初始化各状态量,在k=0时刻,状态量设置参数l0,lai,lbi,计算周期为Ts。Initialize each state quantity, at k=0 time, the state quantity Set the parameters l 0 , l ai , l bi , and the calculation period is Ts.

由观测器方程可知:From the observer equation we know:

在k时刻,对采集的电流信号积分后得到x1(k),将连续观测器写作离散的形式,k+1时刻各状态的估计值为:At time k, x 1 (k) is obtained after integrating the collected current signal, and the continuous observer is written in a discrete form, and the estimated value of each state at time k+1 is:

(4)误差计算103。(4) Error calculation 103 .

计算误差当相对误差趋近于1%时,一般可以认为误差已收敛,状态估计值已趋进于系统真实状态,得到参数的值,从而可以计算出k时刻各频率分量,进一步就可以计算出基波和各谐波的幅值和相位。若相对误差没有满足要求,观测器进入下一步的迭代。Calculation error When the relative error approaches 1%, it can generally be considered that the error has converged, and the state estimate has tended to the real state of the system, and the parameter Therefore, the frequency components at time k can be calculated, and the amplitude and phase of the fundamental wave and each harmonic can be calculated further. If the relative error does not meet the requirements, the observer enters the next iteration.

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合实施例中的附图,对本发明中提出的谐波检测的新方法进行清楚、完整地描述,下面所描述的实施例仅仅是本发明一部分的实施例,并非全部的实施例。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the new method of harmonic detection proposed in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments. The embodiments are only some embodiments of the present invention, not all embodiments.

本发明的谐波检测方法可以适用于所有电力线路,由于三相不控整流电路具有典型的非线性负载特点,本发明是以检测三相不控整流电路为例子进行说明的。The harmonic detection method of the present invention can be applied to all power lines. Since the three-phase uncontrolled rectifier circuit has typical nonlinear load characteristics, the present invention is described by taking the detection of the three-phase uncontrolled rectifier circuit as an example.

下面利用可编程三相电压源模拟三相电网电压,并通过分析三相不控整流交流侧电流信号的谐波检测效果,来对本发明的谐波分析更清楚的阐述,电路结构参见,图5为本发明提出的谐波检测方法应用在三相不控整流电路中的示例图,电路参数见表1。Next, the programmable three-phase voltage source is used to simulate the three-phase grid voltage, and by analyzing the harmonic detection effect of the three-phase uncontrolled rectification AC side current signal, the harmonic analysis of the present invention is explained more clearly. For the circuit structure, see Fig. 5 It is an example diagram of the application of the harmonic detection method proposed by the present invention in a three-phase uncontrolled rectification circuit, and the circuit parameters are shown in Table 1.

表1三相不控整流电路参数Table 1 Three-phase uncontrolled rectification circuit parameters

图6对仿真电流和观测电流的误差分析,其中,误差电流为仿真电流和观测电流的差值。可以看出,在短暂的震荡后,观测电流能够迅速跟踪上仿真电流。误差电流的变化范围在±0.1A之内。Fig. 6 is an error analysis of the simulated current and the observed current, where the error current is the difference between the simulated current and the observed current. It can be seen that after a brief oscillation, the observed current can quickly track the simulated current. The variation range of the error current is within ±0.1A.

各个频次谐波分量的参数能够在观测电流的一个周期内收敛。Parameters of each frequency harmonic component Able to converge within one cycle of the observed current.

噪声对参数的收敛并没有影响,能够在一个工频周期内归于稳定。在0.15s负载发生突变时,能够迅速收敛到新的值。noise pair parameter There is no influence on the convergence, and it can be stabilized within one power frequency cycle. When the load changes suddenly at 0.15s, can quickly converge to new values.

本发明基于观测器的谐波检测方法克服了瞬时无功功率等检测方法只能测出总谐波电流的局限性,可以同时检测出各个指定频次的谐波分量,如图7~11。由于仿真采用的是三相对称电路,故而电流谐波不含有偶次项,而且3倍数谐波的值也很小。图为加入了白噪声的被测电流信号,图8~11分别为检测到的基波、5次、7次以及总谐波电流信号。在0.15s负载发生突变时,检测的各频率的电流也能够平稳的过渡到新的状态。The observer-based harmonic detection method of the present invention overcomes the limitation that instantaneous reactive power and other detection methods can only measure total harmonic current, and can detect harmonic components of each specified frequency at the same time, as shown in Figures 7-11. Because the simulation uses a three-phase symmetrical circuit, the current harmonics do not contain even-order items, and the value of the 3-fold harmonic is also very small. The picture shows the measured current signal with white noise added, and Figures 8 to 11 show the detected fundamental, 5th, 7th and total harmonic current signals respectively. When the load changes suddenly in 0.15s, the detected currents of each frequency can also transition to a new state smoothly.

表2为将本发明提出的谐波检测方法同FFT算法的结果比较。将FFT算法计算的各频次谐波分量的幅值(peak)列在表2中。同时,将观测后计算后得的各次谐波的幅值也记入表2,各次谐波误差分析见表2中的相对误差(Relative error)。从表2中看出,与FFT算法得出的谐波分量对比,本方法的相对误差小于0.3%,表明观测器算法能够准确地检测出电流中的基波和谐波分量。其中,是取稳定后的平均值。Table 2 compares the results of the harmonic detection method proposed by the present invention with the FFT algorithm. The amplitude (peak) of each frequency harmonic component calculated by the FFT algorithm is listed in Table 2. At the same time, the amplitude of each harmonic obtained after observation and calculation It is also recorded in Table 2, and the analysis of each harmonic error is shown in the relative error (Relative error) in Table 2. It can be seen from Table 2 that, compared with the harmonic components obtained by the FFT algorithm, the relative error of this method is less than 0.3%, indicating that the observer algorithm can accurately detect the fundamental and harmonic components in the current. in, is the average value after stabilization.

表2本发明观测器方法谐波分析与傅里叶分析方法对比Table 2 Observer method harmonic analysis of the present invention and Fourier analysis method contrast

本发明提出了一种基于输入观测器理论的电流谐波检测方法。该方法令被测电流经过一个积分环节,构成一个状态量,并将基波和各次谐波分量作为新的状态量,设计观测器将其观测出来,并用李雅普诺夫定理和拉塞尔不变集原理对观测器进行了收敛性和稳定性分析。与其它谐波检测方法相比,本方法能够对单路电流进行检测,可用于单相、三相三线制或三相四线制的检测谐波;可以测量基波和各频次谐波分量;能够快速、精确地检测出谐波;当负载电流发生突变时,本方法收敛速度快,具备很好的动态跟踪性;对噪声具有很好的抗干扰性。The invention proposes a current harmonic detection method based on the input observer theory. This method makes the measured current go through an integral link to form a state quantity, and uses the fundamental wave and each harmonic component as a new state quantity, and designs an observer to observe it, and uses Lyapunov's theorem and Russell's different The variation set principle analyzes the convergence and stability of the observer. Compared with other harmonic detection methods, this method can detect single-circuit current, and can be used to detect harmonics in single-phase, three-phase three-wire system or three-phase four-wire system; it can measure fundamental wave and harmonic components of each frequency; It can quickly and accurately detect harmonics; when the load current changes suddenly, the method has a fast convergence speed and has good dynamic tracking performance; it has good anti-interference performance to noise.

Claims (2)

1.基于输入观测器理论的电力线路电流谐波检测方法,其特征在于包括如下步骤:1. based on the power line current harmonic detection method of input observer theory, it is characterized in that comprising the steps: 1)从电力线路中采样电流和电网电压信号,得到电流信号序列;1) Sampling the current and grid voltage signals from the power line to obtain the current signal sequence; 2)将采样到的电流信号经过一个积分环节,得到电流信号的积分,并将各频率分量作为新的状态量,建立一个增广的状态空间方程;将采样得到的电网电压信号,经过交流过零检测电路,检测电网电压信号的过零点;通过检测上升沿跳变,求解得到被测信号的频率,同时清零相位累计误差;2) Pass the sampled current signal through an integral link to obtain the integral of the current signal, and use each frequency component as a new state quantity to establish an augmented state space equation; the sampled grid voltage signal is passed through the AC process The zero detection circuit detects the zero-crossing point of the grid voltage signal; by detecting the rising edge transition, the frequency of the measured signal is obtained by solving, and the accumulated phase error is cleared at the same time; 具体的实现方法如下:The specific implementation method is as follows: 假设im(t)是待测周期性电流信号,由于im(t)看作是由直流、基波和谐波分量之和组成的,将其表示成傅里叶级数的形式如下:Assuming that im ( t ) is the periodic current signal to be measured, since im ( t ) is considered to be composed of the sum of DC, fundamental and harmonic components, it can be expressed as a Fourier series as follows: 其中,角频率ω=2πf,f=50Hz,a0是直流分量,aicos(iωt)+bisin(iωt)是角频率为iω的正弦信号,其中i=1,2...n,ai、bi是第i次分量的参数,第i次分量的幅值Ai和初始相位为:Among them, angular frequency ω=2πf, f=50Hz, a 0 is a DC component, a i cos(iωt)+b i sin(iωt) is a sinusoidal signal with angular frequency iω, where i=1,2...n , a i , b i are the parameters of the i-th component, the amplitude A i and the initial phase of the i-th component for: 如果观测出参数{a0,a1b1,...aibi...anbn}的值,那么计算出各频率分量的幅值和相位大小,即实现对电流信号im(t)的直流量、基波和谐波的检测;将im(t)作为输入量,通过一个积分环节构造一个动态系统,该系统的一阶状态空间方程描述如下:If the values of the parameters {a 0 ,a 1 b 1 ,...a i b i ...a n b n } are observed, then the amplitude and phase of each frequency component are calculated, that is, the current signal i The detection of DC flow, fundamental wave and harmonic of m (t); taking i m (t) as an input quantity, a dynamic system is constructed through an integral link, and the first-order state space equation of the system is described as follows: 其中,输出为y;in, output is y; 在稳态工作的情况下,谐波系数{a0 a1 b1…an bn}是缓慢变化的,为了观测各频率分量系数ai、bi的值,将各个频率分量作为新的状态量,In the case of steady-state work, the harmonic coefficient {a 0 a 1 b 1 …a n b n } changes slowly, in order to observe the values of the coefficients a i and b i of each frequency component, each frequency component is used as a new state quantity, 则原状态空间方程拓展为增广矩阵的形式如下:Then the original state space equation is extended to the form of the augmented matrix as follows: 其中, in, 针对线性时变系统,设计一个时变的龙贝格观测器,实现对参数{a0 a1 b1…an bn}的在线观测;For linear time-varying systems, a time-varying Romberg observer is designed to realize online observation of parameters {a 0 a 1 b 1 …a n b n }; 3)通过设计一个龙贝格观测器,并证明观测器的有效性,观测各频率分量的大小。3) By designing a Romberg observer and proving the effectiveness of the observer, observe the magnitude of each frequency component. 2.如权利要求1所述基于输入观测器理论的电力线路电流谐波检测方法,其特征在于在步骤3)中,所述观测各频率分量大小的具体方法如下:2. as claimed in claim 1 based on the power line current harmonic detection method of input observer theory, it is characterized in that in step 3) in, the concrete method of each frequency component size of described observation is as follows: 设计一个时变的龙贝格观测器,首先,构造一个完全相同的模型,其状态估计值是直接测量到的,该模型即为状态观测器,在此基础上,通过输出误差来校正状态的估计模型,使状态估计值趋向于系统真实状态,To design a time-varying Romberg observer, first, construct an identical model whose state estimate is directly measured, the model is the state observer, on this basis, through the output error to correct the estimated model of the state, so that the estimated value of the state tends to the true state of the system, 其中,误差信号的加权矩阵L(ωt)为一个(2n+2)×1的矩阵,Among them, the weighting matrix L(ωt) of the error signal is a matrix of (2n+2)×1, L(ωt)=[l0la0la1cos(ωt)lb1sin(ωt)…lancos(nωt)lbnsin(nωt)]T L(ωt)=[l 0 l a0 l a1 cos(ωt)l b1 sin(ωt)…l an cos(nωt)l bn sin(nωt)] T 其中,l0la0la1...lanlbn为常数,其值决定观测器各状态分量的收敛速度;Among them, l 0 l a0 l a1 ...l an l bn are constants, whose values determine the convergence speed of each state component of the observer; 定义误差信号则误差的动态系统为:define error signal Then the dynamic system of the error is: 如果证明了当t→∞时,状态量会收敛于x,即趋近于0,就能证明龙贝格观测器能够观测到im(t)的谐波分量,也即证明提出的谐波检测方法有效。If it is proved that when t→∞, the state quantity will converge to x, that is, is close to 0, it can be proved that the Lomberg observer can observe the harmonic component of i m (t), which means that the proposed harmonic detection method is effective.
CN201510413687.6A 2015-07-15 2015-07-15 Power circuit current harmonics detection method based on input Observer Theory Expired - Fee Related CN105116218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510413687.6A CN105116218B (en) 2015-07-15 2015-07-15 Power circuit current harmonics detection method based on input Observer Theory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510413687.6A CN105116218B (en) 2015-07-15 2015-07-15 Power circuit current harmonics detection method based on input Observer Theory

Publications (2)

Publication Number Publication Date
CN105116218A CN105116218A (en) 2015-12-02
CN105116218B true CN105116218B (en) 2018-11-02

Family

ID=54664254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510413687.6A Expired - Fee Related CN105116218B (en) 2015-07-15 2015-07-15 Power circuit current harmonics detection method based on input Observer Theory

Country Status (1)

Country Link
CN (1) CN105116218B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018146767A1 (en) * 2017-02-09 2018-08-16 理化工業株式会社 Zero-crossing detection device
CN113049872B (en) * 2021-02-02 2021-11-16 厦门大学 An electrical signal zero detection method for multiple low frequency current ripple suppression

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009056158A1 (en) * 2007-11-02 2009-05-07 Conergy Ag Method and device for filtering a filter output current and / or voltage of an inverter output
CN101587146A (en) * 2009-06-10 2009-11-25 湖南大学 Parameter detection method for harmonic wave and indirect harmonic wave
CN103547328A (en) * 2012-05-22 2014-01-29 深圳市英威腾电气股份有限公司 Harmonic detection method and related device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009056158A1 (en) * 2007-11-02 2009-05-07 Conergy Ag Method and device for filtering a filter output current and / or voltage of an inverter output
CN101587146A (en) * 2009-06-10 2009-11-25 湖南大学 Parameter detection method for harmonic wave and indirect harmonic wave
CN103547328A (en) * 2012-05-22 2014-01-29 深圳市英威腾电气股份有限公司 Harmonic detection method and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Analysis and simulation of single phase composite observer for harmonics extraction;K. Selvajyothi等;《PEDES"06 International Conference on Power》;20061231;1-6 *
Extraction of Harmonics Using Composite Observers;K. Selvajyothi等;《IEEE TRANSACTIONS ON POWER DELIVERY》;20080131;第23卷(第1期);31-40 *

Also Published As

Publication number Publication date
CN105116218A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
Wang et al. A new method with Hilbert transform and slip-SVD-based noise-suppression algorithm for noisy power quality monitoring
Xia et al. Single-phase phase angle measurements in electric power systems
Ma et al. Application of multisynchrosqueezing transform for subsynchronous oscillation detection using PMU data
Jain et al. An adaptive time-efficient technique for harmonic estimation of nonstationary signals
CN103941072B (en) A kind of electric power signal mutation parameter measuring method based on real number Strong tracking filter
Yao et al. Fast S-transform for time-varying voltage flicker analysis
Lin et al. Recursive algorithm for real-time measurement of electrical variables in power systems
CN106154040B (en) A Method for Calculating Equivalent Harmonic Impedance at Single Point Equivalence of Power Grid
CN101216512A (en) A real-time high-precision detection method for non-sinusoidal periodic signals
CN105319447A (en) Dielectric loss Tan delta test method and tester
CN102565523A (en) Current harmonic detection system and working method
Reddy et al. An open-loop fundamental and harmonic phasor estimator for single-phase voltage signals
Ma et al. Harmonic and interharmonic analysis of mixed dense frequency signals
CN105116218B (en) Power circuit current harmonics detection method based on input Observer Theory
Lee et al. Energy theory based dynamic adaptive phasor estimation for smart electric grid
ElRefaie et al. A novel technique to eliminate the effect of decaying DC component on DFT based phasor estimation
Khodaparast et al. Emd-prony for phasor estimation in harmonic and noisy condition
Xu et al. Localization approach for forced oscillation source based on synchrosqueezed wavelet
Ray et al. Improved recursive newton type algorithm based power system frequency estimation
CN104198813B (en) A device and method for measuring the impedance angle of an ultrasonic transducer by an orthogonal correlation method
Enayati et al. A novel AI-driven hybrid method for flicker estimation in power systems
CN111505420A (en) A method and system for online monitoring and diagnosis of line arrester status
Enayati et al. A Hybrid Artificial Intelligence Method for Estimating Flicker in Power Systems
Liu et al. Harmonic source location at the point of common coupling based on the nonlinearity index of load
Jain et al. A Computationally Efficient Algorithm for Harmonic Phasors Estimation in Real-time

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181102