CAPACITOR HEALTH DIAGNOSIS SYSTEM AND METHOD

20250277840 ยท 2025-09-04

    Inventors

    Cpc classification

    International classification

    Abstract

    In an embodiment, an electronic circuit includes: one or more input terminals configured to receive measurement data; and a controller configured to: determine a first harmonic current based on a first current flowing through a first circuit coupled to a line node, where the measurement data includes first current data indicative of the first current, determine a filter harmonic current based on a filter current flowing through an AC filter coupled to the line node, where the measurement data includes filter current data indicative of the filter current, and generate a first flag indicative of failure, degradation or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, where the AC filter includes the first capacitor or capacitor bank.

    Claims

    1. An electronic circuit comprising: one or more input terminals configured to receive measurement data; and a controller configured to: determine a first harmonic current based on a first current flowing through a first circuit coupled to a line node, wherein the measurement data comprises first current data indicative of the first current, determine a filter harmonic current based on a filter current flowing through an AC filter coupled to the line node, wherein the measurement data comprises filter current data indicative of the filter current, and generate a first flag indicative of failure, degradation, or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, wherein the AC filter comprises the first capacitor or capacitor bank.

    2. The electronic circuit of claim 1, wherein the controller is configured to generate the first flag when the filter harmonic current is within a predetermined tolerance of the first harmonic current.

    3. The electronic circuit of claim 1, wherein the controller is configured to generate the first flag when I F n th - I 1 st n th I 1 st n th < I thres n th , wherein I.sub.F.sup.n.sup.th represents the filter harmonic current, wherein I.sub.1st.sup.n.sup.th represents the first circuit harmonic current, and wherein I.sub.thres.sup.n.sup.th is higher than 90%.

    4. The electronic circuit of claim 1, wherein the AC filter is designed to filter an n.sup.th harmonic of a fundamental frequency, wherein the first harmonic current corresponds to the n.sup.th harmonic of the fundamental frequency, wherein the filter harmonic current corresponds to the n.sup.th harmonic of a fundamental frequency, and wherein generating the first flag comprises identifying the first capacitor or capacitor bank of the AC filter designed to filter the n.sup.th harmonic of the fundamental frequency as the failed, degraded, or malfunctioned capacitor or capacitor bank.

    5. The electronic circuit of claim 4, wherein n is equal to 5, 7, 11, 13, or 39.

    6. The electronic circuit of claim 1, wherein the controller is configured to continuously determine the first harmonic current and the filter harmonic current.

    7. The electronic circuit of claim 6, wherein the controller is further configured to determine a first capacitance of the first capacitor or capacitor bank, compare the first capacitance with a reference capacitance, and generate a second flag when the first capacitance differs from the reference capacitance by more than a predetermined tolerance, wherein the second flag is indicative of a failure, degradation, or malfunction of the first capacitor or capacitor bank.

    8. The electronic circuit of claim 7, wherein the controller is configured to determine the first capacitance in response to the first flag.

    9. The electronic circuit of claim 7, wherein the reference capacitance is a target capacitance of the first capacitor or capacitor bank.

    10. The electronic circuit of claim 7, wherein the reference capacitance corresponds to a previously measured capacitance of the first capacitor or capacitor bank.

    11. The electronic circuit of claim 7, wherein the controller is configured to determine the first capacitance by: determining M capacitance values of the first capacitor or capacitor bank, wherein M is a positive integer greater than 1; associating each of the M determined capacitance values to a cluster of k clusters, wherein k is a positive integer greater than 1 and smaller than M; determining a dominant cluster from the k clusters; and determining the first capacitance based on the capacitance values of the dominant cluster.

    12. The electronic circuit of claim 11, wherein the controller is configured to associate each of the M determined capacitances values to a cluster of the k clusters having a nearest mean.

    13. The electronic circuit of claim 11, wherein the controller is configured to determine the dominant cluster as the cluster having the highest count of capacitance values.

    14. The electronic circuit of claim 7, wherein the controller is further configured to: determine or adjust a capacitance trend of the first capacitor or capacitor bank based on the first capacitance; and generate a third flag when the capacitance trend is indicative of a failure, degradation, or malfunction associated with the first capacitor or capacitor bank.

    15. The electronic circuit of claim 14, wherein the controller is configured to generate the third flag when the capacitance trend is indicative of the first capacitance falling out of tolerance within a predetermined time period.

    16. The electronic circuit of claim 14, wherein the controller is configured to determine or adjust the capacitance trend using linear regression.

    17. The electronic circuit of claim 16, wherein the controller is configured to generate the third flag when a primary or secondary parameter of the capacitance trend increases above a predetermined threshold.

    18. The electronic circuit of claim 16, wherein the controller is configured to detect a cyber intrusion when a primary or secondary parameter of the capacitance trend increases above a predetermined threshold.

    19. The electronic circuit of claim 1, wherein the first circuit is a thyristor-controlled reactor (TCR) circuit, a voltage-source converter (VSC), or a high-voltage direct current (HVDC) converter.

    20. The electronic circuit of claim 1, wherein the controller is configured to: determine the first harmonic current by performing a Fourier transform on the first current data; and determine the filter harmonic current by performing a Fourier transform on the filter current data.

    21. A method comprising: determining a first harmonic current based on a first current flowing through a first circuit coupled to a line node; determining a filter harmonic current based on a filter current flowing through an AC filter coupled to the line node; and generating a first flag indicative of failure, degradation, or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, wherein the AC filter comprises the first capacitor or capacitor bank.

    22. The method of claim 21, further comprising: determining a first capacitance of the first capacitor or capacitor bank; comparing the first capacitance with a reference capacitance; and generating a second flag when the first capacitance differs from the reference capacitance by more than a predetermined tolerance, wherein the second flag is indicative of a failure, degradation, or malfunction of the first capacitor or capacitor bank.

    23. The method of claim 22, wherein determining the first capacitance comprises determining the first capacitance continuously.

    24. The method of claim 22, wherein determining the first capacitance comprises: determining M capacitance values of the first capacitor or capacitor bank, wherein M is a positive integer greater than 1; associating each of the M determined capacitance values to a cluster of k clusters, wherein k is a positive integer greater than 1 and smaller than M; determining a dominant cluster from the k clusters; and determining the first capacitance based on the capacitance values of the dominant cluster.

    25. The method of claim 22, further comprising: determining or adjusting a capacitance trend of the first capacitor or capacitor bank based on the first capacitance using linear regression; and generating a third flag when the capacitance trend is indicative of a failure, degradation, or malfunction associated with the first capacitor or capacitor bank.

    26. A device comprising: one or more input terminals configured to receive measurement data; and a controller configured to: determine M capacitance values of a first capacitor or capacitor bank of an AC filter coupled to a line node based on the measurement data, wherein M is a positive integer greater than 1, associate each of the M determined capacitance values to a cluster of k clusters, wherein k is a positive integer greater than 1 and smaller than M, determine a dominant cluster from the k clusters, determine a first capacitance based on the capacitance values of the dominant cluster, compare the first capacitance with a reference capacitance, and generate a first flag when the first capacitance differs from the reference capacitance by more than a predetermined tolerance, wherein the first flag is indicative of a failure, degradation, or malfunction of the first capacitor or capacitor bank.

    27. The device of claim 26, wherein the controller is further configured to: determine a first harmonic current based on a first current flowing through a first circuit coupled to the line node, wherein the measurement data comprises first current data indicative of the first current; determine a filter harmonic current based on a filter current flowing through the AC filter, wherein the measurement data comprises filter current data indicative of the filter current; and generate a second flag indicative of failure, degradation, or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, wherein the controller is configured to determine the M capacitance values in response to the second flag.

    28. The device of claim 26, wherein the device is an intelligent electronic device (IED).

    29. The device of claim 26, wherein the device is a server.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0021] For a more complete understanding of the present disclosure, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:

    [0022] FIG. 1 shows a schematic diagram of an exemplary SVC;

    [0023] FIG. 2 shows a schematic diagram of an exemplary STATCOM;

    [0024] FIG. 3 shows a schematic diagram of an exemplary high-voltage direct current (HVDC) electric power transmission system;

    [0025] FIG. 4 shows a schematic diagram of an SVC, according to an embodiment of the present disclosure;

    [0026] FIG. 5 shows a flow chart of embodiment a method for determining the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure;

    [0027] FIG. 6 shows a flow chart of an embodiment method for determining the health of a plurality of capacitors or capacitor banks, according to an embodiment of the present disclosure;

    [0028] FIGS. 7A and 7B show exemplary AC filters;

    [0029] FIG. 8 shows a flow chart of an embodiment method for monitoring the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure;

    [0030] FIG. 9 shows a flow chart of an embodiment method for monitoring the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure;

    [0031] FIG. 10 shows a flow chart of an embodiment method for determining a capacitance of a capacitor or capacitor bank, according to an embodiment of the present disclosure;

    [0032] FIG. 11 shows a flow chart of an embodiment method for monitoring the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure;

    [0033] FIG. 12 shows a schematic diagram of a STATCOM, according to an embodiment of the present disclosure; and

    [0034] FIG. 13 shows a schematic diagram of an HVDC system, according to an embodiment of the present disclosure; and

    [0035] FIG. 14 shows a schematic diagram of a device, according to an embodiment of the present disclosure.

    [0036] Corresponding numerals and symbols in different figures generally refer to corresponding parts unless otherwise indicated. The figures are drawn to clearly illustrate the relevant aspects of the preferred embodiments and are not necessarily drawn to scale.

    DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

    [0037] The making and using of the embodiments disclosed are discussed in detail below. It should be appreciated, however, that the present disclosure provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative of specific ways to make and use the invention, and do not limit the scope of the invention.

    [0038] The description below illustrates the various specific details to provide an in-depth understanding of several example embodiments according to the description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials and the like. In other cases, known structures, materials or operations are not shown or described in detail so as not to obscure the different aspects of the embodiments. References to an embodiment in this description indicate that a particular configuration, structure or feature described in relation to the embodiment is included in at least one embodiment. Consequently, phrases such as in one embodiment that may appear at different points of the present description do not necessarily refer exactly to the same embodiment. Furthermore, specific formations, structures or features may be combined in any appropriate manner in one or more embodiments.

    [0039] Embodiments of the present disclosure will be described in specific contexts, e.g., a power system capacitor health diagnosis in FACTS. Embodiments of the present disclosure may be used in other applications, such as in power systems different from FACTS (e.g., shunt capacitor, HVDC), as well as in other circuits that may benefit from capacitor health monitoring.

    [0040] In an embodiment of the present disclosure, a health of capacitor banks in a FACTS device is diagnosed in real time based on the (e.g., instantaneous) voltage and harmonic current signals of the AC grid and the voltage and harmonic current signals of the FACTS device. In some embodiments, when a capacitor failure, degradation or malfunction is detected, the harmonic current signals may advantageously be used to identify the failed capacitor bank. In some embodiments, the capacitance of the capacitor bank may be determined, and deviations in capacitance may be used to detect failure, degradation or malfunction of the capacitor bank. In some embodiments, the capacitance is determined using a k-means algorithm. In some embodiments, the capacitance trend may be used to detect degradation of the capacitor bank due to aging. In some embodiments, the capacitance trend may be used to detect a possible cyber intrusion. In some embodiments, the capacitance trend may be determined using a linear regression algorithm.

    [0041] Advantages of some embodiments include the ability to monitor the health of capacitor banks in FACTS devices without shutting down the AC switchyard. In some embodiments, such online approach of capacitor health monitoring advantageously enables timely detection of incipient capacitor failure and avoids costly maintenance or unscheduled forced outages of the capacitor banks in the FACTS devices.

    [0042] Some embodiments may advantageously be implemented without adding any additional hardware to an existing FACTS device.

    [0043] FIG. 4 shows a schematic diagram of SVC 400, according to an embodiment of the present disclosure. SCV 400 operates in a similar manner as SVC 100, and includes x AC filters 106, where x is a positive integer greater than or equal to 1. SVC 400, however, includes controller 402.

    [0044] In some embodiments, current measurement circuits 406, 408, 410, and/or 412 may be implemented in any way known in the art. For example, in some embodiments, current may be sampled by the current measurement circuits (e.g., 406, 408, 410, and/or 412) using an analog-to-digital converter (ADC) at a frequency above the mains frequency, such as at 1 KHz, 1.2 kHz, or higher. Other sampling frequencies may also be used.

    [0045] As shown in FIG. 4, in some embodiments, a single measurement circuit 406 may be shared across a plurality of AC filter 106. As also shown in FIG. 4, in some embodiments, a respective current measurement circuit may be used for each AC filter 106.

    [0046] In some embodiments, controller 402 includes one or more input terminals configured to receive data from current measurement circuits (e.g., 406, 408, 410, and 412) and perform further processing based on the received data. In some embodiments, controller 402 may be implemented as a custom or generic controller or processor, e.g., coupled to a memory and configured to execute instructions stored in the memory. In some embodiments, controller 402 is part of an intelligent electronic device (IED), such as an integrated microprocessor-based controller of power system equipment. In some embodiments, controller 402 is part of a server (e.g., a substation computer with I/O) that communicates with an IED, where the IED receives the current and voltage measurements (e.g., I.sub.F, I.sub.g, I.sub.TCR, V.sub.line, etc.) and transmits such measurements to the server.

    [0047] In some embodiments, each of the x AC filters 106 is designed to filter a respective harmonic. For example, in some embodiments, x is equal to 3, and the 3 AC filters 106 are designed to filter the 5.sup.th 7.sup.th and 13.sup.th harmonic of the fundamental frequency (e.g., 50 Hz or 60 Hz), respectively. In some embodiments, one or more (or all) of AC filters 106 may be implemented with the topology shown in FIG. 4. In some embodiments, one or more (or all) of AC filters 106 may be implemented with a different topology. In some embodiments, one or more (or all) of AC filters 106 may be implemented as high pass filter or band pass filter. In some embodiments, one or more (or all) of AC filters 106 may be implemented as a double tuned filter. In some embodiments, one or more (or all) of AC filters 106 may be implemented as a shunt capacitor. In some embodiments, one or more (or all) of AC filters 106 may be implemented as AC filters 700 or 720 (shown in FIGS. 7A and 7B, respectively). Other implementations are also possible. According to Kirchhoff's current law (KCL), in some embodiments, the relationship between currents I.sub.g, I.sub.TSC, I.sub.TCR and I.sub.F may be given by

    [00001] I g + I TSC + I TCR + I F = 0 , ( 1 )

    where I.sub.g represents the current going into AC grid 101, I.sub.F represents the current going into AC filter 106, I.sub.TSC represents the current going into TSC circuit 102, and I.sub.TCR represents the current going into TCR circuit 104.

    [0048] Harmonic currents may also be analyzed according to KCL. Thus, in some embodiments, the relationship between harmonic currents I.sub.g.sup.n.sup.th, I.sub.TSC.sup.n.sup.th, I.sub.TCR.sup.n.sup.th, and I.sub.F.sup.n.sup.th may be given by

    [00002] I g n th + I TSC n th + I TCR n th + I F n th = 0 , ( 2 )

    where I.sub.g.sup.n.sup.th represents the n.sup.th harmonic current going into AC grid 101, I.sub.F.sup.n.sup.th represents the n.sup.th harmonic current going into AC filter 106, I.sub.TSC.sup.n.sup.th represents the n.sup.th harmonic current going into TSC circuit 102, and I.sub.TCR.sup.n.sup.th represents the n.sup.th harmonic current going into TCR circuit 104.

    [0049] In some embodiments, the n.sup.th harmonic current may be determined by measuring the current (e.g., I.sub.F, I.sub.TSC, I.sub.TCR and I.sub.g, e.g., in a known manner), performing a Fourier transform (e.g., a discrete Fourier transform (DFT)) on the measured current to generate a frequency spectrum, and determine the energy of the frequency corresponding to the n.sup.th harmonic in the generated frequency spectrum.

    [0050] In some embodiments, n is equal to 5, 7, or 13. In some embodiments, n may be a different number, such as a different odd number.

    [0051] In some embodiments (as shown in FIG. 4), multiple AC filters 106 are used to filter various harmonics. For example, in some embodiments, 3 AC filters 106 are connected to the V.sub.line node to filter the 5.sup.th, 7.sup.th, and 13.sup.th harmonics, respectively. Less than 3 AC filters 106, or more than 3 AC filters 106 may also be used.

    [0052] Since, in some embodiments, TSC circuit 102 generates negligible harmonic currents, Equation 2 may be simplified as

    [00003] I g n th + I TCR n th + I F n th = 0. ( 3 )

    It can be inferred from Equation 3 that, for the n.sup.th harmonic current I.sub.g.sup.n.sup.th going into AC grid 101 to be zero, or close to zero, then

    [00004] I F n th - I TCR n th . ( 4 )

    [0053] In some embodiments, when the magnitude of the harmonic current I.sub.F.sup.n.sup.th is close to the magnitude of the harmonic current I.sub.TCR.sup.n.sup.th (e.g., when the magnitude of harmonic current I.sub.F.sup.n.sup.th is within 5% of the magnitude of harmonic current I.sub.TCR.sup.n.sup.th), the capacitor or capacitor bank 116 is determined to be operating properly. When the magnitude of the harmonic current I.sub.F.sup.n.sup.th is not close to the magnitude of the harmonic current I.sub.TCR.sup.n.sup.th (e.g., when the magnitude of harmonic current I.sub.F.sup.n.sup.th is not within 5% of the magnitude of harmonic current I.sub.TCR.sup.n.sup.th), the capacitor or capacitor bank 116 of the filter designed to filter the n.sup.th harmonic is flagged, e.g., for maintenance (e.g., monitoring and/or replacement), and/or for performing further testing on capacitor or capacitor bank 116.

    [0054] FIG. 5 shows a flow chart of embodiment method 500 for determining the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure. Method 500 may be implemented by, e.g., controller 402.

    [0055] During step 502, a first harmonic current (e.g., I.sub.TCR.sup.n.sup.th) is determined. For example, in some embodiments, a first current (e.g., I.sub.TCR) flowing through a first circuit (e.g., 104) is measured, and a DFT is performed on the measured first current to generate a frequency spectrum, where the magnitude of the first harmonic current (e.g., I.sub.TCR.sup.n.sup.th) corresponds to the magnitude of the frequency spectrum at the harmonic frequency. In some embodiments, the first current (e.g., I.sub.TCR) is measured in a known manner (e.g., by current measurement circuit 410). In some embodiments, the DFT is performed by a controller (e.g., 402).

    [0056] During step 504, a filter harmonic current (e.g., I.sub.F.sup.n.sup.th) is determined. For example, in some embodiments, a filter current (e.g., I.sub.F) is measured, and a DFT is performed on the measured filter current to generate a frequency spectrum, where the magnitude of the filter harmonic current (e.g., I.sub.TCR.sup.n.sup.th) corresponds to the magnitude of the frequency spectrum at the harmonic frequency. In some embodiments, the filter current (e.g., I.sub.F) is measured in a known manner (e.g., by current measurement circuit 406). In some embodiments, the DFT is performed by a controller (e.g., 402).

    [0057] During step 506, the magnitude of the first harmonic current (e.g., I.sub.TCR.sup.n.sup.th) is compared with the magnitude of the filter harmonic current (e.g., I.sub.F.sup.n.sup.th). In some embodiments, if the magnitude of the first harmonic current (e.g., I.sub.TCR.sup.n.sup.th) is not close to the magnitude of the filter harmonic current (e.g., I.sub.F.sup.n.sup.th), then step 508 is performed. In some embodiments, during step 506, if it is determined that

    [00005] I F n t h - I TCR n t h I TCR n t h < I thres n t h . ( 5 )

    where I.sub.thres.sup.n.sup.th represents a threshold for the n.sup.th harmonic, then step 508 is performed.

    [0058] In some embodiments, threshold I.sub.thres.sup.n.sup.th may be equal to a percentage higher than 90%, such as 95%. Other values, such as a presentence higher than 95% or a percentage lower than 90%, may also be used.

    [0059] In some embodiments, all thresholds I.sub.thres.sup.n.sup.th (for all harmonics) are equal to each other. In some embodiments, one or more (or all) of thresholds I.sub.thres.sup.n.sup.th may be different.

    [0060] During step 508, a flag is generated (e.g., by controller 402). In some embodiments, the flag is indicative of failure, degradation or malfunction of the capacitor or capacitor bank (e.g., 116). For example, in some embodiments, the capacitor or capacitor bank (e.g., 116) of the AC filter 106 associated with the n.sup.th harmonic is flagged, e.g., for maintenance, replacement, or further monitoring. For example, in some embodiments, the controller (e.g., 402) may cause an operator to be notified (e.g., via email, message, sound, at an operator terminal, etc.) that a deviation in performance of the capacitor or capacitor bank (e.g., 116) has been detected and, e.g., requires attention. As another example, in some embodiments, the controller (e.g., 402) may cause further testing to be performed on the capacitor or capacitor bank (e.g., 116). In some embodiments, the step of generating the flag includes identifying the failed, degraded or malfunctioned capacitor or capacitor bank (e.g., the capacitor or capacitor bank of the AC filter designed to filter the harmonic current compared during step 506 that cause the output of step 506 to be no).

    [0061] In some embodiments, performing steps 502, 504, 506, and 508 advantageously allows for identification of a failed, degraded or malfunctioned capacitor or capacitor bank without shutting down the AC switchyard to perform the diagnosis of the capacitor or capacitor bank.

    [0062] As illustrated in FIG. 5, steps 502, 504, and 506 may be performed, e.g., periodically, until the output of step 506 becomes no. In some embodiments, steps 502, 504, and 506 may continue to be performed after step 508 is performed. In some embodiments, steps 502, 506, and 506, may be performed on demand.

    [0063] Advantages of some embodiments include the ability to monitor the health of a capacitor or capacitor bank (e.g., in a FACTS device) in real time and without shutting down the AC switchyard to perform the diagnosis of the capacitor or capacitor bank. In some embodiments, monitoring the health of a capacitor or capacitor bank in real time advantageously allows for timely detection of capacitor failure, and advantageously avoids delaying maintenance of the FACTS or AC filter(s).

    [0064] In some embodiments, method 500 may be performed (e.g., simultaneously or sequentially) to monitor the health of capacitors or capacitor banks of a plurality of filters (e.g., of a plurality of AC filters 106). For example, FIG. 6 shows a flow chart of embodiment method 600 for determining the health of a plurality of capacitors or capacitor banks, according to an embodiment of the present disclosure. Method 600 may be implemented by, e.g., controller 402.

    [0065] Method 600 is similar to method 500. Method 600, however, monitors the health of a plurality of capacitors or capacitor banks associated with a respective plurality of AC filters (e.g., 116). For example, as shown in FIG. 6, method 600 may be used to monitor the health of 2 AC filters 116, where steps 504.sub.1, 506.sub.1, and 508.sub.1 are performed in connection with monitoring the health of a first capacitor or capacitor bank 116 (associated with AC filter 106.sub.1), and steps 504.sub.2, 506.sub.2, and 508.sub.2 are performed in connection with monitoring the health of a second capacitor or capacitor bank (associated with AC filter 106.sub.2).

    [0066] Step 502 may be performed in a similar manner as described with respect to method 500. Each of steps 504.sub.1 and 504.sub.2 may be performed in a similar manner as step 504. Each of steps 506.sub.1 and 506.sub.2 may be performed in a similar manner as step 506. Each of steps 508.sub.1 and 508.sub.2 may be performed in a similar manner as step 508.

    [0067] As a non-limiting example, in some embodiments (e.g., as illustrated in FIG. 6), method 600 may be used to monitor the health of 2 AC filters 106 for filtering respective harmonics (e.g., 5.sup.th, and 7.sup.th harmonics). In some embodiments, method 600 may be extended to monitor more than 2 AC filters 116, such as 3 or more (e.g., by performing additional steps 504.sub.i, 506.sub.i, and 508.sub.i, where i is a number from 3 to x, where x represents the number of AC filters 106).

    [0068] As shown in FIG. 6, some embodiments are advantageously capable of detecting in real time a deviation in performance of a capacitor or capacitor bank and its associated location. For example, in an embodiment in which the first and second AC filters 116 are designed to filter the 5.sup.th and 7.sup.th harmonics, respectively, when step 506.sub.1 outputs no, the location of the capacitor or capacitor bank 116 associated with the detected deviation corresponds to the location of the capacitor or capacitor bank of the AC filter 106 designed for filtering the 5.sup.th harmonic. When step 506.sub.2 outputs no, the location of the capacitor or capacitor bank 116 associated with the detected deviation corresponds to the location of the capacitor or capacitor bank of the AC filter 106 designed for filtering the 7.sup.th harmonic.

    [0069] In some embodiments, in response to a capacitor or capacitor bank being flagged during step 508, the capacitance of such capacitors or capacitor bank is determined (e.g., using method 800, described below), e.g., to determine whether the capacitance is within the expected tolerance or if the capacitor or capacitor bank should be replaced, e.g., immediately. In some embodiments, the capacitance C.sub.det of a capacitor or capacitor bank may be determined by

    [00006] C det = I c .Math. V c t . ( 6 )

    where I.sub.c represents the current going into or out of the capacitor or capacitor bank, V.sub.c represents the voltage across the capacitor or capacitor bank, V.sub.c represents the difference in voltage between two samples of voltage V.sub.c, and t represents the time between voltage samples.

    [0070] In some embodiments, current I.sub.c corresponds to a single current measurement. In some embodiments, current I.sub.c corresponds to the average of a plurality of current measurements (e.g., taken during the period of time t). In some embodiments, using a plurality of current measurements may advantageously increase the accuracy of the determined capacitance C.sub.det.

    [0071] In some embodiments, a plurality of capacitances C.sub.det may be determined and averaged to determine the capacitance of the capacitor or capacitor bank. In some embodiments, averaging a plurality of capacitances C.sub.det to determine the capacitance of the capacitor or capacitor bank may advantageously increase the accuracy of the determined capacitance C.sub.det.

    [0072] In some embodiments, the sampling rate of voltage V.sub.c may be higher than the mains frequency, such as 1 kHz, 1.2 kHz, or higher. Other frequencies may also be used.

    [0073] In some embodiments, current I.sub.c is measured directly. For example, in some embodiments, current I.sub.c corresponds to current I.sub.F, and may be measured, e.g., with current measurement circuit 406.

    [0074] In some embodiments, methods 500 and 600 may be performed periodically. In some embodiments, methods 500 and 600 may be performed on demand. In some embodiments, methods 500 and 600 may be performed continuously.

    [0075] In some embodiments, voltage V.sub.c may be measured directly. In some embodiments, voltage V.sub.c may be determined based on current I.sub.c and a voltage of the AC filter. For example, FIG. 7A shows exemplary high pass filter 700 (also referred to as a single tune circuit). In some embodiments, voltage V.sub.c_702 across capacitor bank 702 may be determined by

    [00007] V c _ 702 = V 1 - I c _ 702 .Math. R 1 - L 1 .Math. I c t . ( 7 )

    where V.sub.1 represents the voltage across AC filter 700, current I.sub.c_702 represents the current flowing through AC filter 700, R.sub.1 represents the resistance of resistor 704, L.sub.1 represents the inductance of inductor 706, I.sub.c represents the difference in current between two samples of current I.sub.c, and t represents the time between current samples. In some embodiments, voltage V.sub.c_702 and current I.sub.c_702 may be used with Equation 6 to determine the capacitance C.sub.det_702 of capacitor bank 702.

    [0076] In some embodiments, R.sub.1 and L.sub.1 are known values, and current I.sub.c_702 and voltage V.sub.1 are measured directly. In some embodiments, the sampling rate of voltage V.sub.1 may be higher than the mains frequency, such as 1 kHz, 1.2 kHz, or higher. Other frequencies may also be used. In some embodiments, voltage V.sub.1 may correspond to voltage V.sub.line.

    [0077] FIG. 7B shows exemplary high pass filter 720. In some embodiments, voltage V.sub.c_722 across capacitor bank 702 may be determined by

    [00008] V c _ 722 = V 2 - I c _ 722 .Math. ( R 2 || L 2 ) . ( 8 )

    where V.sub.2 represents the voltage across AC filter 720, current I.sub.c_722 represents the current flowing through AC filter 720, R.sub.2 represents the resistance of resistor 724, L.sub.2 represents the inductance of inductor 726, and is the parallel connection symbol. In some embodiments, voltage V.sub.c_722 and current I.sub.c_722 may be used with Equation 6 to determine the capacitance C.sub.det_722 of capacitor bank 722.

    [0078] In some embodiments, R.sub.2 and L.sub.2 are known values, and current I.sub.c_722 and voltage V.sub.1 are measured directly. In some embodiments, the sampling rate of voltage V.sub.1 may be higher than the mains frequency, such as 1 kHz, 1.2 kHz, or higher. Other frequencies may also be used. In some embodiments, voltage V.sub.1 may correspond to voltage V.sub.line. As shown in FIG. 4, in some embodiments, voltage V.sub.line may be measured directly.

    [0079] It is understood that Equations 7 and 8 may be modified based on the topology of the AC filter.

    [0080] In some embodiments, the capacitance of a capacitor or capacitor bank may be determined using Equation 6. In some embodiments, the capacitance of a capacitor or capacitor bank may be determined in other ways (e.g., depending on the signal condition of the system) For example, in some embodiments, the capacitance of a capacitor or capacitor bank may be determined using

    [00009] C det = 1 V tf - V ti .Math. ti tf I c dt . ( 9 )

    where V.sub.tf and V.sub.ti represent voltages across the capacitor or capacitor bank measured at times tf and ti, respectively.

    [0081] In some embodiments, the capacitance C.sub.det may be determined, e.g., periodically, e.g., to detect when the capacitance C.sub.det fall outside an acceptable range (e.g., outside +/5% the target capacitance value). In some embodiments, the trend of capacitance C.sub.det may be determined, e.g., to determine a probable time of failure. In some embodiments, if the probable time of failure is within a predetermined threshold (e.g., within 3 month), the capacitor or capacitor bank associated with the capacitance trend is flagged, e.g., for replacement. For example, FIG. 8 shows a flow chart of embodiment method 800 for monitoring the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure. Method 800 includes steps 802, 804, 806, 808, 810, 812, 814, and 816. Method 800 may be implemented by, e.g., controller 402.

    [0082] During step 802, a voltage (e.g., V.sub.line) of an AC filter (e.g., 106) and a current (e.g., I.sub.F) of the AC filter are measured (e.g., using voltage and current measurement circuits, e.g., as shown in FIG. 4). For example, in some embodiments, the voltage (e.g., V.sub.line) and current (e.g., I.sub.F) of the AC filter (e.g., 106) are measured periodically in a known manner. For example, in some embodiments, the voltage and current of the AC filter are sampled (e.g., at a sampling rate of 1 kHz or higher, such as at 1.2 kHz) during a predetermined time window. In some embodiments, the predetermined time window is 10 seconds. Longer time windows (e.g., 15 seconds, 20 second, or longer), or shorter time windows (e.g., 8 seconds or shorter) may also be used.

    [0083] During step 804, it is determined whether there any transient events occurred during the performance of step 802 (during the predetermined time window). Transient events may include changes in the voltage setpoint of AC grid 101, for example. If it is determined during step 804 that a transient event occurred during data acquisition, the measurements collected during step 802 are discarded during step 805. If there are no detected transient events, step 806 is performed.

    [0084] During step 806, the voltage and current data collected during step 802 are filtered to remove noise and harmonic content, e.g., keeping the data associated with the fundamental frequency (e.g., 50 Hz or 60 Hz). In some embodiments, the filters used during step 806 may be FIR filters. In some embodiments, the voltage and current data may be filtered in other ways known in the art.

    [0085] During step 808, the capacitance of the capacitor or capacitor bank (e.g., 116) is determined, e.g., using one or more of Equations 6-9. If it is determined during step 810 that the capacitance of the capacitor or capacitor bank is outside a predetermined tolerance, the capacitor or capacitor bank is flagged, during step 812.

    [0086] In some embodiments, the predetermined tolerance is with 5% of the target capacitance value. Different tolerances may also be used. For example, in some embodiments, the predetermined tolerance is within 7.5% of the target capacitance value.

    [0087] In some embodiments, the determined capacitance is compared with the target capacitance to determine whether the determined capacitance is outside the predetermined tolerance during step 810. In some embodiments, the determined capacitance is compared with a previous determined capacitance (determined during a previous step 810) to determine whether the determined capacitance is outside the predetermined tolerance during step 810.

    [0088] In some embodiments, flagging the capacitor or capacitor bank during step 812 includes asserting a bit and/or signal. In some embodiments, flagging the capacitor or capacitor bank during step 812 includes alerting an operator (e.g., via a text, sound, etc.) that the capacitor or capacitor bank requires attention. In some embodiments, flagging the capacitor or capacitor bank during step 812 includes feeding information about the flagged capacitor (e.g., capacitance, aging information, and/or decreased ability for an AC filter to filter harmonics) to an operator terminal and/or into a maintenance management system of the FACTS.

    [0089] During step 814, the capacitance of the capacitor or capacitor bank is determined or adjusted based on the new capacitance determined during step 808. For example, in some embodiments, a best fit polynomial approximation is generated based on capacitances values determined over time to determine or adjust the capacitance trend. The capacitance trend may be determined in other ways.

    [0090] In some embodiments, the determination of the (e.g., long term, e.g., over weeks or months) capacitance trend of a capacitor or capacitor bank (e.g., during step 814) may involve using (e.g., linear) regression to find the best fit for the capacitance trend. For example, in some embodiments, the capacitance trend may be obtained by using

    [00010] = 1 + 2 x [ 1 2 .Math. n ] = [ 1 x 1 x 1 2 .Math. x 1 m 1 x 2 x 2 2 .Math. x 2 m .Math. .Math. .Math. .Math. .Math. 1 x n x n 2 .Math. x n m ] [ 1 2 .Math. n ] , ( 10 ) [ ] = ( [ X ] T [ X ] ) - 1 [ X ] T [ Y ]

    where y represents the sample data (e.g., capacitance values of the capacitor or capacitor bank over time), represents the unknown parameters to the regression, m represents the number of unknown parameters, and n represents the number of sampled data. As shown, Equation 10 uses a matrix form to find the best fit from linear to multi-degree regression.

    [0091] In some embodiments, the outcome of the regression results in a single parameter .sub.1 (also referred to as primary parameter) having a non-negligible value, while the other parameters (.sub.2 to .sub.n) (also referred to as secondary parameters) having negligible values (close to zero or zero), where .sub.1 represents the capacitance. In some embodiments, the secondary parameters (.sub.2 to .sub.n) may increase over time as aging occurs. In some embodiments, as one or more of the secondary parameters increase, a projection of time to failure can be estimated, where the time of failure is the time when the projected capacitance falls outside the predetermined range, and the time to failure is the time it takes for such predicted failure to occur (e.g., based on the value of x that causes the projected capacitance to fall outside the predetermined range).

    [0092] In some embodiments, the increase of one or more of the secondary parameters (.sub.2 to .sub.n) may be indicative of aging. In some embodiments, when one or more of the secondary parameters (.sub.2 to .sub.n) increases above a predetermined threshold, step 812 is performed.

    [0093] In some embodiments, the determination of the capacitance trend of a capacitor or capacitor bank (e.g., during step 814) may involve using linear regression. In some embodiments, other regression methods may also be used.

    [0094] If it is determined during step 816 that the capacitance trend is indicative of a capacitor failure, degradation or malfunction, step 812 is performed. For example, in some embodiments, if the capacitance trend indicates that the capacitance is expected to be outside the predetermined tolerance within a predetermined time period (e.g., within 3 month), step 812 is performed.

    [0095] As another example, in some embodiments, if it is determined during step 816 that the determined capacitance is far from the prediction of the capacitance trend, e.g., such as when one or more of the primary or secondary parameters (.sub.1 to .sub.n) changes (even if it is within the predetermined tolerance of the target capacitance value), step 812 may be performed.

    [0096] In some embodiments, flagging a capacitor or capacitor bank when the determined capacitance is far from the prediction of the capacitance trend may advantageously allow for detecting a cyber intrusion (which may cause spoofing of the measurement data).

    [0097] As shown in FIG. 8, step 814 may be performed when the output of step 810 is no. In some embodiments, step 814 may also be performed when the output of step 810 is yes. By performing step 814 irrespective of the output of step 810, some embodiments advantageously continue to monitor the trend of the capacitance after the capacitor or capacitor is flagged, which may advantageously aid in adjusting the capacitance trend, e.g., to remove outliers and noise. Method 800 has been described with respect to an AC filter, such as 106. In some embodiments, method 800 may be implemented to monitor capacitors or capacitor banks in other circuits or devices, such as capacitor bank 118 of TSC circuit 102 (e.g., by measuring current I.sub.TSC and voltage V.sub.line).

    [0098] Method 800 illustrates the monitoring of the health of one capacitor or capacitor bank. In some embodiments, method 800 may be performed (e.g., simultaneously), for monitoring the health of a plurality of capacitors or capacitor banks. For example, in an embodiment in which SVC 400 includes 3 AC filters 106 (x=3), method 800 may be performed in parallel 4 times to monitor the health of the 3 capacitor banks 116 and the capacitor bank 118.

    [0099] In some embodiments, method 800 may be performed in response to the capacitor or capacitor bank being flagged during step 508. In some embodiments, method 800 may be performed irrespective of whether the capacitor or capacitor bank has been flagged. In some embodiments, method 800 may be performed without performing methods 500 or 600.

    [0100] As illustrated by FIG. 8, method 800 may be performed periodically. In some embodiments, method 800 may be performed on demand. In some embodiments, method 800 may be performed continuously. For example, in some embodiments, voltage and current samples are captured continuously (e.g., at 1 kHz or higher, such as at 1.2 kHz, e.g., during step 802), and the capacitance and capacitance trends are estimated in real time (during steps 808 and 814, respectively) as new samples are captured.

    [0101] FIG. 9 shows a flow chart of embodiment method 900 for monitoring the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure. Method 900 includes steps 502, 504, 506, 802, 804, 805, 806, 808, 810, 812, 814, and 816. Steps 502, 504, and 506 may be performed in a similar manner as described with respect to method 500. Steps 802, 804, 805, 806, 808, 810, 812, 814, and 816 may be performed in a similar manner as described with respect to method 800. In some embodiments, step 812 includes step 508. Method 900 may be implemented by, e.g., controller 402.

    [0102] Method 900 is illustrative of a possible way of monitoring the health of a capacitor or capacitor bank. In some embodiments, one or more steps of method 900 may be omitted. For example, in some embodiments, steps 806, 808, 810, 814, and 816 may be omitted. In some embodiments, steps 814 and 816 may be omitted. In some embodiments, step 804 and 805 may be omitted. In some embodiments, steps 502, 504, 506, 814 and 816 may be omitted. In some embodiments, method 900 may be modified in other ways.

    [0103] Method 900 illustrates the monitoring of the health of one capacitor or capacitor bank. In some embodiments, method 900 may be performed (e.g., simultaneously), for monitoring the health of a plurality of capacitors or capacitor banks.

    [0104] In some embodiments, method 900 may be performed periodically. In some embodiments, method 900 may be performed on demand. In some embodiments, method 900 may be performed continuously.

    [0105] In some embodiments, the determination of the capacitance C.sub.det across a capacitor or capacitor bank may be refined, e.g., using clustering. For example, in some embodiments, one or more determined capacitances C.sub.det (e.g., determined during step 808) may include erroneous values due to the variation of the power system and/or noise from devices. In some embodiments, erroneous capacitance values are filtered out using statistical machine learning algorithm. For example, in some embodiments, a k-means clustering algorithm is used to remove erroneous capacitance values. For example, FIG. 10 shows a flow chart of embodiment method 1000 for determining a capacitance of a capacitor or capacitor bank, according to an embodiment of the present disclosure. In some embodiments, step 808 may be performed as method 1000.

    [0106] During step 1002, M capacitance values are determined, e.g., based on the measurements collected during step 802, e.g., using one or more of Equations 6-9. In some embodiments, M is a positive integer greater than 10, such as 50 or 100.

    [0107] During step 1004, an optimal number of k clusters is determined, where k is a positive integer greater than 1 and smaller than M. In some embodiments, k may be 2, 3, 4, 5, 6, 7, or higher. In some embodiments, the number of clusters k is determined by using minimum distances between data pairs (of the M capacitances values), iteratively. For example, in some embodiments, outlines are calculated for each cluster, and then the number k of clusters is selected so that there is minimum distance between datasets (clusters). In some embodiments, the number of clusters k may be pre-determined. In some embodiments, the number of clusters k may be determined during step 1002 (e.g., periodically). In some embodiments, the number of clusters k may be predetermined for real-time detection (e.g., for step 808) and may be dynamically determined for determining long-term trends (e.g., for step 814).

    [0108] During step 1006, each of the capacitances determined during step 1002 is associated with a cluster (of the k clusters) having the nearest mean (e.g., using Euclidean distances), where the mean of a cluster is the mean of the capacitance values of the cluster.

    [0109] After the M capacitance values are associated to a cluster, a dominant cluster is determined during step 1008 (and, e.g., discarding the capacitance values associated with the other clusters). For example, in some embodiments, the dominant cluster corresponds to the cluster (of the k clusters) having the largest count of capacitance values.

    [0110] During step 1010, the capacitance value of the capacitor or capacitor bank is determined based on the capacitance values of the dominant cluster. For example, in some embodiments, the capacitance value of the capacitor or capacitor bank is determined as the median of the capacitance values of the dominant cluster. As another example, in some embodiments, the capacitance value of the capacitor or capacitor bank is determined as the average of the capacitance values of the dominant cluster.

    [0111] In some embodiments, the dominant cluster advantageously includes a small number of high-quality capacitance values (e.g., that are free from outliers), thereby advantageously allowing for the determination of a more accurate capacitance value compared to using all of the M capacitance values.

    [0112] In some embodiments, method 1000 may be performed periodically. In some embodiments, method 1000 may be performed continuously. In some embodiments, method 1000 may be performed on demand.

    [0113] In some embodiments, during step 808, method 1000 may be performed to determine (e.g., real time) the capacitance value of a capacitor or capacitor bank. In some embodiments, during step 814, method 1000 may be performed to determine the capacitance values to be used in determining the capacitance trend of a capacitor or capacitor bank.

    [0114] FIG. 11 shows a flow chart of embodiment method 1100 for monitoring the health of a capacitor or capacitor bank, according to an embodiment of the present disclosure. Method 1100 illustrates a possible implementation of method 900 where step 812 includes steps 1102, 1104, 1112, 1114, and 1116, and step 816 includes steps 1106, 1108, and 1110. Method 1100 may be implemented by, e.g., controller 402.

    [0115] As shown in FIG. 11, when the capacitance is determined to be outside the predetermined tolerance during step 810, the capacitor or capacitor bank is flagged as being out of tolerance during step 1104. In some embodiments, once the capacitor or capacitor bank is flagged during step 1104, step 814 is performed. In some embodiments, once the capacitor or capacitor bank is flagged during step 1104, step 802 is performed. In some embodiments, once the capacitor or capacitor bank is flagged during step 1104, method 1100 stops.

    [0116] As shown in FIG. 11, during step 816, steps 1106, 1108 and 1110 are performed (e.g., simultaneously or sequentially). If it is determined during step 1106 that the capacitance trend is indicative of capacitor failure within a predetermined time period (e.g., the estimated capacitance at a predetermined future time being lower than a predetermined threshold), the capacitor or capacitor bank is flagged during step 1112 as failure predicted for such capacitor or capacitor bank. In some embodiments, time of failure is predicted during step 1106 by extrapolating using the outcome of the regression (e.g., using Equation 10, and determining the value of x for which the capacitance falls out of tolerance, where variable x corresponds to a time domain that can be used to determine a time in which the capacitance falls out of tolerance). In some embodiments, one or more of the secondary parameters (.sub.2 to .sub.n) may be used for estimating time of failure. If it is determined during step 1108 that the capacitance trend is indicative of aging of the capacitor or capacitor bank, the capacitor or capacitor bank is flagged during step 1114 as aged. In some embodiments, step 1108 outputs yes when one or more of the secondary parameters (.sub.2 to .sub.n) increases above a predetermined threshold.

    [0117] If it is determined during step 1110 that the capacitance trend is indicative of a possible cyber intrusion, a flag is issued to signal that a possible cyber intrusion has occurred. In some embodiments, a possible cyber intrusion is detected when the capacitance trend deviates from previous capacitance trend estimates. For example, in some embodiments, a possible cyber intrusion is detected if any of the primary or secondary parameters of the regression (.sub.1 to .sub.n) changes more than a predetermined threshold compared to the previous estimate of such parameter. In some embodiments, the predetermined threshold may be the same for all the primary and secondary parameters. In some embodiments, one or more (or all) of the predetermined thresholds may be different.

    [0118] In some embodiments, method 1100 may be performed periodically. In some embodiments, method 1100 may be performed continuously. In some embodiments, method 1100 may be performed on demand.

    [0119] In some embodiments, methods 500, 600, 800, 900, 1000, and/or 1100 may be implemented by controller 402 to monitor the health of capacitors or capacitor banks in an SVC (e.g., SVC 400). In some embodiments, methods 500, 600, 800, 900, 1000, and/or 1100 may be used to monitor the health of capacitor or capacitor banks in other devices or circuits, such as STATCOM or HVDC systems.

    [0120] FIG. 12 shows a schematic diagram of STATCOM 1200, according to an embodiment of the present disclosure. STATCOM 1200 operates in a similar manner as STATCOM 200.

    [0121] STATCOM 1200, however, includes controller 1202. In some embodiments, controller 1202 is part of an IED.

    [0122] In some embodiments, STATCOM 1200 may include a plurality of AC filters 202. For example, in some embodiments, STATCOM 1200 may include x AC filters 202, e.g., for filtering respective harmonics, where x is a positive integer greater than or equal to 1.

    [0123] In some embodiments, current measurement circuits 1204, 1206, and 1208 may be implemented in any way known in the art, e.g., in a manner similar or identical to current measurements circuits 406, 408, 410, and/or 412. In some embodiments having a plurality of AC filters 202, each AC filter 202 may have a corresponding current measurement circuit 1206. In some embodiments having a plurality of AC filters 202, a single current measurement circuit 1206 may be shared across the plurality of AC filters 202.

    [0124] In some embodiments, controller 1202 includes one or more input terminals configured to receive data from current measurement circuits 1204, 1206, and 1208 and perform further processing based on the received data. In some embodiments, controller 1202 may be implemented as a custom or generic controller or processor, e.g., coupled to a memory and configured to execute instructions stored in the memory.

    [0125] In some embodiments having a plurality of AC filters 202, each of the AC filters 202 is designed to filter a respective harmonic. For example, in some embodiments, STATCOM 1200 includes 3 AC filters 202 designed to filter the higher 39.sup.th to more harmonic, respectively. Other target harmonics (e.g., depending on the design of the STATCOM) may be used.

    [0126] In some embodiments, one or more (or all) of AC filters 202 may be implemented with the topology shown in FIG. 12. In some embodiments, one or more (or all) of AC filters 202 may be implemented with a different topology. In some embodiments, one or more (or all) of AC filters 202 may be implemented as high pass filter or band pass filter. In some embodiments, one or more (or all) of AC filters 202 may be implemented as a double tuned filter. In some embodiments, one or more (or all) of AC filters 202 may be implemented as a shunt capacitor. In some embodiments, one or more (or all) of AC filters 202 may be implemented as AC filters 700 or 720 (shown in FIGS. 7A and 7B, respectively). Other implementations are also possible.

    [0127] According to KCL, in some embodiments, the relationship between harmonic currents I.sub.g.sup.n.sup.th, I.sub.V.sup.n.sup.th, and I.sub.F.sup.n.sup.th may be given by

    [00011] I g n th + I V n th + I F n th = 0 , ( 11 )

    where I.sub.g.sup.n.sup.th represents the n.sup.th harmonic current going into AC grid 101, I.sub.F.sup.n.sup.th represents the n.sup.th harmonic current going into AC filter 202, and I.sub.V.sup.n.sup.th represents the n.sup.th harmonic current going into VSC circuit 204.

    [0128] In some embodiments, the n.sup.th harmonic current may be determined by measuring the current (e.g., I.sub.F, I.sub.V, and I.sub.g, e.g., in a known manner), performing a Fourier transform (e.g., a DFT) on the measured current to generate a frequency spectrum, and determine the energy at the frequency corresponding to the n.sup.th harmonic in the generated frequency spectrum.

    [0129] In some embodiments, n is equal to 5, 7, 13, or 39. In some embodiments, n may be a different number, such as a different odd number.

    [0130] It can be inferred from Equation 11 that, for the n.sup.th harmonic current I.sub.g.sup.n.sup.th going into AC grid 101 to be zero, then

    [00012] I F n th = - I V n th . ( 12 )

    [0131] As can be seen, Equation 12 is similar to Equation 4, but replaces the term I.sub.TCR.sup.n.sup.th with I.sub.V.sup.n.sup.th. In some embodiments, Equation 5 may be modified in view of Equation 12 as

    [00013] I F n th - I V n th I V n th < I thres n th . ( 13 )

    to apply to STATCOM 1200. Thus, in some embodiments, controller 1202 may implement methods 500, 600, 800, 900, 1000, and/or 1100 by implementing step 506 using I.sub.V.sup.n.sup.th instead of I.sub.TCR.sup.n.sup.th (e.g., using Equation 13 instead of Equation 5).

    [0132] FIG. 13 shows a schematic diagram of HVDC system 1300, according to an embodiment of the present disclosure. HVDC system 1300 operates in a similar manner as HVDC system 300.

    [0133] HVDC system 1300, however, includes controller 1302. In some embodiments, controller 1302 is part of an IED.

    [0134] In some embodiments, HVDC system 1300 may include a plurality of AC filters. For example, as shown in FIG. 13, HVDC system 1300 may include 3 AC filters 302, 304, and 306.

    [0135] In some embodiments, current measurement circuits 1304, 1306, and 1308 may be implemented in any way known in the art, e.g., in a manner similar or identical to current measurements circuits 406, 408, 410, and/or 412.

    [0136] In some embodiments, controller 1302 includes one or more input terminals configured to receive data from current measurement circuits 1304, 1306, and 1308 and perform further processing based on the received data. In some embodiments, controller 1302 may be implemented as a custom or generic controller or processor, e.g., coupled to a memory and configured to execute instructions stored in the memory.

    [0137] In some embodiments AC filters 302 and 304 are designed to filter the 11.sup.th and 13.sup.th harmonic, respectively. In some embodiments, AC filters 302 and 304 may be designed to filter other harmonics, such as other odd harmonics of the fundamental frequency (e.g., 60 Hz or 50 Hz) respective harmonic.

    [0138] In some embodiments, one or more (or all) of AC filters 302, 304, and 306 may be implemented with the respective topologies shown in FIG. 13. In some embodiments, one or more (or all) of AC filters 302, 304, and 306 may be implemented with a different topology. In some embodiments, one or more (or all) of AC filters 302, 304, and 306 may be implemented as high pass filter or band pass filter. In some embodiments, one or more (or all) of AC filters 302, 304, and 306 may be implemented as a double tuned filter. In some embodiments, one or more (or all) of AC filters 302, 304, and 306 may be implemented as a shunt capacitor. In some embodiments, one or more (or all) of AC filters 302, 304, and 306 may be implemented as AC filters 700 or 720 (shown in FIGS. 7A and 7B, respectively). Other implementations are also possible.

    [0139] According to KCL, in some embodiments, the relationship between harmonic currents I.sub.g.sup.n.sup.th, I.sub.v.sup.n.sup.th, and I.sub.F.sup.n.sup.th may be given by

    [00014] I g n th + I v n th + I F n th = 0 , ( 14 )

    where I.sub.g.sup.n.sup.th represents the n.sup.th harmonic current going into AC grid 101, I.sub.F.sup.n.sup.th represents the n.sup.th harmonic current going into AC filter 202, and I.sub.v.sup.n.sup.th represents the n.sup.th harmonic current going into AC filters 302, 304, and 306.

    [0140] In some embodiments, the n.sup.th harmonic current may be determined by measuring the current (e.g., I.sub.F, I.sub.V, and I.sub.g, e.g., in a known manner), performing a Fourier transform (e.g., a DFT) on the measured current to generate a frequency spectrum, and determine the energy at the frequency corresponding to the n.sup.th harmonic in the generated frequency spectrum.

    [0141] In some embodiments, n is equal to 11, and 13. In some embodiments, n may be a different number, such as a different odd number.

    [0142] It can be inferred from Equation 11 that, for the n.sup.th harmonic current I.sub.g.sup.n.sup.th going into AC grid 101 to be zero, then

    [00015] I F n th = - I v n th . ( 15 )

    [0143] As can be seen, Equation 15 is similar to Equation 4, but replaces the term I.sub.TCR.sup.n.sup.th with I.sub.v.sup.n.sup.th. In some embodiments, Equation 5 may be modified in view of Equation 15 as

    [00016] I F n th - I v n th I v n th < I thres n th . ( 16 )

    to apply to HVDC system 1300. Thus, in some embodiments, controller 1302 may implement methods 500, 600, 800, 900, 1000, and/or 1100 by implementing step 506 using I.sub.v.sup.n.sup.th instead of I.sub.TCR.sup.n.sup.th (e.g., using Equation 16 instead of Equation 5).

    [0144] FIG. 14 shows a schematic diagram of device 1400, according to an embodiment of the present disclosure. Device 1400 includes controller 1402. In some embodiments, controller 1402 may be implemented as controller 402, 1202 or 1302.

    [0145] In some embodiments, device 1400 is an IED. In some embodiments, device 1400 is a remote server that receives data (e.g., I.sub.F, I.sub.TSC, I.sub.TCR, I.sub.V, I.sub.v, V.sub.line, etc.) from an IED.

    [0146] Example embodiments of the present disclosure are summarized here. Other embodiments can also be understood from the entirety of the specification and the claims filed herein.

    [0147] Example 1. An electronic circuit including: one or more input terminals configured to receive measurement data; and a controller configured to: determine a first harmonic current based on a first current flowing through a first circuit coupled to a line node, where the measurement data includes first current data indicative of the first current, determine a filter harmonic current based on a filter current flowing through an AC filter coupled to the line node, where the measurement data includes filter current data indicative of the filter current, and generate a first flag indicative of failure, degradation or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, where the AC filter includes the first capacitor or capacitor bank.

    [0148] Example 2. The electronic circuit of example 1, where the controller is configured to generate the first flag when the filter harmonic current within a predetermined tolerance of the first harmonic current.

    [0149] Example 3. The electronic circuit of one of examples 1 or 2, where the controller is configured to generate the first flag when

    [00017] I F n th - I 1 st n th I 1 st n th < I thres n th ,

    where I.sub.F.sup.n.sup.th represents the filter harmonic current, where I.sub.1st.sup.n.sup.th represents the first circuit harmonic current, and where I.sub.thres.sup.n.sup.th is higher than 90%.

    [0150] Example 4. The electronic circuit of one of examples 1 to 3, where the AC filter is designed to filter an n.sup.th harmonic of a fundamental frequency, where the first harmonic current corresponds to the nth harmonic of the fundamental frequency, where the filter harmonic current corresponds to the nth harmonic of a fundamental frequency, and where generating the first flag includes identifying the first capacitor or capacitor bank of the AC filter designed to filter the nth harmonic of the fundamental frequency as the failed, degraded or malfunctioned capacitor or capacitor bank.

    [0151] Example 5. The electronic circuit of one of examples 1 to 4, where n is equal to 5, 7, 11, 13, or 39.

    [0152] Example 6. The electronic circuit of one of examples 1 to 5, where the controller is configured to continuously determine the first harmonic current and the filter harmonic current.

    [0153] Example 7. The electronic circuit of one of examples 1 to 6, where the controller is further configured to determine a first capacitance of the first capacitor or capacitor bank, compare the first capacitance with a reference capacitance, and generate a second flag when the first capacitance differs from the reference capacitance by more than a predetermined tolerance, where the second flag is indicative of a failure, degradation, or malfunction of the first capacitor or capacitor bank.

    [0154] Example 8. The electronic circuit of one of examples 1 to 7, where the controller is configured to determine the first capacitance in response to the first flag.

    [0155] Example 9. The electronic circuit of one of examples 1 to 8, where the reference capacitance is a target capacitance of the first capacitor or capacitor bank.

    [0156] Example 10. The electronic circuit of one of examples 1 to 9, where the reference capacitance corresponds to a previously measured capacitance of the first capacitor or capacitor bank.

    [0157] Example 11. The electronic circuit of one of examples 1 to 10, where the controller is configured to determine the first capacitance by: determining M capacitance values of the first capacitor or capacitor bank, where M is a positive integer greater than 1; associating each of the M determined capacitance values to a cluster of k clusters, where k is a positive integer greater than 1 and smaller than M; determining a dominant cluster from the k clusters; and determining the first capacitance based on the capacitance values of the dominant cluster.

    [0158] Example 12. The electronic circuit of one of examples 1 to 11, where the controller is configured to associate each of the M determined capacitances values to a cluster of the k clusters having a nearest mean.

    [0159] Example 13. The electronic circuit of one of examples 1 to 12, where the controller is configured to determine the dominant cluster as the cluster having the highest count of capacitance values.

    [0160] Example 14. The electronic circuit of one of examples 1 to 13, where the controller is further configured to: determine or adjust a capacitance trend of the first capacitor or capacitor bank based on the first capacitance; and generate a third flag when the capacitance trend is indicative of a failure, degradation, or malfunction associated with the first capacitor or capacitor bank.

    [0161] Example 15. The electronic circuit of one of examples 1 to 14, where the controller is configured to generate the third flag when the capacitance trend is indicative of the first capacitance falling out of tolerance within a predetermined time period.

    [0162] Example 16. The electronic circuit of one of examples 1 to 15, where the controller is configured to determine or adjust the capacitance trend using linear regression.

    [0163] Example 17. The electronic circuit of one of examples 1 to 16, where the controller is configured to generate the third flag when a primary or secondary parameter of the capacitance trend increases above a predetermined threshold.

    [0164] Example 18. The electronic circuit of one of examples 1 to 17, where the controller is configured to detect a cyber intrusion when a primary or secondary parameter of the capacitance trend increases above a predetermined threshold.

    [0165] Example 19. The electronic circuit of one of examples 1 to 18, where the first circuit is a thyristor-controlled reactor (TCR) circuit, a voltage-source converter (VSC), or a high-voltage direct current (HVDC) converter.

    [0166] Example 20. The electronic circuit of one of examples 1 to 19, where the controller is configured to: determine the first harmonic current by performing a Fourier transform on the first current data; and determine the filter harmonic current by performing a Fourier transform on the filter current data.

    [0167] Example 21. A method including: determining a first harmonic current based on a first current flowing through a first circuit coupled to a line node; determining a filter harmonic current based on a filter current flowing through an AC filter coupled to the line node; and generating a first flag indicative of failure, degradation or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, where the AC filter includes the first capacitor or capacitor bank.

    [0168] Example 22. The method of example 21, further including: determining a first capacitance of the first capacitor or capacitor bank; comparing the first capacitance with a reference capacitance; and generating a second flag when the first capacitance differs from the reference capacitance by more than a predetermined tolerance, where the second flag is indicative of a failure, degradation, or malfunction of the first capacitor or capacitor bank.

    [0169] Example 23. The method of one of examples 21 or 22, where determining the first capacitance includes determining the first capacitance continuously.

    [0170] Example 24. The method of one of examples 21 to 23, where determining the first capacitance includes: determining M capacitance values of the first capacitor or capacitor bank, where M is a positive integer greater than 1; associating each of the M determined capacitance values to a cluster of k clusters, where k is a positive integer greater than 1 and smaller than M; determining a dominant cluster from the k clusters; and determining the first capacitance based on the capacitance values of the dominant cluster.

    [0171] Example 25. The method of one of examples 21 to 24, further including: determining or adjusting a capacitance trend of the first capacitor or capacitor bank based on the first capacitance using linear regression; and generating a third flag when the capacitance trend is indicative of a failure, degradation, or malfunction associated with the first capacitor or capacitor bank.

    [0172] Example 26. A device including: one or more input terminals configured to receive measurement data; and a controller configured to: determine M capacitance values of a first capacitor or capacitor bank of an AC filter coupled to a line node based on the measurement data, where M is a positive integer greater than 1, associate each of the M determined capacitance values to a cluster of k clusters, where k is a positive integer greater than 1 and smaller than M, determine a dominant cluster from the k clusters, determine a first capacitance based on the capacitance values of the dominant cluster, compare the first capacitance with a reference capacitance, and generate a first flag when the first capacitance differs from the reference capacitance by more than a predetermined tolerance, where the first flag is indicative of a failure, degradation, or malfunction of the first capacitor or capacitor bank.

    [0173] Example 27. The device of example 26, where the controller is further configured to: determine a first harmonic current based on a first current flowing through a first circuit coupled to the line node, where the measurement data includes first current data indicative of the first current; determine a filter harmonic current based on a filter current flowing through the AC filter, where the measurement data includes filter current data indicative of the filter current; and generate a second flag indicative of failure, degradation or malfunction of a first capacitor or capacitor bank based on the first harmonic current and the filter harmonic current, where the controller is configured to determine the M capacitance values in response to the second flag.

    [0174] Example 28. The device of one of examples 26 or 27, where the device is an intelligent electronic device (IED).

    [0175] Example 29. The device of one of examples 26 to 28, where the device is a server.

    [0176] While this disclosure has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the disclosure, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.