Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
Next Article in Journal
A Reinforcement Learning-Based Reverse Auction Enforcing Smart Pricing Policies towards B5G Offloading Strategies
Previous Article in Journal
A Faster and Lightweight Lane Detection Method in Complex Scenarios
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Simulation and Optimization of Off-Grid Hybrid Power Systems for Sustainable Rural Development

1
Department of Electrical & Computer Engineering, Faculty of Engineering and Applied Science, Memorial University of Newfoundland, 240 Prince Phillip Drive, St. John’s, NL A1B 3X5, Canada
2
Department of Electronics and Computer Science, Fatima Jinnah Women University, Old Presidency, Rawalpindi 46000, Pakistan
*
Author to whom correspondence should be addressed.
Electronics 2024, 13(13), 2487; https://doi.org/10.3390/electronics13132487
Submission received: 19 May 2024 / Revised: 12 June 2024 / Accepted: 18 June 2024 / Published: 25 June 2024
(This article belongs to the Special Issue Modeling and Design of Power Converters)

Abstract

:
This paper analyzes dynamic modeling for rural HPS to address GHG emissions’ environmental impact on floods and climate change. The aim is to integrate renewable energy sources, such as solar energy, with traditional generators to mitigate emissions and enhance energy access in rural communities in Pakistan. The system is designed using a DC-DC converter, MPPT, LCL filter, and a DC-AC inverter. Utilizing software tools like PVsyst 7.4 and HOMER Pro-3.18.1, the study evaluates system sizing, energy consumption patterns, and optimization strategies tailored to site-specific data. The expected results include a reliable, environmentally friendly hybrid power system capable of providing consistent electricity to rural areas. The analysis of a connected load of 137.48 kWh/d and a peak load of 33.54 kW demonstrates the system’s promise for reliable electricity with minimal environmental impact. The estimated capital cost of USD 102,310 and energy generation at USD 0.158 per unit underscores economic feasibility. Dynamic modeling and validation using HIL examine the system’s behavior in response to variations in solar irradiance and temperature, offering insights into operational efficiency and reliability. The study concludes that the hybrid power system is scalable for rural energy access, which is a practical solution achieving a 100% renewable energy fraction, significantly contributing to emission reduction and promoting sustainable energy practices.

1. Introduction

Energy is vital for enhancing human welfare, promoting economic advancement, and stimulating economic prosperity [1]. It is commonly recognized that energy is the benchmark for measuring economic growth and improving everyone’s living level [2]. In contemporary society, energy ranks alongside fundamental human needs such as food, clothing, and shelter. It exerts both positive and negative influences on humanity. From a utility perspective, energy facilitates the alleviation of arduous tasks by providing convenient access to larger quantities of affordable, safe, and clean energy sources [3]. Energy deficiency poses a significant challenge for many developing nations, stemming from issues like generation shortages, inefficient power transmission, and outdated distribution equipment. Consequently, affected countries resort to load shedding, a controlled measure of disconnecting the grid supply from specific regions for several hours daily; prolonged effects can significantly impact the economic advancement of a nation.
The World Bank notes that persistent electricity shortages have adversely impacted economies in Pakistan, Sri Lanka, South Africa, and India. The energy systems of most nations, whether already developed or in the process of development, predominantly rely on fossil fuels. However, this reliance contributes significantly to environmental issues such as global warming and air pollution. These environmental concerns not only pose health risks but also impact the overall quality of life for affected populations [4]. As per the agenda of the Paris Agreement, leaders around the globe have agreed to restrain the increase in the average global temperature to stay “well below” 2 °C above pre-industrial levels and endeavor to remain below a warming of 1.5 °C [5]. Nearly 90% of the entire GHG emissions stem from CO2 released through the combustion of fossil fuels [6].
Figure 1 illustrates that using fossil fuels generates CO2 emissions, which are responsible for global warming and climate change and significantly impact our environment. Conversely, both developed and developing nations are fulfilling their energy needs by heavily depending on fossil fuels. This reliance not only harms the environment within their borders but also contributes to global climate change, which disproportionately affects underdeveloped countries. Located in Asia, Pakistan boasts the 10th largest economy in the region. Pakistan is grappling with significant challenges such as energy security and the environmental repercussions of energy consumption. Pakistan is heavily reliant on energy imports, accounting for nearly a third of its energy demand.
In the fiscal year 2017–2018, energy imports amounted to approximately USD 14.4 billion, marking an increase from USD 10.9 billion in the preceding year. About 75% of the USD 3.5 billion surge in energy imports resulted from elevated energy prices, with only around 25% attributed to increased import volumes. This significant price escalation ripples through the entire energy supply chain, leading to elevated business costs and a higher cost of living in Pakistan. Such heavy dependence on imported energy is unsustainable for Pakistan’s economy, which has grappled with a persistent current account deficit for over two decades [8]. Pakistan has a global 0.8% share in CO2 emissions and it has increased 114% since 2000 [9]. This alarming trend is underscored by a notable rise in the consumption of natural gas, coal, and electricity, increasing by 41%, 52%, and 11%, respectively, within Pakistan [10]. Figure 2 shows the categories and trends of CO2 emissions in Pakistan and the percentage of energy supply by source and Figure 3 shows the Pakistan’s energy supply by source.
Severe weather phenomena like heavy precipitation and flooding can inflict significant harm on both human communities and the natural world. The frequency of heavy precipitation events, which significantly contribute to flooding, has notably risen in various regions of the Northern Hemisphere in recent years, largely attributable to human-induced climate change and driven by heightened greenhouse gas emissions [13]. Global warming stands as a primary catalyst for shifts in global climate patterns. Pakistan, ranking among the top ten nations affected by this aftermath phenomenon, is witnessing severe repercussions. Presently, the country grapples with extreme flooding, impacting approximately 33 million individuals and resulting in the destruction of 1.5 million residences, along with USD 2.3 billion in crop losses. Furthermore, over 2000 km of roads have been damaged, impeding connectivity to provinces and major urban centers. Notably, record-high temperatures, such as 40 °C in various regions and a staggering 51 °C in Jacobabad, underscore the intensity of the situation [14].
The Khyber Pakhtunkhwa province in Pakistan has been a focal point for natural disasters, particularly floods, causing significant adverse effects on its land, infrastructure, healthcare, education, socioeconomic development, and human lives. While efforts towards recovery are underway, the province still lags behind others in terms of progress. Situated amidst the Karakoram, Himalayas, and Hindu Kush Mountain ranges, Khyber Pakhtunkhwa is home to glaciers and extensive high-altitude ice reserves. Table 1 shows the loss incurred on Pakistan’s economy due to the flooding.
These towering mountains, coupled with Pakistan’s major rivers, including the Indus River, give rise to steep waterways such as Swat, Kabul, Kunhar, and Panjkora, traversing the plains of Khyber Pakhtunkhwa [16]. Along with global warming issues, Pakistan is facing severe energy crises. Pakistan’s electricity industry grapples with several challenges, including a widening gap between supply and demand, frequent power cuts, escalating fuel import expenses, and rising environmental pollutants. To fulfill its commitments under the Paris Agreement to reduce carbon dioxide (CO2) emissions, Pakistan has introduced various incentives and mechanisms to promote renewable energy production. Therefore, it is imperative to conduct a long-term evaluation of these policy incentives and mechanisms to determine their effectiveness in achieving the CO2 emissions reduction target [17]. A significant portion of the population, particularly in rural areas, lacks access to electricity and turns to the burning of fossil fuels to meet their energy demands. The situation is alarming, with only 60% of the country’s population connected to the grid. Presently, Pakistan is contending with a power supply shortage of 3–5 GW [18].
The adoption of renewable energy holds paramount significance globally due to the escalating energy consumption, surpassing the capabilities of traditional energy sources and leading to energy crises. However, the fluctuating nature of solar radiation and wind speed, influenced by climate and weather dynamics, poses challenges to the consistent operation of renewable energy systems, resulting in output fluctuations. To address this issue, hybrid renewable energy (HRE) systems, integrating multiple renewable energy sources, emerge as a highly efficient solution with promising potential [19]. Ensuring adequate electricity supply in rural areas is crucial for fulfilling basic living requirements and fostering economic development. However, extending the grid over long distances through challenging geographical terrain is often economically impractical as a solution to this challenge. Internal combustion engines and diesel generators, known for their rapid response to fluctuating demand and relatively low initial investment costs, are commonly employed for electricity generation in remote regions. Nonetheless, the utilization of traditional fuels leads to the emission of pollutants. Moreover, given the unfavorable economic conditions, procuring and transporting fossil fuels for power generation purposes proves to be economically unviable [20].
Pakistan’s abundant solar potential, with high irradiance levels ranging from 5.0 to 7.0 kWh/m2/day and 2200 to 2400 annual sunshine hours, offers a significant opportunity for electricity generation. Estimated at 2.9 million megawatts annually, solar energy exceeds current demand, presenting a sustainable solution for energy shortages. Government initiatives, including large-scale solar projects and residential subsidies, aim to harness this resource for environmentally friendly energy production and meet growing needs. Figure 4 shows the solar irradiance levels in Pakistan.
Numerous studies have investigated hybrid energy systems from various angles. Tamoor et al. [22] designed an on-grid photovoltaic system, particularly in the selection of a PV module type and size that can lead to notable energy losses within the system. The study compared PV units of different dimensions and power rankings but with similar effectiveness in two chosen sites. Helioscope simulation software was employed to model these PV systems, enabling the analysis of their monthly and annual energy production as well as system losses. Nawab et al. [23] suggests a self-sufficient solar–biogas microgrid designed for rural communities in the Lakki Marwat district, Pakistan, which is reliant on agriculture and livestock. HOMER Pro simulated the electric power system, while RET-Screen analyzed its economics. The optimized system consists of a 30 kW photovoltaic system, a 37 kW biomass hybrid system, a 64 kWh battery storage capacity, and a 20 kW inverter, producing 515 kWh of electricity and 338.50 m3 of biogas daily. Iqbal and Iqbal [24] conducted thermal modeling of a standard rural dwelling in Pakistan using BEopt to establish the hourly load profile. These load data were then utilized to design a stand-alone PV system using HOMER Pro. The proposed system comprises a 5.8 kW PV array along with eight batteries with a 12 V and 255 Ah capacity, coupled with a 1.4 kW inverter. The analysis indicates that this system is capable of primarily supporting lighting and appliance loads in a rural household. Xu et al. [25] examined the feasibility of electrifying rural areas in Sindh province, Pakistan, focusing on solar energy. The results indicate that these regions have favorable solar conditions for electricity generation. By optimizing tilt angles, the solar energy generation capacity can be significantly enhanced. An economic analysis reveals that off-grid solar PV systems offer electricity at PKR 6.87/kWh, which is far cheaper than conventional sources priced at PKR 20.79/kWh. Ur Rehman and Iqbal [26] presented the development of an off-grid PV system for a rural household in Pakistan, aiming to meet its year-round electrical needs, targeting a monthly generation of 40 kWh. Utilizing HOMER Pro software, the system’s performance was simulated with location-specific solar data. It consists of four 140-watt solar panels, four 125 Ah batteries, a 1 kW inverter, and introduces a simple control and data-logging approach for monitoring. Elsaraf et al. [27] worked for the electrification of remote communities in Canada in which the tailored energy systems are tailored to local consumption. Various renewable sources including solar thermal, PV, wind, hydroelectric, and fuel cells were utilized and the microgrid significantly reduced diesel usage by 71%, thus achieving a levelized cost of energy (LCOE) of −0.0245 $/kWh. Kumar et al. [28] designed and installed an off-grid solar PV system in Pakistan’s desert region, where approximately 95% of the area lacks electricity access. This endeavor includes a comprehensive sizing and cost analysis to determine suitable specifications for PV solar panels, battery capacity, inverter size, and a charge controller based on the anticipated loads. Ali et al. [29] presented an off-grid photovoltaic (PV) system tailored for a rural household in Pakistan, designed to meet its year-round electricity requirements with an anticipated monthly output of 40 kWh based on household electricity consumption data; the system’s performance is evaluated through steady-state modeling using HOMER Pro software. The simulation results forecast the system’s annual electrical output, accounting for solar irradiance, temperature, and humidity data specific to the chosen location. Rehmani and Akhter [30] investigated the electrification of a rural community using various renewable resources and conducted an economic analysis under different scenarios. It was found that in the scenario utilizing all available resources including PV, wind, and biomass, the levelized cost of energy decreased to Rs 14.40. Although there was a slight increase in the net present cost to Rs 14.6 million, the payback period was notably reduced to just 2.54 years.
While previous research has primarily concentrated on optimizing and designing photovoltaic systems for site electrification, there is a noticeable gap in addressing the environmental impact stemming from fossil fuel usage, which is a significant contributor to recent flooding in Pakistan. Furthermore, there is a limited exploration of the reliability of hybrid power systems concerning the proportion of renewable energy integrated. Therefore, this study aims to illustrate the optimization and analysis of the design of a stand-alone hybrid power system required for the electrification of a rural area in Khyber Pakhtunkhwa province of Pakistan because of the reliability of the hybrid power system. The key contributions of this research paper to the existing research are as follows:
  • The projected HPS is designed with PVsyst and HOMER Pro software. This entails identifying system loss, the ideal capacity, and the setup of elements to fulfill the power requirements of a system. The procedure encompasses investigating the load profile, evaluating the accessibility of renewable resources, integrating energy storage capacity, establishing the generator capacity, and employing a control system.
  • Utilizing MATLAB Simulink r2023b, the dynamic modeling of the suggested hybrid power system is performed to assess its HPS behavior, voltage fluctuations, system load effects, and the quality of generated power across various settings, all tailored towards the selected site. The practical validation of the designed HPS is being performed by the OPAL-RT OP5707XG HIL real-time simulator.
  • The decreases in CO2 emissions through energy production from the hybrid power system contribute to environmental preservation, thereby lowering the likelihood of floods in Pakistan.
The structure of this study unfolds as outlined: Section 2 explores the factors considered in site selection. Section 3 details the scheme of the hybrid power system. Section 4 discusses the performance analysis and optimization of the HPS utilizing PVsyst and HOMER Pro. Section 5 illustrates the dynamic modeling and simulation of the proposed system using MATLAB Simulink, while Section 6 demonstrates the testing of the system’s validity under consideration using HIL. Lastly, a thorough summary and discussion of the entire study are provided.

2. Site Selection and Description

The site selection process is integral to the design of a hybrid power system, playing a pivotal role in determining its performance and effectiveness. Key considerations include assessing the readiness of renewable resources for instance solar irradiation, wind speed, and hydro potential. Understanding the site-specific load profile is essential for appropriately sizing and configuring system components to meet energy demand. Environmental factors, including terrain, climate conditions, and regulatory requirements, also influence system design. Economic viability hinges on factors such as installation costs, potential energy savings, and payback periods, all of which are influenced by site selection. Ultimately, a well-chosen site maximizes energy generation potential while minimizing environmental impact and operational costs, laying a strong foundation for the hybrid power system’s success.
The selected site, “Berru Bandi”, is a small community consisting of 10 houses located in the rural area of Abbottabad District, approximately 25 km from Abbottabad city. Perched atop a mountain at coordinates 34°16′38″ N 73°15′18″ E and an altitude of 1456.79 m above sea level, accessing this site is challenging due to the lack of road access and basic amenities. As illustrated in Figure, approximately 66% of power in Pakistan is generated from natural gas and oil through power plants. The state-owned Sui companies, Sui Northern and Sui Southern, manage a combined network of 151,397 km (13,143 km of transmission and 138,254 km of distribution) for natural gas transmission and distribution [31]. Additionally, the NTDC (National Transmission and Dispatch Company) oversees an electricity network spanning 28,805 km [32]. Despite the extensive natural gas and electricity networks, providing an energy source to this remote area proves challenging due to its mountainous terrain and elevated location. Currently, residents rely on diesel generators (10 × 5 kW) to meet their energy needs, resulting in over 75,000 L of diesel fuel consumption, which ultimately results in CO2 emissions that are harmful to the environment. Therefore, the most feasible solution for electrifying this rural community is the implementation of a hybrid power system. An overhead perspective of the location is illustrated in Figure 5 on Google Maps.
Figure 6 presents different real-life views of the selected site. As we can see in the aerial view in Figure 5, there is an ample area available around the community, which is sufficient for the setup of solar PV panels and other elements of the hybrid power system.

2.1. Solar Horizontal Irradiance

Solar horizontal irradiance (SHI) holds a crucial role in assessing the solar prospective of a location and determining the feasibility of solar energy projects. It represents the total solar emission obtained per unit area at the Earth’s surface in a horizontal plane, without considering the angle of incidence or orientation of surfaces. Moreover, SHI data are essential for conducting solar resource assessments, identifying suitable sites for solar projects, and making informed decisions regarding renewable energy investments. The solar horizontal irradiance data of the selected site are obtained using the NASA Surface Meteorology and Solar Energy Database, facilitated with HOMER Pro software. Figure 7 represents the value of solar radiation which ranges from 2.79 kWh/m2/day to 7.46 kWh/m2/day, which shows that there exists sufficient sunlight energy at the selected site. Similarly, the clearness index is a dimensionless number that ranges between 0 (when the sky is completely covered) to 1 (when there is perfect sun) whereas at selected sites it ranges between 0.546 to 0.694.
The energy output of a photovoltaic (PV) system is significantly influenced by weather conditions including wind speed, humidity levels, temperature changes, and solar irradiance, along with additional factors like dust accumulation, localized heating, snow accumulation, and tiny fractures. However, the incline and orientation angles of PV setups are crucial in maximizing annual energy production. These angles directly impact the absorption of solar energy by the PV module surfaces, thereby affecting the performance of the installation [33]. The solar azimuth angle is the angular distance between the direction of the sun and a reference direction, typically measured clockwise from true north in the horizontal plane.
It represents the direction along the horizon where the sun appears to rise and set. The solar azimuth angle changes throughout the day, as the position of the sun overhead shifts from east to west.
It is an important parameter in solar energy applications, as it determines the aligning of solar panels for optimal sunlight exposure and energy capture. The solar elevation, solar azimuth, day length, and solar zenith angle were computed using the online software tool “Solargis”, as depicted in Figure 8.

2.2. Analysis of Electrical Load

The electrical load is of paramount importance in hybrid power systems, significantly shaping their design, operation, and overall efficiency. In the selected rural community, there are 10 houses with nearly identical electrical appliances. The details of these appliances, along with their connected loads, are presented in Table 2 below:
Energy load profiles provide insights into the consumption patterns of energy over time, capturing the interactions between different subsystems at various spatial and temporal scales. Due to diverse factors, individual households exhibit distinct energy demand patterns, with peak energy usage occurring at different times.
As a result, when households are aggregated, the maximum demand from the group is typically lower than the sum of individual maximum demands due to the diversity in timing. Equation (1) shows the formula for the diversity factor.
Diversity   factor = Individual   maximum   demand maximum   demand   of   the   aggregated   system
This phenomenon reflects the likelihood that peak demands from different households do not coincide. Consequently, as more households are integrated into a system, the maximum demand per household decreases. The greater the diversity factor, the less likely it is that households will have peak energy demands at the same time [35]. Considering the diversity factor, the hybrid power system is aimed at a peak load of 33.54 kW, and the system will be tailored accordingly. Figure 9 demonstrates the monthly electricity consumption pattern of the selected site.

3. Designing of Hybrid Power System

The hybrid power system (HPS) envisioned for the chosen location integrates multiple elements, such as a solar photovoltaic system, MPPT controller, battery bank, DC-DC buck converter, DC-AC inverter, LCL filter, AC power source, and diesel generator.
This setup features both AC and DC buses for increased operational versatility and easier upkeep, ensuring uninterrupted power provision. Engineered with backup capabilities, the HPS ensures dependable and sustained energy delivery to facilitate smooth operations. Figure 10 depicts the schematic representation of the proposed hybrid power setup.

3.1. Overview and Mathematical Modeling of Elements in the Hybrid Power System

3.1.1. Photovoltaic Structure

The primary goal of solar cells is to capture photons and transform light into electricity. The production of efficient solar cells is crucial for overcoming challenges in solar technology optimization. The system comprises numerous solar cells constructed from semiconductor materials like silicon. When sunlight interacts with these cells, it stimulates electrons, generating an electric current. The panels are typically arranged in arrays to generate higher power levels, and they are widely used in residential, commercial, and industrial applications to harness renewable solar energy for electricity generation [36].
Figure 11 shows the circuit diagram of the PV cell. The PV cell’s equivalent circuit comprises an ideal current source parallel to a diode. When exposed to solar radiation, current flows from the ideal current source. If the load resistance exceeds that of the diode, the diode conducts current, increasing the voltage across its terminals but decreasing the current through the load. Conversely, if the diode’s resistance is higher than the load’s, electrons flow easily through the load, resulting in a higher current. However, the voltage difference across the terminals decreases. The ideal solar cell circuit also includes series resistance (Rs) and shunt resistance (Rsh). Shunt resistance accounts for losses when electrons move directly between terminals, like shorts. Series resistance represents current losses due to inefficient charge transfers within the device.
I = I G e n I D I s h
According to Equation (2), I represent the obtained current, where   I G e n is the produced current, I D signifies the diode current, and I s h is the current lost due to shunt resistance. To find out the I D (diode current), the following equation is used:
I D = I O { exp [ q V n k T ] 1 }
Here, I 0 denotes the reverse leakage current, n stands for the ideal diode factor, q represents the charge constant, the Boltzmann constant is denoted by k, and the absolute temperature is represented by T.

3.1.2. Buck Converter (DC-DC)

A DC-DC buck converter is a type of power electronic device applied to step down the voltage level of a direct current (DC) power source. It operates by converting a higher input voltage to a lower output voltage while regulating the output current to match the load requirements. This is achieved by controlling the duty cycle of a switch (typically a transistor) in the converter circuit. During operation, the switch is rapidly turned on and off, allowing energy to flow from the input to the output in discrete intervals. The diagram depicting the buck converter circuit is illustrated in Figure 12. The key components of the converter include the transistor switch, and the output LC-type smoothing filter comprising elements L and C, along with a discharge diode. The transistor switch is regulated by a pulse width modulation (PWM) generator, which produces a control signal determined by the calculated duty cycle values, d, computed by the MPPT controller.
The initial calculation involves determining the duty cycle, D, using the maximum input voltage, as this results in the highest switch current which can be calculated using Equation (4):
D   ( maximum   duty   cycle ) = V o u t V i n ( max ) × η
In the above equation, “η” represents the efficiency of the converter. For the calculation of the values of inductance (L) and capacitance (C), the following Equations (5) and (6) are used:
L = V o u t × ( V i n V o u t ) Δ I L × f s × V i n
C o u t = Δ I L 8 × f s × Δ V o u t
Δ I L = V o u t × D f L × L
The ripple current refers to the fluctuating or oscillating component of the current that flows through a circuit or device, typically characterized by its alternating nature. In the above equation, ΔIL represents the inductor ripple current and it can be calculated by using Equation (7).

3.1.3. Maximum Power Point Track Control

The performance of photovoltaic (PV) systems is directly affected by changing weather conditions, leading to fluctuations in their output. Solar irradiance, determined by the angle of sunlight, plays a vital role in adjusting the electrical characteristics of PV modules. While the voltage output of a PV module remains relatively stable, its output current is significantly influenced by variations in solar irradiance. To maximize the power extraction from the PV system, an MPPT controller is employed. MPPT technology is essential in modern power systems, ensuring that the maximum available power is efficiently delivered to loads, batteries, motors, and the power grid in off-grid and on-grid applications, correspondingly [37].
Figure 13 shows the diagram of MATLAB-designed MPPT. Overtime, various MPPT algorithms like Constant Voltage (VC), Fractional Open-Circuit Voltage (FOCV), Open Circuit Voltage with Pivot PV Cell (FOCVPVC), Fractional Short Circuit Current (FSCC), Look-up Table (LUT), Hill Climbing (HC), DC Link Capacitor (DCLC) and Incremental Conductance (IncCond) algorithms have been designed to optimize the power and efficiency of solar panels. Each method comes with its own set of advantages and disadvantages. In this paper, the Incremental Conductance Algorithm has been selected, as it tracks the MPP by evaluating the instantaneous conductance of the PV array with its incremental conductance. By dynamically adjusting the operating voltage and current, the ICA (Incremental Conductance Algorithm) ensures that the PV system operates at or near its MPP under varying environmental conditions, maximizing the efficiency and power output of the solar panels. The flow chart of the Incremental Conductance Algorithm is shown in Figure 14.
In the incremental conductivity method, adjustments to the terminal voltage of the array are made in line with the MPP voltage, leveraging the incremental and instantaneous conductivity of the PV module. Developed in 1993, this algorithm aimed to address limitations observed in the PO (perturbation and observation) algorithm. INC (Incremental conductance) aims to extend monitoring periods and enhance energy production, especially in expansive environments where irradiation levels fluctuate [38]. The system calculates the power and conductance of the PV by analyzing its output voltage and current. Based on these measurements, it determines the duty cycle necessary to operate the system at the MPP. When the ratio of the difference in PV power to the variance in voltage reaches zero, it signifies the attainment of the MPP. This state can be characterized by Equations (8) and (9) provided below.
d P p v d V p v = d ( V p v · I p v ) d V p v = I p v + V p v d I p v d V p v = 0
I p v V p v = d V p v d I p v Δ V p v Δ I p v
In the power voltage (P-V) curve of a photovoltaic system, the slope refers to the rate at which the power output changes concerning voltage. At the MPP, the slope of the curve is zero, indicating that a slight change in voltage does not affect power output.
Table 3 shows various operational scenarios of the IC algorithm. As you move to the left of the MPP on the curve, the slope increases (positive), meaning that a small increase in voltage leads to a greater increase in power output.
Conversely, as movement to the right of the MPP occurs, the slope decreases (negative), signifying that a small increase in voltage results in a smaller increase in power output. Table 3 outlines the various operational scenarios of the Incremental Conductance Algorithm:
In Figure 15, the graphical representations of the current–voltage (I-V) and power–voltage (P-V) properties for the photovoltaic (PV) array utilized in this study across varying temperature levels have been described. The performance of PV panels is influenced by temperature and solar irradiance. Higher temperatures typically lead to a lower voltage but a higher current due to decreased bandgap energy. Conversely, increased solar irradiance boosts photon absorption, raising both current and voltage. These variations are critical for optimizing PV system design and performance across different environmental conditions.

3.1.4. LCL Filter

The widespread adoption of the LCL filter in contemporary power generation setups is attributed to its superior ability to reduce high-frequency noise, as well as its compact dimensions, and economical nature. The precise and appropriate parameter design for the LCL filter is crucial for cost-saving and enhancing filtering effectiveness [39]. Figure 16 illustrates the schematic representation of the LCL filter circuit.
The LCL filter effectively reduces current ripples despite having small inductance values, but it can also introduce resonances and instability. Hence, it is crucial to precisely design the filter based on the converter’s parameters. One significant aspect of the filter is its cutoff frequency, which should be at least half of the converter’s switching frequency to ensure sufficient attenuation within the converter’s operational range. Equation (10) can be used to find the value of f r e s :
f r e s = 1 2 π × L i + L g L i × L g × C f
The initial stage in determining the filter components involves designing the inverter-side inductance, denoted as L i which can be calculated using the following Equation (11):
L i = V d c 16 × f s w × k × I p e a k
The inverter-side inductor is tailored to restrict the ripple current to a specified level, typically 10% of the rated current (k = 0.1). The capacitor in the filter should be sized to accommodate a grid power factor fluctuation of up to 5% (x = 0.05). For calculating the value of the filter capacitance, the following equation is used (12):
C f = x × S n ω g r i d × V n 2
Here, S n represents the nominal apparent power and V n denotes the RMS voltage between lines; the inductor on the grid side is engineered to restrict the dominant harmonic current amplitude to a defined threshold.
L g = L i × k × I D H I lim D H + 1 L i × C f × ω s w 2 1
In Equation (13), I D H represents HOMER Pro, the amplitude of the dominant harmonics I l i m D H , and is the desired amplitude level of the dominant harmonics. To minimize filter oscillations and instability, adding a resistor in the series with the capacitor is recommended, known as “passive damping”. While effective and straightforward, this approach increases heat losses and significantly reduces filter efficiency. The damping resistor’s value can be determined using the following calculation in Equation (14):
R s d = 1 3 ω r e s × C f
By use of all the above-mentioned equations, the values of filter resistance Rf, filter capacitance (Cf), resonance frequency (fres), inverter side inductance (Li), and grid-side inductance (Lg) are calculated as 0.0575 Ω, 64 µF, 1.39 MHz, 521 µH, and 316 µH, respectively.

3.1.5. DC-AC Inverter

A crucial element within photovoltaic (PV) systems, the DC-AC inverter, commonly referred to as a power inverter, facilitates the transformation of direct current (DC) electricity produced by solar panels into alternating current (AC) electricity, which is compatible with various appliances and devices. In this paper, a three-phase multi-level inverter is used, which is a type of power inverter used to alter direct current (DC) electricity into a three-phase alternating current (AC) with multiple voltage levels.
Figure 17 represents the schematic diagram of a three-phase multi-level inverter. Its operation hinges on employing three distinct inverter switches, with each switch assigned to one of the three output phases. These switches are meticulously controlled to produce a balanced and synchronized AC output waveform. These inverters offer benefits such as reduced lower switching losses and improved voltage waveform quality. The THD is calculated by measuring the root mean square (RMS) value of all harmonic components present in the waveform and expressing it as a percentage of the RMS value of the fundamental frequency. A lower THD value indicates a waveform with less distortion and a closer resemblance to a perfect sinusoid. In the case of voltage source inverters (VSIs), which are a type of multi-level inverter, additional parameters include DC link voltage, output frequency, load current, and load impedance. The voltage source inverter (VSI) is employed to transform the 50 Hz AC voltage into DC voltage through a diode rectifier. DC link capacitors operate in parallel to store energy and regulate voltage ripples on the DC bus. Pulse width modulation (PWM) is essential for controlling both voltage and frequency.

4. Performance Analysis and Optimization of the intended Hybrid Power System

4.1. Performance Analysis of System Using PVsyst Software

The performance ratio serves as a key metric for assessing PV efficiency, with values varying based on factors like environmental conditions, mounting setup, and electrical design. PVsyst, developed in Geneva, is a simulation software utilized for analyzing and optimizing PV system operations. It aids in configuring system setups and estimating energy output, considering geographical location. The simulation results may offer insights into system performance across different time scales, and the “Loss Diagram” feature identifies potential design weaknesses [40]. The following is the scheme of work in the performance analysis of the system using PVsyst software.

4.2. Orientation

The orientation part in PVsyst 7.4 software serves the purpose of determining the optimal orientation for solar panels to maximize energy production. Field parameters like tilt angle and azimuthal angle are important factors that will assess the yearly incident radiation (transportation factor, loss factor concerning optimum, global on collector plan). The tilt angle of solar panels has been set at 34° to obtain maximum efficiency and a lower loss factor. Figure 18 shows the orientation of PV panels using PVsyst software.

4.3. Simulation in PVsyst

PVsyst offers a detailed analysis of irradiance, array, and system losses, allowing users to consider module quality, string mismatches, soiling, wiring, inverter, transformer, and auxiliary losses. It uniquely models degradation and aging effects, which is vital for long-term energy and economic assessment. The projected system aims for a yearly global horizontal radiation of 1657.8 kWh/m2 and a diffuse horizontal radiation of 702.48 kWh/m2, with an average ambient temperature of 14.29 °C.
Moreover, the data underscore the efficiency challenges posed by inverter operation point shifts, indicating the need for optimized system configurations to maximize energy output. The considerable surplus energy of 35.93 MWh/year, coupled with the low fuel consumption estimate of 5551 L for backup generators compared to the community’s actual usage of over 75,000 L, highlights the potential for solar power to not only meet but exceed the community’s energy needs sustainably. These findings emphasize the importance of ongoing monitoring and adjustment to ensure the optimal performance and long-term viability of solar energy systems in meeting evolving energy demands. Additionally, the comprehensive analysis provided by Figure 19 and Table 4, detailing renewable energy generation and consumption based on predefined parameters, enhances our understanding of renewable energy dynamics, informing future planning and resource allocation strategies for resilient, environmentally friendly energy infrastructure.

4.4. HOMER Pro Simulation and Optimization

The design of the hybrid power system is executed using HOMER Pro. HOMER Pro technology was established by the American National Renewable Energy Laboratory in 1993. It serves as a system model capable of evaluating various combinations of components for both grid-connected and off-grid systems. HOMER Pro performs three fundamental functions: simulation, optimization, and the detailed analysis of planned energy systems. During the simulation phase, HOMER Pro conducts hour-by-hour simulations throughout the year to assess the technological feasibility of the proposed systems. Additionally, it evaluates key life cycle cost aspects such as acquisition, repair, service, and maintenance. By considering factors such as energy demand fluctuations, resource variability, and component reliability, HOMER Pro aids in identifying optimal system configurations that not only meet current needs but also anticipate future requirements. Furthermore, its ability to conduct sensitivity analyses offers valuable insights into the resilience of proposed systems, enabling stakeholders to make informed decisions amidst uncertainties in resource availability and market conditions. The flow of work of HOMER Pro is described in Figure 20. Initially, it simulates the system’s operation across each time step of the year, considering various factors such as energy demand and resource availability. Following simulation, the software proceeds to optimize the system configuration, aiming to find feasible plans that meet specified constraints while minimizing either the net present cost (NPC) or the cost of energy (COE). Next, a sensitivity analysis is performed to assess how uncertain variables influence both system performance and cost, offering valuable insights into potential risks and opportunities.
The optimization results generated by HOMER Pro software are shown in Figure 21. The hybrid power system includes an AC bus for conventional power sources, such as diesel generators, a DC bus connected to photovoltaic (PV) panels, and a battery pack for renewable energy and storage. The diesel generator acts as a backup for the AC bus, while the DC bus utilizes and stores solar energy. Table 5 and Table 6 provide technical specifications for the batteries and PV panels, highlighting their capacities and efficiencies.
The unit costs of the proposed system, utilized in the simulation, are presented in Table 7. The initial cost of PV panels for the hybrid power system is USD36,685.92, with an operation and maintenance (OM) cost of USD 1317.79 and no replacement cost. The battery bank carries an initial cost of USD 37,800, with an OM cost of USD 13,573.89 and no replacement cost. Similarly, the DC-AC inverter has an initial cost of USD 766.66, with an OM cost of USD 309.74 and no replacement cost. Figure 22 shows the results of electricity generation by HOMER Pro.
The system is designed to maximize efficiency by facilitating limitless power generation through PV modules. Simulations with HOMER Pro explored 982 configurations of power sources. Table 8 shows that the best configuration includes solar panels, a converter, a battery bank, and a diesel genset, resulting in the lowest net present cost (NPC) of USD 0.102 million and a cost of energy (COE) of USD 0.158. This optimal system significantly reduces costs compared to the current diesel generator cost of USD 1.06, with annual operating costs of USD 2093, saving USD 5207 annually.
To show the robustness and impact of key parameter variations on the performance and architecture of the proposed system, a comprehensive sensitivity analysis has been conducted by examining variations in solar global horizontal irradiance (GHI), as detailed in Table 9. This analysis helps to understand how changes in solar irradiance affect the overall system, including energy generation, inverter output, battery usage, and system costs. This approach provides valuable insights into the necessary adjustments and optimizations needed to achieve cost-effectiveness and efficiency in the solar PV system.
As shown in Table 9, variations in solar global horizontal irradiance (GHI) significantly impact the key parameters of the proposed system. When the level of solar GHI increases from the scaled annual average of the selected site, which is 5.08 kWh/m2/day, more sunlight reaches the solar panels. This increase in sunlight enhances the electrical energy generated by the PV system. Consequently, the inverter has more power to convert, leading to a higher AC output and enabling it to supply more power to meet the demand of the connected load, thus reducing reliance on stored energy. With the increase in PV generation, there is more immediate energy available for use, which reduces the need to draw power from batteries and also improves battery charging. Higher solar GHI will reduce the cost of energy (COE) and the overall cost of the proposed system. Furthermore, there will be no greenhouse gas (GHG) emissions, and the renewable energy fraction will be 100%. Conversely, if the solar GHI decreases, less sunlight is available for generating electricity. In this scenario, the inverter will have less power to convert from DC to AC, resulting in a lower AC output and requiring more power from batteries to meet the load requirements. Additionally, more batteries will be needed to store the energy, which will increase the COE as well as the overall cost of the proposed system. As seen in Table 7, lower solar GHI leads to higher GHG emissions and a reduced fraction of renewable energy.

5. Dynamic Modeling of Proposed Hybrid Power System in MATLAB Simulink

Assessing the functionality and dynamics of a system heavily relies on dynamic modeling and simulation. MATLAB Simulink simulations are conducted to delve into the dynamic behavior of the envisaged hybrid power system, with a specific emphasis on power quality, voltage fluctuations, and load impacts. The PV array’s output characteristics, including V-I and V-P characteristics, exhibit non-linearity and are significantly influenced by environmental factors. These factors include solar irradiation levels, ambient temperature variations, and the extent of partial shading affecting the PV array. The dynamic modeling of a photovoltaic (PV) system, particularly in terms of the ASTM G173 spectrum, involves simulating its performance under varying atmospheric conditions. The ASTM G173 spectrum considers factors such as air mass, ozone content, and aerosol concentration, affecting the spectral distribution of sunlight reaching the Earth’s surface. In this modeling, the PV system’s reaction to changes in solar irradiance and temperature is analyzed using mathematical models implemented in the software. The Simulink MATLAB design of the proposed hybrid system is shown in Figure 23.
Setting the initial irradiance value to around 1000 watts per square meter (W/m2) is common practice to simulate standard solar radiation conditions. Solar cell temperatures may fluctuate within simulations, ranging from approximately 25 °C to 60 °C. However, higher temperatures can also lead to an increase in current output due to enhanced electron excitation within the panel’s semiconductor material. These effects demonstrate the complex relationship between irradiance, temperature, voltage, and current in PV panels, ultimately impacting their overall performance and efficiency.
Table 10 represents the scenario of variations in solar irradiance and temperature of PV panels and how they will affect the dynamics of the proposed hybrid power system. This detailed analysis helps optimize PV system design and operation, contributing to the efficient utilization of solar energy resources and the advancement of renewable energy technologies. To visualize the effects of variations in solar global horizontal irradiance (GHI) and temperature, adjustments were made to the parameters of the PV array’s solar GHI and temperature within MATLAB Simulink. Initially, the system operated under standard conditions with a GHI of 1000 W/m2 and a temperature of 25 °C. Figure 24 represents the variations in solar GHI and temperature and their impact on the output voltage and current of the PV panel. Subsequently, at time 0.5 s, the GHI was reduced to 400 W/m2 to mimic decreased sunlight, while the temperature was incrementally increased to 35 °C. As the irradiance level decreased the voltage and current level between 0.5 to 1.5 s, at time 2 s, the temperature increased to 55 °C and the irradiance level increased to 1000 W/m2. Elevated temperatures result in a decrease in current and voltage, whereas higher GHI levels lead to an increased voltage output from the PV array. This analysis enhances the comprehension of the system’s behavior under diverse environmental conditions and facilitates performance optimization.
The charging process of batteries in photovoltaic systems is significantly influenced by variations in irradiance and temperature. Higher levels of irradiance typically result in increased charging currents and voltages, as more solar energy is available for conversion into electrical energy. Conversely, decreases in irradiance lead to reduced charging currents and voltages. Temperature also plays a crucial role, with higher temperatures generally accelerating charging rates due to enhanced chemical reactions within the battery. In Figure 25, a shift in irradiance occurs at 0.5 s, leading to a discharge of the battery bank until 1.5 s. Subsequently, when the irradiance rises from 400 to 1000 W/m2 after 1.5 s, the battery begins to recharge and stabilizes at 2 s.
During a power outage, the PV system activates the generator and integrates a Phase-Locked Loop (PLL) into the MATLAB simulation. The system continuously monitors power output to detect shortages, prompting immediate generator activation. Concurrently, PLL parameters, such as reference signal frequency and phase, are set. The PLL block, comprising phase detectors, filters, and oscillators, synchronizes the generator’s output with the grid or reference signal. This integration within the MATLAB Simulink model ensures efficient connectivity and interaction among system components. Figure 26 demonstrates the consistent phase-to-ground voltage and current delivered to the connected load through the designed HPS.

6. Experimental Validation Using Hardware in Loop

Validating a hybrid power system in real-time for a rural community is essential to verify its feasibility, reliability, and efficacy in addressing the community’s energy requirements. The OP5707XG by OPAL-RT Technologies serves as an advanced real-time simulator, utilizing FPGA technology to ensure swift and accurate simulations with minimal latency. It excels in facilitating HIL checking for diverse applications, including photovoltaic (PV) systems. With powerful processors and precise I/O interfaces, it accurately replicates load current and voltage dynamics, which is crucial for optimizing PV system performance. Figure 27 shows the hardware structure of the simulator.
The OP5707XG can be integrated with MATLAB Simulink, a popular environment for modeling and simulating dynamic systems. The required model to be simulated has been created in Simulink, representing the components and behaviors. Once the model is developed, it can be compiled and executed in real-time on the OP5707XG hardware. This integration allows for HIL testing, where the simulated system interacts with the physical system as well as the design under testing along with components connected to the OP5707XG, representing real-world conditions. Real-time monitoring and logging provided by Simulink enable the analysis of the performance of the simulated system and validate its behavior. Figure 28 shows the hardware architecture of the OP5707XG simulator.
The block set has been developed to enable distributed processing, inter-node communication, and signal input/output within the MATLAB Simulink model. Following the simulation using OPAL-RT, the system consistently provided a three-phase load voltage and current, affirming the practical applicability and efficacy of the designed system. Figure 29 and Figure 30 display the results of the experimental validation, presenting the three-phase voltage and current output of the designed system utilizing HIL testing.

7. Findings

This research article introduces an innovative method to fulfill the energy requirements of distant and isolated communities by proposing and executing a hybrid power system. Highlighting the importance of innovative energy solutions in remote regions, the research underscores the capability of hybrid power systems to provide a reliable and enduring electricity supply. Incorporating a range of elements, the hybrid power system proposal encompasses solar panels, MPPT, a DC-AC inverter, a buck converter, a diesel generator, battery storage, and an electrical load. The performance analysis and ideal configurations are achieved using PVsyst and HOMER Pro software; the dynamic modeling of the system is conducted in the MATLAB Simulink conditions to assess its performance. Additionally, experimental validation is performed via Hardware-in-the-Loop simulations using the real-time OPAL-RT Technologies’ OP5707XG simulator. The primary findings of the study are summarized as follows:
  • Considering the recent floods in Pakistan, attributed largely to climate change induced by greenhouse gas emissions from fossil fuels, there is an urgent call for transitioning to renewable energy sources with minimal greenhouse gas emissions. Leveraging Pakistan’s ample solar global horizontal irradiance, solar photovoltaic systems play a crucial role in bolstering the electricity output of hybrid power systems. This addresses the specific energy needs of such facilities while amplifying economic advantages, thereby making advancements consistent with broader energy sustainability goals.
  • Using HOMER Pro, 982 simulations were conducted, resulting in an optimal system with a renewable energy fraction of 100%.
  • The hybrid power system’s energy cost is USD 0.158, resulting in substantial savings of USD 0.902 in contrast to the present expenses of USD 1.06. Additionally, the system’s annual operating cost of USD 2093 signifies significant savings of USD 5207 in contrast to the current cost of USD 7300.

8. Conclusions

This study underscores the vital role hybrid power systems can play in advancing sustainable energy solutions for rural communities. By integrating renewable energy sources such as solar panels with traditional generators and employing advanced simulation tools like PVsyst and HOMER Pro, it has been demonstrated that it is feasible to develop reliable, cost-effective, and environmentally friendly energy systems tailored to rural needs. The dynamic modeling and validation, conducted through MATLAB Simulink and Hardware-in-the-Loop simulations, further validate the system’s operational efficiency and resilience to variations in environmental conditions. The implementation of such hybrid systems not only helps in reducing the dependency on fossil fuels but also significantly mitigates greenhouse gas emissions, contributing to global efforts against climate change. Furthermore, the economic analysis reveals that the adoption of the HPS can lead to substantial savings in energy costs, enhancing the economic stability of rural communities. As rural areas continue to face unique challenges in accessing reliable energy sources, the findings of this study offer a promising pathway toward achieving energy independence through sustainable practices. It encourages stakeholders, including policymakers and renewable energy developers, to invest in hybrid systems that leverage local resources and technological advancements to meet the increasing energy demands while fostering environmental management.

Author Contributions

Conceptualization, W.K.; methodology, W.K.; software, W.K.; validation, W.K.; resources, W.K.; writing—original draft, W.K.; writing—review and editing, Q.A., M.J. and A.A.K.; supervision, M.J.; project administration, Q.A., M.J., and A.A.K.; funding acquisition, M.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The study incorporates its original findings within the article, and any additional questions can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Akhtar, S.; Hashmi, M.K.; Ahmad, I.; Raza, R. Advances and significance of solar reflectors in solar energy technology in Pakistan. Energy Environ. 2018, 29, 435–455. [Google Scholar] [CrossRef]
  2. Bakht, M.P.; Salam, Z.; Bhatti, A.R.; Ullah Sheikh, U.; Khan, N.; Anjum, W. Techno-economic modelling of hybrid energy system to overcome the load shedding problem: A case study of Pakistan. PLoS ONE 2022, 17, e0266660. [Google Scholar] [CrossRef]
  3. Ahmed, M.R.; Hasan, M.R.; Al Hasan, S.; Aziz, M.; Hoque, M.E. Feasibility Study of the Grid-Connected Hybrid Energy System for Supplying Electricity to Support the Health and Education Sector in the Metropolitan Area. Energies 2023, 16, 1571. [Google Scholar] [CrossRef]
  4. Martins, F.; Felgueiras, C.; Smitkova, M.; Caetano, N. Analysis of Fossil Fuel Energy Consumption and Environmental Impacts in European Countries. Energies 2019, 12, 964. [Google Scholar] [CrossRef]
  5. Richardson, M.; Cowtan, K.; Millar, R.J. Global temperature definition affects achievement of long-term climate goals. Environ. Res. Lett. 2018, 13, 054004. [Google Scholar] [CrossRef]
  6. Bölük, G.; Mert, M. Fossil & renewable energy consumption, GHGs (greenhouse gases) and economic growth: Evidence from a panel of EU (European Union) countries. Energy 2014, 74, 439–446. [Google Scholar] [CrossRef]
  7. Al-Ketan, O. Potential of using olive pomace as a source of renewable energy for electricity generation in the Kingdom of Jordan. J. Renew. Sustain. Energy 2012, 4, 063132. [Google Scholar] [CrossRef]
  8. Malik, S.; Qasim, M.; Saeed, H.; Chang, Y.; Taghizadeh-Hesary, F. Energy security in Pakistan: Perspectives and policy implications from a quantitative analysis. Energy Policy 2020, 144, 111552. [Google Scholar] [CrossRef]
  9. Lin, B.; Raza, M.Y. Analysis of energy related CO2 emissions in Pakistan. J. Clean. Prod. 2019, 219, 981–993. [Google Scholar] [CrossRef]
  10. Naeem, M.K.; Anwar, S.; Nasreen, S. Empirical analysis of CO2 emissions and sustainable use of energy sources in Pakistan. Environ. Sci. Pollut. Res. 2021, 28, 16420–16433. [Google Scholar] [CrossRef]
  11. Sohoo, I.; Ritzkowski, M.; Kuchta, K.; Cinar, S.Ö. Environmental Sustainability Enhancement of Waste Disposal Sites in Developing Countries through Controlling Greenhouse Gas Emissions. Sustainability 2020, 13, 151. [Google Scholar] [CrossRef]
  12. Asian Development Bank. The Impact of Infrastructure Investment on Inclusive Growth and Poverty Reduction: A Review. Available online: https://www.adb.org/sites/default/files/publication/535821/adbi-wp1024.pdf (accessed on 2 May 2024).
  13. Alifu, H.; Hirabayashi, Y.; Imada, Y.; Shiogama, H. Enhancement of river flooding due to global warming. Sci. Rep. 2022, 12, 20687. [Google Scholar] [CrossRef]
  14. Shehzad, K. Extreme flood in Pakistan: Is Pakistan paying the cost of climate change? A short communication. Sci. Total Environ. 2023, 880, 162973. [Google Scholar] [CrossRef]
  15. Manzoor, Z.; Ehsan, M.; Khan, M.B.; Manzoor, A.; Akhter, M.M.; Sohail, M.T.; Hussain, A.; Shafi, A.; Abu-Alam, T.; Abioui, M. Floods and flood management and its socio-economic impact on Pakistan: A review of the empirical literature. Front. Environ. Sci. 2022, 10, 1021862. [Google Scholar] [CrossRef]
  16. Khayyam, U.; Noureen, S. Assessing the adverse effects of flooding for the livelihood of the poor and the level of external response: A case study of Hazara Division, Pakistan. Environ. Sci. Pollut. Res. 2020, 27, 19638–19649. [Google Scholar] [CrossRef]
  17. Qudrat-Ullah, H. A review and analysis of renewable energy policies and CO2 emissions of Pakistan. Energy 2022, 238, 121849. [Google Scholar] [CrossRef]
  18. Zafar, U.; Ur Rashid, T.; Khosa, A.A.; Khalil, M.S.; Rashid, M. An overview of implemented renewable energy policy of Pakistan. Renew. Sustain. Energy Rev. 2018, 82, 654–665. [Google Scholar] [CrossRef]
  19. Guo, S.; Liu, Q.; Sun, J.; Jin, H. A review on the utilization of hybrid renewable energy. Renew. Sustain. Energy Rev. 2018, 91, 1121–1147. [Google Scholar] [CrossRef]
  20. Ji, L.; Liang, X.; Xie, Y.; Huang, G.; Wang, B. Optimal design and sensitivity analysis of the stand-alone hybrid energy system with PV and biomass-CHP for remote villages. Energy 2021, 225, 120323. [Google Scholar] [CrossRef]
  21. Hussain, F.; Maeng, S.-J.; Cheema, M.J.M.; Anjum, M.N.; Afzal, A.; Azam, M.; Wu, R.-S.; Noor, R.S.; Umair, M.; Iqbal, T. Solar Irrigation Potential, Key Issues and Challenges in Pakistan. Water 2023, 15, 1727. [Google Scholar] [CrossRef]
  22. Tamoor, M.; Bhatti, A.R.; Farhan, M.; Miran, S. Design of On-Grid Photovoltaic System Considering Optimized Sizing of Photovoltaic Modules for Enhancing Output Energy. Eng. Proc. 2022, 19, 2. [Google Scholar] [CrossRef]
  23. Nawab, F.; Abd Hamid, A.S.; Arif, M.; Khan, T.A.; Naveed, A.; Sadiq, M.; Imad Ud Din, S.; Ibrahim, A. Solar–Biogas Microgrid: A Strategy for the Sustainable Development of Rural Communities in Pakistan. Sustainability 2022, 14, 11124. [Google Scholar] [CrossRef]
  24. Iqbal, A.; Iqbal, M.T. Design and Analysis of a Stand-Alone PV System for a Rural House in Pakistan. Int. J. Photoenergy 2019, 2019, 1–8. [Google Scholar] [CrossRef]
  25. Xu, L.; Wang, Y.; Solangi, Y.; Zameer, H.; Shah, S. Off-Grid Solar PV Power Generation System in Sindh, Pakistan: A Techno-Economic Feasibility Analysis. Processes 2019, 7, 308. [Google Scholar] [CrossRef]
  26. Ur Rehman, A.; Iqbal, M.T. Design and Control of an Off-Grid Solar System for a Rural House in Pakistan. In Proceedings of the 2020 11th IEEE Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), IEEE, Vancouver, BC, Canada, 4–7 November 2020; pp. 0786–0790. [Google Scholar] [CrossRef]
  27. Elsaraf, H.; Jamil, M.; Pandey, B. Techno-Economic Design of a Combined Heat and Power Microgrid for a Remote Community in Newfoundland Canada. IEEE Access 2021, 9, 91548–91563. [Google Scholar] [CrossRef]
  28. Kumar, K.; Kumar, M.; Soomro, A.M. To Design an off Gird PV System for un electrified area of District Tharparkar, Pakistan. Int. J. Green Energy 2021, 18, 920–932. [Google Scholar] [CrossRef]
  29. Ali, F.; Ahmar, M.; Jiang, Y.; AlAhmad, M. A techno-economic assessment of hybrid energy systems in rural Pakistan. Energy 2021, 215, 119103. [Google Scholar] [CrossRef]
  30. Rehmani, A.M.; Akhter, P. Techno-Economic analysis of hybrid renewable energy systems for rural area energization in Pakistan. In Proceedings of the 2019 3rd International Conference on Energy Conservation and Efficiency (ICECE), IEEE, Lahore, Pakistan, 23–24 October 2019; pp. 1–6. [Google Scholar]
  31. Abdullah, F.B.; Iqbal, R.; Jawaid, M.; Ahmad, S. Addressing unaccounted-for-gas (UFG): Proactive techniques for optimal management and control. Energy Strategy Rev. 2024, 53, 101397. [Google Scholar] [CrossRef]
  32. Qazi, U.; Jahanzaib, M. An integrated sectoral framework for the development of sustainable power sector in Pakistan. Energy Rep. 2018, 4, 376–392. [Google Scholar] [CrossRef]
  33. Dhimish, M.; Silvestre, S. Estimating the impact of azimuth-angle variations on photovoltaic annual energy production. Clean Energy 2019, 3, 47–58. [Google Scholar] [CrossRef]
  34. Solaris. Solar Resource Information and PV Power Potential. Available online: https://apps.solargis.com/prospect/detail/3IirckDVsvHfKB5n/info (accessed on 2 May 2024).
  35. Wang, Z.; Crawley, J.; Li, F.G.N.; Lowe, R. Sizing of district heating systems based on smart meter data: Quantifying the aggregated domestic energy demand and demand diversity in the UK. Energy 2020, 193, 116780. [Google Scholar] [CrossRef]
  36. Al-Shahri, O.A.; Ismail, F.B.; Hannan, M.A.; Lipu, M.S.H.; Al-Shetwi, A.Q.; Begum, R.A.; Al-Muhsen, N.F.O.; Soujeri, E. Solar photovoltaic energy optimization methods, challenges and issues: A comprehensive review. J. Clean. Prod. 2021, 284, 125465. [Google Scholar] [CrossRef]
  37. Podder, A.K.; Roy, N.K.; Pota, H.R. MPPT methods for solar PV systems: A critical review based on tracking nature. IET Renew Power Gener. 2019, 13, 1615–1632. [Google Scholar] [CrossRef]
  38. Madhukumar, M.; Suresh, T.; Jamil, M. Investigation of Photovoltaic Grid System under Non-Uniform Irradiance Conditions. Electronics 2020, 9, 1512. [Google Scholar] [CrossRef]
  39. Cai, Y.; He, Y.; Zhou, H.; Liu, J. Design Method of LCL Filter for Grid-Connected Inverter Based on Particle Swarm Optimization and Screening Method. IEEE Trans. Power Electron. 2021, 36, 10097–10113. [Google Scholar] [CrossRef]
  40. Baqir, M.; Channi, H.K. Analysis and design of solar PV system using Pvsyst software. Mater. Today Proc. 2022, 48, 1332–1338. [Google Scholar] [CrossRef]
Figure 1. gCO2 emissions by different types of fossil fuels [7].
Figure 1. gCO2 emissions by different types of fossil fuels [7].
Electronics 13 02487 g001
Figure 2. Categories and trends of CO2 emissions in Pakistan [11].
Figure 2. Categories and trends of CO2 emissions in Pakistan [11].
Electronics 13 02487 g002
Figure 3. Pakistan’s % energy supply by source [12].
Figure 3. Pakistan’s % energy supply by source [12].
Electronics 13 02487 g003
Figure 4. Solar irradiance levels in Pakistan [21].
Figure 4. Solar irradiance levels in Pakistan [21].
Electronics 13 02487 g004
Figure 5. A view of the site captured from above on Google Maps.
Figure 5. A view of the site captured from above on Google Maps.
Electronics 13 02487 g005
Figure 6. Actual perspective of the selected site.
Figure 6. Actual perspective of the selected site.
Electronics 13 02487 g006
Figure 7. Selected site solar GHI and clearness index.
Figure 7. Selected site solar GHI and clearness index.
Electronics 13 02487 g007
Figure 8. Selected site solar azimuth and zenith angle [34].
Figure 8. Selected site solar azimuth and zenith angle [34].
Electronics 13 02487 g008
Figure 9. Monthly electricity usage pattern at the chosen location.
Figure 9. Monthly electricity usage pattern at the chosen location.
Electronics 13 02487 g009
Figure 10. Diagram illustrating the proposed hybrid power system.
Figure 10. Diagram illustrating the proposed hybrid power system.
Electronics 13 02487 g010
Figure 11. Circuit diagram representing a photovoltaic cell.
Figure 11. Circuit diagram representing a photovoltaic cell.
Electronics 13 02487 g011
Figure 12. Buck converter (DC-DC).
Figure 12. Buck converter (DC-DC).
Electronics 13 02487 g012
Figure 13. MATLAB modeled maximum power point tracking.
Figure 13. MATLAB modeled maximum power point tracking.
Electronics 13 02487 g013
Figure 14. Incremental Conductance Algorithm flow chart.
Figure 14. Incremental Conductance Algorithm flow chart.
Electronics 13 02487 g014
Figure 15. I-V and P-V curves of selected PV panel.
Figure 15. I-V and P-V curves of selected PV panel.
Electronics 13 02487 g015
Figure 16. LCL filter’s circuit diagram.
Figure 16. LCL filter’s circuit diagram.
Electronics 13 02487 g016
Figure 17. Three-phase multi-level inverter schematic diagram.
Figure 17. Three-phase multi-level inverter schematic diagram.
Electronics 13 02487 g017
Figure 18. Orientation of the PV Panels.
Figure 18. Orientation of the PV Panels.
Electronics 13 02487 g018
Figure 19. PVsyst simulation outcomes for the proposed system.
Figure 19. PVsyst simulation outcomes for the proposed system.
Electronics 13 02487 g019
Figure 20. The operational procedure of the HOMER Pro software in sequential order.
Figure 20. The operational procedure of the HOMER Pro software in sequential order.
Electronics 13 02487 g020
Figure 21. Optimization results of HOMER Pro.
Figure 21. Optimization results of HOMER Pro.
Electronics 13 02487 g021
Figure 22. Results of electricity generation by optimal designing of the HPS in HOMER Pro.
Figure 22. Results of electricity generation by optimal designing of the HPS in HOMER Pro.
Electronics 13 02487 g022
Figure 23. MATLAB Simulink dynamic model for the proposed hybrid power system tools like MATLAB Simulink.
Figure 23. MATLAB Simulink dynamic model for the proposed hybrid power system tools like MATLAB Simulink.
Electronics 13 02487 g023
Figure 24. (a) Variations in solar irradiance, (b) variations in temperature, (c) PV panel output voltage, and (d) PV panel output current due to variations in solar GHI and temperature.
Figure 24. (a) Variations in solar irradiance, (b) variations in temperature, (c) PV panel output voltage, and (d) PV panel output current due to variations in solar GHI and temperature.
Electronics 13 02487 g024
Figure 25. (a) %SOC of battery bank, (b) voltage of battery bank, and (c) current of battery bank.
Figure 25. (a) %SOC of battery bank, (b) voltage of battery bank, and (c) current of battery bank.
Electronics 13 02487 g025
Figure 26. (a) Voltage delivered to the load in three phases (RMS). (b) Current supplied to load across three phases (RMS).
Figure 26. (a) Voltage delivered to the load in three phases (RMS). (b) Current supplied to load across three phases (RMS).
Electronics 13 02487 g026
Figure 27. Hardware structure of the simulator.
Figure 27. Hardware structure of the simulator.
Electronics 13 02487 g027
Figure 28. OPAL-RT hardware setup.
Figure 28. OPAL-RT hardware setup.
Electronics 13 02487 g028
Figure 29. Three-phase output load voltage as a result of experimental validation.
Figure 29. Three-phase output load voltage as a result of experimental validation.
Electronics 13 02487 g029
Figure 30. Three-phase output load current as a result of experimental validation.
Figure 30. Three-phase output load current as a result of experimental validation.
Electronics 13 02487 g030
Table 1. Economical loss impact due to floods in Pakistan in 2022 [15].
Table 1. Economical loss impact due to floods in Pakistan in 2022 [15].
ProvinceDamage
(Million USD)
Loss
(Million USD)
Requirement for Rehabilitation (Million USD)
Baluchistan162525162286
KPK (Khyber Pakhtunkhwa)935658780
Punjab515566746
Sindh906811,3767860
Table 2. Specifics regarding the electrical load at the chosen location.
Table 2. Specifics regarding the electrical load at the chosen location.
Appliances DescriptionUnit’s Quantity Installed Unit Load Rated Power Aggregate Connected Load
Watts (W)(KW)
LED Lights100303
Ceiling Fan30752.25
Iron810008
Washing Machine107007
Refrigerator107507.5
Television102002
Electric Heater85004
Electric Geyser810008
Water Suction Pump150005
Total Connected Load46.75 KW
Table 3. Various operational scenarios of the Incremental Conductance Algorithm.
Table 3. Various operational scenarios of the Incremental Conductance Algorithm.
ConditionSetting PointResults Achieved
d I d V = I V MPP = PFunctioning at MPP
d I d V > I V MPP > P The operational point is set to the maximum power point (MPP)
d I d V < I V MPP < P The operational point aligns with the maximum power point (MPP)
Table 4. Details of renewable energy generation and consumption based on predefined parameters.
Table 4. Details of renewable energy generation and consumption based on predefined parameters.
MonthGlobHor [kWh/m2]GlobEff [kWh/m2]Diff Hor [kWh/m2]E Array [kWh]E User [kWh]Unused Energy [kWh]Fuel BU [Liters]
January70.7105.429.42441825561935542
February85.3107.645.44451024621948452
March123.8138.467.86579928682643470
April163.7165.768.20694328023479439
May197179.278.54751029783634433
June199.2173.878728229493410413
July183.8163.890.40686530572895425
August175.417082.13712529673268447
September161.9179.659.60752428813696437
October134.2176.941.38741328183855481
November85.212434.35519825072572493
December78.1126.927.16531625712600519
Total1658.31811.3702.4875,90333,41635,9535551
Table 5. Specifications of battery used in HPS.
Table 5. Specifications of battery used in HPS.
ModelBAE Secura
AbbreviationBAE 12
Nominal Voltage (V)12
Nominal Capacity (kWh)2.41
Maximum Capacity (Ah)201
Rate Constant (1/h)2.09
Roundtrip Efficiency (%)85
Maximum Charge Current (A)68.4
Maximum Discharge Current (A)342
Maximum Charge Rate (A/Ah)1
Table 6. Specifications of PV panel used in HPS.
Table 6. Specifications of PV panel used in HPS.
ModelCanadian Solar Max Power
AbbreviationCS6U-3
Nominal Max. Power (W) (Pmax)340
Opt. Voltage (Vmp)32.6
Opt. Current (A) (Imp)10.43
Open Circuit Voltage (Voc)39.6
Short Circuit Current (Isc)10.98
Module Efficiency (%)18.4
Cell TypePoly-crystalline
Operating Temperature−40 °C~+85 °C
Table 7. Per unit cost of components used in HPS.
Table 7. Per unit cost of components used in HPS.
Component DescriptionCapital (USD)Replacement (USD)OM (USD)Total (USD)
BAE SECURA SOLAR 12 V3 PVS 21037,800013,573.8951,373.89
Canadian solar Maxpower CS6U-340M36,685.92013,173.7949,859.71
PRETTL REFUso 40K766.660309.741076.4
Total75,253027,057.42102,310
Table 8. Results of system optimization in HOMER Pro.
Table 8. Results of system optimization in HOMER Pro.
System StructureSolar Panel (kW)Diesel Genset (kW)Battery Bank (No.)Converter (kW)NPC (USD)COE (USD)Operating Expenses (USD/Year)Primary Investment (USD)
PV-BB-Converter69.3 21038.30.102 M0.158209375,253
PV-Genset-BB-Converter60.54018738.10.104 M0.161239173,452
PV-Genset-Converter30040 40.41.70 M2.62118,520166,710
Genset 40 40.42.44 M3.77188,407166,710
Table 9. Sensitivity analysis of the system design by variations in the solar GHI.
Table 9. Sensitivity analysis of the system design by variations in the solar GHI.
Solar Irradiance (kWh/m2/day)System DesignPV (kW)Diesel Genset (kW)Battery Bank
(No. of Batteries)
Converter (Kw)NPC (USD)COE (USD/kWh)Operating Cost (USD/year)Initial Capital (USD)Renewable Energy Fraction (%)CO2
Emissions (kg/year)
0DG0400012.1 M18.60931,94917,0140102,531
1PV-DG-BB-Converter4044021645.6371,2940.5728540260,89699.7184
2PV-BB-Converter197026090.3207,8040.3204252152,8391000
3PV-BB-Converter1150273122152,8570.2363130112,8391000
4PV-BB-Converter93.3022790125,2220.193256492,0771000
5.08PV-BB-Converter69.3021038.3102,3100.158209375,2531000
6PV-BB-Converter67.3018072.194,5180.146193569,4971000
7PV-BB-Converter55.5017654.584,5330.130173162,1621000
8PV-BB-Converter44.1018365.178,3580.121160557,6121000
9PV-BB-Converter40.8017661.974,1740.114151954,5351000
10PV-BB-Converter49.2013673.770,7470.109145052,0061000
11PV-BB-Converter43013664.966,0390.102135348,5471000
Table 10. Scenarios of variations in solar irradiance and temperature in MATLAB Simulink.
Table 10. Scenarios of variations in solar irradiance and temperature in MATLAB Simulink.
Time (Seconds)Solar GHI (W/m2)Temprtaure (°C)
0100025
0.540025
140035
1.5100035
2100045
2.5100045
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Khalid, W.; Awais, Q.; Jamil, M.; Khan, A.A. Dynamic Simulation and Optimization of Off-Grid Hybrid Power Systems for Sustainable Rural Development. Electronics 2024, 13, 2487. https://doi.org/10.3390/electronics13132487

AMA Style

Khalid W, Awais Q, Jamil M, Khan AA. Dynamic Simulation and Optimization of Off-Grid Hybrid Power Systems for Sustainable Rural Development. Electronics. 2024; 13(13):2487. https://doi.org/10.3390/electronics13132487

Chicago/Turabian Style

Khalid, Wajahat, Qasim Awais, Mohsin Jamil, and Ashraf Ali Khan. 2024. "Dynamic Simulation and Optimization of Off-Grid Hybrid Power Systems for Sustainable Rural Development" Electronics 13, no. 13: 2487. https://doi.org/10.3390/electronics13132487

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop