**SYSTEM AND METHOD FOR DETERMINING ACTIVE AND REACTIVE CURRENTS DURING ASYMMETRICAL LOW-VOLTAGE RIDE THROUGH (LVRT) CONDITIONS**

JPH03277122 | OVERCURRENT PROTECTION CIRCUIT |

HOOSHYAR ALI (CA)

BANAIEMOQADAMFARIMAN AMIN (CA)

IRAVANI MOHAMMAD REZA (CA)

*;*

**H02M1/00***;*

**G01R19/06***;*

**G06F17/11**

**H02M7/44**Claims 1. A method for determining active and reactive currents during asymmetrical low-voltage ride through (LVRT) conditions at an inverter, the method executable on a controller or executed as a model on a computer, the method comprising: receiving an indication of an LVRT condition; and where there is an active current such that the largest phase current magnitude does not exceed a phase current limit, determining a maximum active current for associated positive-sequence and negative-sequence reactive currents by determining a largest active current magnitude and outputting the largest active current and associated positive-sequence and negative-sequence reactive currents to the inverter, otherwise: scaling down each of the positive-sequence and negative-sequence reactive currents, or superimposed positive-sequence and negative- sequence reactive currents, to determine revised positive-sequence and negative-sequence reactive currents; where the magnitudes of all of the phase currents are below the phase current limit and a β condition for each phase after the scaling down is within a predetermined range, determining non-zero positive-sequence revised active current, the β condition based on a negative voltage angle ( θ _{ν} ^{−}) and a positive voltage angle ( θ _{ν} ^{+}); and outputting the revised active current and the revised positive-sequence and negative-sequence reactive currents to the inverter. 2. The method of claim 1, wherein determining whether there is an active current such that the largest phase current magnitude does not exceed a phase current limit comprises determining a maximum active current by determining ranges for the active current such that each phase current does not exceed the phase current limit and selecting the upper bound of the range. 3. The method of claim 1, wherein the β condition equals π + θ _{ν} ^{−} − θ _{ν} ^{+}, and wherein the predetermined range is 180^{o}< β<360^{o} if the phase current of an A-phase is equal to the phase current limit after the scaling down, the predetermined range is 180^{o}< β-120^{o} <360^{o} if the phase current of a B-phase is equal to the phase current limit after the scaling down, or the predetermined range is 180^{o}< β+120^{o} <360^{o} if the phase current of a C-phase is equal to the phase current limit after the scaling down. 4. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises scaling uniformly based on a change in the positive-sequence and negative-sequence reactive currents. 5. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises uniformly scaling by determining a scaling factor that causes at least one of the phase currents equal to the phase current limit. 6. The method of claim 5, wherein determining the scaling factor comprises: determining all of the possible solutions for the scaling factor using a quadratic relationship to the phase current limit; discarding any solutions to the scaling factor that are outside of the [0,1] range; and selecting a largest solution to the scaling factor that makes at least one of the phases equal to or below the phase current limit and the other phases below the phase current limit. 7. The method of claim 6, wherein the quadratic relationship comprises the scaling factor ( ρ) related to the phase current limit ( I_{max}) by where coefficients λ_{2 φ}, λ_{1 φ}, and λ_{0 φ} , are related to parameters of superimposed reactive currents, pre-fault positive-sequence reactive currents, and capacitor reactive currents. 8. The method of claim 1, wherein determining the non-zero positive-sequence revised active current comprises determining a magnitude of an active current that satisfies the relationship of , where I_{x} comprises the positive-sequence reactive current ) and the angle between the positive-sequence reactive current and either the negative-sequence reactive current (β), the negative-sequence reactive current ( β) minus 3 or the negative-sequence reactive current ( β) plus comprises the negative-sequence reactive current and the angle between the positive-sequence reactive current and either the negative-sequence reactive current ( β), the negative-sequence reactive current ( β) minus 3 or the negative-sequence reactive current ( β) plus 9. The method of claim 8, wherein, where the A-phase is the largest active phase current, the equals and the I_{y} equals ( , where the B- phase is the largest active phase current, the I_{x} equals and where the C-phase is the largest active phase current, the I_{x} equals and the I_{x} equals denoting a voltage angle. 10. The method of claim 9, wherein determining the non-zero positive-sequence revised active current such that the current of the A-phase is below the phase current limit comprises the magnitude of the active phase current limited to − such that the current of the B-phase is below the phase current limit comprises the magnitude of the active phase current limited to , and such that the current of the C- phase is below the phase current limit comprises the magnitude of the active phase current limited 11. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. 12. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive- sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. 13. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive- sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative-sequence reactive currents. 14. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. 15. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. 16. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative-sequence reactive currents. 17. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence current is prioritized to be decreased before the positive-sequence current. 18. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive- sequence current is prioritized to be decreased before the negative-sequence current. 19. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence current is prioritized to be decreased before the positive- sequence current. 20. The method of claim 1, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence current is prioritized to be decreased before the negative- sequence current. 21. A system for determining active and reactive currents during asymmetrical low-voltage ride through (LVRT) conditions at an inverter, the system comprising a processing unit in communication with a non-transitory computer-readable medium comprising instructions to cause the processing unit to execute: receiving of an indication of an LVRT condition; where there is an active current such that the largest phase current magnitude does not exceed a phase current limit, determining a maximum active current for associated positive-sequence and negative-sequence reactive currents by determining a largest active current magnitude; where there is an active current such that the largest phase current magnitude does not exceed the phase current limit, outputting the largest active current and associated positive-sequence and negative-sequence reactive currents to the inverter; where there is no active current such that the largest phase current magnitude does not exceed the phase current limit, scaling down each of the positive- sequence and negative-sequence reactive currents, or superimposed positive- sequence and negative-sequence reactive currents, to determine revised positive-sequence and negative-sequence reactive currents; where there is no active current such that the largest phase current magnitude does not exceed the phase current limit and a β condition for each phase after the scaling down is within a predetermined range, determining a non-zero positive-sequence revised active current where the magnitudes of all of the phase currents are below the phase current limit, the β condition based on a negative voltage angle ( θ 28. The system of claim 21, wherein determining the non-zero positive-sequence revised active current comprises determining a magnitude of an active current that satisfies the relationship o , where I 32. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive- sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. 33. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive- sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative-sequence reactive currents. 34. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. 35. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. 36. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative-sequence reactive currents. 37. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence current is prioritized to be decreased before the positive-sequence current. 38. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive- sequence current is prioritized to be decreased before the negative-sequence current. 39. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence current is prioritized to be decreased before the positive- sequence current. 40. The system of claim 21, wherein scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence current is prioritized to be decreased before the negative- sequence current. 41. A method for determining active and reactive currents during asymmetrical low-voltage ride through (LVRT) conditions at an inverter, the method executable on a controller or executed as a model on a computer, the method comprising: receiving an indication of an LVRT condition; and capping the positive-sequence and negative-sequence reactive currents at prespecified limits and outputting the capped positive-sequence and negative- sequence reactive currents to the inverter, and determining a maximum active current for associated positive-sequence and negative-sequence reactive currents by determining a largest active current magnitude and outputting the largest active current and associated positive-sequence and negative-sequence reactive currents to the inverter. |

^{+ }and are reduced uniformly to limit the phase current. Thus, this LVRT requirement can be summarized as prioritization/maximization of and maximization of while the phase current limit of an inverter is met. SUMMARY [0004] In an aspect, there is provided a method for determining active and reactive currents during asymmetrical low-voltage ride through (LVRT) conditions at an inverter, the method executable on a controller or executed as a model on a computer, the method comprising: receiving an indication of an LVRT condition; and where there is an active current such that the largest phase current magnitude does not exceed a phase current limit, determining a maximum active current for associated positive-sequence and negative-sequence reactive currents by determining a largest active current magnitude and outputting the largest active current and associated positive-sequence and negative-sequence reactive currents to the inverter, otherwise: scaling down each of the positive-sequence and negative-sequence reactive currents, or superimposed positive-sequence and negative-sequence reactive currents, to determine revised positive-sequence and negative-sequence reactive currents; where the magnitudes of all of the phase currents are below the phase current limit and a β condition for each phase after the scaling down is within a predetermined range, determining non-zero positive-sequence revised active current, the β condition based on a negative voltage angle ( θ

_{ν − }) and a positive voltage angle ( θ

_{ν }

^{+ }); and outputting the revised active current and the revised positive-sequence and negative- sequence reactive currents to the inverter. [0005] In a particular case of the method, determining whether there is an active current such that the largest phase current magnitude does not exceed a phase current limit comprises determining a maximum active current by determining ranges for the active current such that each phase current does not exceed the phase current limit and selecting the upper bound of the range. [0006] In another case of the method, the β condition equals π + θ

_{ν }

^{− }− θ

_{ν }

^{+ }, and wherein the predetermined range is 180o< β<360o if the phase current of an A-phase is equal to the phase current limit after the scaling down, the predetermined range is 180o< β-120o <360o if the phase current of a B-phase is equal to the phase current limit after the scaling down, or the predetermined range is 180o< β+120o <360o if the phase current of a C-phase is equal to the phase current limit after the scaling down. [0007] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises scaling uniformly based on a change in the positive-sequence and negative-sequence reactive currents. [0008] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises uniformly scaling by determining a scaling factor that causes at least one of the phase currents equal to the phase current limit. [0009] In yet another case of the method, determining the scaling factor comprises: determining all of the possible solutions for the scaling factor using a quadratic relationship to the phase current limit; discarding any solutions to the scaling factor that are outside of the [0,1] range; and selecting a largest solution to the scaling factor that makes at least one of the phases equal to or below the phase current limit and the other phases below the phase current limit. [0010] In yet another case of the method, the quadratic relationship comprises the scaling factor ( ρ) related to the phase current limit ( I

_{max }) by , where coefficients λ

_{2 φ }, λ

_{1 φ }, and λ

_{0 φ }, are related to parameters of superimposed reactive currents, pre-fault positive- sequence reactive currents, and capacitor reactive currents. [0011] In yet another case of the method, determining the non-zero positive-sequence revised active current comprises determining a magnitude of an active current that satisfies the relationship of , where I

_{x }comprises the positive-sequence reactive current and the angle between the positive-sequence reactive current and either the negative- sequence reactive current ( β), the negative-sequence reactive current ( β) minus , or the negative-sequence reactive current ( β) plus and I

_{y }comprises the negative-sequence reactive current ) and the angle between the positive-sequence reactive current and either the negative- sequence reactive current ( β), the negative-sequence reactive current ( β) minus , or the negative-sequence reactive current ( β) plus [0012] In yet another case of the method, where the A-phase is the largest active phase current, the I

_{x }equals and the I

_{y }equals ( where the B-phase is the largest active phase current, the I

_{x }equals and the I

_{y }equals and where the C-phase is the largest active phase current, the I

_{x }equals and the I

_{y }equals , θ

_{ν }

^{+ }denoting a voltage angle. [0013] In yet another case of the method, determining the non-zero positive-sequence revised active current such that the current of the A-phase is below the phase current limit comprises the magnitude of the active phase current limited to − such that the current of the B-phase is below the phase current limit comprises the magnitude of the active phase current limited to 3 , and such that the current of the C-phase is below the phase current limit comprises the magnitude of the active phase current limited to [0014] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. [0015] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. [0016] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative- sequence reactive currents. [0017] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. [0018] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. [0019] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative-sequence reactive currents. [0020] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence current is prioritized to be decreased before the positive-sequence current. [0021] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive-sequence current is prioritized to be decreased before the negative-sequence current. [0022] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence current is prioritized to be decreased before the positive-sequence current. [0023] In yet another case of the method, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence current is prioritized to be decreased before the negative-sequence current. [0024] In another aspect, there is provided a system for determining active and reactive currents during asymmetrical low-voltage ride through (LVRT) conditions at an inverter, the system comprising a processing unit in communication with a non-transitory computer-readable medium comprising instructions to cause the processing unit to execute: receiving of an indication of an LVRT condition; where there is an active current such that the largest phase current magnitude does not exceed a phase current limit, determining a maximum active current for associated positive-sequence and negative-sequence reactive currents by determining a largest active current magnitude; where there is an active current such that the largest phase current magnitude does not exceed the phase current limit, outputting the largest active current and associated positive-sequence and negative-sequence reactive currents to the inverter; where there is no active current such that the largest phase current magnitude does not exceed the phase current limit, scaling down each of the positive-sequence and negative-sequence reactive currents, or superimposed positive-sequence and negative-sequence reactive currents, to determine revised positive-sequence and negative-sequence reactive currents; where there is no active current such that the largest phase current magnitude does not exceed the phase current limit and a β condition for each phase after the scaling down is within a predetermined range, determining a non-zero positive-sequence revised active current where the magnitudes of all of the phase currents are below the phase current limit, the β condition based on a negative voltage angle ( θ

_{ν − }) and a positive voltage angle ( θ

_{ν }

^{+ }); and output the revised active currents and the revised positive-sequence and negative-sequence reactive currents to the inverter. [0025] In a particular case of the system, determining whether there is an active current such that the largest phase current magnitude does not exceed a phase current limit comprises determining a maximum active current by determining ranges for the active current such that each phase current does not exceed the phase current limit and selecting the upper bound of the range. [0026] In another case of the system, the β condition equals π + θ

_{ν − }− θ

_{ν }

^{+ }, and wherein the predetermined range is 180o< β<360o if the phase current of an A-phase is equal to the phase current limit after the scaling down, the predetermined range is 180o< β-120o <360o if the phase current of a B-phase is equal to the phase current limit after the scaling down, or the predetermined range is 180o< β+120o <360o if the phase current of a C-phase is equal to the phase current limit after the scaling down. [0027] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises uniformly scaling based on a change in the positive-sequence and negative-sequence reactive currents. [0028] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises uniformly scaling by determining a scaling factor that causes at least one of the phase currents equal to the phase current limit. [0029] In yet another case of the system, determining the scaling factor comprises performing: determining all of the possible solutions for the scaling factor using a quadratic relationship to the phase current limit; discarding any solutions to the scaling factor that are outside of the [0,1] range; and selecting a largest solution to the scaling factor that makes at least one of the phases equal to or below the phase current limit and the other phases below the phase current limit. [0030] In yet another case of the system, the quadratic relationship comprises the scaling factor (ρ) related to the phase current limit ( I

_{max }) by , where coefficients λ

_{2 φ }, λ

_{1 φ }, and λ

_{0 φ }, are related to parameters of superimposed reactive currents, pre-fault positive- sequence reactive currents, and capacitor reactive currents. [0031] In yet another case of the system, determining the non-zero positive-sequence revised active current comprises determining a magnitude of an active current that satisfies the relationship of , where I

_{x }comprises the positive-sequence reactive current and the angle between the positive-sequence reactive current and either the negative- sequence reactive current ( β), the negative-sequence reactive current ( β) minus or the negative-sequence reactive current ( β) plus 3 , and I

_{y }comprises the negative-sequence reactive current and the angle between the positive-sequence reactive current and either the negative- sequence reactive current ( β), the negative-sequence reactive current ( β) minus or the negative-sequence reactive current ( β) plus [0032] In yet another case of the system, where the A-phase is the largest active phase current, the I

_{x }equals and the I

_{y }equals ( ) where the B-phase is the largest active phase current, the I

_{x }equals and the I

_{y }equals and where the C-phase is the largest active phase current, the I

_{x }equals and the I

_{y }equals , denoting a voltage angle. [0033] In yet another case of the system, determining the non-zero positive-sequence revised active current such that the current of the A-phase is below the phase current limit comprises the magnitude of the active phase current limited to such that the current of the B-phase is below the phase current limit comprises the magnitude of the active phase current limited to and such that the current of the C-phase is below the phase current limit comprises the magnitude of the active phase current limited to [0034] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. [0035] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. [0036] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative- sequence reactive currents. [0037] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence reactive current is decreased at a higher rate than the positive-sequence reactive current. [0038] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current. [0039] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence reactive current is decreased at a higher rate than the negative-sequence reactive current and superimposed positive-sequence reactive currents are greater than superimposed negative-sequence reactive currents. [0040] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the negative- sequence current is prioritized to be decreased before the positive-sequence current. [0041] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling where the positive-sequence current is prioritized to be decreased before the negative-sequence current. [0042] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the negative-sequence current is prioritized to be decreased before the positive-sequence current. [0043] In yet another case of the system, scaling down each of the positive-sequence and negative-sequence reactive currents comprises non-uniform scaling using optimization, where the positive-sequence current is prioritized to be decreased before the negative-sequence current. [0044] In another aspect, there is provided a method for determining active and reactive currents during asymmetrical low-voltage ride through (LVRT) conditions at an inverter, the method executable on a controller or executed as a model on a computer, the method comprising: receiving an indication of an LVRT condition; and capping the positive-sequence and negative- sequence reactive currents at prespecified limits and outputting the capped positive-sequence and negative-sequence reactive currents to the inverter, and determining a maximum active current for associated positive-sequence and negative-sequence reactive currents by determining a largest active current magnitude and outputting the largest active current and associated positive-sequence and negative-sequence reactive currents to the inverter. [0045] These and other aspects are contemplated and described herein. It will be appreciated that the foregoing summary sets out representative aspects of the system and method to assist skilled readers in understanding the following detailed description. DESCRIPTION OF THE DRAWINGS [0046] A greater understanding of the embodiments will be had with reference to the Figures, in which: [0047] FIG. 1 shows an example of low-voltage ride through (LVRT) current requirements for modern grid codes; [0048] FIG. 2 shows single-line diagram of a test system comprising a number of buses (enumerated B1 to B39) and a number of inverter-based resources (IBR) (enumerated IBR-1 to IBR-16), in accordance with example experiments; [0049] FIGS. 3A to 3C show measurements for IBR-4 in a first example case, where FIG. 3A shows active and reactive sequence current magnitudes, FIG.3B shows instantaneous currents, and FIG.3C shows sequence current angles; [0050] FIGS. 4A to 4C show example measurements for IBR-16 in a second example case, where FIG. 4A shows active and reactive sequence current magnitudes, FIG. 4B shows instantaneous currents, and FIG.4C shows sequence current angles; [0051] FIGS.5A and 5B show instantaneous phase currents of IBR-16 in example case 2, where FIG.5A shows below the limit although injecting and FIG.5B shows above the limit when injecting ; [0052] FIG.6 shows a block diagram for a system for determining active and reactive currents during asymmetrical LVRT conditions, according to an embodiment; [0053] FIG.7 shows a diagrammatic flowchart for a method for determining active and reactive currents during asymmetrical LVRT conditions, according to an embodiment; [0054] FIG. 8 illustrates an example vector diagram showing active and reactive sequence components of phase currents; [0055] FIGS.9A to 9C illustrate measurements for IBR-4 in the first example case when the first example case is repeated using the method of FIG. 7, where FIG. 9A shows angles of the sequence voltages, FIG.9B shows active and reactive sequence current magnitudes at a point of connection (POC), and FIG.9C shows instantaneous currents of the switches; [0056] FIGS.10A and 10B illustrate two possible situations for phase A sequence components, where FIG.10A shows the condition of and FIG.10B shows the condition of [0057] FIGS.11A to 11C show measurements for IBR-16 in the second example case when the second example case is repeated using the method of FIG.7, where FIG.11A shows angles of the sequence voltages, FIG.11B shows active and reactive sequence current magnitudes, and FIG.11C shows instantaneous currents; [0058] FIGS. 12A to 12C illustrate example measurements for IBR-4 in a third example case using other approaches, where FIG. 12A shows active and reactive sequence current magnitudes, FIG. 12B shows instantaneous currents, and FIG. 12C shows angles of the sequence currents; [0059] FIGS.13A to 13C illustrate example measurements for IBR-4 in the third example case using the method of a present embodiment, where FIG. 13A shows angles of the sequence voltages, FIG.13B shows active and reactive sequence current magnitudes, and FIG.13C shows instantaneous currents; [0060] FIG.14 illustrates a vector diagram illustrating an example of phase currents; [0061] FIGS.15A to 15C illustrate measurements for IBR-14 in a fourth example case without active current generation, where FIG. 15A shows active and reactive sequence current magnitudes, FIG. 15B shows instantaneous currents, and FIG. 15C shows angles of the sequence voltages; [0062] FIGS.16A and 16B illustrate measurements for IBR-14 in the fourth example case with the method of a present embodiment, where FIG. 16A shows active and reactive sequence current magnitudes and FIG.16B shows instantaneous currents; [0063] FIGS. 17A and 17B illustrate measurements for IBR-16 in the second example case, generating optimally scaled-down reactive currents with active current, where FIG. 16A shows active and reactive sequence current magnitudes and FIG.16B shows instantaneous currents; [0064] FIGS.18 to 22 illustrate a block diagram of an example implementation of the system of the present embodiment; and [0065] FIG.23 shows a diagrammatic flowchart for a method for determining active and reactive currents during asymmetrical LVRT conditions, according to an example embodiment. DETAILED DESCRIPTION [0066] For simplicity and clarity of illustration, where considered appropriate, reference numerals may be repeated among the Figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein may be practised without these specific details. In other instances, well-known methods, procedures and components have not been described in detail so as not to obscure the embodiments described herein. Also, the description is not to be considered as limiting the scope of the embodiments described herein. [0067] Various terms used throughout the present description may be read and understood as follows, unless the context indicates otherwise: “or” as used throughout is inclusive, as though written “and/or”; singular articles and pronouns as used throughout include their plural forms, and vice versa; similarly, gendered pronouns include their counterpart pronouns so that pronouns should not be understood as limiting anything described herein to use, implementation, performance, etc. by a single gender. Further definitions for terms may be set out herein; these may apply to prior and subsequent instances of those terms, as will be understood from a reading of the present description. [0068] Any module, unit, component, server, computer, terminal or device exemplified herein that executes instructions may include or otherwise have access to computer readable media such as storage media, computer storage media, or data storage devices (removable and/or non- removable) such as, for example, magnetic disks, optical disks, or tape. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. Examples of computer storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by an application, module, or both. Any such computer storage media may be part of the device or accessible or connectable thereto. Further, unless the context clearly indicates otherwise, any processor or controller set out herein may be implemented as a singular processor or as a plurality of processors. The plurality of processors may be arrayed or distributed, and any processing function referred to herein may be carried out by one or by a plurality of processors, even though a single processor may be exemplified. Any method, application or module herein described may be implemented using computer readable/executable instructions that may be stored or otherwise held by such computer readable media and executed by the one or more processors. [0069] Generally, implementations of the requirements for generation of the negative-sequence current for inverters during LVRT have not considered the requirements with the same hierarchy. For example, currents may not ensure full utilization of the IBR’s phase current capacity under all LVRT conditions. In addition, and are not necessarily prioritized over As another example, some schemes violate the GCs by generating active negative-sequence current, [0070] Generally, conventional inverter design follows the following approach: the inverter attempts to meet a requirement for current, for example as shown in FIG. 1, and if the phase currents hit the limit, the sequence reactive currents are reduced to bring the phase currents back to the acceptable range. Under this condition, would be considered zero. Conversely, if meeting the requirement shown in FIG.1 does not violate the phase current limit, a difference between the inverter’s current limit and the scalar sum of the positive- and negative-sequence currents is used to generate using the intuitive relations, which will be described herein. The present inventors determined that this approach does not necessarily utilize the total current capacity of an inverter-based resource (IBR); which is the ultimate objective of the LVRT provision. [0071] The present embodiments provide an approach to advantageously maximize the active current of an IBR while the reactive current requirements are met. Moreover, if the phase currents hit the limit due to large superimposed reactive currents shown by FIG.1, and so must be reduced, the extent of reduction offered by the approach of the present embodiments is equal to or less than that given by other approaches; hence, maximizing the reactive currents as well. Advantageously, the approach of the present embodiments can provide a significant increase in the power generated by the IBRs that meet GCs. Generally, the LVRT mode is not activated while the system is operating inside the shaded area of FIG.1; however, exact criteria for activating the LVRT mode can use any suitable criteria as different grid codes and standards may use different criteria for activating the LVRT mode. [0072] In an example, the LVRT mode can be engaged when one or more phase to phase voltages are outside of a static voltage range and/or there is a sudden change in voltage. In this example, the LVRT mode can be deactivated when all the phase to phase voltages are in the static voltage range or after five seconds if the sudden voltage change did not result in any voltage exceeding the static voltage range. The sudden voltage jump can be defined by an absolute difference between an actual value of the positive and negative sequence voltage and a 50 period average of the positive and negative sequence voltage relative to a declared voltage. [0073] As described herein, the present inventors conducted example experiments to verify the effectiveness and advantages of the present embodiments. In the example experiments, PSCAD/EMTDC simulations were conducted of a modified version of the IEEE 39-bus system, depicted in the test system of FIG.2, were used. The modifications included the addition of 16 inverter-based resources (IBR) 150, enumerated IBR-1 to IBR-16, to represent a grid with high penetration of renewable sources. The high number of IBRs also makes the impact of GC requirements more visible from a system-wide perspective. For the sake of simplicity, all IBRs were rated at 34.5 kV, 200 MW, and interfaced to the grid through 250-MVA, 230-kV/34.5-kV, YGd1 transformers. The winding and vector group of the interface transformer may vary with respect to various voltage levels and utility standards (e.g. YGyg). The phase current limit of all IBRs was I

_{max }=1.2 pu. [0074] Common approaches used to determine the reference for the positive-sequence active current of an IBR that generates negative-sequence current have substantial limitations. When the reactive current is prioritized, a straightforward way to derive the reference for is based on Equation (1), which maintains the scalar sum of the positive- and negative-sequence current magnitudes below the phase current limit of the IBR: is zero or very small in comparison to , so the only unknown in Equation (1) is The following case studies evaluate the performance of this approach: Case 1: [0075] Example Case 1 elaborates on the effective utilization of an IBR’s current capacity when the superimposed reactive currents and Δ given by FIG.1 do not make the phase currents hit their limit. Consider IBR-4 of FIG.2 during a bolted phase-B-to-phase-C (BC) fault at bus B27 at t = 1 s. The IBR’s pre-fault current is 1 pu. The power factor is 1 at the point of measurement (POM), which is the high-voltage (HV) side of the main transformer. The diagram of FIG. 1 is applied on the low-voltage (LV) side of the IBR’s interface transformer, referred to as the point of connection (POC). Before the fault, pu (capacitive) and at the POC. Once the fault happens,V

^{+ }and V

^{− }at the POC change by −0.192 pu and 0.177 pu, respectively. Thus, pu and pu for K = 2.5, resulting in an d pu. Using these reactive currents and I

_{max }=1.2 pu, the maximum given by Equation (1) is 0.55 pu. These reference currents are met by the IBR quickly after the fault inception in FIG.3A. These measurements are taken from before the LC filter’s shunt capacitor to focus only on the current of the inverter switches (although the capacitor’s current is comparatively insignificant). [0076] The phase currents resulting from the above sequence currents are displayed in FIG.3B. The maximum current is i.e., 65% of the IBR’s 0.2-pu extra capacity for the LVRT current remains untapped. For phase B, 85% of this excess capacity remains unused. For phase A, this capacity is not used at all. This unused capacity stems from the scalar sum of Equation (1), which is different from the vector sum that actually determines the phase currents. The underlying assumption of Equation (1) is that I

^{+ }and I

^{− }are in phase. This assumption is invalid for most fault conditions, including the above fault (as exemplified in FIG.3C). The 184.6

^{∘ }phase difference in FIG.3C makes the vector sum ofI

^{+ }and I

^{− }smaller than the scalar sum in Equation (1), hence the inefficient utilization of the inverter’s current capacity. [0077] Since the maximum phase current, is 0.13 pu less than I

_{max }, one might expect that can be increased by at most 0.13 pu, and then the inverter’s capacity is fully utilized. However, increasing by 0.13 pu while and are kept the same as in FIG. 3A results in These currents are still below the IBR’s phase current limit. Here again, identification of reference currents based on scalar calculations causes the undesired result. [0078] Although GCs generally prioritize the reactive power, they also generally require maximizing active power. This is critical in maintaining the load-generation balance; i.e., the ultimate objective of the LVRT requirement. Effective utilization of the seemingly small 0.2-pu excess current capacity of the inverter in the phase domain offers sizable active power in the sequence domain. This can be made clear only when the excess current capacity is maximally used, as described herein. Case 2: [0079] Example Case 2 focuses on when the superimposed reactive currents and given by FIG.1 make the phase currents hit their limit (which did not happen in Case 1). Consider IBR- 16 when a phase-A-to-ground (AG) fault with occurs at bus B7. For the pre-fault (capacitive), and the superimposed currents given for K = 5 by FIG.1 yield and . GCs generally permit lowering the active current to create room for these large reactive currents. However, even with zero active current, the reactive currents add up to 1.40 pu, violating the inequality in Equation (1). Therefore, and are uniformly scaled down. The scaling factor that makes | and satisfy Equation (1) is obtained by dividing the right side of Equation (1) over 1.40 pu; i.e., I

_{max }/1.40=0.857. This would satisfy Equation (1) by scaling down the reactive currents to their supposedly maximum values of pu and , which add up to 1.2 pu. Under this condition, it appears that the severity of the voltage drop has made the reactive currents required by the GC so large that no room is left to generate active current. These sequence currents, shown in FIG.4A, lead to the phase currents of FIG.4B. Phase B carries the largest current and is 0.03 pu less than I

_{max }. FIGS.4A to 4C show example measurements for IBR-16 in case 2, where FIG.4A shows active and reactive sequence current magnitudes, FIG.4B shows instantaneous currents, and FIG.4C shows sequence current angles. [0080] One obvious problem of the above process is that the 0.857 scaling factor obtained using Equation (1) prevents maximizing the reactive currents, and so 15% of the inverter’s excess current capacity remains unused. If and were scaled down by a factor of 0.879 to 0.63 pu and 0.60 pu, respectively, then the current of phase C would reach to 1.2 pu. This would satisfy the IBR’s phase current limit, even though it violates Equation (1). [0081] The second (and more substantial) problem is not as obvious. It is taken for granted that once 0.879 is used to scale down and to 0.63 pu and 0.60 pu, and the phase C current hits the limit, no room is left to generate . However, as shown in FIG.5A, the addition of a randomly chosen (which amounts to 51.7 MW of active power) to 3 pu and 0 pu actually decreases the maximum phase current from 1.2 pu by 0.03 pu. Generation of another randomly chosen , however, makes I

_{a }and I

_{b }larger than the limit (as illustrated in FIG.5B). For such conditions, there is no commonly available solution to maximize without violating the phase current limit. FIGS.5A and 5B show instantaneous phase currents of IBR-16 in case 2, where FIG. 5A shows below the limit although injecting and FIG. 5B shows above the limit when injecting [0082] Turning to FIG.6, shown is a diagram for a system 100 for determining active and reactive currents during asymmetrical LVRT conditions, according to an embodiment. The system 100 is connectable to provide instructions to an inverter 150 (also referred to as an inverter-based resource (IBR)) associated with further electrical power circuitry, such as solar power generator circuitry. In some cases, the system 100 is connectable to one or more IBRs. The system 100 includes one or more processing units 102 in communication with one or more memory units 104, each memory unit 104 comprising a non-transitory computer-readable medium. The processing units 102 can comprise microprocessors, microcontrollers, dedicated hardware circuits, or the like. The system 100 can interface with each IBR 150, via interfacing with an interface transformer of the inverter 150, at the POC. The processing unit 102 executes instructions stored on the one or more memory units 104 to perform a number of steps, as described herein. The system may include other components as applicable or suitable, such as a local bus enabling the one or more processing units 102 to communicate with one or more memory units 104. In some cases, the system 100 can interface with the user, for example with a display and input device. In some cases, the system 100 can also interface with other systems, for example computing devices and servers remotely located from the system 100, such as for a typical cloud-based access model. [0083] The system 100 executes a method that complies with the requirement to maximize an IBR’s active current during LVRT while the requirements of applicable grid codes (for example, as outlined in the diagram of FIG.1) are adhered to. While the present disclosure refers to certain grid codes, it is understood that the present embodiments can be used to meet the applicable requirements of various grid codes, standards (e.g., the IEEE P2800), interconnection agreements, or the like. Turning to FIG. 7, shown therein is a method for 200 for determining active and reactive currents during asymmetrical LVRT conditions, according to an embodiment. [0084] At block 202, the processing unit 102 receives pre-LVRT quantities values for the currents from respective current sensors associated with the inverter. [0085] At block 204, the processing unit 102receives an indication of an LVRT condition. Determination of LVRT conditions can vary depending on a given GC. For example, in the Verband der Elektrotechnik, Elektronik und Informationstechnik e.V. (VDE) code, one of the following two events are specified as the criterion for the start of the LVRT condition: • A sudden change in voltage compared to the average voltage in the 50 pre-fault voltage periods; or • Voltage > 1.1 U

_{MS }or < 0.9 U

_{MS }, where U

_{MS }is an operating voltage of the medium-voltage network, to which the voltage regulator of the High-Voltage / Medium-Voltage transformer regulates on the medium voltage side. Additionally, the criteria for the LVRT condition ending is either: • 5 s after fault start; or • Restoration of all line-to-line voltages in the range of 0.9 UMS < U < 1.1 UMS. [0086] In another example, under the Institute of Electrical and Electronics Engineers (IEEE) P2800 standard, except for 500kV nominal voltage, the continuous operating region is when the applicable voltage is ≥ 0.9 per unit and ≤ 1.05 per unit. For 500kV nominal voltage, the continuous operating range is when the applicable voltage is ≥ 0.9 per unit and ≤ 1.10 per unit. During temporary low voltage disturbances, the applicable voltage is defined as the lowest magnitude fundamental frequency phasor component phase-phase or phase-ground voltage at the RPA relative to the corresponding nominal system voltage. According to the standard, LVRT can be defined as when the applicable voltage drops below 0.9 pu. [0087] At block 205, the processing unit 102determines whether the largest phase current magnitude exceeds a phase current limit. [0088] At block 206, where the largest phase current magnitude I

_{max }does not exceed a phase current limit, the processing unit 102 determines a maximum active current for the given reactive currents. Generally, inverters have an applicable limit for their phase current to prevent damage to power electronic switches and other componentry. In many cases, this phase current limit is between 100% to 200% of the inverter's rated current. In some cases, this limit can be time- variant; for example, the phase current limit can be 160% of the rated current during the first 20 milliseconds of LVRT and decrease to 120% of the rated current for the remainder of the LVRT period. While the present disclosure generally refers to a time-invariant phase current limit, it is understood that this limit can be time-dependent. [0089] The relation between the different components of an IBR’s sequence currents and the phase currents that flow through the inverter switches is shown in Equation (2); where θ

_{ν }denotes the voltage angle at the POC; pr e in the subscript denotes the pre-LVRT quantities; and c a p indicates the quantities associated with the shunt capacitor of the inverter’s filter. [0090] From Equation (2), the phase currents can be written as: where Φ ∈ { a , b , c}, and ^^ is 0, −2 π 3, and2 π 3 for phases A, B, and C, respectively. The reactive components of I

_{Φ }are derived using Equation (4), which includes given by FIG.1. [0091] The processing unit 102 determines the active current in Equation (3) such that the largest phase current given by Equation (3) equals I

_{max }. For each phase current, the first two of the three vectors on the right side of Equation (3), i.e., are 90

^{∘ }out of phase. Thus, they can generate two orthogonal coordinate axes onto which the third vector, i.e., can be projected. The vector diagram in FIG.8, showing the active and reactive sequence components of phase currents, displays these three vector components for the three phase currents. This diagram demonstrates how the negative-sequence reactive current of each phase can be projected onto the two axes made by the positive-sequence active and reactive currents of the respective phase. By doing so, each phase current can be expressed as [0092] The square magnitudes of the phase currents in Equation (6) are: where [0093] The IBR limit for the three phase currents can be expressed as the three inequalities embedded in Equation (9) for different values of φ . [0094] In Equation (9), and are given by FIG.1, and is the unknown. Solving these three inequalities yields three different ranges for each making the corresponding phase current less than I

_{max }. To maintain all phase currents below I

_{max }, the three inequalities must hold simultaneously. Thus, only the intersection of the three ranges is acceptable for resulting in Equation (10). In this relation, the first range stands for the obvious fact that The second, third, and fourth ranges are the solutions of Equation (9) for phases A, B, and C, respectively. If the intersection of the four ranges in Equation (10) is not an empty set, the maximum active current is the upper bound of this intersection. Under such conditions, the GC is satisfied using only Equation (10), and the further determines, described herein, are not needed. [0095] To show the difference made using the above approach, consider the fault of example Case 1 while the processing unit 102with respect to IBR-4 uses Equation (10) to determine | ^^

_{^ }

^{+ }

_{^ }|. Using the angles of the sequence voltages shown in FIG.9A, β =231

^{∘ }. Moreover, the LC filter’s shunt capacitor generates (not shown due to the space limitation). In addition, since there is no need to scale down the reactive currents and the fault conditions have not changed, in FIG.9B is similar to that in FIG.3A. Substituting these values into Equation (4) and Equation (10), the second, third, and fourth range for | | in Equation (10) that correspond to phases A, B, and C are [–0.834, 1.531], [–1.574, 0.735], [–0.686, 0.828] pu, respectively. Thus, the maximum of the intersection of the four ranges in Equation (10) is displayed in FIG. 9B. FIG. 9B illustrates active and reactive sequence current magnitudes at the POC. The sequence currents in this figure satisfy both FIG. 1 and the requirement to maximize the IBR’s active current, leading to an additional 28.3 MW of active power compared to the example of FIGS.3A to 3C. Furthermore, the phase currents through the inverter switches, depicted in FIG. 9C, do not violate their limit. FIG. 9C shows instantaneous currents of the switches. [0096] In certain cases, there are conditions under which Equation (10) returns an empty set, and as such, there are approaches used by the processing unit 102 for these conditions to satisfy the GC. Generally, an inverter’s maximum current is fairly small. In addition, when a fault is not very far from the IBR, and so the change in the voltage is significant, the reactive currents determined by FIG. 1 are quite large. The additional requirement for the negative-sequence current also increases the total reactive current by up to 100%. The small I

_{max }and large make it likely that one or more of the terms under the six radicals in Equation (10) become negative. Since all of the equations from Equation (3) onwards are in the domain of real numbers, a negative term under even one radical in Equation (10) would yield an unacceptable result for , i.e., | . Even if all of the terms under the radicals in Equation (10) are positive, it is still possible that the four ranges in Equation (10) do not overlap, and Under such conditions, at least one of the phase currents exceeds I

_{max }, because otherwise solving Equation (9) and Equation (10) would give not . [0097] At block 207, the processing unit 102 communicates the reactive currents and the active currents to the respective IBR 150. [0098] At block 208, where the largest phase current magnitude I

_{max }exceeds a phase current limit, the processing unit 102 scales down the positive-sequence and negative-sequence reactive currents, or superimposed positive-sequence and negative-sequence reactive currents. In some cases, this scaling can be performed uniformly on both the positive-sequence and negative- sequence. In other cases, as described herein, the positive-sequence and negative-sequence can be scaled using other current limitation strategies, as described herein. In contrast, other approaches scale the total positive-sequence and negative-sequence reactive currents, Thus, the formulations in these schemes include scaling the pre-fault current, I

_{Q − p r e }, and the current through the capacitor of the inverter’s LC filter, I

_{Q − c a p }, neither of which is generally controllable during LVRT. Advantageously, in the present embodiments, the processing unit 102 provides for such current to be scaled. [0099] When positive-sequence and negative-sequence reactive currents are not scaled down, the following relation holds as long as the same ^^-factor is used for the positive and negative sequence in FIG.1: [0100] Therefore, the IBR’s equivalent impedances in the two sequence circuits are similar, replicating a synchronous generator. An IBR should ideally maintain the same relation after the currents are scaled down, so that the similarity with the synchronous generators is preserved. Scaling the total reactive currents violates Equation (10) since the total reactive currents are not limited to only the superimposed currents given by FIG.1. Therefore, only must be scaled down in the derivations that yield the scaling factor, ρ. To calculate this factor, and in Equation (2) are set to and 0, respectively, resulting in: [0101] Equation (12) is solved for ρ such that max{ to ensure maximum utilization of the inverter’s capacity. Equating the magnitude of phase currents given by Equation (12) with I

_{max }yields the three equations embedded in Equation (13) for φ = 0, −2 π 3, and +2 π 3, corresponding to phases A, B, and C, respectively. This relation can be written with respect to ρ, as in: where the coefficients λ

_{2 φ }, λ

_{1 φ }, and λ

_{0 φ }, are expressed by Equation (15) in terms of the known parameters of Equation (13). [0102] In Equation (15), if is capacitive, μ = −1, and the upper sign must be used in and For an inductive however, the lower sign must be used in and , and μ = −1 when and μ =1 when As ρ is the unknown of Equation (14), the sign of cannot be determined before Equation (14) is solved. Thus, Equation (14) must be solved for both conditions, i.e., For each of these inequalities, the calculated ρ is acceptable if the respective inequality is held for that ρ. [0103] To find an optimal ρ that satisfies all of the constraints, the equation for each phase embedded in Equation (14) is solved independently of the other two equations in Equation (14) (for the other two phases) but the constraint on the current magnitude must be satisfied for all three phases. Therefore, the scaling factor can be found by, first, finding all of the possible solutions for ρ in each equation embedded in Equation (14); then, discarding any ρ that is outside the [0,1] range because such ρ’s do not scale down the current magnitude; then, choosing the largest ρ that is the solution of Equation (14) for one of the phases but also simultaneously keeps the current magnitude in the other two phases below I

_{max }. [0104] Since Equation (12) was solved to satisfy the condition, the scaled-down positive- and negative-sequence reactive currents obtained above make the current of at least one phase equal to the inverter’s limit. When one of the phase currents reaches the limit, generally, it has previously been assumed that the inverter has no room to inject active current. At block 210, the processing unit 102 can calculate a non-zero positive-sequence active current to be generated by the IBR 150, while the reactive currents obtained above remain intact and the inverter’s phase current limit is satisfied. [0105] Assume, without loss of generality, that | I

_{a }| is the largest phase current when is scaled down and no is generated, i.e.: [0106] The angle between and ^ in Equation (16) isβ defined in Equation (8). Either 0 ≤ β ≤ π, as in FIG.10A, or π < β < 2 π, as in FIG.10B. The following analyzes both of the conditions in FIGS.10A and 10B. When is not generated, by projecting onto the axes made by and its orthogonal axis (which is the axis of the respective if

^{+ }were generated), can be written as: where: for FIG.10A, in which sinβ ≥ 0, I

_{y }and are in phase. Therefore, generating any in this case increases | | and pushes beyond the I

_{max }limit considered in Equation (16). Thus, the processing unit 102 cannot generate when [0107] For π ≤ β ≤ 2 π in FIG.10B, however, sinβ < 0, and so I

_{y }and are 180

^{∘ }out of phase. Thus, an active current as large as: can be determined by the processing unit 102. This would keep | unchanged because for the given by Equation (20), . When and in Equation (15) do not change, is maintained at I

_{max }. However, there is no guarantee that I

_{b }and I

_{C }remain below I

_{max }after injecting the given by Equation (20). [0108] Although the above formulation does not ensure that I

_{b }and I

_{c }are less than I

_{max }, it proves that Equation (10) can be used to determine the | | that can be generated after scaling down Substituting the I

_{max }given by Equation (17) and Equation (8) into Equation (10) shows that the given by Equation (20) is the upper bound of the second range on the right side of Equation (10), which corresponded to phase A. It can be similarly shown that if the derivations in Equations (16) to (20) are carried out for phases B and C (which would require only shifting ^^ by +2 π 3 and −2 π 3, respectively), substituting the I

_{max }given by Equation (17) and Equation (8) into Equation (10) makes the upper bound of the third and the fourth range on the right side of Equation (10) equal to the in Equation (20), respectively. The third and the fourth range in Equation (10) corresponded to phases B and C, respectively. Consequently, if the scaled-down reactive current determined herein are plugged into Equation (10) as , this equation will provide the maximum that keeps all of the phase currents below I

_{max }. [0109] At block 212, the processing unit 102 communicates the revised reactive currents and the revised active currents to the respective IBR 150. The IBR 150 generally has a positive-sequence control loop which receives the references for the revised positive-sequence currents and generates such references. The IBR 150 generally also has a similar loop for generating the revised negative-sequence currents. In the block diagram of FIG.19, such control loops are part of the “Current Controller” block. [0110] The method 200 can be applicable to a variety of LVRT conditions. In an example, for example Case 2, (capacitive), , and 068 The angles of the sequence voltages in FIG.11A give β =93.1

^{∘ }. For the filter’s capacitor, and Substituting these values into Equation (4) and then Equation (10) makes the term under the radical in the third range on the right side of Equation (10) (corresponding to phase B) negative. Thus, cannot be found in the first step, and the reactive currents must be scaled down. FIGS.11A to 11C show measurements for IBR-16 in Case 2, where FIG.11A shows angles of the sequence voltages, FIG.11B shows active and reactive sequence current magnitudes, and FIG.11C shows instantaneous currents. [0111] Substituting the above values into Equation (5), the coefficients of the quadratic equation, Equation (14), for phases A, B, and C (corresponding to φ = 0, −2 π 3, and +2 π 3) will be (0.8748, 0.0103, 0.0000), (1.7495, 0.0206, 0.0000), and (0.1501, 0.0018, 0.0000), respectively. Solving the three quadratic equations in (13), the solutions for ρ will be (–1.2889, 1.2771), (–0.9131,0.9014), and (–3.1035, 3.0917), for φ = 0, −2 π 3, and +2 π 3 associated with phases A, B, and C, respectively. Among these values, ρ =0.9014 is a solution of Equation (14) for phase B inside the [0,1] range. For this ρ, the scaled-down current references on the right side of Equation (10) are and . When these reference currents are plugged into Equation (12), the current of phase B is limited to I

_{max }=1.2 pu while the current of the other two phases are smaller than the limit and ). Thus, ρ =0.9014 is the acceptable scaling factor. [0112] Since the current of phase B is maximum, the IBR will be able to generate

^{∘ }if 180 < β − 120

^{∘ }< 360

^{∘ }.β =93.1

^{∘ }, and so this condition holds. Using the above the largest that satisfies Equation (10) is 0.43 pu, displayed along with in FIG.11B. As shown in FIG.11C, this additional active current keeps the phase currents below I

_{max }; it just changes the maximum current from phase B to phase A ( in FIG. 11C). From the perspective of LVRT performance of the IBR, the impact of this is profound: it leads to the generation of 74.7 MW of active power by IBR-4, while other common inverter control schemes offer zero active power for this fault scenario. [0113] The advantages of the present embodiments both increase active current generation and maximizes reactive current of the inverter beyond levels provided by other approaches. As described herein, when the and given by FIG.1 make the phase currents exceed I

_{max }, the scaling factor for and can be obtained by dividing I

_{max }over the estimated maximum phase current caused by the and of FIG.1. In other approaches, this estimate is obtained based on Equation (1) and is the scalar sum of | I

^{+ }| and | I

^{− }|. However, the phase current is actually the sum of I

^{+ }and I

^{− }(for each phase). The phase angle between I

^{+ }and I

^{− }makes the scalar sum used in these approaches larger than I

^{+ }+ I

^{− }, causing a smaller scaling factor. This, in turn, makes the reactive current generated by such approaches smaller. In the present method 200, the system 100 estimates the maximum phase current through the vector sum of sequence currents and determines a scaling factor using Equations 12 to 15. This can result in noticeably larger reactive currents. Example Case 3 illustrates this issue. Case 3 [0114] In example Case 3, consider if IBR-4 of FIG. 2 implements other approaches during a bolted AG fault at B16. For this case, , and Δ V

^{− }=0.155 pu, and so the sequence reactive current references are | and 0.93 pu. The maximum phase current estimated by Equation (1) will be 2.16 pu, which violates the 1.2 pu limit. Thus, the reference currents are scaled down by a factor of I

_{max }/2.16= 0.555 to obtain and shown in FIG.12A. The maximum of the resultant phase currents in FIG. 12B is |I

_{a }| = 1.05 pu. [0115] FIGS. 12A to 12C illustrate example measurements for IBR-4 in Case 3 using other approaches, where FIG.12A shows active and reactive sequence current magnitudes, FIG.12B shows instantaneous currents, and FIG.12C shows angles of the sequence currents. FIGS.13A to 13C illustrate example measurements for IBR-4 in Case 3 using method 200, where FIG.13A shows angles of the sequence voltages, FIG.13B shows active and reactive sequence current magnitudes, and FIG.13C shows instantaneous currents. [0116] If IBR-4 uses method 200, i.e., by substituting , along with sequence voltage angles of FIG.13A in Equation (4) and Equation (10), the terms under the radicals in the first and third ranges on the right side of Equation (10) (corresponding to phases A and C) become negative. Thus, generally cannot be determined and the reactive currents must be scaled down. Determining the coefficients ( λ

_{2, φ }, λ

_{1, φ }, λ

_{0, φ }) from Equation (5) and solving Equation (14), the solutions for ρ will be –0.6524 and 0.6439 for phase A, –0.6576 and 0.6491 for phase B, and –4.5768 and 4.5691 for phase C. Two of these solutions, i.e., 0.6439 and 0.6491 are inside the [0,1] range. However, ρ = 0.6491 yields |I

_{a }| =1.21 pu, | I

_{b }| =1.20 pu, and | I

_{c }| =0.17 pu and so makes the phase A current exceed the limit. The acceptable solution is, therefore, ρ = 0.6439, for which the sequence currents are and Note that β = 59.2

^{∘ }for this case, and the condition for generating extra described herein does not hold. This would result in the sequence currents of FIG. 13B, which yield the phase currents of FIG.13C. A comparison between Figs.12A and 13B reveals the advantage of method 200, which results in the generation of an additional 16 MVAr reactive power. [0117] Since the GCs generally prioritize reactive current over active current during LVRT, to satisfy the GCs’ LVRT requirement other approaches generally, first, check if the reactive currents given by FIG.1 increase the phase currents beyond the I

_{max }limit. Only if this limit is not violated, a non-zero active current is calculated/generated. Otherwise, no attempt is made to generate an active current, as the IBR has supposedly no extra capacity left, and even the pair of reactive currents given by FIG.1 needs to be scaled down. [0118] Conversely to other approaches, the system 100 first attempts to find the maximum active current for the reactive currents of FIG. 1 without examining whether these reactive currents cause unacceptably large phase currents. Only after this determination are the reactive currents scaled down if need be. This might seem counterintuitive given the requirement to prioritize reactive currents. However, the present inventors determined that for the purpose of prioritizing/maximizing reactive currents, it is necessary to examine the possibility of generating active current before a potential scale-down of reactive currents. This stems from the fact that, depending on the magnitudes/angles of the sequence currents, there may occur a condition in which the non-scaled of FIG.1 (without any ) make the phase currents exceed I

_{max }, while the addition of a properly chosen can bring the phase currents below I without the need to

_{max }scale down the reactive currents given by FIG.1. Such a scenario is depicted for the phase A current in FIG.14. The phase current derived from the sum of and (1) exceeds the I

_{max }limit. However, FIG.14 shows that the addition of places the phase current within the acceptable range without reducing the reactive currents. [0119] Generally, GCs allow scaling down only if it is necessary to do so, which is not the case for conditions like the one displayed in FIG. 14. In this way, determining the inverter currents impacts the GC compliance, as illustrated in example Case 4. Case 4 [0120] In example Case 4, consider an AG fault with R

_{f }= 5 Ω at 40% of the line connecting B23 to B24 in FIG.2. For IBR-14, Δ V

^{+ }= −0.109 pu and Δ V

^{− }=0.106 pu, and so the superimposed reactive currents in FIG.1 will be and for ^^ = 6. Before the fault, the power factor of this IBR is 1 at the POM, which makes the pre-fault reactive current at the POC . The POC voltage can be used to calculate and for the shunt capacitor of the inverter’s filter. Therefore, the reactive current references given by Equation (4) are and Using the sequence voltage angles shown in FIG.15A, the angles of

^{∘ ∘ }and are –121.3 and –34.9 , respectively. If the IBR generates these reactive currents, with no active current, as in FIG.15B, the current of phase B will exceed the limit in FIG.15C. If the sequence of steps used by the proposed method is not applied, the only way to bring the phase current within the acceptable range is to scale down by 96%; i.e., sub-optimal reactive currents and zero active current. FIGS.15A to 15C illustrate measurements for IBR-14 in example Case 4 without active current generation, where FIG.15A shows active and reactive sequence current magnitudes, FIG.15B shows instantaneous currents, and FIG.15C shows angles of the sequence voltages. [0121] Meanwhile, if the reactive currents and sequence voltage angles shown in FIG.15B and FIG.15C are plugged into Equation (10), the generated by the inverter can be as large as 0.33 pu. Using the sequence voltage angles of FIG.15C, the angle of is –31.3

^{∘ }. The relative angle of this and the above-mentioned reactive currents brings |I

_{b }| below I

_{max }and makes | I

_{a }| equal to I

_{max }(as illustrated in FIGS.16A and 16B). Therefore, the phase current limit is satisfied without reducing reactive currents and with generating maximum active current; i.e., full compliance with GCs. The active power generated by the IBR is relatively substantial and exceeds 60 MW. FIGS.16A and 16B illustrate measurements for IBR-14 in example Case 4 with the method 200, where FIG.16A shows active and reactive sequence current magnitudes and FIG.16B shows instantaneous currents. [0122] As described herein, IBR can generate non-zero after are scaled down only if β + ^^ is inside the [180

^{∘ }, 360

^{∘ }] range, where ^^ is 0, +120

^{∘ }, or −120

^{∘ }when the maximum phase current after scaling down occurs in phase A, phase B, or phase C, respectively. The present inventors investigated the likelihood of 180

^{∘ }< ( β + φ ) < 360

^{∘ }in real power systems; which was determined to depend on the fault type. [0123] For a bolted AG fault, the phase lead of the negative-sequence voltage over the positive- sequence voltage ( θ

_{ν }

^{− }− θ

_{ν }

^{+ }) is about 180

^{∘ }. This angle progresses in the counterclockwise direction as the fault resistance increases, but the progression does not exceed 60

^{∘ }∼ 70

^{∘ }even for very large fault resistances. Thus, θ

_{ν }

^{− }− θ

_{ν }

^{+ }is inside the [180

^{∘ }, 240

^{∘ }] range at an IBR’s POM. Assuming a YNd1 interface transformer for the IBR, θ

_{ν }

^{− }and θ

_{ν }

^{+ }shift by +30

^{∘ }and −30

^{∘ }when moving from the POM to the POC, and so the β (defined in Equation (8)) measured at the POC is normally inside [60

^{∘ }, 120

^{∘ }] for AG faults and YNd1 transformer. [0124] Additionally, the phase lead of the negative-sequence reactive current over the positive- sequence reactive current,

^{∘ }obtained through Equation (12), is β, β −120 , and β +120

^{∘ }, for phases A, B, and C, respectively. Given the above range for β, the following angles are obtained at the POC: [0125] The smaller angle between the two sequence components of phase B current makesI

_{b }larger than the phase A and C currents and equal to I

_{max }. As described herein, whenI

_{b }= I

_{max }, the IBR is able to generate | | if 180

^{∘ }< β −120

^{∘ }< 360

^{∘ }. This condition is normally satisfied as the above described how β is inside [60

^{∘ }, 120

^{∘ }] for AG faults. [0126] For a YNd11 transformer, θ

_{ν }

^{− }and θ

_{ν }

^{+ }shift by −30

^{∘ }and +30

^{∘ }, respectively, when moving from the POM to the POC, and so normally −60

^{∘ }< β < 0

^{∘ }at the POC during AG faults. This would make the angle between and minimum for phase A, henceI = I . Thus, the IBR

_{a max }is able to generate if 180

^{∘ }< β <360

^{∘ }. This condition normally holds since −60

^{∘ }< β < 0

^{∘ }as described herein. A similar analysis and conclusion can be made for phase-B- and phase-C-to- ground faults as well. [0127] For BC and BCG faults, θ

_{ν }

^{− }− θ

_{ν }

^{+ }at the POM is close to zero. As the fault location moves farther from the IBR, the presence of intermediate infeed currents with active component in the path between the IBR and the fault location makes this angle retard into the fourth quadrant. The active intermediate infeed currents are generated by the other IBRs and synchronous generator- based sources (the latter of which has a greater impact due to its higher fault current magnitude). As a result, θ

_{ν }

^{− }− θ

_{ν }

^{+ }tilts towards the [-60°, 0°] range at the POM. Considering the ±30° phase shifts introduced by a YNd1 transformer, β given by Equation (8) is in the [180°, 240°] range at the POC. Using Equation (12), this range for β leads to: [0128] The angle between the negative- and positive-sequence reactive currents is smaller for phase C, indicating that the current of phase C is maximum and equal to I

_{max }. As described herein, when the phase C current is maximum, an IBR can generate

^{∘ ∘ ∘ }if 180 < β +120 <360 . Meanwhile, it was shown in the above that 180

^{∘ }< β < 240

^{∘ }, and so 300

^{∘ }< β < 360

^{∘ }. Thus, the condition on β to generate holds. [0129] If the transformer’s vector group is YNd11, β at the POC is normally inside [60

^{∘ }, 120

^{∘ }] for BC and BCG faults. This makes ^^

_{^^ }equal to I

_{max }. Thus, the IBR is able to generate

^{∘ }if 180 < β −120

^{∘ }<360

^{∘ }, which is usually satisfied since β is inside [60

^{∘ }, 120

^{∘ }] as mentioned above. A similar result is obtained for other double-phase faults as well [0130] Advantageously, the method 200 can factor in the current of the LC filter’s shunt capacitor ( I

_{Q − c a p }) in the formulation that derives the reference current. This would marginally impact the reference currents derived herein. I

_{Q − c ap }is an uncontrolled current that is added to the currents of the inverter switches before the POC. Thus, if I

_{Q − c ap }is neglected when the reference currents are determined, the superimposed reactive currents measured at the POC will deviate slightly from what the GC may require. This error can be compensated for the positive-sequence circuit in Equation (4) by subtracting from the required reactive current at the POC, i.e., | ± . Similarly, can be added to the required negative-sequence reactive current at the in Equation (5) to derive Thus, when is taken into account, the IBR generates smaller positive- and larger negative-sequence reactive currents, compared to when is neglected. [0131] Since the positive-sequence voltage at the POC never drops below the negative- sequence voltage always exceeds Therefore, when is taken into account, the decrease in the positive-sequence reactive current is larger than the increase in the negative- sequence reactive current. Therefore, besides the absolute precision in complying with the GC, considering determined in the method 200 creates more room to generate active current. [0132] In addition to maintaining the balance between the load and generation, maximum utilization of the IBRs’ current generation capacity by the method 200 enhances the grid stability from the following perspectives: • The GCs mandate that after the LVRT, the IBRs ramp up the active power to the pre- LVRT level quickly to prevent instability. However, high ramp rates for the active power can cause voltage fluctuations if the grid is not strong; a common scenario with the increased penetration of IBRs. Maximizing the IBRs’ active power during the LVRT enables the IBR to return to the pre-LVRT level of active power without the need for a high ramp rate. • Maximizing the IBRs’ reactive current described herein improves the grid’s short-term voltage stability and fault-induced delayed voltage recovery. [0133] Provided herein is an example comparative analysis to show the system-wide impact made by the method 200 in increasing the power of the IBRs across the grid shown in FIG.2. Table 1 shows the total active and reactive power ( P and Q ) generated by the IBRs in FIG.2 using three techniques for different fault locations, fault types, and IBR K-factors. Columns 5 to 7 report the results for the other techniques. Table 1 also reports the results for two versions of the method 200: the version reported in columns 11 to 13 strictly follows the relations described herein; the other version in columns 8 to 10 removes from Equation (4) to neglect the capacitor’s effect, enabling direct comparison with the other techniques. TABLE 1 [0134] Columns 5 and 8 of Table 1 indicate the for all fault conditions P

^{+ }of the method 200 is larger. Consider, for example, case 6 with K =6. The total active power generated by the IBRs using the method 200 is 443 MW (124%) larger than the total active power when the other techniques are used. A noticeable pattern for P

^{+ }in Table 1 is that as the K-factor increases, the active power generated by the method 200 becomes more superior. For instance, for a BC fault at bus B16, and for K =2, K =4, and K =6, the method 200 generates 163 MW (11%), 306 MW (52%), and 318 MW (110%), respectively, more than the other techniques. The reason is that for larger K-factors, the other techniques do not attempt to generate any active current after scaling down the reactive currents. For the method 200, however, large amounts of active current can be generated. [0135] As discussed herein, one of the advantages of the method 200 lies in the generation of not only larger active power, but also higher levels of reactive power. As shown in Table 1, the improvement in the reactive power is more significant for cases involving single-line-to-ground faults and large K-factors. These are the cases for which the reactive currents need to be scaled down due to the large K-factor even though the voltage drop at the POC is not very severe. In Case 12, for example, the IBRs generate 259 MVAr (15%) of extra reactive if they use the method 200. For the same case, the method 200 generates 64 MW (13%) of additional active power as well. Only in three cases with lower K-factor, the Q

^{+ }generated by the method 200 is 1 to 3 MVAr smaller. For instance, the Q

^{+ }given by the method 200 is 882 MVAr, while the other techniques yield 885 MVAr; i.e., a mere 0.34% difference. This stems from the fact that for the other techniques, the dip in the positive-sequence voltage during the transients of the first cycle of the fault is larger. The first cycle of the fault is when the K-factor diagram in FIG.1 is used to calculate Therefore, a larger reactive current is obtained by the K-factor diagram. [0136] Comparison of columns 7 and 10 in Table 1 reveals that the method 200 generates larger Q

^{− }for all of the cases. Meanwhile, the pattern of variations for Q

^{− }is different from what is observed for Q

^{+ }. As the K-factor increases, Q

^{+ }generated by IBRs naturally increases for all of the three approaches in Table 6. Similarly, Q

^{− }increases in columns 7, 10, and 13 as K is increased from 2 to 4. However, in most cases, from K =4 to K =6, Q

^{− }decreases. The reason is that from K =4 to K =6, the generation of larger amount of Q

^{+ }causes the power system to become more balanced, with larger positive-sequence voltage and smaller negative-sequence voltage throughout the grid. [0137] As described herein, compensating for the current of the filter’s capacitor enables the IBR to generate larger active currents. Furthermore, a comparison between the reactive currents of the two approaches confirms that when an IBR compensates for the current of the shunt capacitor, Q

^{+ }decreases and Q

^{− }increases. The numbers for Q

^{− }seem to stay unchanged in some cases. This is likely due to the rounding error. For instance, Q

^{− }in Case 1 for the method 200 without and with compensation of the capacitor’s current is 103.00 MVAr and 103.13 MVAr, respectively. [0138] Instead of using closed form mathematical relations, in some cases, scaling down the reactive currents and re-calculating the active current can be combined and carried out using an optimization technique. In these cases, an optimization problem can be optimized with the objective function of maximizing ρ and the following constraints: 0 < ρ < 1 (21) [0139] Constraints of Equation (21) and Equation (22) are features of ρ and | |, and Equation (23) implies that the phase currents have to satisfy their limit. Convex optimization problems have a globally optimum answer and can be solved through any suitable standard convex solver. [0140] In addition to the objective function of finding the largest scaling factor ρ, this optimization problem should guarantee that the maximum phase current capacity of the IBR is used; i.e., at least one of the phase currents becomes exactly equal to the I

_{max }limit. However, one concern might be that ρ and | are found such that the phase currents become less than the limit, while none of them is equal to the limit. The following proves that this scenario is impossible. Based on the geometric interpretation of the optimality condition, it can be concluded that the optimal point of a convex problem exists on the boundary of the feasibility set of the optimization problem. As the optimization problem is convex, the optima exist on the boundary of the feasibility set. This implies that the optimal ) is in either of the following sets: [0141] If at the optima, then the largest value for ρ is what was determined from Equation (14), which would make at least one of the phase currents saturate at the limit. Therefore, if the optima is in ℬ

_{1 }, then at least one of the phase currents saturates at the limit. Furthermore, the optima being in ℬ

_{2 }trivially results in at least one of the phase currents being equal to the limit. [0142] Advantageously, the computation time of this optimization approach is not substantial. The optimization problem is quadratic with only two variables, i.e., ρ and . Such small optimization problems can be solved in around one millisecond using available solvers. [0143] For example, example Case 2, in which the superimposed reactive currents obtained from FIG.1 needed to be scaled down, was repeated using the optimization approach. The scale factor ρ calculated from solving Equation (14) was 0.9014. The optimization then finds the largest scaled-down reactive currents and active current, simultaneously. The optimal scale factor ρ calculated from solving the optimization problem is 0.9286. The sequence active and reactive currents can then be as presented in FIG.17A. As observed from FIG.17B, all phase currents satisfy the limit, and one of them is bound at the IBR’s limit. This confirms that at least one of the three phase current constraints in Equation (23) has to be activated. [0144] FIGS.18 to 22 illustrate an example block diagram of an implementation of the system 100. FIG.18 shows an example of an IBR configuration. In FIG.18, component 1801 includes the inverter, its LC filter, a control system, and a DC-side source(s). In particular cases, the components of FIGS.19-22 are implemented within component 1800 of FIG.18. Also shown is an IBR unit transformer 1802. Multiple feeders 1803 may connect multiple IBR units and their unit transformers to the collector bus 1804. The collector bus 1804 is then interfaced to the rest of the power system by the main IBR transformer 1805. Also shown in the point of connection (POC) at location 1806 or 1807, and the point of measurement (POM) 1807, as described herein. Some standards and GCs may choose different locations for the POC and the POM. FIG.18 follows the more common approach, which is now adopted by the IEEE P2800 standard. Changing the location of the POC and/or the POM may require very minor changes, but does not have a material impact on the present embodiments. [0145] FIG.19 shows various components of the IBR 150. Shown is one of the power electronic switches 1901 of the inverter. When the present disclosure refers to a current limit of the switches, the current limit of these components is being generally referred to. Also shown is the LC filter 1902 of the inverter. The currents 1903 shown are where measurements are taken from before the LC filter’s shunt capacitor. Also shown is a point of connection (POC) 1904 of the inverter. [0146] In some cases, it may be possible to neglect the shunt capacitor from the LC filter 1902 of the inverter; and the inverter will still be able to operate, but with some degree of distortion in the currents. Neglecting the LC filter’s capacitor’s currents may be a safe practice because some GCs allow small deviations from the required reactive currents as illustrated in FIG.1. If the shunt capacitor’s reactive currents are neglected, the system 100 will still operate as described. To neglect the capacitor’s currents and can be set accordingly and the associated equations can be amended; for example: Amended Equation (5): Amended Equation (12): Amended Equation (13): Amended Equation Amended Equation (23): [0147] For FIG.20, Block 2001 calculates the current references during normal condition. Here, as an example, Block 2001 takes “Pref or Vdc, ref” and “Qref” as inputs. Different strategies for the inverter’s control during the normal conditions (e.g., whether Pref or Vdc, ref is being regulated) generally do not affect operation of the system 100. Block 2002 performs the transformation from natural reference frame (abc) to synchronous reference frame (dq). Block 2003 generates the reference currents for the LVRT condition, as described herein; generally including the diagrams of FIGS.21 and 22. Block 2004 detects the LVRT condition. When the LVRT is detected, at Block 2005, switches switch from the references for normal condition determined under Block 2001 to the references calculated under Block 2003 for the LVRT condition. Block 2006 tracks the current references using appropriate controllers. The outputs of Block 2006 are modulation signals shown at Block 2007 (i.e., md and mq). These signals are then used to generate the switching commands at Block 2008, by a PWM technique at Block 2009. [0148] For FIG.21, Block 2102 represents determining of the sequence reactive currents based on the sequence voltage changes. This can be performed using the K-factor diagram in FIG.1 or any other grid code/standard for grid integration of inverter-based resources. Block 2104 represents performance of Equation (4) and Equation (5) to calculate the initial references for the sequence reactive currents. Block 2106 represents using the upper bound of the intersection of the four ranges given by Equation (10) to determine the maximum positive-sequence active current. Block 2108 represents determining of the scaling factor ρ. Equation (14) is solved for each phase; then, the largest ρ within the [0,1] range that is the solution of Equation (14) for one of the phases but also keeps the current magnitude in the other two phases below I

_{max }is the output of this block. Block 2110 represents determination of the revised references for sequence reactive currents from the right side of Equation (12). Block 2112 represents the process of finding maximum being repeated for the revised reactive currents. [0149] In some cases, Blocks 2108 and 2112 can be performed either in parallel with Block 2106, or sequentially after Block 2106. This is because the output can be obtained either at Block 2108 (if ) or Block 2112 (if ). In the block diagram of FIG.21, the parallel approach is implemented. Depending on the “Initial Null Flag”, either the references currents of Blocks 2104 and 2106 or the reference currents of Blocks 2108 and 2110 are passed to the inverter. [0150] In FIG. 22, an Initial Null Flag at block 2201 allows switching between the active/reactive currents and the revised active/reactive current. In Block 2102, the sequence active and reactive components are transformed to their associated dq quantities. [0151] The current limitation approach, for example represented by Blocks 2108 and 2110, and that uses Equations (14) and (12), assumes that the reactive positive- and negative-sequence currents are uniformly scaled down. However, it is to be understood that the present embodiments can be used with other current limitation strategies. The following current limitation strategy examples describe changes required in the above formulations and equations in order to implement these current limitation strategies; any of which may be used as appropriate. [0152] In a first example current limitation strategy, non-uniform scaling of the sequence reactive currents can be performed when the negative-sequence reactive current is to be decreased at a higher rate. In this case, a new parameter γ

^{− }s.t.0 < γ

^{− }< 1 is selected. The smaller is γ

^{− }, the higher is the reduction rate of (compared with the reduction rate of ). In order to make sure that the selected γ

^{− }does not cause the maximum phase current to fall below I

_{ma x }, a lower bound for γ

^{− }, i.e., is determined. should satisfy and Equation (26) such that max{|I

_{a }|, | I

_{b }|, | I

_{c }|}= I

_{ma x }. In order to calculate for any phase current which was above the limit for the original superimposed reactive currents, i.e., , the respective Equation (27) has to be solved. Where can be obtained by Equation (28): [0153] Then, the minimum of the acceptable answers is taken. If, at least, one of the phases which was originally above the limit has no acceptable answer, then the lower bound will be zero, i.e., Then, the selected γ

^{− }is compared with the calculated If then Using Equation (29), ρ is found such that max{|I

_{a }|, | I

_{b }|, | I

_{c }|}= I

_{ma x }Which requires solving Equation (30): While the coefficients are obtained by Equation (31): (31) [0154] The proper selection for μ, ± and ∓ signs, and the optimal ρ is the same as described with respect to Equations (14) and (15). The scaled superimposed reactive currents will thus be and [0155] In a second example current limitation strategy, non-uniform scaling of the sequence reactive currents can be performed when the positive-sequence reactive current is to be decreased at a higher rate. Similar to the first example current limitation strategy, a new parameter is selected. The smaller the , the higher the reduction rate of (compared with the reduction rate of ). In order to make sure that the selected does not cause the maximum phase current to fall below I , a lower bound for , i.e., is determined. should I satisfy and Equation (32) such that max{|I |, I , I }= .

_{a }|

_{b }| |

_{c }|

_{ma x }[0156] In order to calculate , for any phase current which was above the limit for the original superimposed reactive currents, i.e., the respective Equation (33) has to be solved: can be obtained by Equation (34) when |

_{p }| (for capacitive and inductive the lower and upper signs in ± is applied, respectively): [0157] Then, the minimum of the acceptable answers is used. If, at least, one of the phases which was originally above the limit has no acceptable answer, then the lower bound will be zero, i.e., Then, the selected γ

^{+ }is compared with the calculated then Using Equation (35), ρ is found such that max{|

_{a }| |

_{b }| |

_{c }|}= I I , I , I

_{ma x }: Which entails solving Equation (36): While the coefficients are obtained by Equation (37): [0158] The proper selection for μ, ± and ∓ signs, and the optimal ρ is the same as described with respect to Equations (14) and (15). The scaled superimposed reactive currents will thus be and [0159] In a third example current limitation strategy, non-uniform scaling of the sequence reactive currents can be performed when the positive-sequence reactive current is to be decreased at a higher rate, while avoiding the superimposed positive-sequence reactive current becoming smaller than the superimposed negative-sequence reactive current. All the steps of the second example current limitation strategy are followed. However, at the end, if , no further action is required; otherwise is selected to be equal to − and the approach of uniform scale down of the sequence reactive currents, as described herein with respect to Equations (12) to (15), is repeated. [0160] In a fourth example current limitation strategy, optimized non-uniform scaling of the reactive currents are performed when the negative-sequence reactive current is to be decreased at a higher rate. A new parameter is selected. The following optimization problem is solved to find a lower bound for i.e., Max s.t. [0161] If the optimization problem is infeasible, then The sel

^{− }ected γ is compared with the calculated If , then Then, the following optimization problem is solved: Max ρ s.t. [0162] The scaled superimposed reactive currents will then be and [0163] In a fifth example current limitation strategy, optimized non-uniform scaling of the reactive currents is performed when the positive-sequence reactive current is to be decreased at a higher rate. A new parameter γ

^{+ }s.t.0 < γ

^{+ }< 1 is selected. The following optimization problem is solved to find a lower bound for γ

^{+ }, i.e., Max γ

^{+ }s.t. [0164] If the optimization problem is infeasible, then . The selected γ

^{+ }is compared with the calculated . If , then . Then, the following optimization problem is solved: Max ρ s.t. 0 < ρ < 1 [0165] The scaled superimposed reactive currents will then be and [0166] In a sixth example current limitation strategy, optimized non-uniform scaling of the sequence reactive currents is performed when the positive-sequence reactive current is to be decreased at a higher rate, while avoiding the superimposed positive-sequence reactive current to become smaller than the superimposed negative-sequence reactive current. All the steps of the fifth example current limitation strategy are followed. At the end, if − no further action is required; otherwise is selected equal to and the optimization of uniform scale down of the sequence reactive currents, described with respect to Equations (21) to (23), is repeated. [0167] In a seventh example current limitation strategy, prioritized scaling of the reactive currents is performed when the negative-sequence current is to be decreased first. ^^ is determined as described with respect to the first example current limitation strategy. If it exists, then the scaled reactive currents are and and no further action is required. Otherwise, is calculated as described with respect to the second example current limitation strategy; while in Equations (34) and (35) is set to zero. The scaled superimposed positive- and negative-sequence reactive currents will then be and zero, respectively. Note that this strategy may cause the IBR to generate zero superimposed negative-sequence current. If this is undesired, a limit may be applied to the reduction of If ^ exists and then the scaled superimposed reactive currents are , and no further action is required. Otherwise, is determined as described in the second example current limitation strategy; while in Equations (34) and (35) is substituted by

_{, }. The scaled superimposed positive- and negative- sequence reactive currents will then be ^ and Δ respectively. [0168] In an eighth example current limitation strategy, prioritized scaling of the reactive currents is performed when the positive-sequence current is to be decreased first. ^ is calculated as described with respect to the second example current limitation strategy. If it exists, then the scaled reactive currents are and , and no further action is required. Otherwise, is calculated as described with respect to the first example current limitation strategy; while in Equation (28) is set to zero. The scaled superimposed positive- and negative-sequence reactive currents will then be zero and respectively. Note that this strategy may cause the IBR to generate zero superimposed positive-sequence reactive current (which may cause the IBR’s phase rotation). If this is undesired, a limit may be applied to the reduction of e.g., Δ . If exists and then the scaled superimposed reactive currents are and no further action is required. Otherwise, is calculated as described with respect to the first example current limitation strategy; while in Equation (28) is substituted by . The scaled superimposed positive- and negative-sequence reactive currents will then be and respectively. [0169] In a ninth example current limitation strategy, optimized prioritized scaling of the reactive currents is performed when the negative-sequence current is to be decreased first. is determined as described with respect to the fourth example current limitation strategy. If it exists, then the scaled reactive currents are and , and no further action is required. Otherwise, is determined as described with respect to the fifth example current limitation strategy; while Δ ^^ in the optimization problem of Equation (40) is set to zero. The scaled superimposed positive- and negative-sequence reactive currents will then be and zero, respectively. Note that this strategy may cause the IBR to generate zero superimposed negative-sequence current. If this is undesired, a limit may be applied to the reduction of , e.g., If exists and then the scaled superimposed reactive currents are and and no further action is required. Otherwise, is calculated as described with respect to the fifth example current limitation strategy; while in the optimization problem of Equation (40) has been substituted by The scaled superimposed positive- and negative-sequence reactive currents will then be and respectively. [0170] In a tenth example current limitation strategy, optimized prioritized scaling of the reactive currents is performed when the positive-sequence current is to be decreased first. is determined as described with respect to the fifth example current limitation strategy. If it exists, then the scaled reactive currents are and , and no further action is required. Otherwise, is calculated as described with respect to the fourth example current limitation strategy; while in the optimization problem of Equation (38) is set to zero. The scaled superimposed positive- and negative-sequence reactive currents will then be zero and ^ , respectively. Note that this strategy may cause the IBR to generate zero superimposed positive-sequence reactive current (which may cause the IBR’s phase rotation). If this is undesired, a limit may be applied to the reduction of , e.g., . If exists and then the scaled superimposed reactive currents are and and no further action is required. Otherwise, is determined as described with respect to the fourth example current limitation strategy; while in the optimization problem of Equation (38) has been substituted by . The scaled superimposed positive- and negative-sequence reactive currents will then be and , respectively. [0171] In an eleventh example current limitation strategy, as exemplified in the flowchart of FIG. 23, after receiving the pre-LVRT values (block 2302) and receiving an indication of a low voltage condition (block 2304), the positive- and negative-sequence reactive currents are capped at prespecified limits (block 2306) such that the phase currents do not violate their limit; e.g., In this example current limitation strategy, after capping and | | at their respective limits, the capped reactive currents are plugged into Equation (10) to calculate the maximum (block 2308) using the approach described with respect to Equations (3) to (10). After which, at block 2310, the revised reactive and active currents are communicated to the inverter. In this example current limitation strategy, the applied assumptions of necessarily cause all the phase currents to be below I

_{ma x }. Therefore, in some cases, some aspects can be omitted, such as those addressing the violation of phase current limit due to large sequence reactive currents; such as scaling down of each of the positive-sequence and negative-sequence reactive currents and determining of a non-zero positive-sequence revised active current. [0172] In a twelfth example current limitation strategy, when Equation (10) returns an empty set (if it does not return an empty set, then no current limitation needs to be performed), the positive- and negative-sequence reactive currents are capped at prespecified limits; e.g., In this example current limitation strategy, after capping and at their respective limits, the capped reactive currents are then plugged into Equation (10) to calculate the revised maximum using the approach described with respect to Equations (3) to (10). [0173] In further cases, at least some of the present equations can be augmented, as appropriate, for simplicity. Equation (2), provided herein, can be augmented to: [0174] Equation (4), provided herein, can be augmented to: [0175] Equation (12), provided herein, can be augmented to: [0176] Equation (13), provided herein, can be augmented to: [0177] Equation (15), provided herein, can be augmented to:

[0178] As shown, in the above augmented versions of Equations (12), (13), and (15), the scaling of the reactive currents have been modified. Additionally, in the above augmented version of Equation (15), for capacitive and inductive pre-fault reactive currents, the upper and lower signs, respectively, must be used in ± and ∓. [0179] Several reference frames can be adopted for the implementation of inverters’ control, such as a synchronous reference frame ( d q), stationary reference frame ( α β), or natural reference frame ( a b c). FIGS.18 to 22 illustrate, as an example, the implementation in d q reference frame; however any suitable reference frame can be used. [0180] As described herein, existing approaches to inverter control do not satisfy the requirements of most GCs for maximum active and reactive current generation during LVRT. These techniques use the scalar sum of the sequence currents to derive the inverter reference currents, leading to miscalculation of an IBR’s capacity for generating active current. This may also cause unnecessary scale down of the reactive currents without any active current generation. The present embodiments address at least these problems and maximizes both active and reactive currents of an IBR. In particular, the example experiments show that when the reactive currents make the phase currents exceed the IBR’s limit, the system 100 may be able to generate non-negligible amounts of active current and bring the phase currents below their limit without scaling down the reactive currents. Additionally, the system 100 can derive a larger scaling factor and so maximize the reactive current generated by the IBR. Additionally, after scaling down the reactive currents, although at least one of the phase currents reaches the IBR’s limit, the IBR is still usually capable of generating active current. [0181] While the above disclosure generally describes the present embodiments applied to the application of a power inverter, it is appreciated that the presently described approaches can be applied to any suitable application; for example, applied to applications of high-voltage direct current (HVDC) stations. In other cases, the presently described approaches can be incorporated into fault determination software or model that uses the present embodiments to determine active and/or reactive currents. Fault determination software generally requires a software model of an inverter that complies with applicable grid codes and standards. This model can be integrated with models of other power system components (for example, transmission lines, conventional power plants, protective relays, and the like) to calculate the currents and voltages in different parts of the system during fault (i.e., LVRT) conditions. Utility engineers can use the results of these calculations to set up protective devices of the electrical grid. The software model generally receives one or more inputs described herein (e.g., LVRT voltage, pre-LVRT currents, current limitation strategy, K-factor, and the like) and outputs three-phase currents that would be generated by a code-compliant inverter. [0182] Although the foregoing has been described with reference to certain specific embodiments, various modifications thereto will be apparent to those skilled in the art without departing from the spirit and scope of the invention as outlined in the appended claims. The entire disclosures of all references recited above are incorporated herein by reference.

**Previous Patent:**DRILL CUTTINGS MEASUREMENT BOX AND SYSTEM FOR CONTROLLING PILOT HOLE DRILLING

**Next Patent: TUBULAR LINER, METHOD OF FABRICATION AND USE THEREOF**