Summary of the invention
The present invention is in order to solve the low problem of accuracy of detection of existing voltage fundamental harmonic component detection method, thereby the detection method of a kind of line voltage fundametal compoment and harmonic component is provided.
The detection method of a kind of line voltage fundametal compoment and harmonic component, it is realized by following steps:
Step 1, according to LMS algorithm construction trapper, gather the voltage signal of each phase of line voltage, adopt said trapper to separate to gathering each phase voltage signal that obtains, obtain the fundametal compoment and the each harmonic component of every phase voltage;
Step 2, with the feedback of the error signal in the fundametal compoment of the A phase voltage that obtains in the step 1 as phaselocked loop; And adopting phaselocked loop to obtain the estimated value of line voltage frequency and the estimated value of phase place, the estimated value of said line voltage frequency and the estimated value of phase place are used to generate the required reference input vector of LMS algorithm of structure trapper;
The fundametal compoment and the each harmonic component of step 3, every phase voltage of obtaining according to step 1; Adopt symmetrical component method; Detect positive sequence, negative phase-sequence and the zero sequence information of first-harmonic and each harmonic, and, accomplish line voltage first-harmonic harmonic component detection as testing result.
Step 1 is described according to LMS algorithm construction trapper; Gather the voltage signal of each phase of line voltage; Each phase voltage signal that adopts said trapper that collection is obtained separates acquisition fundametal compoment and each harmonic component, obtains the fundametal compoment of every phase voltage and the detailed process of each harmonic component and is:
Every phase line voltage is adopted expression formula:
Expression, in the formula, U
nBe the amplitude of nth harmonic, ω is a fundamental frequency, and t is the time,
Be the initial phase angle of nth harmonic, n is a positive integer, and said first-harmonic phase angle is:
In the formula: the first-harmonic phase angle estimated value that
expression is obtained by phaselocked loop; Δ θ representes first-harmonic phase angle evaluated error, so the phase angle of nth harmonic is:
The expression formula of the single-phase line voltage of phase angle substitution of nth harmonic, put in order:
is adjustment factor in the formula, and said adjustment factor is selected the LMS algorithm picks for use;
Line voltage in above-mentioned is expressed as the form of two inner product of vectors, that is:
In the formula; The line voltage u (t) that
estimates based on the trapper of LMS for utilization; W is a weight vector, and its expression formula is:
X is with reference to input vector, and expression formula is:
Described in the step 2 with the feedback of the error signal in the fundametal compoment of the A phase voltage that obtains in the step 1 as phaselocked loop, and the detailed process of estimated value that adopts phaselocked loop to obtain estimated value and the phase place of line voltage frequency is:
The expression formula of the weight vector W that step 1 is obtained is revised as:
W=[W
11,W
12,…,W
n1,W
n2,…]
T
In the LMS algorithm, utilize error signal e (n) to pass through formula:
W(n+1)=W(n)+ηe(n)X(n)
Regulate weight vector W, wherein, η is the study step-length, and 0<η≤1, and X (n) is with reference to the input signal in the input vector;
Then, according to formula:
W
12=U
1sin(Δθ)
Obtain the evaluated error of line voltage phase angle;
Adopt classical second-order PLL control system, the evaluated error of line voltage phase angle is carried out filtering and integration, obtain the estimated value of line voltage frequency and the estimated value of phase place.
The fundametal compoment of the described every phase voltage that obtains according to step 1 of step 3 adopts the concrete grammar of positive sequence, negative phase-sequence and the zero sequence information of symmetrical component method detection first-harmonic and each harmonic to be with the each harmonic component:
For the three phase network voltage V (t) of single-frequency, its expression formula is:
Three-phase sinusoidal signal can resolve into positive sequence, negative phase-sequence and zero-sequence component and, that is:
V(t)=V
+(t)+V
-(t)+V
0(t)
V wherein
+(t), V
-(t), V
0(t) represent positive sequence, negative phase-sequence and zero-sequence component respectively, that is:
The relation table of the three phase network voltage V (t) of positive sequence, negative phase-sequence and zero-sequence component and single-frequency is shown as following matrixing form:
P wherein
90 °Representative is carried out 90 degree phase shifts to V (t), and X, Y are expressed as:
After linear matrixing, promptly obtain positive sequence, negative phase-sequence and zero-sequence component by the three-phase asymmetrical component.
Beneficial effect: the present invention can exist under the situation such as non-sinusoidal, asymmetric, phase angle sudden change, amplitude sudden change, frequency shift (FS), random noise at line voltage; Accurately detect positive sequence, negative phase-sequence and the zero sequence information of first-harmonic and each harmonic; Has strong robustness, characteristics such as accuracy of detection height.
Embodiment
The detection method of embodiment one, a kind of line voltage fundametal compoment and harmonic component, it is realized by following steps:
Step 1, according to LMS algorithm construction trapper, gather the voltage signal of each phase of line voltage, adopt said trapper to separate to gathering each phase voltage signal that obtains, obtain the fundametal compoment and the each harmonic component of every phase voltage;
Step 2, with the feedback of the error signal in the fundametal compoment of the A phase voltage that obtains in the step 1 as phaselocked loop; And adopting phaselocked loop to obtain the estimated value of line voltage frequency and the estimated value of phase place, the estimated value of said line voltage frequency and the estimated value of phase place are used to generate the required reference input vector of LMS algorithm of structure trapper;
The fundametal compoment and the each harmonic component of step 3, every phase voltage of obtaining according to step 1; Adopt symmetrical component method; Detect positive sequence, negative phase-sequence and the zero sequence information of first-harmonic and each harmonic, and, accomplish line voltage first-harmonic harmonic component detection as testing result.
Detailed process is:
For single-phase line voltage, its expression formula is:
In the formula, U
nBe the amplitude of nth harmonic, ω is a fundamental frequency, and t is the time,
Be the initial phase angle of nth harmonic, said first-harmonic phase angle is:
In the formula: the first-harmonic phase angle estimated value that
expression is obtained by phaselocked loop; Δ θ representes first-harmonic phase angle evaluated error, so the phase angle of nth harmonic is:
The expression formula of the single-phase line voltage of phase angle substitution of nth harmonic, put in order:
is adjustment factor in the formula, and said adjustment factor is selected the LMS algorithm picks for use;
Even from following formula, can find out under the initial phase angle condition of unknown of voltage signal, also can reappear original signal through adjustment factor
.The algorithm of adjustment factor is a lot, and this patent adopts the better lowest mean square of practicality (LMS) algorithm.Be illustrated in figure 1 as the trapper schematic diagram based on LMS, the phase information of single-phase line voltage is imported as a reference, single-phase line voltage u (t) is as original input, and the error of system's output is used as the signal of regulating neuron weights W.This detection algorithm belongs to closed loop correction detection algorithm, and accuracy is than higher, and real-time is good.
Line voltage in above-mentioned is expressed as the form of two inner product of vectors, that is:
In the formula; The line voltage u (t) that
estimates based on the trapper of LMS for utilization, W are that weight vector is with reference to input vector with X:
Again represent weight vector W, that is:
W=[W
11,W
12,…,W
n1,W
n2,…]
T (8)
In the LMS algorithm, utilize error signal e (n) to pass through formula:
W(n+1)=W(n)+ηe(n)X(n) (9)
Regulate weight vector W, wherein, η is the study step-length, and 0<η≤1, and X (n) is the network reference input signal;
Then, according to formula:
W
12=U
1sin(Δθ) (9)
Obtain the evaluated error of line voltage phase angle;
Adopt classical second-order PLL control system, the evaluated error of line voltage phase angle is carried out filtering and integration, obtain the estimated value of line voltage frequency and the estimated value of phase place;
With the error signal of A phase fundametal compoment feedback, estimate line voltage frequency and phase place by phaselocked loop as phaselocked loop.Concrete method is: the evaluated error W that can be obtained the line voltage phase angle by algorithm that step 1 is carried
12, can know the weights W of fundametal compoment by above derivation
12=U
1Sin (Δ θ).It is thus clear that in weights, comprised the information of line voltage phase angle evaluated error, so can the phase angle evaluated error be adjusted to zero through the suitable closed-loop control system of design.This patent adopts classical second-order PLL control system.Through the filtering of PI loop filter, what obtain is frequency signal, passes through the integral element as voltage controlled oscillator again the phase angle evaluated error, and output is estimated phase angle at last.
Fundametal compoment and the each harmonic component of the every phase voltage that obtains according to step 1 adopt symmetrical component method to detect positive sequence, negative phase-sequence and the zero sequence information of first-harmonic and each harmonic, the detection of realization line voltage first-harmonic harmonic component.
Fundametal compoment and the each harmonic component of the every phase voltage that obtains according to step 1, adopt the concrete grammar of positive sequence, negative phase-sequence and the zero sequence information of symmetrical component method detection first-harmonic and each harmonic to be:
Utilize symmetrical component method, can obtain positive sequence, negative phase-sequence and the zero sequence information of first-harmonic and harmonic wave.Concrete method is: the above detection method of narrating for single-phase signal amplitude, phase place, frequency.If when the generation electric network fault makes three-phase asymmetric, have the appearance of negative phase-sequence, zero-sequence component in the fundametal compoment, be very important so how further separate positive sequence, negative phase-sequence, zero-sequence component this moment exactly.This patent proposed based on the line voltage first-harmonic of LMS and the separation algorithm of harmonic component; Can be applied to simultaneously in the three-phase system; Detect the first-harmonic and the each harmonic component of three-phase voltage respectively, utilize symmetrical component method can further obtain first-harmonic and each harmonic positive sequence, negative phase-sequence, the zero sequence information of each phase then.Be described in detail the ultimate principle of symmetrical component method below.For the three phase network voltage V (t) of single-frequency, its expression formula is:
Three-phase sinusoidal signal can resolve into positive sequence, negative phase-sequence and zero-sequence component and, that is:
V(t)=V
+(t)+V
-(t)+V
0(t) (11)
V wherein
+(t), V
-(t), V
0(t) represent positive sequence, negative phase-sequence and zero-sequence component respectively, that is:
The relation table of the three phase network voltage V (t) of positive sequence, negative phase-sequence and zero-sequence component and single-frequency is shown as following matrixing form:
P wherein
90 °Representative is carried out 90 degree phase shifts to V (t).And X, Y are expressed as:
After linear matrixing, promptly obtain positive sequence, negative phase-sequence and zero-sequence component by the three-phase asymmetrical component.
Shown in Figure 1 is the trapper schematic diagram based on LMS, and the phase information of line voltage is imported as a reference, and single-phase line voltage is as original input.Make inner product with reference to input vector and weight vector, obtain the estimated value of original input, both subtract each other can adjusted weights error signal e.The present invention adopts the LMS algorithm to realize the renewal of weights, and formula is suc as formula shown in (9).Regulate weights according to above iterative formula, then the output of trapper approaches with reference to input with least mean-square error.Thereby realized detection to first-harmonic in the line voltage and each harmonic.
Fig. 2 is improved single-phase phase-locked loop schematic diagram.The basic structure of LMS-a is as shown in Figure 1 among the figure, and its input signal is the output acquisition of the phase information
of A phase line voltage by phaselocked loop.The output signal is the weights W in the LMS algorithm
12, can know W by above derivation
12=V
1Sin (Δ θ).It is thus clear that in weights, comprised the information of line voltage phase angle evaluated error, so can the phase angle evaluated error be adjusted to zero through the suitable closed-loop control system of design.This patent adopts classical second-order PLL control system.At first, obtain the estimated value of frequency with the filtering of phase angle evaluated error process PI loop filter.Obtain the estimated value of phase angle then through voltage controlled oscillator.
Fig. 3 is a symmetrical components computing unit schematic diagram, utilizes symmetrical component method, can obtain positive sequence, negative phase-sequence and the zero sequence information of first-harmonic and harmonic wave, is described in detail the ultimate principle of symmetrical component method below.If the three phase network voltage V (t) of single-frequency can be expressed as the form of formula (10), three-phase sinusoidal signal can resolve into positive sequence, negative phase-sequence, zero-sequence component and, shown in formula (11), V wherein
+(t), V
-(t), V
0(t) represent positive sequence, negative phase-sequence, zero-sequence component respectively.And can be expressed as the matrixing form suc as formula (15), wherein P with the relation of V (t)
90 °Representative is carried out 90 degree phase shifts to V (t).Through above simple matrix linear transformation, can derive positive sequence, negative phase-sequence, zero-sequence component by the three-phase asymmetrical component.
Fig. 4 is the The general frame of line voltage first-harmonic and harmonic component separation algorithm.LMS-a wherein, LMS-b, LMS-c structure are as shown in Figure 1, and reference-input signal is obtained by the output of phaselocked loop, and original input is respectively A phase, B phase, C phase voltage.Can know W by above derivation
12=V
1Sin (Δ θ).It is thus clear that in weights, comprised the information of line voltage phase angle evaluated error, so can the phase angle evaluated error be adjusted to zero through the suitable closed-loop control system of design.This patent adopts classical second-order PLL control system.At first, obtain the estimated value of frequency, obtain the estimated value of phase angle then through voltage controlled oscillator the filtering of phase angle evaluated error process PI loop filter.Trapper by based on LMS can obtain first-harmonic and harmonic component, is entered into then in the symmetrical components computing unit.Can obtain positive sequence, negative phase-sequence, the zero-sequence component of first-harmonic and harmonic wave through the linear matrix conversion.In three-phase phase-locked loop, any phase voltage generation phase angle or amplitude sudden change all can cause very large deviation to Frequency Estimation.Because phaselocked loop has only been used the information of A phase voltage,, strengthened the robustness of algorithm so when other two phases line voltage generation amplitudes, phase angle sudden change, can not exert an influence to Frequency Estimation.
Fig. 5 to Figure 15 occurs under the uneven situation for line voltage, the simulated effect figure of the inventive method.As shown in Figure 5, fault three-phase voltage only contains the unit positive-sequence component, does not contain harmonic components.And when fault took place, uneven situation appearred in line voltage, and contained higher hamonic wave, and variation has also taken place frequency thereupon.Fig. 6 to Fig. 8 is detected line voltage fundamental positive sequence, negative phase-sequence, zero-sequence component, thus it is clear that can detect each component at about two electrical networks about the cycle, and do not have overshoot, excessively relatively steadily.Fig. 9 to 11, Figure 12 to 14 are detected line voltage higher hamonic wave positive sequence, negative phase-sequence, zero-sequence component, though starting stage overshoot is bigger, approximately just tend to be steady through 0.02 second.Figure 15 is the Frequency Estimation waveform of line voltage.