CN104459315A - Inter-harmonic detection method based on non-base 2FFT transformation - Google Patents
Inter-harmonic detection method based on non-base 2FFT transformation Download PDFInfo
- Publication number
- CN104459315A CN104459315A CN201410620585.7A CN201410620585A CN104459315A CN 104459315 A CN104459315 A CN 104459315A CN 201410620585 A CN201410620585 A CN 201410620585A CN 104459315 A CN104459315 A CN 104459315A
- Authority
- CN
- China
- Prior art keywords
- data
- fft
- transformation
- equal
- group
- 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.)
- Pending
Links
Landscapes
- Complex Calculations (AREA)
Abstract
The invention discloses an inter-harmonic detection method based on non-base 2FFT transformation. When the number N of FFT points is equal to 2<M>*N', N1 is made to be equal to 2<M>, N2 is made to be equal to N', the FFT operation data are divided into N2 groups, each group has N1 point data, the data serial number n extracted from original FFT operation data is equal to N2n1+n2, 2FFT transformation is carried out on the N1 point data in each group, the k is equal to k1+N1k2, and the kth FFT transformation result in the original FFT operation data is obtained according to the calculation formula. The new non-base 2FFT algorithm is provided, FFT transformation of data with the point number N equal to 2<M>*N' is achieved, no interpolation zero-padding is needed, inter-harmonic detection precision can be improved, the frequency resolution meets national standard requirements, a transformation result needing to be calculated can be selected according to actual requirements, and operation time is saved.
Description
Technical field
The invention belongs to m-Acetyl chlorophosphonazo detection technique field, more specifically say, relate to a kind of harmonic detection method converted based on non-base 2FFT.
Background technology
Along with the fast development of science and technology, the widespread use of the power equipments such as a large amount of impact load, the change of current, cause harmonic pollution in electric power net day by day serious, greatly have impact on the safety of electric system, especially along with various complex precise, constantly universal to the consumer of quality of power supply sensitivity, fractional harmoni (m-Acetyl chlorophosphonazo) also becomes the object that engineering and research field are constantly paid close attention to day by day.M-Acetyl chlorophosphonazo can cause the noise of the rolling of voltage flicker, TV images and radio receiver or other audio frequency apparatuses, also motor can be made to produce very strong noise and vibration, cause waveform distortion of the power supply network, thus reduce the power factor of load, increase various energy loss, for ensureing power grid quality and safety, need to strengthen the accurate detection to m-Acetyl chlorophosphonazo, so that the improvement of the electrical network quality of power supply.
Current most widely used harmonic measuring method is Fourier transform, and Fourier transform can obtain amplitude and the phase place of harmonic wave simultaneously, and function is more, and hardware implementing is simple.The Fourier transformation method of m-Acetyl chlorophosphonazo is: sample sequence extended to contiguous 2 by interpolation zero padding
mpoint, then uses 2-base algorithm to carry out 2
mpoint FFT (Fast Fourier Transform, fast fourier transform).Below the base 2FFT algorithm that frequency domain extracts is introduced.
Defined by DFT (Discrete Fourier Transform, discrete Fourier transformation):
Wherein, N represents and counts, and f [n] represents discrete signal,
represent twiddle factor.
F [n] is split into two halves, i.e. f [n] and f [n+N/2] (0≤n≤N/2-1), (1) formula of substitution obtains
Due to
(2) can merge into again for two in formula:
When k=2r is even number, notice (-1)
k=1,
(3) formula becomes:
When k=2r+1 is odd number,
(3) formula becomes:
So just the N point DFT (F [k]) of a N point sequence (f [n]) is calculated the N/2 point DFT (G [r] and P [r]) having changed into two N/2 point sequences (g [n] and p [n]) to calculate.The calculated amount being divided into g [n] and p [n] by f [n] be N number of add (i.e. f [n]+f [n+N/2] and f [n]-f [n+N/2], 0≤n≤N/2-1) and N/2 take advantage of (namely (
0≤n≤N/2-1).
Due to the N/2 point DFT that g [n] calculates, that in the N point DFT (F [k]) of f [n], k is that half of even number, that half of to be then k the be even number calculated by p [n], therefore need the F of even number k [k] DFT (G (r)) put together as g [n] that releases to export, while, exports the F of odd number k [k] DFT (P (r)) put together as p [n] that releases.Because k is frequency domain variable, therefore this algorithm is called the fft algorithm that frequency domain extracts.
Then, two N/2 point DFT still respectively can take advantage of N/2 to add through N/4 with said method and be divided into two N/4 point DFT (simultaneously also will do corresponding frequency domain to extract), thus are divided into 4 N/2 point DFT altogether, and total division calculated amount is still and N number ofly adds take advantage of individual with N/2.Such division can be gone on doing step by step, is not difficult to find out, the total division calculated amount often walked is all take advantage of with N/2 N number of adding.
Work as N=2
m, after the division of M-1 step, be just divided into the computational problem of N/2 following 2 DFT
Fig. 1 is that 8 FFT that frequency domain extracts calculate schematic diagram.According to Fig. 1,8 FFT are divided into 42 DFT through 2 steps.(6) calculated amount needed for formula is 2 and adds and take advantage of with 1, takes advantage of with N/2 so the amount of calculation completing N/2 2 DFT is still N number of adding.Thus complete the amount of calculation M × N=Nlog of whole N point DFT
2n number ofly to add and M × N/2=(N/2) log
2n number ofly take advantage of, this is than the N needed for directly calculating by definition
2individual take advantage of and add want much less.Such as, N=2
10=1024, then M=10, the multiplication number needed for calculating with base 2FFT algorithm is M × N/2=5 × 1024, and the multiplication number needed for directly calculating by definition is N
2=1024 × 1024, the two differs 1024/5 ≈ 200 times, and N is larger, and the efficiency of FFT improves more obvious.
Generally, owing to having done the extraction of M-1 time point of odd even, the F [k] that the last N/2 of this algorithm 2 DFT calculate has not been that order extracts.The change of order can illustrate with binary code: first time extract the odd even of dividing be 1 or 0 to distinguish by binary code the 1st, it is even number when this position is 0, it is odd number when this position is 1, it is 1 or 0 to distinguish that second time smokes odd even by binary code the 2nd ... each extraction is all (left side) limit before even item is placed on, (right side) limit after odd term is placed on, thus the binary code of number is arranged in order from left to right according to binary digit after extracting, just in time contrary with the rule that ordinary binary number is arranged in order from right to left, so be called bit reversed order.After calculating F [k], bit reversed order to be become order.
In m-Acetyl chlorophosphonazo detects, owing to will calculate the amplitude of m-Acetyl chlorophosphonazo, necessary several cycles of data processing, because base 2FFT algorithm will reach 2
mpoint, during general sampling, the sampling number of each signal period is the power of 2, but data processing cycle number differ be decided to be 2 power, therefore some value places of m-Acetyl chlorophosphonazo may obtain for interpolation, cause measuring accuracy inaccurate.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of harmonic detection method converted based on non-base 2FFT is provided, realize the FFT conversion of non-base 2, do not need zero padding, improve the accuracy that m-Acetyl chlorophosphonazo detects, make testing result can meet IEC standard completely, when first-harmonic be 50Hz, sample window width makes frequency resolution can obtain exact value at 5Hz place when being 10 cycle.
For achieving the above object, the present invention is based on the harmonic detection method that non-base 2FFT converts, comprise the following steps:
S1: sample to signal, arranges sampling number N=2
m× N ', makes N
1=2
m, N
2=N ', is divided into N by sampled data
2group, often organizes N
1point data, n-th
2in group n-th
1point data is designated as f [n
1, n
2], the data sequence number n=N extracted in sampled data
2n
1+ n
2, wherein n
1span be 0≤n
1≤ N
1-1, n
2span be 0≤n
2≤ N
2-1;
S2: respectively to the N in every group
1point data carries out base 2FFT conversion, by n-th
2kth in group
1individual transformation results is designated as F ' [k
1, n
2], k
1span be 0≤k
1≤ N
1-1;
S3: make k=k
1+ N
1k
2, k
2span be 0≤k
2≤ N
2-1, a kth Fourier transform result F [k of calculating sampling data
1, k
2] and export as testing result, computing formula is:
Wherein,
The present invention is based on the harmonic detection method that non-base 2FFT converts, when FFT points N=2
m× N ', makes N
1=2
m, N
2=N ', is divided into N by FFT operational data
2group, often organizes N
1point data, the data sequence number n=N extracted in former FFT operational data
2n
1+ n
2, respectively to the N in every group
1point data carries out base 2FFT conversion, then k=k
1+ N
1k
2, obtain a kth FFT transformation results in former FFT operational data according to computing formula.The present invention proposes a kind of non-base 2FFT algorithm newly, realize points N=2
mthe FFT conversion of the data of × N ', does not need interpolation zero padding, can improve the accuracy of detection of m-Acetyl chlorophosphonazo, frequency resolution is up to state standards requirement, and can selects calculative transformation results according to actual needs, save operation time.
Accompanying drawing explanation
Fig. 1 is that 8 FFT that frequency domain extracts calculate schematic diagram;
Fig. 2 is the embodiment process flow diagram that the present invention is based on the harmonic detection method that non-base 2FFT converts;
Fig. 3 is the result exemplary plot adopting the present invention to carry out m-Acetyl chlorophosphonazo detection.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described, so that those skilled in the art understands the present invention better.Requiring particular attention is that, in the following description, when perhaps the detailed description of known function and design can desalinate main contents of the present invention, these are described in and will be left in the basket here.
Fig. 2 is the embodiment process flow diagram that the present invention is based on the harmonic detection method that non-base 2FFT converts.As shown in Figure 2, the harmonic detection method that the present invention is based on non-base 2FFT conversion comprises the following steps:
S201: sampled data is divided into groups:
Signal is sampled, sampling number N=2 is set
m× N ', makes N
1=2
m, N
2=N ', is divided into N by FFT operational data
2group, often organizes N
1point data, n-th
2in group n-th
1point data is designated as f [n
1, n
2], the data sequence number n=N extracted in sampled data
2n
1+ n
2, wherein n
1span be 0≤n
1≤ N
1-1, n
2span be 0≤n
2≤ N
2-1.
S202: often organize data and carry out base 2FFT conversion respectively:
To the N in every group
1point data carries out base 2FFT conversion, by n-th
2kth in group
1individual transformation results is designated as F ' [k
1, n
2], k
1span be 0≤k
1≤ N
1-1.
S203: calculate Fourier transform result:
Make k=k
1+ N
1k
2, k
2span be 0≤k
2≤ N
2-1, a kth Fourier transform result F [k of calculating sampling data
1, k
2] export as testing result, computing formula is:
Wherein,
Below principle of the present invention and derivation are described.
In the present invention, when making N point FFT, N=2
m× N ', makes N
1=2
m, N
2=N ', so by the DFT of f [n]:
By mapping:
Can obtain:
And N=N
1n
2,
can abbreviation be:
Thus formula (8) is converted into:
Wherein, 0≤k
1≤ N
1-1,0≤k
2≤ N
2-1.
Front two twiddle factors in (11) formula are merged, according to W
nreducibility can obtain
(9) formula is substituted into (12) Shi Ke get
Thus formula (11) can turn to:
Visible, according to n
2value f [n] is divided into N
2group data f [n
1, n
2], often organize in data and have N
1point, in formula (14)
represent n-th
2the kth obtained after group data transformation
1individual transformation results, is designated as F ' [k
1, n
2].Due to N
1=2
m, therefore N
1the FFT conversion of point data can be obtained by base 2FFT algorithm.This pattern (14) just can turn to:
Formula (15) is similar to DFT and calculates, wherein
not proper twiddle factor, but
Embodiment
In order to technique effect of the present invention is described, implement invention has been emulation.Signal expression is y=0.8sin (10 π t)+0.6sin (80 π t)+sin (100 π t).According to IEC standard, the fundamental frequency of signal is 50Hz.In the middle of the present embodiment, harmonic frequency is 5Hz, 40Hz.Window width is 10 cycles.Sample to signal, each periodic sampling 1024 point, amounts to 10240 points.Fig. 3 is the result exemplary plot adopting the present invention to carry out m-Acetyl chlorophosphonazo detection.As shown in Figure 3, the m-Acetyl chlorophosphonazo testing result adopting the present invention to obtain is consistent with signal.
In actual applications, according to the requirement of signal characteristic and IEC standard, whole transformation results can not be needed, and only need to select a part of result, if adopt traditional FFT transform method, need first calculate whole result and then select, and in the present invention, owing to using formula k=k
1+ N
1k
2carry out transformation results mapping, therefore can the sequence number of result as required select corresponding data to calculate, for the present embodiment, data are divided into 5 groups, first calculate the FFT transformation results of 5 groups of 2048 data, assuming that the transformation results sequence number of current needs is 511, so according to formula k=k
1+ N
1k
2k can be tried to achieve
1and k
2, and then the data selecting 5 groups of FFT transformation results corresponding carry out calculating.Adopt in this way, computing time can be saved further.By MATLAB simulating, verifying, adopting the present invention all to calculate required time by 10240 is 0.062962 second.According to the requirement of IEC standard to survey frequency scope, only can calculate limited point, if for 2000, required time is 0.021317 second.Visible arithmetic speed of the present invention is very fast, can reach the measuring speed requirement that m-Acetyl chlorophosphonazo detects.
According to national act.std, signal fundamental frequency f is 50Hz, and sample window width D is 10 cycles, requires that frequency resolution is 5Hz.Remember that the sampling number in each cycle is X, so sample frequency f
s=Xf, total sampling number N=DX, so frequency resolution f
0=Xf DX=f D.If adopt base 2FFT algorithm, so just need interpolation zero padding, extend that the sampling period reaches nearest 2
m 'point, namely D ' is 16, and therefore frequency resolution f D ' is 3.125Hz, and be interpolation gained estimated value at 5Hz multiple frequency values, accuracy of detection can not ensure; And adopting the harmonic detection method that the present invention is based on non-base 2FFT algorithm, frequency resolution f D=5Hz, can meet m-Acetyl chlorophosphonazo accuracy of detection, and be up to state standards requirement.
The present invention is directed to points N=2
m× N '=N
1× N
2data, due to N
1=2
mbe the whole power number of 2, the FFT built-in function of DSP can be called, calculate N
2group N
1point base 2FFT conversion, arithmetic speed is very fast, then calculates N
1group N
2the similar computing of some DFT, completes the Fourier transform of non-base 2.Compared with classic method, adopt the present invention to carry out m-Acetyl chlorophosphonazo detection, frequency resolution can be up to state standards, and accuracy of detection is higher, and arithmetic speed also can reach existing checkout equipment requirement.In addition, the present invention can calculate N=2
m× N ' counts, and range of application is more extensive.
Although be described the illustrative embodiment of the present invention above; so that those skilled in the art understand the present invention; but should be clear; the invention is not restricted to the scope of embodiment; to those skilled in the art; as long as various change to limit and in the spirit and scope of the present invention determined, these changes are apparent, and all innovation and creation utilizing the present invention to conceive are all at the row of protection in appended claim.
Claims (1)
1., based on the harmonic detection method that non-base 2FFT converts, it is characterized in that comprising the following steps:
S1: sample to signal, arranges sampling number N=2
m× N ', makes N
1=2
m, N
2=N ', is divided into N by sampled data
2group, often organizes N
1point data, n-th
2in group n-th
1point data is designated as f [n
1, n
2], the data sequence number n=N extracted in sampled data
2n
1+ n
2, wherein n
1span be 0≤n
1≤ N
1-1, n
2span be 0≤n
2≤ N
2-1;
S2: to the N in every group
1point data is carried out non-base 2 base 2FFT and is converted, by n-th
2kth in group
1individual transformation results is designated as F ' [k
1, n
2], k
1span be 0≤k
1≤ N
1-1;
S3: make k=k
1+ N
1k
2, k
2span be 0≤k
2≤ N
2-1, a kth Fourier transform result F [k of calculating sampling data
1, k
2] and export as testing result, computing formula is:
Wherein,
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410620585.7A CN104459315A (en) | 2014-11-06 | 2014-11-06 | Inter-harmonic detection method based on non-base 2FFT transformation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410620585.7A CN104459315A (en) | 2014-11-06 | 2014-11-06 | Inter-harmonic detection method based on non-base 2FFT transformation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104459315A true CN104459315A (en) | 2015-03-25 |
Family
ID=52905692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410620585.7A Pending CN104459315A (en) | 2014-11-06 | 2014-11-06 | Inter-harmonic detection method based on non-base 2FFT transformation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104459315A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105425038A (en) * | 2015-11-23 | 2016-03-23 | 广东工业大学 | Measurement method for inter-harmonics of electric power system |
CN106526318A (en) * | 2016-12-05 | 2017-03-22 | 中国船舶重工集团公司第七〇九研究所 | Device and method of detecting interharmonic peak fluctuation flicker based on spectral separation |
CN107632963A (en) * | 2017-08-08 | 2018-01-26 | 浙江运达风电股份有限公司 | Length is the power system sampled signal Hilbert transform method based on FFT of composite number |
CN108776264A (en) * | 2018-07-26 | 2018-11-09 | 电子科技大学 | The fft analysis device of digital oscilloscope |
CN109581056A (en) * | 2018-11-12 | 2019-04-05 | 国网江西省电力有限公司电力科学研究院 | A kind of time varying signal harmonic analysis method and system based on fundamental frequency prediction |
CN113567788A (en) * | 2021-07-30 | 2021-10-29 | 北京易艾斯德科技有限公司 | Application method, device, equipment and medium of mixed base FFT (fast Fourier transform) in power system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2008145263A (en) * | 2008-11-17 | 2010-05-27 | Государственное образовательное учреждение высшего профессионального образования "Томский политехнический университет" (RU) | METHOD FOR DETERMINING THE PERIOD OF MULTI-FREQUENCY SIGNALS WITH INTERHARMONICS REPRESENTED BY DIGITAL REPORTS |
CN102222911A (en) * | 2011-04-19 | 2011-10-19 | 哈尔滨工业大学 | Power system interharmonic estimation method based on auto-regression (AR) model and Kalman filtering |
CN102830282A (en) * | 2012-09-04 | 2012-12-19 | 国电南京自动化股份有限公司 | 2560-point grouping 2-based rapid fast Fourier transform method |
CN103235180A (en) * | 2013-04-08 | 2013-08-07 | 国家电网公司 | Inter-harmonics measuring method for power grid |
-
2014
- 2014-11-06 CN CN201410620585.7A patent/CN104459315A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2008145263A (en) * | 2008-11-17 | 2010-05-27 | Государственное образовательное учреждение высшего профессионального образования "Томский политехнический университет" (RU) | METHOD FOR DETERMINING THE PERIOD OF MULTI-FREQUENCY SIGNALS WITH INTERHARMONICS REPRESENTED BY DIGITAL REPORTS |
CN102222911A (en) * | 2011-04-19 | 2011-10-19 | 哈尔滨工业大学 | Power system interharmonic estimation method based on auto-regression (AR) model and Kalman filtering |
CN102830282A (en) * | 2012-09-04 | 2012-12-19 | 国电南京自动化股份有限公司 | 2560-point grouping 2-based rapid fast Fourier transform method |
CN103235180A (en) * | 2013-04-08 | 2013-08-07 | 国家电网公司 | Inter-harmonics measuring method for power grid |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105425038A (en) * | 2015-11-23 | 2016-03-23 | 广东工业大学 | Measurement method for inter-harmonics of electric power system |
CN106526318A (en) * | 2016-12-05 | 2017-03-22 | 中国船舶重工集团公司第七〇九研究所 | Device and method of detecting interharmonic peak fluctuation flicker based on spectral separation |
CN106526318B (en) * | 2016-12-05 | 2018-11-20 | 中国船舶重工集团公司第七一九研究所 | The detection device and method of m-Acetyl chlorophosphonazo peak value fluctuation flickering based on frequency spectrum separation |
CN107632963A (en) * | 2017-08-08 | 2018-01-26 | 浙江运达风电股份有限公司 | Length is the power system sampled signal Hilbert transform method based on FFT of composite number |
CN108776264A (en) * | 2018-07-26 | 2018-11-09 | 电子科技大学 | The fft analysis device of digital oscilloscope |
CN108776264B (en) * | 2018-07-26 | 2020-04-14 | 电子科技大学 | FFT analysis device of digital oscilloscope |
CN109581056A (en) * | 2018-11-12 | 2019-04-05 | 国网江西省电力有限公司电力科学研究院 | A kind of time varying signal harmonic analysis method and system based on fundamental frequency prediction |
CN113567788A (en) * | 2021-07-30 | 2021-10-29 | 北京易艾斯德科技有限公司 | Application method, device, equipment and medium of mixed base FFT (fast Fourier transform) in power system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104459315A (en) | Inter-harmonic detection method based on non-base 2FFT transformation | |
CN102435844B (en) | Sinusoidal signal phasor calculating method being independent of frequency | |
CN103869162B (en) | Dynamic signal phasor measurement method based on time domain quasi-synchronization | |
CN104897960A (en) | Harmonic rapid analysis method and system based on windowing four-spectral-line interpolation FFT | |
CN104897961B (en) | Three spectral line interpolation FFT harmonic analysis methods and system based on cross multiplication window function | |
CN108037361A (en) | A kind of high-precision harmonic parameters method of estimation based on sliding window DFT | |
CN104049144A (en) | Synchronous phasor measurement implementing method with filtered-out attenuation direct current components | |
CN102967779B (en) | Identifying method of distribution parameters of transmission line | |
CN102636693A (en) | Harmonic analysis algorithm combining fast Fourier transform (FFT) and nonlinear least square | |
CN107271774A (en) | A kind of APF harmonic detecting methods based on spectrum leakage correcting algorithm | |
CN103646011A (en) | Signal spectrum zooming method based on linear frequency modulation z transform | |
Koteswara Rao et al. | Accurate phasor and frequency estimation during power system oscillations using least squares | |
CN103543331B (en) | A kind of method calculating electric signal harmonic wave and m-Acetyl chlorophosphonazo | |
CN102809687A (en) | Digital measurement method for alternating-current frequency | |
Wang et al. | A fast algorithm to estimate phasor in power systems | |
Petrović et al. | Computational effective modified Newton–Raphson algorithm for power harmonics parameters estimation | |
Li et al. | Frequency estimation based on modulation FFT and MUSIC algorithm | |
Zhang et al. | Frequency shifting and filtering algorithm for power system harmonic estimation | |
CN110378021B (en) | Power transmission line simulation method and system | |
CN105606893B (en) | Electric power harmonic detection method based on space smoothing Modified MUSIC | |
CN103412188A (en) | SFM signal parameter estimation method based on Bessel function and Toeplitz algorithm | |
CN105334388A (en) | Method and device for processing signals | |
CN105022924A (en) | High-speed algorithm of multi-point sliding two-dimensional sliding window DFT | |
CN103576120A (en) | Calibration and self-healing algorithm for third-harmonic component quasi-synchronous information transmission | |
CN104483563A (en) | Method and system for synchronous sampling of power signals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150325 |
|
RJ01 | Rejection of invention patent application after publication |