{'fraction_non_alphanumeric': 0.042289719626168225, 'fraction_numerical': 0.01855140186915888, 'mean_word_length': 4.557257855102571, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Analysis of various energy storage systems for variable speed wind turbines

Wind Energy is an intermittent and unpredictable resource. During the high penetration of wind power into the power grid, wind turbines can affect power quality substantially. Voltage fluctuations or flicker, Harmonics and Inter-harmonics, and Voltage drops are all present in this environment. Subsequent affects on active and reactive power, can lead to degrading of grid protection and increased reconnection time. Energy storage systems (ESS) with variable speed wind turbines (VSWT) such as a Doubly Fed Induction Generator (DFIG) or a Permanent Magnetic Synchronous Generator (PMSG) could be a solution to improving the power quality resulting from the “variability” of wind output power. This paper describes the performance analysis of different Hybrid ESS's (Battery ESS, Super Capacitor ESS and Electrical Dual Layer Capacitor ESS) connected to two different models of 2MW, 60Hz VSWT's to improve the power quality measured in terms of Total Harmonic Distortion (THD). From simulation results, a Proposed Hybrid System is shown to be a solution in overcoming the problems of high THD and hence the improvement of power quality. Simulation studies have been carried out on a Power System Computer Aided Design /Electromagnetic Transients Direct Current (PSCAD/EMTDC) to compare and verify the system performance under different scenarios.


Introduction
The DOE's 2009 Annual Energy Outlook projected energy accumulation in the USA. The report describes that the future growth of domestic electric energy will increase by 26% for electricity sector by 2030. This might not only require additional generation capacity of 259 GW but also forecast to increase as 1.7% of total installed capacity until 2030 [1,2]. Variable speed wind turbine prefers to the conventional operation to extract the maximum power from the unstable wind generation. Since speed of wind turbine is nonconstant, the generator should be controlled by the power electronic circuit. Two variable speed wind turbines (VSWTs) on a principle of power electronics could be classified as DFIGs and PMSGs [3,4].
DFIG-based wind turbine is a wound rotor induction generator. It consists of three-phase windings on the rotor and stator. The stator winding of the wind turbine is directly connected to the grid winding, while the rotor winding of the generator is fed by variable frequency bidirectional back-to-back PWM based on the voltage source converter, which consists of rotor side converter (RSC) and grid side converter (GSC). It has typically about 30% of nominal generator power [3,4]. The synchronous machine has the ability to provide its own excitation on the rotor. Such excitation may be obtained by means of either a current carrying winding or permanent magnets (PMs) [5]. PM excitation avoids the field current supply or reactive power compensation facilities [2,[6][7][8]. PMSG is a permanent magnet synchronous machine with its stator windings connected to the grid through a frequency converter. Signal frequency is generated via the pulse width modulation (PWM) with the DC link of back-to-back voltage source converters (VSCs) consisting of machine side converter and grid side converter [9,10].
There are several state-of-the-art technologies on wind power and energy storage to improve power quality and stability by optimal control of ESS [11][12][13][14][15][16][17], hybrid ESS [18,19], and renewable forecasting modeling [20,21]. It is widely popularized that an elaborately optimal control strategy for ESS is to smooth wind power fluctuations for the renewable energy [11][12][13][14]. Two configurations of DFIG-BESS for internal and external controllers have improved the capability integrated to the grid [15]. In [16], an optimal control scheduling was considered on the variable smoothing time constant and charging/discharging of power limits, which is to mitigate the wind power fluctuations, while extending the battery life cycle of the BESS. A control strategy of the ESS in the wind farm focused an open-loop optimal control scheme is to incorporate the operating limits of BESS based on the forecasted wind condition [17]. The author [18] introduced the hybrid energy storage system (HESS) to overcome the fast PVwind power generation fluctuations by smart scheduling, which has a statistical approach for the capacity distribution of the HESS. However, they did not demonstrate real-time simulation with few limited cases. The control and energy management of the hybrid ESS (battery and super capacitor) with DFIG has coordinated the power flows and load demand [19]. Prediction scheme of wind power generation connected to battery ESS developed by using numeric weather prediction model which required to the input as detailed wind information [20]. However, they did not smooth to power variation scheme in this chapter. Energy management system of flywheel ESS used to fuzzy logic for two optimized models as constraint condition and determine optimization objective to control of FESS [21].

Configuration of the hybrid ESS of the variable speed wind turbines
The configuration of the HYESS-DFIG is illustrated in Figure 1(a). DFIG is a variable speed wind turbine with a partial scale power converter in the rotor circuit. The main objective of the RSC controller is to regulate active power (Ps) and reactive power (Qs) of the stator side independently, while the GSC controller is to keep the constant DC voltage (V dc ) to adjust reactive power (Qg) of the GSC, which transfers from the grid side [22]. Figure 1(b) describes that PMSG which is a variable speed wind turbine with a direct-drive generator connected to the grid through a full-scale power converter [2,6]. Three different ESS such as battery (B), super capacitor (SC), and electrical dual layer capacitor (EDLC) were introduced in Figure 1. Each ESS controller comprised bank, inductance and two-quadrant DC/DC converter connected to the DC link as illustrated in Figure 1. Two DC/DC converter design includes two insulated gate Bi-polar junction transistors (IGBTs) diode switches as S1 and S2. To compare two different VSWTs, that is, DFIG and PMSG, three-phase voltage sources are employed at 20 kV, 60 Hz, 0.04 H, and 2.5 Ω, and PSCAD parameter of the wind turbine given in Table 1.

Model of the wind turbines
Variable speed wind turbine could be mathematically described by the follows (1), (2), (3). A wind turbine extracts kinetic energy (P wind(kin) ) from the swept area (Area) of the blades. The power of the airflow (P airflow Þ is given by [3,24]: where ρ, Area, v is the symbol of air density (approximately 1.225 kg=m 3 ), swept area of rotor m 2 À Á , upwind free wind speed (m/s), respectively.
The wind power (P wind kin ð Þ Þ transferred to the rotor of VSWT could be expressed by where C pt λ; β À Á is a power coefficient, λ is a function of tip speed ratio , and β is pitch angle. Wind turbines are characterized by their aerodynamic torque or turbine torque as Ta [3,24,25]: where A is the maximum value of C pt defined by the Betz limit, which a turbine can never extract more than 59.3% of the power from an air stream [21,25]. In reality, wind turbine rotors have maximum C p values in the range 25-45% [7].

Park's model of the VSWT
For our proposed system, the Park's model was used in VSWT (DFIG and PMSG) [3]. The voltage equations in the d, q axes-frame are given as follows [4,5,22,26]: ϕ d , ϕ q , I d , I q , V d , V q are the stator fluxes, current and voltage of the d and q components; R a is the stator resistance; ω r is the rotor speed in electrical [radians/s]. The general Park's model is used to explain about the control scheme of an induction machine. The equation of voltage vector in the DFIGs is expressed as follows [4,5,22,26]: The equivalent two-phase model of the symmetrical variable speed wind turbine (dq frame) used to synchronously rotating reference frame (dq frame) as follows [7]: The stator and rotor fluxes using the synchronously rotating reference frame (d,q frame) are given as follows [5,8,9,22]: where R s , R r indicate equivalent resistance of stator and rotor windings. L s , L r , L m indicate self and mutual inductances of stator and rotor windings, respectively. Ignoring the power losses in the stator and rotor resistances, the active and reactive powers from the stator are given by The electromagnetic torque is given by [4,5,22,26]: The synchronous model is also expressed in the (d,q) synchronous Park's model, and the voltage equations of the PMSG are represented as follows [7]: where V sd , V sq , i sd and i sq are voltage and current for the d,q axis of the stator side. ∅ f is the magnitude of the flux linkages by using the permanent magnetic flux [Web]; ω PM is the value as rotating speed [rad/s] of the PMSG. The electromagnetic (EM) torque in the rotor could be expressed as follows [7]: p is the number of pole pairs in the PMSG.

Modeling and control of the grid connected to various ESSs
Energy storage systems (ESSs) have a function of converting electrical energy from a power system network into a form that can be stored for converting back to electrical energy when needed [8,9]. ESS has numerous applications including portable devices, smart grid, building integration, energy efficiency, transport vehicles, and stationary renewable energy resources [27]. In this chapter, only three different distributed ESSs for renewable generation systems were introduced as battery, super capacitor, and electrical dual layer capacitor [23]. Table 2 summarizes the characteristics of three different ESSs.
3.1. Modeling and control of energy storage systems Figure 2 shows that each E-ES, for this study, consists of an energy source bank, an inductance and a two-quadrant DC/DC converter connected to the DC link. It also describes how the controller of the DC/DC buck-boost mode generates the gate signals for gate 1 and gate 2 [23].
The reference value of the i ess can be made by using a voltage feedback control between V dc-ref and V dc with PI controller of the voltage. It can be expressed as follows [2,25,28]: The inner current control loop using a PI controller of current can be produced by using the duty ratio to generate the gate-signal i ess₋ref , as given by Eq. (27) [2,25,28]: Finally, the gate signal is generated by comparing the difference between the duty ratio and the carrier frequency.

Energy flow and Total harmonic distortion of various energy storage systems
The HYESS which is applied to the VSWT system uses DC-DC converters with controller of the ESS illustrated in Figure 2. When active power of DFIGs and PMSGs in the rotor side (Pr) or   stator side (Ps) is greater than active power of DFIG and PMSG on the grid side (Pg), the ESS charges the energy flow from the DC bus to the ESS Bank through the S1 switch and S2 diode [26,29,30].
Therefore, the source of ESS works to absorb active power from the DC voltage, while acts as a step-down converter when V ess boosts. The DC-DC converter design used as a buck converter circuit, and then D1 (duty ratio) of S1 in the buck mode can be computed by (28) [31]: When Pg is bigger than Pr, the E-ES energy discharges through S1 and S2, and energy flows to the DC bus (V dc ) [27][28][29]. In this case, the converter acts as a boost converter mode [27][28][29]. The ESS bank serves as a source to supply active power, which results in the decrease of the voltage V ess . The duty ratio D2 of S2 in the boost mode can be expressed as (29) [25]: Table 3 summarizes the energy flow in the two modes, that is, buck and boost modes.
The harmonic distortion of the voltage and current waveforms is generally expressed in terms of the fundamental frequency [32]. Power injection from the HY ESS affects the power quality, which is described as voltage and current THD. In Ref.
[30], the practices and requirements for harmonic control in electrical power systems are established. Figure 3 shows the PSCAD/ EMTDC modeling for the voltage (Vg), current (Ig), and active power (Pg) of the THD measurement at the point of common connection (PCC) in the proposed system. With the increasing use of the nonlinear devices, harmonic distortion of the voltage waveform is a problem which is receiving the considerable attention. Any periodic waveform of nonsinusoidal form can be synthesized by expressing it as the sum of a series of harmonics of the fundamental frequency by using Fourier analysis (30) [31]: f t ð Þ¼a 0 þ a 1 cos ωt þ a 2 cos 2ωt þ a 3 cos 3ωt þ … þ b 1 cos ωt þ b 2 cos 2ωt þ b 3 cos 3ωt þ … (30) where  Table 3. Energy flow of the energy storage systems.
Total harmonic distortion (THD) is usually expressed as a percentage of fundamental voltage by the expression as (31): where V1 = fundamental frequency voltage component, Vn = nth harmonic voltage component.

Battery energy storage systems (B-ESS)
Batteries have been widely used in many fields, which are referred to as electrical energy storage system, which accumulate electric energy in electrochemical form and delivers direct current (DC). The promising battery which is used as energy storage devices is lithium ion (Liion) battery. Due to high electrical potential and energy density of battery, Li-ion batteries are one of the promising solutions for the storage compared to other battery options. In addition, Li-ion batteries do not have poisonous metals (lead, mercury, or cadmium) and memory effect. The main disadvantage of Li-ion battery is the required high production cost [33]. The energy of battery could be calculated by (32): where I (A) and V(V) are current and voltage of battery and h (hours) is the charging time. For this study, a Panasonic LJ-SK84A Li-ion storage battery system [34] is used to design about the modeling for the PSCAD battery as 8 KWh from 110 to 165 V in Figure 4.

State of charge
In the Li-ion battery, over charging or over discharging could result in reducing the battery stack life and indirectly increasing the cost. However, accurate calculation of the state of charge (SOC: %) for battery ESS is essential for the battery outputs in powered system that aims at maximizing energy storage system's performance, extending battery life, and realizing the safe operation of the systems including EV, renewable generation, and building integration.
The SOC of the battery is defined as the ratio of the remaining capacity (Q present ) to the nominal capacity of the cell (Q nominal Þ. It could be described as (33) SOC % ð Þ ¼ Q₋ present Q₋nominal (33) Q is usually measured in the unit of Ah or mAh.
The battery state of charge (SOC) estimation could be calculated by the Coulomb counting (CC) method through the integration of measured battery current or open circuit voltage (OCV) [35][36][37]. However, unknown initial SOC which caused by the measurement errors and noise in real practice can affect performance, which means unreliable SOC value results in reduced performance and potential risk to the battery system. Therefore, it is critical to develop algorithms that can estimate accurate SOC to improve the performance for the battery energy storage. There are several advanced methods which can be closer to true values over time to compensate for nonlinearity such as extended Kalman filter (EKF) and sigma-point (unscented) Kalman filter (SP/UKF) [35][36][37].  Figure 5 describes about the super capacitors (SCs), which have higher power density, higher round trip efficiency, longer life cycle life, and lower capital cost per cycle than batteries [9,37]. Therefore, SC is a good candidate for short-term storage (i.e., seconds to minutes). Assuming the initial voltage across the super capacitor (C sc ) is V sc (0) after charging for a period t, the instantaneous voltage across the capacitor V sc is given by (34)

Super capacitor ESS
where I L is the load current entering the capacitor from the unregulated power supply.

Electrical dual layer capacitor ESS
Capacitors composed of two conducting plates, which are separated by an insulating material [8,29]. Conventional capacitors store little energy due to the limited charge storage areas and the separation distance between the two charged areas and the separation distance between the two charged plates [29,38]. However, super capacitors based on the EDL mechanism can store significantly more energy because of the large interface area and the atomic range of charge separation distances [8]. A simple resistive capacitive equivalent circuit of the EDLCcell is designed in PSCAD/EMTDC as shown in Figure 5.

Simulation results and discussion
Case I-Analysis of the Variable Speed Wind Turbines with Various ESSs for Power Quality in terms of THD (%).
The simulation results in Case I verify the performance of the hybrid ESS-VSWT by using the PSCAD design tool in terms of the THD (%). The mean wind speed is to make realistic results by using the PSCAD/EMTDC with random noise components during 60 s in Figure 6.  Power quality issue could be verified by the THD which was monitored at the point of common coupling (PCC) in the VSWT-HYESS as illustrated in Figure 1. The data (THD: %) in Table 4 were extracted from using excel file and then taking an average value (THD: %) during 1 min.   Figure 7 describes average THD (%) of a DFIG at the PCC for P, I, and V during 60 s. Table 5 shows that average THD (%) of the DFIG is a greater than other DFIG-HYESS. This result showed that the proposed HY ESS-DFIG could improve the power quality by reducing the THD. SC-ESS (2.77%), B-ESS (4.4%), and B-SC ESS (4.43%) are the best choices to enhance power quality in the system, as shown in Figure 8.   Table 5. Cost of 1.5 MW Wind Turbine [9].  Table 5 shows that the average THD of PMSGs is bigger than HY ESS-PMSG. These results indicate that an ESS which reduces THD (%) is to be improved. SC-E-B ESS is the most effective option in reducing THD for the voltage (3.71%), current (1.82%), and active power (1.42%), as shown in Figures 9 and 10.

In the HYESS-PMSG
Case II-Financial analysis of the DFIG with two ESSs in terms of the payback time ($) Wind energy is free. However, financial analysis can be used to assess wind project investments such as how to screen cost and the benefits of the project. Regarding the financial analysis, the payback time depends on the amount of time to evaluate the performance of different ESSs such as super capacitor ESS (SCESS), battery ESS (BESS). Payback time is the time in which investors can recover all their investment. It depends on several factors such as O&M, inflation, and depreciation. It will show whether a project is worth establishing the investment to escape the risk. Shorter payback time indicates a more economical project. A 1.5 MW wind generator, which sells the electricity generated to utilities, can serve as an example. There are several manufacturers who provide large capacity DFIG. Generally, the overnight   [40,41]. The discount rate is also assumed as 9%. The capital cost of a wind generator is provided in Table 5.
Payback time in terms of accumulated cash flow could be expressed as ( 15.76 year as shown in Figure 11. If a hybrid ESS (B-SC) ESS is chosen, the payback time will be between 3.47 and 15.76 years, according to the proportion of BESS and SCESS given in this system.

Conclusion
This section analyzes the ability of various HY ESSs based on VSWTs to improve power quality in terms of THD under the same situations: three-phase voltage sources used at 20 kV, 60 Hz, 0.04 H, and 2.5 Ω. From the previous results, HYESS-VSWT has been verified to increase the power quality by reducing THD. SC-ESS (2.77%), B-ESS (4.4%), and B-SC ESS (4.43%) of the DFIG's case would be a better option to improve power quality for active power, voltage, and current, respectively, compared to other cases. In the case of the PMSGs, SC-E-B ESS indicated as the best option to reduce THD for voltage (3.71%), current (1.82%), and active power (1.42%). Compared to average active power THD of a DFIG as 3.61% and PMSG as 14.42% without ESS, a THD (%) for PMSG has lower power quality difference output as 10.81% compared to THD (%) of DFIG. This might be a converter configuration issue because  DFIGs are partially controlled by the back-to-back converter such as RSC and GSC, while PMSGs are directly connected through the back-to-back converter to the grid, which make 100% power rated. Regarding average THD, the PMSG-B E SC-ESS as 1.4% has the most outstanding output results compared to other options. Furthermore, the best option's values from the simulation results satisfy the IEEE Standard requirements, which should be less than 4% for current THD and 5% for voltage THD [30].
In addition, a DFIG with various ESSs is a financially attractive option if a chemical battery ESS is used. The payback time is acceptable, and it still has a benefit for the environment. If the new energy storage technology as a super capacitor is considered, the payback time right now is relatively long. However, if there is a technology breakthrough, the cost of a super capacitor will probably decrease and finally be financially attractive. Presently, a hybrid system will still be relatively affordable. This financial forecast helps achieve the high-power quality and reasonable payback time during the short period.