Techno-Economic and Environmental Impact Analysis of Large-Scale Wind Farms Integration in Weak Transmission Grid from Mid-Career Repowering Perspective

: Repowering a wind farm enhances its ability to generate electricity, allowing it to better utilize areas with high mean wind speeds. Pakistan’s present energy dilemma is a serious impediment to its economic development. The usage of a diesel generator as a dependable backup power source raises the cost of energy per kWh and increases environmental emissions. To minimize environmental emissions, grid-connected wind farms enhance the percentage of wind energy in the electricity system. These wind generators’ effects, on the other hand, are augmented by the absorption of greater quantities of reactive electricity from the grid. According to respective grid codes, integration of commercial onshore Large-Scale Wind Farms (LSWF) into a national grid is fraught with technical problems and inter-farm wake effects, which primarily ensure power quality while degrading overall system operation and limiting the optimal use of attainable wind resources. The goal of this study is to examine and estimate the techno-economic inﬂuence of large-scale wind farms linked to poor transmission systems in Pakistan, contemplating the inter-farm wake effect and reactive power diminution and compensating using a range of voltage-ampere reactive (VAR) devices. This study presents a partial repowering technique to address active power deﬁcits produced by the wake effect by raising hub height by 20 m, which contributed to recovering the active power deﬁcit to 48% and so reduced the effects of upstream wind farms. Simulations were conducted for several scenarios on an actual test system modeled in MATLAB for comparative study using capacitor banks and different ﬂexible alternating current transmission system (FACTS) devices. Using the SAM (System Advisor Model) and RETscreen, a complete technical, economic, and environmental study was done based on energy fed into the grid, payback time, net present value (NPV), and greenhouse gases (GHG) emission reduction. The studies suggest that the uniﬁed power ﬂow controller (UPFC) is the optimum compensating device via comparison analysis as it improved the power handling capabilities of the power system. Our best-case scenario includes UPFC with hub height augmentation, demonstrating that it is technically, ﬁscally, and environmentally viable. Over the course of its lifespan, the planned system has the potential to save 1,011,957 tCO 2 , resulting in a greener environment. When the energy generated annually by a current wake-affected system is compared to our best-recommended scenario, a recovered shortfall of 4.851% is seen, with improved system stability. This modest investment in repowering boosts energy production due to wake effects, resulting in increased NPV, revenue, and fewer CO 2 footprints. test systems actual characteristics given by the local electric company, used construct a genuine Pakistani power system. of this study analyze of


Introduction
Energy is a very important factor in ensuring economic and social growth. Resources and the environment are becoming more significant constraints on energy generation as fossil fuels deplete and the threat of climate change intensifies. The major problems that the globe faces today are environmental security, energy resource conservation, and sustainable energy production. Because of population growth and industrialization, power consumption is continually increasing [1,2]. The only solution to this catastrophe, to develop sustainable energy, is all over the world [3]. Wind energy has grown rapidly during the previous two decades, with a global total installed wind power capacity surpassing 733 GW in 2021 [4]. Because of the unpredictable and stochastic nature of wind, the vast quantity of wind power generation poses significant problems to the steady functioning of power networks. Many hurdles face the integration of LSWF into national transmission systems in many countries, including technical, economic, and environmental considerations [5,6].
In 1978, Denmark erected the first onshore multi-megawatt wind turbines [7], which were largely erected on farmland, allowing for cost-effective joint-use projects near the sea to take benefit of higher coastal wind profiles [8]. Offshore wind has the potential to be a significant technology because of its greater capacity factors [9]. Recent advancements in offshore foundations have enabled the deployment of wind turbines in deeper seas, increasing the worldwide offshore wind potential [10]. At the end of 2019, Germany had the most onshore wind capacity in Europe, with 54 GW, while the UK had the most offshore wind capacity, with 11 GW, followed by Germany (7.6 GW) at the end of 2020 [11,12]. After years of study and development, emerging nations have devised novel solutions and improved their grid codes and infrastructure to account for wind risks [13]. Developing nations, on the other hand, continue to suffer from insufficient grid infrastructure, particularly in terms of LSWF integration.
Resource integration, power quality (PQ) as per grid codes, and reactive power correction, as well as forecasting and the wake effect, have all been investigated as technical, economic, and environmental elements of wind farms (WFs) integration. Such improvements in power would not only improve the financial payback on the development of wind farms but would also improve the competitive pricing of wind power usage [14]. Repowering a wind farm entails either changing the existing turbines with brand new and more competent ones towards the end of their mean life cycle or installing new, more efficient (20 years) turbines [15] or the midlife restoration of current degraded turbines [16] to enhance their energy-generating capacity. Changing the heights of hub-impacted turbines might thus be a potential choice for improving energy production [17]. Inter-farm wake impact has been studied from a variety of angles, including the distance between WTs and the decrease in wind speed caused by upstream WTs, the proportion of generation deficiency, as well as the overall efficiency of the LSWF [18][19][20][21]. Additionally, it is confirmed that a rise in overall power production and a reduction in turbulence can be achieved with different hub heights.
To maintain voltage levels under acceptable ranges, severe wind speed changes were resolved in [22], utilizing active (P) and reactive (Q) power-coordinated controllers established on multi-scale model predictive control theory. Wake effect and wind intermittency amplify PQ concerns in LSWF, resulting in variable output power that affects voltage stability [23,24], frequency stability [24], harmonics [23], fault ride-through [25], and power factor [26]. The incorporation of the LSWF into transmission grids raises the risk of Q compensation issues, which have been studied in a variety of situations for a variety of applications, most notably in FACTS. Reactive power compensators such as capacitor banks and reactor banks are often employed to maintain voltage and PF; however, they emit high-frequency harmonics and severe switching transients [27]. SVCs provide for real-time caused a 2% drop in GDP. The country's power consumption is 18,000 MW, whereas the supply is 11,500 MW. The demand and supply disparity is estimated to be approximately 6500 MW [64]. The purpose of this article is to assess the efficacy of these approaches for suggested WFs in Pakistan in meeting the Grid Codes standards specified by NEPRA. This paper involves creating test systems in MATLAB/Simulink for a 155.4 MW wind farm. The actual characteristics given by the local electric company, Hyderabad Electric Supply Company (HESCO), are used to construct a genuine Pakistani power system. The primary objective of this study is to analyze the technological, economic, and environmental implications of a projected 50 MW WFs on the external grid of Pakistan. The study includes the midlife refurbishment of existing degraded turbines. Furthermore, the comparative research in [21] was restricted to power quality and compensation concerns using FACTS devices (i.e., capacitor bank, STATCOM, SVC, SSSC, and UPFC). These FACTS devices will need to be evaluated further in terms of their technological, economic, and environmental applications in LSWF in various circumstances.
Due to an uncoordinated design, previous onshore LSWF grid integration studies failed to account for the collective implications of inter-and intra-farm wake effects. Wake effects, wind intermittency, PQ, and Q compensation are all addressed in this study, which gives a technical and cost-effective guideline for FACTS devices. Capacitor banks and FACTS devices such as SVC, STATCOM, SSSC, and UPFC were used with and without renovating HUB height in the second part of their service life to increase power system stability and PQ through improved reactive power regulation with a relative efficiency evaluation. This study considers the wake effect, which occurs when wind speeds drop as it passes from one wind farm to another owing to the energy extracted from the wind. As a result of this occurrence, the energy production of subsequent wind farms drops, simulating a real-time scenario. This study looks at the reduction in carbon footprints after wind turbines have been refurbished and reach the second half of their operational life. The core contributions of the proposed paper are as follows: 1.
LSWF integration in a deficient transmission grid, using Pakistan as a case study.

2.
Performance and cost-benefit analysis of various FACTS devices as a problemsolving solution.

3.
Scenario-based approach for dealing with PQ and Q compensation by appropriate and cost-effective FACTS devices as well as recovering power shortfalls by raising hub height with and without FACTS devices.

4.
A complete techno-economic impact evaluation of LSWF integration in terms of the environment.

Energy Analysis
To assess the available wind sources on the location, examining the density of wind energy helps determine how much energy is accessible in the area to transform wind energy into electricity. The formula may be used to calculate the wind energy per unit area (A) in W/m 2 .
The wind power can be computed using the Weibull probability density function [65].
where ρ is the air density at sea level at 15 • C and 1.225 kg/m 3 atmospheric pressure, f(v) is the probability of wind speed, v is the wind velocity, and k is the shape and scale parameters. Γ is the gamma function.
The following formula is used to get the adjusted monthly air density (kg/m 3 ): where T is the monthly average temperature of air in (K • ), P is the monthly average pressure in Pascals, and R d represents dry air gas constant. The density of the air will decrease as height and temperature increase [66]. By using (2) and (3) the wind energy density E for a given time T may be computed using (4).
The following formula may be used to assess the annual generation of a wind power system: P (x) is the probability of a wind speed of (m/s) occurring each year, as defined by where k denotes the form factor defined by local meteorological circumstances, and c denotes the scale factor defined by wind speed. Temperature, pressure, and other losses are considered when calculating the restructured yearly generation E s (kWh).
where P 1 is the air pressure (kPa) of the wind turbine at the location, P 0 is the standard atmospheric pressure (101.3 kPa), T is the temperature (K) of the wind turbine at the location, and T 0 is the standard absolute temperature (288.1 K), λ c represents the array loss factor (valued at 3%), λ S represents the airfoil loss factor (valued at 2%), λ m represents the miscellaneous loss factor (valued at 2%), and λ d represents the downtime loss factor (valued at 2%).

Economic Analysis
The financial analysis presented in this article is concerned with the evaluation of a renewable energy installation project regarding budgeting and financial factors that are used to establish the project's investment suitability as shown in Figure 1. Financial analysis is performed using SAM software in this study. The SAM is a techno-economic software model that helps people in the renewable energy industry make better decisions. C n represents the cash flow for year n, the difference between the cash intake in year n (C in,n ) and the cash outflow in year n. (C out,n ) is used to calculate C n , according to (8), (9), and (10), and can be used to determine these cash flows.
where n is the debt term in years and r i represents inflation rate. C O&M also indicates the annual cost of operation and maintenance. The monthly expenses, or system credits, are denoted by C per , whereas the entire starting cost is denoted by C. f d is the debt ratio, while i d is the annual debt interest rate. C ener is the annual income from energy savings.
where is the debt term in years and represents inflation rate. & also indicates the annual cost of operation and maintenance. The monthly expenses, or system credits, are denoted by , whereas the entire starting cost is denoted by . is the debt ratio, while is the annual debt interest rate. is the annual income from energy savings.

Simple Payback Period-SPP
The SPP is the amount of time required for the cash flow to equal the entire venture capital: where is the capital cost of the project and ( ) is the income cost and ( & ) is the operational anⅆ maintenance cost.

Net Present Value-NPV
The NPV of a project is the difference between the sum of discounted cash inflows and outflows. It is calculated by discounting all cash flows, as shown in the equation below.
where is the discount rate of the project, and ̂ is the after-tax cash flow in number of years.

Internal Rate of Return-IRR
The IRR is the discount rate that causes the project's NPV to be zero and is calculated by

Simple Payback Period-SPP
The SPP is the amount of time required for the cash flow to equal the entire venture capital: where C is the capital cost of the project C income and (C ener ) is the income cost and (C O&M ) is the operational and maintenance cost.

Net Present Value-NPV
The NPV of a project is the difference between the sum of discounted cash inflows and outflows. It is calculated by discounting all cash flows, as shown in the equation below.
where r is the discount rate of the project, andĈ n is the after-tax cash flow in n number of years.

Internal Rate of Return-IRR
The IRR is the discount rate that causes the project's NPV to be zero and is calculated by where C n are the cashflows. The IRR, also known as the economic rate of return, is a rate of return that is used in capital planning to assess and analyze the profitability of investments. It is also called the "discounted cash flow rate of return" or the rate of return. The IRR is also known as the "effective interest rate" in the context of savings and loans. IRR estimates are often used to assess the viability of investments and projects. The higher the IRR of a project, the more appropriate it is to carry it through [67].

Capacitor Bank and FACTS Devices Cost Functions
The cost of installing FACTS devices has been calculated mathematically and is provided by Minimize where IC is the ideal FACTS device installation cost in USD, and C is the cost of FACTS device installation in USD/KVAR. Installation costs for SVC, capacitor bank, STATCOM, SSSC, and UPFC are derived from Siemens' database and provided in [68][69][70]. The installation costs of various FACTS devices are given by C SVC = 553 × 0.0003S 2 + 0.3051S + 127.38 (15) C Capacitor bank = 0.0004S 2 + 11S + 194.69 (16) C STATCOM = 553 × 0.0008S 2 + 0.155S + 120 (17) C UPFC = 0.0003S 2 + 0.2691S + 188.22 (19) where S is the operating range of the FACTS devices in MVAR.
where Q 2 denotes the reactive power flow in the line after the FACTS device is installed in MVAR, and Q 1 denotes the reactive power flow in the line before the FACTS device is installed in MVAR

HUB Height Cost Function
As mentioned in [71], the cost of wind turbines accounts for around 75% of the initial capital cost (ICC) of wind farms. Towers and foundations account for around a fourth of this total. As a result, the tower and its associated foundation construction account for around 19% of the total ICC. To adapt the ICC for various tower heights, h, a base-case tower height of 80 m, is considered; a 2% increase in tower height is expected to result in a 1% rise in tower and foundation costs, owing to the increased demand for materials. As a result, wind turbine ICC may be represented as follows: where ICC 80m is the initial capital cost of an 80 m height wind farm. h is the height to which it is heightened.

Environmental Analysis
For environmental analysis in this research, RETScreen software is used. RETScreen is a decision-making tool that assists with a variety of analyses and evaluations of electricity generation and environmental effects. The model computes the net annual average decrease in GHG emissions in tons of CO 2 per year (tCO 2 /year). RETScreen generates a GHG emission profile for a Base Case System (Baseline) and a Proposed Case System. The GHG emission reduction is calculated by combining the difference in the GHG emission factors with additional data generated by RETScreen. The reduction ∆GHG is calculated as follows: e base is the base case GHG emission factor, while e prop is the proposed case GHG emission factor. E prop is the yearly electricity produced in the suggested scenario, and λ Prop is the proportion of power wasted in transmission and distribution (T&D) in the proposed case [72].

LSWF Test Setup
Jhimpir wind energy park, located in Sindh province, is Pakistan's largest wind power producing location, with more than 18 wind turbine farms constructed and a capacity of more than 1 GW. The purpose of this study is to integrate three wind power plants into the Nooriabad grid and examine the effects of LSWF integration on transmission networks. As illustrated in Figure 2a, an actual Nooriabad grid running at 132 kV was created in SIMULINK/MATLAB ( Figure 3) with three wind power plants (WPP) integrated into it, including the Fauji Fertilizer Company Energy Limited wind power plant (FFCEL), the Zorlu Enerji (ZE) Pakistan WPP, and the Three Gorges First (TGF) WPP. The FFCEL is a test case and is located downstream, whereas ZE and TGF are located upstream as shown in Figure 4. The LSWF with its respective technical specifications is shown in Table 1. The purpose of this study is to evaluate the effects of the inter-farm wake effect, which was causing active power production to deteriorate. The active power shortfall was caused by the wind slowing down as it traveled through upstream and downstream wind farms. Figure 2b depicts the FFCEL wind turbines, which are numbered according to their operating configuration. The farm's turbines 16 to 31 have a power deficiency, as detailed in [73].
FFCEL began power production in 2013, having a total capacity of 49.5 MW. The project cost was estimated by FFCEL to be USD 133.557 million. The annual O&M expenditure is USD 3 million. FFC's debt-equity ratio is 80:20 (USD 106 million and USD 28 million, respectively). The debt has a ten-year duration, while the equity has a six-year repayment period. According to FFC, at an annual net plant capacity factor of 33.11%, the total monthly benchmark energy is 143.559 GWh [74]. The project has a 20-year lifespan. For Q compensation, SVC devices were fitted. NEPRA has approved a levelized tariff of 16 US cents/kWh. as follows: ⅇ is the base case GHG emission factor, while ⅇ is the proposed case GHG em sion factor.
is the yearly electricity produced in the suggested scenario, and the proportion of power wasted in transmission and distribution (T&D) in the propos case [72].

LSWF Test Setup
Jhimpir wind energy park, located in Sindh province, is Pakistan's largest wi power producing location, with more than 18 wind turbine farms constructed and a pacity of more than 1 GW. The purpose of this study is to integrate three wind pow plants into the Nooriabad grid and examine the effects of LSWF integration on transm sion networks. As illustrated in Figure 2a, an actual Nooriabad grid running at 132 was created in SIMULINK/MATLAB ( Figure 3) with three wind power plants (WPP) tegrated into it, including the Fauji Fertilizer Company Energy Limited wind power pl (FFCEL), the Zorlu Enerji (ZE) Pakistan WPP, and the Three Gorges First (TGF) WPP. T FFCEL is a test case and is located downstream, whereas ZE and TGF are located upstre as shown in Figure 4. The LSWF with its respective technical specifications is shown Table 1. The purpose of this study is to evaluate the effects of the inter-farm wake effe which was causing active power production to deteriorate. The active power shortfall w caused by the wind slowing down as it traveled through upstream and downstream wi farms. Figure 2b depicts the FFCEL wind turbines, which are numbered according to th operating configuration. The farm's turbines 16 to 31 have a power deficiency, as detai in [73].          The inflation rate is the percentage rise or reduction in prices over a certain time. The rate of inflation can influence project feasibility since it directly affects the payback period, the cost of energy generation, and the net present value of the system. Pakistan now has an inflation rate of approximately 12% [75], which may rise or fall in the future. The interest rate in Pakistan for renewable energy projects is fixed at 6% [76]. Inflation and interest rate are assumed at 12% and 6%, respectively, for this study. The average yearly depreciation of the Pakistani rupee versus the US dollar during the last two decades has been around 5%. Assuming the current trend continues, this aspect is also considered in this analysis as it is anticipated.
The LSWF linked with the transmission network (TN) is vulnerable to a variety of difficulties, including wind's intermittent nature, asynchronous generators (i.e., DFIG), and various stability (i.e., mostly voltage) and PQ concerns. Furthermore, Q compensation difficulties are evident in LSWF and have a direct influence on the entire system's PQ. Without any compensation, the total Q absorption of FFCEL from PS is 2.574 MVAR [21].

Grid Codes for Power Quality
The NEPRA was established to bring transparent and sensible economic control to Pakistan's electric power industry, based on solid commercial principles. The NEPRA regulates connections to Pakistan's national power system through its comprehensive Grid Codes. Non-compliance with any provisions of this grid code by any code participant is considered a breach of the grid code and shall be subject to penalties by NEPRA fees and fines regulations [77][78][79]. The grid codes of Pakistan's NEPRA are [80] summarized in Table 2. Table 2. Technical details about test system under consideration (consisting of three WFs) [73,74].

Reactive Power Control
At PCC, the wind farm should manage reactive power to keep the power factor within the required range (0.95 lagging to 0.95 leading over the whole range of plant operation).

Harmonics
Wind turbines with power converters produce harmonics. Voltage and current harmonics up to 50 times the essential power frequency may be defined according to IEC61400-21. According to widely accepted standards, the PCC's total harmonic distortion (THD) from these harmonics must be less than 5%, and there ought to be no resonance at odd-frequency harmonics.
Frequency For the provided system frequency range, the wind farm must be able to operate constantly within 49.5 to 50.5 Hz

Resonance
Odd harmonics are harmful to the power system; hence, there should be no odd harmonics.

Voltage Control
The WF should be able to produce available power while maintaining a tolerable voltage at the grid-connection point (PCC) (75% of nominal voltage).

Methodology
The proposed methodology seeks to fill in the gaps in prior research on onshore LSWF grid integration studies. In recent research [21], a noteworthy attempt was made to handle PQ and Q compensation difficulties with capacitor banks and different (FACTS) devices for a specific WF. However, the research did not consider the LSWF's technoeconomic analysis or environmental effect. The objective of the comparative performance evaluation is to address LSWF repowering owing to wake effects as well as a cost-benefit analysis of PQ improving system stability using capacitor banks and FACTS devices such as SVC, STATCOM, SSSC, and UPFC. On a technological level, the approach is expected to give a beneficial midterm solution for expensive long-term TN reinforcements. The suggested technique is depicted in Figure 5 is a flow chart with three cases and with respective scenarios.
handle PQ and Q compensation difficulties with capacitor banks and different (FACTS) devices for a specific WF. However, the research did not consider the LSWF's techno-economic analysis or environmental effect. The objective of the comparative performance evaluation is to address LSWF repowering owing to wake effects as well as a cost-benefit analysis of PQ improving system stability using capacitor banks and FACTS devices such as SVC, STATCOM, SSSC, and UPFC. On a technological level, the approach is expected to give a beneficial midterm solution for expensive long-term TN reinforcements. The suggested technique is depicted in Figure 5 is a flow chart with three cases and with respective scenarios. The test case (FFCEL) in this study was initiated in 2013 and has a project life of 20 years. A project's first half-life is likely to finish in 2023. In this work, a detailed technoeconomic analysis of the first half-life is performed to evaluate the economic losses caused by a deficiency in PQ due to the wake effect. After the refurbishment due to wake, a techno-economic study of the second half-life is performed for a more comprehensive evaluation designed to improve power quality and reactive power compensation difficul- The test case (FFCEL) in this study was initiated in 2013 and has a project life of 20 years. A project's first half-life is likely to finish in 2023. In this work, a detailed technoeconomic analysis of the first half-life is performed to evaluate the economic losses caused by a deficiency in PQ due to the wake effect. After the refurbishment due to wake, a technoeconomic study of the second half-life is performed for a more comprehensive evaluation designed to improve power quality and reactive power compensation difficulties related to LSWF integration in poor transmission networks. The capacity of the compensating device is set to 30 MVAR for the MATLAB simulation and cost assessment, as stated in [80]. The SAM is utilized in this research to examine the economic aspects. The SAM needed data on wind speed, temperature, and the atmospheric pressure of the precise site where the WF is placed for a complete analysis. These data were gathered from a meteorological station in Jhampir City.

Case-1: Base Case Scenarios Assessment
Case-1 comprised scenarios with and without wake effects. The created base scenario (Case-1) was simulated to examine the impact of LSWF integration on TN across key PQ measures. Case-1 with scenario 2 did not involve any Q compensation device integrated into the system. Scenario 1: Techno-economic impact analysis of the ideal base without wake effects and seasonal fluctuations. This scenario discusses the documentation FFCEL has submitted to NEPRA. Scenario 2: Techno-economic impact analysis of the base scenario with wake effects and no compensation device. This scenario discusses the penalty incurred for failing to adhere to grid codes.

Case-2: VAR Device-Based Scenario Assessment
Case-2 assesses the Q/VAR compensation device assessment and is comprised of five scenarios, as follows: Scenario 3: Techno-economic impact analysis considering SVC integration with interfarm wake effects. This scenario discusses SVCs installed throughout the duration of the plant's useful life (20 years).
Scenario 4: Techno-economic impact analysis considering capacitor bank integration with inter-farm wake effects. This scenario discusses SVCs installed for the first 10 years, and a capacitor bank is replaced beyond the half-life.
Scenario 5: Techno-economic impact analysis considering STATCOM integration with inter-farm wake effects. This scenario discusses SVCs installed for the first 10 years, and a STATCOM is replaced beyond the half-life.
Scenario 6: Techno-economic impact analysis considering SSSC integration with interfarm wake effects. This scenario discusses SVCs installed for the first 10 years, and an SSSC is replaced beyond the half-life.
Scenario 7: Techno-economic impact analysis considering UPFC integration with inter-farm wake effects. This scenario discusses SVCs installed for the first 10 years, and a UPFC is replaced beyond the half-life.

Case-3: VAR Devices and Heightening the Hubs-Based Scenario Assessment
Case-3 assesses the Q/VAR compensation device assessment with and increasing the height of the HUB and is comprised of five scenarios, as follows: Scenario 8: Techno-economic impact analysis considering SVC integration with the heightening effects of the hub. This scenario discusses the SVCs installed throughout the duration of the plant's useful life (20 years) and increasing the height of the HUB beyond the half-life.
Scenario 9: Techno-economic impact analysis considering capacitor bank integration with the heightening effects of the hub. This scenario discusses the SVCs installed for the first 10 years, a capacitor bank being replaced, and increasing the height of the HUB beyond the half-life.
Scenario 10: Techno-economic impact analysis considering STATCOM integration with the heightening effects of the hub. This scenario discusses the SVCs installed for the first 10 years, a STATCOM being replaced, and increasing the height of the HUB beyond the half-life.
Scenario 11: Techno-economic impact analysis considering SSSC integration with the heightening effects of the hub. This scenario discusses the SVCs installed for the first 10 years, an SSSC being replaced, and increasing the height of the HUB beyond the half-life.
Scenario 12: Techno-economic impact analysis considering UPFC integration with the heightening effects of the hub. This scenario discusses the SVCs installed for the first 10 years, a UPFC being replaced, and increasing the height of the HUB beyond the half-life.

Environmental Analysis
The environmental analysis considers all scenarios to determine the most efficient scenario in terms of environmental and GHG emission reduction. This scenario does not consider the wake effect. This instance is subjected to a technoeconomic examination of the determination given to NEPRA to establish a baseline for comparison with the remaining possibilities in this research. FFCEL has acquired 1.5 MW Nordex S77 wind turbines with hub heights of 80 m for their project. Thirty-three of these turbines add up to a total plant capacity of 49.5 MW. The projected energy output is 143.559 GWh with a capacity factor of 33.11%. The local bank's loan is USD 106 million with a ten-year term, and the equity from the entire cost of the project is USD 28 million with a six-year term. The O&M cost is USD 3 million/annum. To compensate for Q, the SCV device has been placed by FFCEL. The payback period for this scenario is calculated to be 5.4 years. The SPP on equity is 6.259 years, which is approximate to the proposed determination. The IRR calculated is 14.45%, and the NPV at the end of the project life is calculated as USD 209,996,976. This scenario's total cash flow is USD 907 million, as shown in Figure 6a.

Environmental Analysis
The environmental analysis considers all scenarios to determine the most efficient scenario in terms of environmental and GHG emission reduction. This scenario does not consider the wake effect. This instance is subjected to a technoeconomic examination of the determination given to NEPRA to establish a baseline for comparison with the remaining possibilities in this research. FFCEL has acquired 1.5 MW Nordex S77 wind turbines with hub heights of 80 m for their project. Thirty-three of these turbines add up to a total plant capacity of 49.5 MW. The projected energy output is 143.559 GWh with a capacity factor of 33.11%. The local bank's loan is USD 106 million with a ten-year term, and the equity from the entire cost of the project is USD 28 million with a six-year term. The O&M cost is USD 3 million/annum. To compensate for Q, the SCV device has been placed by FFCEL. The payback period for this scenario is calculated to be 5.4 years. The SPP on equity is 6.259 years, which is approximate to the proposed determination. The IRR calculated is 14.45%, and the NPV at the end of the project life is calculated as USD 209,996,976. This scenario's total cash flow is USD 907 million, as shown in Figure 6a.  This scenario considers the wake effects with no compensation devices installed and is compared with scenario 1. Due to wake, the power decreases from 49.50 to 40.45 MW. The voltages (V) at PCC are noted to be 0.9704 pu. The PF retrieve is 0.959, and the Q absorption seems to be 2.748 MVAR. A penalty will be imposed for breaches of the grid codes. The amount of penalty considered in this study is 3% of the revenue earned, according to [78]. For this case, the payback period is 7.2 years, and the SPP on equity is 11 years. This scenario shows up an unacceptable IRR of 7.76%, with an NPV at the end of the project life computed as USD 60,637,276. The net cash flows are USD 584,815,23, as shown in Figure 6b. This scenario replicates the current state of the wind farm (FFCEL), including wake effects and the SCV employed as a compensating mechanism for a complete life of wind farm, and compares the results to scenario 1. The SVC impact appears to be that we begin noting supplying Q of 23.77 MVAR. At PCC, the voltage computed is 1.028 pu and the PF noted is 0.999. The payback period is increased due to the wake effects and completed in 6.5 years, and SPP on equity is also extended to 9.81 years. The project's NPV at the end of its life is USD 134,946,432. Net cash flows total USD 677,379,724, as shown in Figure 7a, with an IRR of 10.413%. 7.1.2. Case-1, Scenario 2: Without any Compensation Device (Penalty Imposed for Failure to Adhere to Grid Codes) This scenario considers the wake effects with no compensation devices installed and is compared with scenario 1. Due to wake, the power decreases from 49.50 to 40.45 MW. The voltages (V) at PCC are noted to be 0.9704 pu. The PF retrieve is 0.959, and the Q absorption seems to be 2.748 MVAR. A penalty will be imposed for breaches of the grid codes. The amount of penalty considered in this study is 3% of the revenue earned, according to [78]. For this case, the payback period is 7.2 years, and the SPP on equity is 11 years. This scenario shows up an unacceptable IRR of 7.76%, with an NPV at the end of the project life computed as USD 60,637,276. The net cash flows are USD 584,815,23, as shown in Figure 6b.

Case-2, Scenario 3: SVC Installed throughout the Duration of Its Useful Life (20 Years)
This scenario replicates the current state of the wind farm (FFCEL), including wake effects and the SCV employed as a compensating mechanism for a complete life of wind farm, and compares the results to scenario 1. The SVC impact appears to be that we begin noting supplying Q of 23.77 MVAR. At PCC, the voltage computed is 1.028 pu and the PF noted is 0.999. The payback period is increased due to the wake effects and completed in 6.5 years, and SPP on equity is also extended to 9.81 years. The project's NPV at the end of its life is USD 134,946,432. Net cash flows total USD 677,379,724, as shown in Figure 7a, with an IRR of 10.413%.  Figure 7d. Because of its network series link, SSSC seems to have a minimal P deficit, implying that it is responsible for the highest P and Q deficit during the wake, making it unsuitable for this situation. 7.2.5. Case-2, Scenario 7: SVC Is Placed for the First 10 Years, and a UPFC Bank Is Replaced beyond the Half-Life In this scenario, an SVC is placed for the first half of the farm's life, and then a UPFC is deployed throughout the remaining farm life. P seems to grow by 1.6% following the UPFC deployment, from 40.37 to 41.01 MW. Q changes from 23.77 to 3.888 MVAR. The voltage is set to 1.002 pu, which is extremely near to the nominal value of 1 pu. In comparison to other compensating devices, it has the best reaction in terms of maintaining the voltage at PCC at such a close level to its nominal value. The PF is 0.962. In comparison to the current condition (scenario 3), a significant change in NPV appears towards the end of 20 years, i.e.,  As the current state is facing 32% of wake, according to [21], by raising the HUB height from 80 to 100 m, the wake is reduced to 25%. After the heightening, the power appears to increase by 5.   Figure 8e. The NPV calculated is USD 144,419,296, with an IRR of 10.383%. In our research, the UPFC performs better in terms of improving PQ indicators and PS parameters under the influence of wake; from an investment and economic perspective, the UPFC performs well in comparison to other compensation devices. The revenue of generation from LSWFs in all cases across the life cycle cost is separately shown in Figure A1 in Appendix A.

CO 2 Reduction and Environmental Assessment
All scenarios are examined in this assessment for the best possible environmental scenario. In this research, environmental analysis is performed using RET screen software. Scenario 1 is used as a baseline against which subsequent scenarios are compared with the suggested scenario; the FFCEL wind farm may assist in eliminating up to 60,455.6 tCO 2 yearly. However, the energy imbalance caused by the wake did not allow for this CO 2 decrease. Scenario 3 corresponds to the current state of the FFCEL wind farm, which has a deficit of 22.55%, or 11.44 tCO 2 yearly. This shortfall is offset in some way by the renovation of wind farms.

Comparison between Proposed Cases with a Base Case
When DFIGs were introduced, P increased, as did Q supply through the turbines. The P and Q outputs increased in proportion to the wind speed, as shown in Table 3. Previous research in [21] provided a method for reducing the effect of wake by raising the hub height of WTs. During wakes, compensation devices play an essential role in guaranteeing the supply of Q to wind farms, leading to the strengthening and stabilization of PS. Every Q compensating device has its own set of advantages and disadvantages. By raising the hub height from 80 to 100 m, a hindrance from upstream wind turbines can be eliminated, and more wind potential is accessible to wind turbines for greater P extraction. After extending the hub height to 20 m, Table 4 may be used to compare PS parameters. According to the case study [21], the considered wake is 32% and may be decreased to 25% if a height of 100 m is attained. The wind speed was assumed to remain constant at 15 m/s in the referenced case study [21]; therefore, we used that value for our suggested base case scenario. We examined an average wind speed of 11 m/s by raising the height and a current instance with a wind speed of 10 m/s. To get the greatest feasible combination solution, these three wind scenarios are evaluated using a capacitor bank and numerous facts devices. In our research study, we used this idea for P and Q repowering. As shown in Figure 9c, capacitor banks and SVCs exhibit the highest reactive power supply due to the inflexibility of these devices, which provide the maximum of their values, rendering the system susceptible to swells and severe transients. Figure 10c shows that the capacitor bank generates harmonic resonance and does not offer flexibility in its voltage-maintenance function, which may occasionally exacerbate the existing over-and under-voltage conditions. STATCOM offers better dampening and higher power quality than the SVC. The SSSC is good at maintaining power flow. Figure 9a shows the SVC has the greatest P deficit and the lowest is from the UPFC. Figure 9c shows STATCOM had the largest Q deficit while the UPFC had the lowest. Figure 10c shows that the UPFC keeps the voltage and frequency as close to the nominal levels as possible. Figure 10b reveals that the UPFC offers maximum power handling capabilities by changing the network's impedance as little as possible. The UPFC also maintains the power factor within acceptable limits, as shown in Figure 10a. A decrease in P and Q deficits may be found by comparing Table 3. CO 2 reduction comparison of different cases can be shown in Figure 9h. The carbon footprints on different wind speeds with different compensation devices are shown in Table 5.
The P and Q deficit by raising hub height from 80 to 100 m may be seen in Figure 9a,c. The improvement in energy can be seen in Figure 9b. When we compare the revenue at the end of the wind farm's life, as shown in Figure 9g, investing in reducing wake is advantageous for such projects with fast SPP. The UPFC is a device that provides reactive power assistance to the PS to strengthen and stabilize it as well as to maintain PS parameters in the most cost-effective manner possible in comparison to other compensating devices with a wake perspective, as shown in Table 6. We deemed UPFC the best compensating device based on these criteria. Sustainability 2022, 14, x FOR PEER REVIEW 20 of 32

Comparative Analysis of Result via Proposed Methodology
In the proposed methodology, the refurbishment after the half-life is discussed because, currently, the wind farm has covered its almost half-life as the life of FFCEL is 20 years. If the comparison is made among all proposed cases, we find that scenario 12 is probably the best. The investment after half-life for all scenarios is shown in Table 7. The payback period of scenarios 1, 2, and 3 is shown in Figure 11a. From Table 8, it seems that the payback period of the proposed cased is 5.4 years without considering wake. The payback period of the scenario in which wake is considered and without any compensation device is 7.2 years, and the payback period of the scenario considering wake and compensation device is 6.5 years.
The power deficit is shown in Figure 11b. Table 9 shows the power and energy deficit for the first and second half-life of the wind farm life. The NPV and revenue at the end of farm life are shown in Figure 11c. Figure 11d shows the IRR comparison of all scenarios presented in this study. Table 9 shows that if we compare the NPV and net cash flows of all scenarios, the best result will be obtained by scenario 12 in which investment is made for the UPFC to be installed with the increase in height after half-life.

Comparative Analysis of Result via Proposed Methodology
In the proposed methodology, the refurbishment after the half-life is discussed because, currently, the wind farm has covered its almost half-life as the life of FFCEL is 20 years. If the comparison is made among all proposed cases, we find that scenario 12 is probably the best. The investment after half-life for all scenarios is shown in Table 7. The payback period of scenarios 1, 2, and 3 is shown in Figure 11a. From Table 8, it seems that the payback period of the proposed cased is 5.4 years without considering wake. The payback period of the scenario in which wake is considered and without any compensation device is 7.2 years, and the payback period of the scenario considering wake and compensation device is 6.5 years. The power deficit is shown in Figure 11b. Table 9 shows the power and energy deficit for the first and second half-life of the wind farm life. The NPV and revenue at the end of farm life are shown in Figure 11c. Figure 11d shows the IRR comparison of all scenarios presented in this study. Table 9 shows that if we compare the NPV and net cash flows of all scenarios, the best result will be obtained by scenario 12 in which investment is made for the UPFC to be installed with the increase in height after half-life.
Wind energy plays a significant part in reducing carbon footprints in the environment. Traditional power plants have long been a key contributor to climate change and acid rain due to high levels of energy consumption and greenhouse gas (GHG) emissions. For a clean and healthy ecosystem, GHG emissions must be appropriately removed from the atmosphere since they are the major cause of global warming, which affects millions of people worldwide. With an annual producing capacity of 143 GWh and a 20-year operation lifetime, the carbon emissions reduction attributable to the FFCEL wind farm over its entire life cycle is 1,209,112 tCO2. Due to energy shortages caused by the wake effect, conventional power plants are required, resulting in an 18.57% rise in carbon footprints, as seen in Table 10. The refurbishment made in this study helps to overcome these deficits. Figure 12 shows the detailed reduction in CO2 before and after the refurbishment of wind plants. Wind energy plays a significant part in reducing carbon footprints in the environment. Traditional power plants have long been a key contributor to climate change and acid rain due to high levels of energy consumption and greenhouse gas (GHG) emissions. For a clean and healthy ecosystem, GHG emissions must be appropriately removed from the atmosphere since they are the major cause of global warming, which affects millions of people worldwide. With an annual producing capacity of 143 GWh and a 20-year operation lifetime, the carbon emissions reduction attributable to the FFCEL wind farm over its entire life cycle is 1,209,112 tCO 2 . Due to energy shortages caused by the wake effect, conventional power plants are required, resulting in an 18.57% rise in carbon footprints, as seen in Table 10. The refurbishment made in this study helps to overcome these deficits. Figure 12 shows the detailed reduction in CO 2 before and after the refurbishment of wind plants.    Year (1)(2)(3)(4)(5)(6)(7)(8)(9)(10) Year (11)(12)(13)(14)(15)(16)(17)(18)(19)(20)

Conclusions
MATLAB and SAM software is used to perform a comparative study of the concerns linked to LSWFs in a larger context for Pakistan. A complete technical, economic, and environmental study has been determined based on the energy deficit created by the wake effect power pumped into the grid, which is evaluated to imitate real-time circumstances, payback period, and GHG emission reduction. The wake causes a considerable active power loss as well as enhanced Q absorption. For a maximum wake of 32%, FFCEL had a P deficit of 10.65 MW and a Q deficit of +0.174 MVAR owing to wake impact. Furthermore, confirmation of the simulation findings with real FFCEL to NEPRA determinations reveals that the actual data closely match the simulation results.
A specific case study was conducted in which ideal scenario 1 was compared to both Case-2 and Case-3 eventualities. We conducted a performance investigation with several compensation devices to determine the optimal compensation device for enhancing PQ and PS parameters with and without repowering the WF during the wake while raising the WT hub height from 80 to 100 m. A significant quantity of P repowering was found at the highest recuperation of deficiencies, owing to a wake of up to 48%. Our primary goal was to create a device that aids in Q repowering while maintaining V, F, Z, and PF at PCC at the closest nominal number. It is determined that among the compensating devices considered, the UPFC is the most cost-effective and optimal for Q repowering while retaining PS parameters at PCC. As a result, the UPFC kept V up to 1.002 pu, suppressing frequency transients in the 49.88-50.17 Hz region and preventing any resonance while keeping the power factor within acceptable limits.
According to our research, scenario 12 has the largest yearly generation after repowering and the shortest payback time, followed by scenarios 10 and 7. In contrast, scenario 6 has the worst performance, with the lowest yearly generation and the longest payback time after repowering. The study results demonstrate that the proposed scenarios for the renovation of wake-affected WFs linked to a weak grid are possible. Furthermore, repowering a planned system results in a large decrease in CO 2 emissions, which contributes to a greener environment. The research described in this paper will aid policymakers and financiers in finding appropriate repowering approaches for maximizing the return on investment in large-scale projects in Pakistan's industrial sector.