Professional Documents
Culture Documents
• The information necessary for waveform algorithms is taken from sampling the
signals at equal intervals over a pre-specified time period usually referred to as a
data window.
• After the required parameters are calculated, a new sample is incorporated to the
data window, and the oldest sample is discarded.
• The primary limitation of most phasor models is their inability to handle time-relate
consequences affecting fundamental frequency phasors.
• These time related consequences include the effects of DC offset, nonlinearities of
CTs and CVTs, and protective relay memory circuits losing stored voltage or
current data.
Transient models
• The second type involves a model of the element being protected, such a
transmission line or a power transformer ---Transient models of relays
• These models take into account the presence of high frequency and DC
components in the relay inputs.
• Because the objectives for developing different transient models are not identical,
the complexity of the models varies substantially.
• It is also important to realize that it is easier to develop transient models for
computer-based relays than for electromechanical and solid-state relays.
Transient models
• Some of the situations which require transient models for proper evaluation are
1) transformer or capacitor inrush,
2) CT or CVT transient, CT steady state saturation,
3) presence of harmonics,
4) presence of transient DC offset,
5) evolving faults,
6) power system swings and dynamics of rotating machines,
7) time varying machine impedances (from sub-transient through transient to steady
state),
8)one line to ground faults on resonant grounded systems,
9) and series capacitors and their protection
Fundamental criteria describing requirements and
performance of digital filters applied in protections
• Accuracy in transmission of useful signal components and efficient rejection of
noise,
• Fast stabilizing of output signal after step change of input signal,
• Linear phase shift frequency response,
• Minimum burden during digital realization of given filter
• Some of the requirements are quite contradictory and that is why design of a
digital filter is a matter of compromise.
Digital filter
• All analog filters have infinite impulse response
• Digital filters, on the other hand, can be divided for:
• filters similar to analog ones having infinite impulse response called IIR
• filters, (sometimes also called recursive filters)
• filters having finite impulse response called FIR filters (sometimes also called non-
recursive filters)
• realized in digital technique only
• For such filters one introduces the so called ‘‘window’’ of coefficients having a
length equivalent to N samples used in weighting sum
Digital filters
Digital Relay Algorithms for Signal Estimation
Non-recursive
• These filters use finite length windows, and their outputs essentially depend
on the data contained within this window.
• Short window algorithms
• The short window technique computes the voltage and current phasors from
sampled data and then estimates the impedance as seen from the relay
locations.
• Short window algorithms can be adversely affected by the presence of
nonfundamental frequencies in the system voltages and currents.
• Miki and Mikano
• Mann and Morrison
Digital Relay Algorithms for Signal Estimation
• Recursive
• Kalman Filtering (state-space model)
• Recursive Least Square Error
Non-recursive short window techniques
• Short window techniques make the assumption that the signals are sinusoids of the
nominal frequency, and that the system frequency is invariant.
• Depending on the technique, only two or three samples are necessary to estimate
phasors with short window algorithms.
• A phasor is a representation of a sinusoidal voltage or current of the nominal
frequency, f0, and its positive going zero crossing is θ radians ahead of the time
equal to zero.
• The mathematical representation of a phasor is as follows.
The magnitude and phase of the phasor can be calculated using the real and the
imaginary parts of the phasor as follows.
Least Square Method for Estimation of
Phasors
• Two sample estimation
• In a numerical relaying setup,voltage and current signals would be sampled at
appropriate frequency and acquired by a micro processor or a DSP.
• For relaying decision making we need to estimate the voltage and current phasors.
• For simplicity, imagine a single phase circuit as shown and also assume that the
• Summary
• Two sample technique utilizes minimum number of measurements to estimate the
phasor (Vm; Øv ).
• With bare minimum number of measurements, the noise affects the accuracy.
• Noise has to be filtered out to estimate Vm and v .
• To filter out noise, we need to consider redundant measurement.
• Redundancy in measurement is defined as ratio of actual number of measurement
used for estimation to minimum number of measurement required for estimation.
Three sample technique
• Two sample technique does not have
redundancy.
• Three sample technique has a redundancy of
1.5.
• Three sample technique estimates phasors
better than two sample technique.
DFT
• The Discrete Fourier Transform is a discrete time version of the Fourier Transform. The
result of this algorithm is referred to as the phasor quantity.
• The equation for the DFT is:
The -90 degrees is not intuitively obvious, but results from the fact that the phasor
equation assumes the pharos quantities are based on cosines, and our waveform was a
sine starting at 0 degrees or a cosine starting at -90 degrees.
RMS
• Root Mean Square is a method of calculating the total energy content of a waveform.
• The RMS algorithm does not differentiate as to the frequencies being measured and will thus
include all frequency components inclusive of DC.
• The RMS equation is:
Inserting the samples from the above example into (7) yields:
• The DFT is a band pass filter around the harmonic being measured and will thus reject
harmonics where the RMS calculation will not.
• This is not easily demonstrated with a 4 point DFT since all harmonics alias back into the
fundamental.
• It can be demonstrated by adding a DC component to a 5 amp sine wave sampled at 4 samples
per cycle since a 4 point DFT does reject the DC component.
• Let's compare the 2 algorithms.
• For a 5 amp waveform with a 1 amp DC offset (not realistic,
• but for illustrative purposes only) the samples would then be
Equation (10) illustrates that the RMS algorithm does not reject any frequencies
(inclusive of DC), where as the DFT rejects harmonics as long as proper anti-aliasing
techniques are utilized.
• The Discrete Fourier Transform can extract any frequency from a signal.
• In protective relaying the extracted frequency is usually the fundamental though
there are occasions to measure the DC content or other harmonics.
• Since the DFT is capable of rejecting everything except the frequency being
measured, it has a much better response to transient overshoot than the RMS
algorithm.
• Since the RMS algorithm responds to all frequencies, the dc offset is added to the
measurement causing a large overshoot.
• Phasor estimation algorithms can be divided into two categories:
• The full cycle algorithms and the half-cycle algorithms.
• The full cycle algorithms typically take one power system cycle to estimate the
voltage or current pharos.
• These algorithms may not be suitable for use in EHV/UHV system applications
where the decisions have to be taken in less than one cycle.
• The most popular of the full cycle algorithms are the DFT algorithm and the LES
algorithm. .
• Full Cycle DFT can easily remove DC and integer harmonics and compute the
fundamental frequency phasor using one cycle samples or so.
• Since the response speed is of paramount importance, half-cycle algorithms or
short window algorithms have been proposed whose convergence speed to the
final value are faster than the full cycle algorithms
• The two such important half-cycle algorithms are the digital mimic filter plus
halfcycle DFT and half-cycle LES algorithm.
• These half-cycle algorithms suffer from some major disadvantages.
• The half-cycle DFT filters cannot eliminate even numbered harmonics and the
decaying dc present during fault conditions, hence affecting the accuracy and
convergence.
• This leads to a large amount of error in the estimated phasor of the current or
voltage signal if those harmonics are present in the input signal.
• To make these filters insensitive to the decaying dc component, the input signals
are pre-processed by a digital mimic filter before being processed by the half-cycle
DFT filter.
• Mimic filter removes the decaying dc if the time constant of the decaying dc is
known before hand, which is usually not the case in a real power system.
• In addition to that, the mimic filter is susceptible to noise.
• In the half-cycle least error squares technique, the decaying dc component is
included in its model.
• The decaying dc component can be mathematically expressed by a Taylor series
expansion.
• In the LES technique, the first two terms of the Taylor series expansion are used to
model the decaying dc component.
• The least error squares technique is then applied to estimate the fundamental
frequency phasor and other harmonics, provided they are modeled in the technique.
Full Cycle Fourier Algorithm
• So far we have used number of sample points required in estimation method to define the
length of data window.
• Alternatively, length of data window can be characterized by it's time span.
• For example, for a 3-sample data window, time span of data window is , thus, higher the
sampling frequency, smaller the time span.
• We now consider the case when length of the data window is one cycle, though we have a
freedom to choose number of samples in a window subject to the constraint N > 2.
• Let the sampling frequency be such that (K>2) K samples be acquired in a cycle.
• For example, for the first cycle (samples 0, 1, 2……K-1), LS estimation model with K
samples per cycle in the data window is given by follows eqn.
Comparison of the Estimation Algorithms
• Table 1 illustrates the results of the estimation when full cycle data window is used
• . It can be seen that standard deviation associated with measurement reduces even
further to 1.3176 for E = 3.
• This should be contrasted with 3-sample data window where corresponding was
2.7638.
• This brings out an important aspect of relaying discussed earlier that accuracy of
estimation is improved by increasing the length of data window.
• In this example, we evaluate the capability of full cycle Fourier algorithm to filter
out harmonics. Input signal corresponds to a 50 Hz square wave shown below. The
harmonic spectrum of such wave form is given by
Illustration of the Harmonic and Noise Filtering
Capability
• This signal is sampled at a rate of 10 samples per cycle and full cycle Fourier
method is applied to estimate the fundamental.
• In addition noise is introduced using random number generator.
• The true value of fundamental component is = π /4*10 =12.7324.
Half Cycle Fourier Algorithm
Example : 2
• To improve speed, we can even restrict the data window to half a cycle.
• When this is done, we get half cycle Fourier algorithm.
• With K number of samples per half cycle, the relevant equations are given by
The figure in the following slide shows the estimated magnitude of Im, measured for 5-
fundamental cycles, using the 2-point, 3-point, half-cycle and full-cycle Fourier
algorithm.
• Fig show the estimated magnitude of Im, measured for 5-fundamental cycles using
2-point, 3-point cycle and full cycle Fourier algorithms. I
• t can be seen that, significant errors are seen in all estimation methods.
• Also, accuracy of full cycle fourier algorithm is seen to be the most accurate
algorithm.
• The reason is quite obvious.
• Even if we view DC offset current as noise, it is apparent that it does not have a
zero mean.
• Thus, least square based estimation algorithms are expected to fail under such
situations.
• Use some other filter for the DC offset current: mimic impedance.
Mimic impedance :
• Mimic impedance is an impedance whose X/R ratio is identical to the X/R ratio
of transmission lines.
• In that sense, it mimics a transmission line.
• Fig shows a current source having sinusoidal component and dc offset current
connected to the R +j X impedance.
• The sinusoidal voltage developed across the impedance is given by
•This is the sinusoidal-steady response
•The current is scaled by magnitude of mimic impedance and in phase by θ
•Thus by an inverse operation, we get back the sinusoidal current waveform devoid of dc
offset component.
•Filtering algorithm discussed earlier will then give satisfactory results.
•Mimic impedances are routinely used in distance relays used for transmission line relaying
where the problem of decaying dc offset is most serious.
•Mimic impedance can also be implemented in software.
Frequency response of Estimation
algorithms
• By now we have deduced that:
• 1. Full cycle fourier algorithm gives the best performance in filtering harmonics
and noise.
• 2. Half cycle does improve speed of response at the cost of accuracy.
• 3. Three sample algorithm is quite fast but the accuracy of estimation is poor.
• Any of the above estimation algorithms can be viewed as a digital filter whose job
is to extract fundamental in presence of harmonics and noise.
• The presentation so far was biased towards elimination of noise.
• Filtering of harmonic can be discussed more neatly by evaluating the frequency
response of the estimation algorithms.
•Input to the filter is stream of samples at frequency , mf0, m = (0; ±1; ± 2···· )
•Since, in relaying we are primarily interested in extracting the fundamental
component.
•The output of the estimation algorithm is viewed by the relay logic as the
fundamental component of the signal.
•Thus, if ,m= ±1 the output should follow input.
•On the other hand, if ,m ≠ ±1, ideally, the output should be zero.
• The frequency response can be evaluated by analytical tools.
• However, to simplify presentation, we restrict the treatment to experimental (by
simulation) evaluation of the frequency response.
• The frequency response for 3-sample, half cycle and full cycle algorithms are
shown in fig
Salient observations
• Full-cycle algorithm: rejects DC component and all harmonics efficiently
• Half-cycle algorithm: rejects odd but not even harmonics efficiently
• 3-sample algorithm: poor harmonic rejection
• A characteristic frequencies are wrongly interpreted by all algorithms as
fundamental.
• In fact, the full cycle Fourier algorithm is identical to DFT.
Transmission Line Model
• By assuming that the transmission line to which the relay is connected is
composed of a series resistance and inductance, the fundamental equation
is:
• where, R and L are the resistance and reactance of the fault loop (up to the
fault point respectively).
• Any sampled voltage and current signals taken at any time is considered to
obey above equation.
• To solve the equation and calculate R and L, two equations are required.
• This can be achieved by measuring v(t), i(t) and di/dt at two different
instants of time
By solving equations (10) & (11), R and L may obtained from the following matrix
It is obvious how sampled voltage and current signals can be combined to form the
resistance and inductance of the fault loop.
• The Kalman filter is a recursive filter whose output depends on the present inputs as well as
on all previous inputs.
• Effectively, the weight assigned to the latest input is maximum whereas the assigned weight
decreases as the input becomes older.
• The Kalman filter differs from the other filtering algorithms in that its gain coefficients vary
with time (the gains are nonstationary).
• The recursive form of the discrete fourier transform (DFT) on the other hand is simple and
needs fewer computations, but the presence of an exponentially decaying dc component in a
signal adversely affects the phasor estimates.