Modeling of a Biomass Cogeneration Plant from a Gasi ﬁ cation Process

: In recent decades, growing energy demand, coupled with concerns about climate change, has led to the exploration of sustainable energy sources. Among these, biomass gasi ﬁ cation stands out as a promising method for generating heat and power. This research delves into the potential impact of biomass gasi ﬁ cation within the global energy landscape, focusing particularly on its application in cogeneration plants. Utilizing Aspen Plus software V10, this study undertook the modeling and optimization of a biomass cogeneration plant. Through simulation, it was found that a biomass ﬂ ow rate of 5 kg/s yielded 6.172 MW of power output. Additionally, the study revealed several key factors that in ﬂ uence power generation: increasing biomass and air ﬂ ow rates, increasing gasi ﬁ cation temperature, and reducing water ﬂ ow rate. By doubling the biomass ﬂ ow rate to 10 kg/s and increasing the temperature to 800 °C, power generation increases by 41.75%. Moreover, the study demonstrates that Portuguese municipal waste is an e ﬃ cient source of energy production, with higher cold gas and overall e ﬃ ciencies compared to forest and vine-pruning residues.


Introduction
For many years, industries have relied mainly on fossil fuels as their main energy source [1].However, this dependence has triggered significant climate shifts and the depletion of fossil fuel reserves, posing pressing challenges for society today.Notably, the combustion of fossil fuels stands out as one of the foremost contributors to environmental issues [2].
In a concerted effort to address these challenges, the European Council has set forth key targets to be met by 2030.These targets include reducing greenhouse gas emissions by at least 55% from 1990 levels, achieving a renewable energy share of between 32% and up to 42.5%, improving energy efficiency by 32.5% to 36%, and attaining a primary energy consumption efficiency of 39% [3].
Renewable energy sources (RES) present a compelling alternative to fossil fuels due to their minimal environmental impact [4].Between 2010 and 2021, renewable energy witnessed unparalleled growth, boasting an average annual increase of 0.8 percentage points.This increase in the deployment of renewable energy is a crucial factor in mitigating the increase in global temperature, with the aim of keeping it below 1.5 °C.However, to realize the goal of achieving net zero emissions by 2050, the pace of renewable electricity adoption must accelerate substantially [5].
In recent years, biomass has emerged as a significant contender among RES for heat and power production due to its versatility.Biomass can be utilized in solid, liquid, and gaseous forms [2].Moreover, it is often regarded as a carbon-neutral feedstock because it originates from plants.Through photosynthesis, plants convert carbon dioxide from the air into oxygen [6].
Biomass fuels can be categorized into six primary classes: wood and woody materials (including both hard and soft woods); herbaceous fuels, such as straw and grasses; waste materials, including sewage sludge and refuse-derived fuel (RDF); industrial derivatives; aquatic biomass, such as kelp and energy crops specifically cultivated for energy production purposes [7,8].
Biofuels can also be categorized into four categories: conventional or first-generation biofuels, derived from food crops like sugar, starch, and vegetable oils, as well as landusing feedstock; second-generation biofuels, sourced from non-food crops such as wheat straw, municipal waste, and algae; third-generation biofuels, obtained from microalgae and microbial sources like bio-oils and biogas; and lastly, fourth-generation biofuels, which involve advanced technologies like carbon dioxide capture for production [9].
One of the primary biomass conversion techniques is thermochemical conversion, which includes pyrolysis, gasification, and combustion [10].Pyrolysis offers several advantages, including lower levels of secondary pollution, cost-effectiveness, high efficiency, and a higher net calorific value.Nevertheless, it also has limitations such as favoring small-sized particles and requiring a long residence time [9].Combustion, while showing potential for future applications and being relatively cost-effective compared to other techniques, has drawbacks such as emissions of pollutant gases, ash deposition, slagging of inorganic components, the need for a drying pre-treatment, and limited product versatility [9].On the other hand, gasification stands out as one of the most advanced processes for biomass conversion into fuel.The resulting gaseous product, known as syngas, mainly comprises carbon monoxide (CO), hydrogen (H2), carbon dioxide (CO2), and methane (CH4).Common gasifying agents include air or oxygen, steam, or CO2, with temperatures typically exceeding 700 °C [11][12][13].Syngas produced by gasification can be utilized for heat and power production.Gasification offers several advantages over other techniques, including the production of versatile and synthetic gas, the recovery of useful resources, uniform temperature distribution, and efficient heat transfer.However, it also has limitations such as tar release, high capital and equipment maintenance costs, the requirement for high heat energy, and the need for feed rate optimization [9].
A wide array of biomass gasification reactors has been developed, typically falling into three generic types: fixed bed, fluidized bed (FB), and entrained flow gasifiers [14].
Fixed bed gasifiers are commonly employed in small to medium power plants and can be further categorized into three reactor types: updraft, downdraft, and cross-draft.For instance, the Harboøre gasification plant in Denmark utilizes an updraft gasifier, boasting a power production of approximately 500 MWh per month and a total grid supply exceeding 32,000 MWh.The gasifiers have operated for a total of 110,000 h, while the engine has run for 70,000 h.Meanwhile, a modified version of the downdraft gasifier is utilized in the Viking gasification plant in Denmark, with two units installed-one in Hadsund generating 200 kWe and the other in Hillerod generating 500 kWe.However, crossdraft reactors exhibit overall low efficiency and are unable to produce producer gas of acceptable quality, resulting in their exclusion from further development [14].
FB gasification reactors are typically employed in medium-to-large-scale applications, with variations including bubbling fluidized bed (BFB), circulating fluidized bed (CFB), and dual fluidized bed (DFB) reactors.For example, the Winkler gasifier developed in Germany is an application of BFB gasification reactors.On the other hand, CFB gasifier reactors, such as the Varnamo gasifier built in Sweden, are suitable for gas turbine applications.However, economic reasons led to the mothballing of the Varnamo plant after 8000 h of gasifier operation and 3600 h of turbine operation in 2000 [14].DFB reactors, which often integrate BFB and CFB designs [15], are employed in plants like the Gussing gasification plant in Austria.While the Gussing technical concept was once considered the most successful allothermal gasification system globally, economic factors led to the plant's shutdown after nearly 100,000 h of operation [14].Another example of the utilization of the FB gasification reactors is the Renugas plant in Maui, Hawaii.However, this plant encountered major problems such as the low bulk density of the bagasse used, which led to difficulties in the feeding operation.Additionally, interruptions caused by residual sugars in the bagasse dust affected the operation.Consequently, the Renugas plant in Maui had to be discontinued due to these problems and lack of funds [16].A BFB reactor based on the Renugas technology was built in Skive, Denmark.The plantʹs design started in 2004 and it commenced operating in 2008.Although this plant encountered several issues, the project managed to overcome these difficulties and is still in operation [16].
Entrained flow gasifiers are highly efficient and well-suited for large-scale applications.Examples include the Koppers-Toptzek, Texaco, and Shell gasifiers [14].
Project Arable Biomass Renewable Energy (ARBRE) in the UK, which aimed to demonstrate electricity generation from energy crops using a CFB gasification reactor, never reached commercial operation.This failure was attributed to technical problems with the gasification technology, poor management, and financial issues [17].
In Europe today, a significant number of gasification plants are operational for energy generation, including the Swindon Advanced Biofuels Plant in the UK, the Pelletvergaseer AEW Rheinfelden in Switzerland, and the BioTfuel pilot in France.However, some plants are no longer operational, such as the CHP PratteIn, which ceased operations in 2014 due to technical issues, and the Wood co-gasification in IGCC, which closed in 2013 due to low energy prices and high operational costs [18].Worldwide, the Combustion Gasification and Propulsion Laboratory (CGOL) located at the Indian Institute of Science (IISc) is involved in researching and developing gasification techniques.Currently, their focus is on the conversion of biomass to produce hydrogen for industrial applications [19].Another example is Carbogas, located in Brazil.They specialize in the production of coal, biomass, and waste gasification plants to generate fuel gases for use in ceramic, steel, and other furnaces.Currently, they are working towards a sustainable future by leveraging renewable resources and environmental conservation [20].
Numerical models are commonly employed in process simulations due to their ability to provide accurate predictions of system behavior under various conditions.While empirical experiences are valuable for understanding complex processes, they may struggle to account for all variables involved.In contrast, numerical models can comprehensively consider factors such as temperature, pressure, and the species involved, offering detailed insights into system behavior.The information obtained from numerical models can facilitate further studies, enabling optimization of system performance, reduction in energy consumption, and enhancement of the quality of the final product.Moreover, numerical models offer cost-saving benefits by allowing visualization and verification of the effects of new equipment on the process before purchase, mitigating the risk associated with investing in expensive equipment.
In addition to power and heat, syngas can be used to produce hydrogen, for fertilizer production, CO2 capture, and sustainable aviation fuels, just to name a few.However, in this study, the focus is on the production of energy and heat.
In the literature, Aspen Plus software has been extensively utilized to investigate gasification and cogeneration models.For instance, Okati et al. [21] conducted a study exploring the influence of temperature, equivalence ratio, steam-to-waste ratio, and different ratios of polypropylene in the feedstock on the quality of syngas and hydrogen produced.Their findings revealed that higher quantities of polyethylene in the waste, along with low air-to-waste ratios and equivalence ratios, resulted in a higher molar fraction of hydrogen.Additionally, they noted that the impact of steam injection and temperature variations on hydrogen production was minimal.
Similarly, Jana and De [22] employed Aspen Plus to analyze the performance of cogeneration plants with and without CO2 capture.Their results suggested that post-combustion CO2 capture is more effective than pre-combustion CO2 capture for plants with negative CO2 emissions.They emphasized the need to optimize the degree of capture, as it significantly influences the overall thermodynamic and economic performance of the plant.
In another study, Tavares et al. [23] presented a numerical methodology utilizing Aspen Plus to simulate the gasification of Portuguese forest residues.Their investigation concluded that higher temperatures favor the production of gas rich in hydrogen and with a higher heating value.Additionally, they found that using steam instead of air as a gasifying agent increases the hydrogen content and calorific value of the produced gas.
Pitrez et al. [24] introduced a computational model replicating high-temperature treatment for COVID-19 waste through plasma gasification using Aspen Plus.They augmented the model with an additional Gibbs reactor to enhance the calorific value of the syngas produced.Their findings indicated that the inclusion of the extra Gibbs reactor raised the calorific value of the syngas from 4.97 to 5.19 MJ/m 3 .This increase was attributed to elevated molar fractions of CO and CH4, coupled with a decrease in the molar fraction of H2.Furthermore, the study revealed variations in waste composition among different regions.Waste from Korea exhibited higher hydrogen molar fractions, while waste from Turkey yielded higher carbon monoxide molar fractions, and waste from Lithuania showed the highest methane molar fractions.The lowest syngas calorific values were observed for Turkish waste, whereas the highest values were recorded for Korean waste.
Calì et al. [25] conducted an experiment aimed at optimizing and developing a fixedbed updraft gasification process for biomass-based power generation.Their study particularly emphasized the optimization of an integrated double-stage wastewater management system, aiming to minimize both liquid residues and water makeup.Through their investigation, they identified the optimal process parameters for operating the syngas cleaning system, resulting in a remarkable 60% reduction in wastewater disposal.
The utilization of gasification of biomass to produce heat and energy can be a solution for the environmental problems associated with greenhouse gas and for energy production, since it offers a triple advantage: mitigating the risk of uncontrolled forest fires by cleaning rural areas, harnessing energy from waste recovery, and diminishing reliance on fossil fuels.Additionally, it contributes to curtailing greenhouse gas emissions, a matter of significant concern in recent decades.
This study builds upon the model developed by Rakaz and Abdulrazik [26] to assess the influence of the gasification process on a cogeneration plant utilizing biomass to achieve a targeted power output of 1.3 MW and optimize its performance.Their findings indicate that it is feasible to reach the desired power of 1.3 MW.Moreover, the power generated increases with higher biomass and air flow rates, as well as with increased boiler temperature.Conversely, increasing the water flow rate leads to a decrease in power generated.The study also underscores the potential of biomass-based cogeneration plants to replace conventional fossil fuels.

Materials and Methods
The research aimed to select a suitable Process Flow Diagram (PFD) for biomass cogeneration based on the literature.Figure 1 depicts the PFD equivalent to that provided by Rakaz and Abdulrazik [26], which utilizes biomass as fuel.
In this configuration, biomass is heated (1) before fueling a water tube boiler (3) to generate both heat and power via steam.Forced draft fans (2) supply air to the boiler and the combustion gases are directed to the heat exchanger (4).Simultaneously, water is pumped (5) and heated (6) before being sent into the heat exchanger (7).The combustion chamber's heat raises the water temperature, producing steam at 23 bar and 222 °C.This superheated steam drives a turbine generator (11).The turbine generator exhausts steam at 143 °C and 3.5 bar, which is directed to a steam manifold for various processes (12), such as to sterilization process, to digester, to clarification tank, and to CPO (crude palm oil) storage tank.The ashes and the exhaust gas leave the combustion chamber (8) and the ashes are removed (9), while exhaust gas is released through a chimney (10).The generated power must meet energy requirements across different areas (13).Specifically, 180 kW is allocated for the boiler, 70 kW for loading ramps, 100 kW for threshing machinery, 160 kW for a screw press, 110 kW for decarpeting, 160 kW for a kernel plant, and 210 kW for clarification and oil purification.Additionally, 150 kW is needed for each process of effluent processing and EFB (empty fruit bunch) composting press.Finally, 52 kW is designated for domestic use, totaling approximately 1.3 MW to satisfy the plant's needs.

Simulation Model
The cogeneration system model was implemented using Aspen Plus, a software developed by Aspentech [27].Aspen Plus is widely utilized for designing and simulating various industrial processes.It offers a range of blocks including heat exchangers, mixers/splitters, pumps, compressors, turbines, and more, enabling comprehensive simulations of complex systems.
There are several approaches to conducting simulations using Aspen Plus software, but it is essential to understand the properties of the processes being simulated beforehand.Additionally, familiarity with the behavior of various process components and providing initial process conditions is crucial.
The simulation process in Aspen Plus can generally be divided into three phases: • Definition of the chemical components involved in the simulation; • Setting of the PFD by setting the blocks and defining the connections between them; • Setting the main parameters of all flows (temperature, pressure, etc.) and operating conditions of each block.
For the nonconventional components, the algorithms HCOALGEN and DCOALIGT were utilized for determining the enthalpy and density, respectively.The HCOALGEN model necessitates three component attributes for these nonconventional components: the proximate analysis results (PROXANAL), the ultimate analysis results (ULTANAL), and the sulfur analysis results (SULFANAL) of the material utilized, as denoted in Aspen Plus.
The proximate analysis provides data on the moisture, ash, volatile matter, and fixed carbon content.Meanwhile, the ultimate analysis offers the weight composition of the material concerning ash, carbon, hydrogen, nitrogen, chlorine, sulfur, and oxygen, whereas the sulfur analysis furnishes the sulfur content categorized into pyritic, sulfate, and organic sulfur.
On the other hand, the DCOALIGT model solely requires two of these components: ULTANAL and SULFANAL.
The components involved in this work were defined by using the Peng-Robinson equation of state as property method [28]: where P is the pressure, R the gas constant, T the absolute temperature,  is the molar volume,  and  are the energy parameter and the size parameter, respectively, and  is a dimensionless function of reduced temperature ( ) and acentric conversion factor (): 0.37464 1.54346  0.26992 Figure 2 shows the model of the biomass cogeneration plant developed in Aspen Plus.In the original study by Rakaz and Abdulrazik [26], a boiler was employed to simulate the combustion of biomass.However, in the present work, a gasification process is utilized instead.
In the configuration shown in Figure 2, the process begins with the introduction of biomass into a heater (1).Once heated, the biomass is directed to a decomposer (2) and undergoes decomposition to break it down into its constituent elements.Subsequently, the decomposed biomass is directed to the gasifier (3), where the gasification process will take place.Air is supplied to the gasifier as a gasifying agent (4).The product resulting from gasification, the synthesis gas, is then sent to a separator (5) to remove the ash content (9), and the resulting clean synthesis gas is directed to the heat exchanger (10).Simultaneously, the water is pressurized in a pump (6) before being directed to a heater (7).From there, the water flows to the heat exchanger (8).Exhaust gases (11) are released inside the heat exchanger, while high-pressure steam is channeled to a turbine ( 12) for power generation.Furthermore, the low-pressure steam will be directed to a steam collector (13) for various processes.In Figure 2, the process is divided into two parts before reaching the heat exchanger (BLTUBES).One part involves the decomposition and gasification of biomass, sourced from a splitter (SPLIT), while the other part, where water is pumped and heated, originates from a heater (HEATER2).The combination of the gasifier and heat exchanger represents a water tube boiler in Aspen Plus, as there is no direct water tube boiler system available in the software [24].
In the first route, 5 kg/s of biomass enters the heater (HEATER) at 25 °C and 1 bar and exits the heater at 800 °C and 1 bar.Subsequently, the biomass is directed to a RYELD reactor (DECOMP), where it undergoes decomposition into its constituent elements.These elements include carbon (C), hydrogen (H2), oxygen (O2), nitrogen (N2), sulfur (S2), and ash.The yield distribution is specified according to the ultimate analysis of the biomass.The composition of the biomass used in this study can be found in Table 1.The gasification phase is conducted in an RGibbs reactor (GASIFIER) to simulate the process in a BFB gasification reactor.This reactor utilizes Gibbs free energy minimization as a model for chemical equilibrium to replicate the gasification process accurately.The total Gibbs free energy is more suitable for complex problems since no chemical reaction needs to be known to find the solution.The Gibbs free energy minimization helps to predict the equilibrium conditions of the system, and can be defined as [30]: where  is the total Gibbs free energy,  is the number of moles of species , and  is the chemical potential of species .
In a second inlet stream, 37.5 kg/s of air containing 21% oxygen and 79% nitrogen at 25 °C and 1 bar is also introduced into the gasifier.
The reactions considered for the gasification are [29,31,32]: The gasification process takes place at 800 °C and 1 bar.The resulting raw syngas (SYNG) is then directed to an SSPLIT separator (SPLIT), where the solid components are separated from the gas.The clean syngas (SYNGCL) is subsequently directed to the heat exchanger (BLTUBES), which symbolizes the water tubes in the water tube boiler.The gas produced is connected to the hot inlet of the heat exchanger.
Simultaneously, in the second route, 11.5 kg/s of water at 25 °C and 2 bar is pumped (PUMP) to a pressure of 45 bar.This pressurized water is then heated to 98 °C in a heater (HEATER2) before entering the heat exchanger as its cold inlet.
A shortcut, counter-current heat exchanger was employed with a minimum temperature approach of 1 °C, while the hot stream outlet temperature was set at 100 °C.For pressure drop calculations, an outlet pressure of 1 bar was considered.The exhaust gas from the hot outlet stream of the heat exchanger is released.Additionally, high-pressure steam from the cold outlet stream of the heat exchanger, at 478 °C and 45 bar, is directed to a turbine (TURBINE).
The turbine was assumed to be isentropic, operating at 4 bar with an isentropic efficiency of 88% and a mechanical efficiency of 99%, consistent with the values used by Cirillo et al. [2].The exhaust gas released will be directed to a steam manifold for plant heating purposes, while the electricity generated will be transferred to the main switch box for power distribution, as depicted in Figure 1.

Results
Figure 3 illustrates the flowsheet of the biomass cogeneration plant after the simulation, displaying the pressure and temperature at each step.The power generated is recorded as 6.172 MW for a mass flow rate of 5 kg/s of biomass.In comparison, Rakaz and Abdulrazik [26] achieved a power output of 2.170 MW for the same biomass flow rate and a temperature of 800 °C in the boiler.This indicates an increase of 4.002 MW in the power generated for the same mass flow rate of biomass and temperature in the gas production process.
In a separate study, Mahidin et al. [33] conducted a simulation and optimization of the same plant (Figure 1).They presented five scenarios and concluded that the appropriate flow rate for biomass was 5 kg/s and for air was 58.5 kg/s.The highest power generated in their study was 4.46 MW, which is 2.29 MW higher than the values obtained by Rakaz and Abdulrazik [26], but 1.712 MW lower than the value obtained in the present study.As can be seen in Figure 1, the plant needs 1.3 MW of energy.That means that the energy produced in the turbine is more than enough to fulfill the necessities of the plant.
To optimize the system, various changes were considered, including adjustments to factors such as the water flow rate, biomass flow rate, air flow rate, and variations in the gasification temperature.
Initially, the variation in the biomass flow rate was examined, spanning values from 1 kg/s to 10 kg/s.The results indicate a direct relationship between the biomass flow rate and the energy produced by the system, as shown in Table 2.For instance, at a biomass flow rate of 1 kg/s, the power generated equals 4.573 MW.Conversely, employing a biomass flow rate of 10 kg/s yields a power output of 8.749 MW, representing an increase of approximately 91.32% compared to the 5 kg/s biomass flow rate.
Furthermore, the comparison with the power output at a biomass flow rate of 5 kg/s reveals an increase of approximately 41.75% with the utilization of 10 kg/s biomass flow rate.This demonstrates that a higher biomass flow rate results in a greater fuel supply, leading to increased gas production and consequently, higher power output.Consequently, the optimal biomass flow rate was determined to be 10 kg/s.Considering a biomass flow rate of 10 kg/s, the impact of varying water flow rates on the power generation of the system was investigated.Water flow rates ranging from 11.5 kg/s to 13.5 kg/s were studied, consistent with the range used by Rakaz and Abdulrazik [26].The results are presented in Table 3.
It is evident from the table that the power generated decreases with an increase in the water flow rate.For instance, at a water flow rate of 11.5 kg/s, the power generated is 8.749 MW, whereas, at 13.5 kg/s, the power generated decreases to 7.578 MW, representing a reduction of approximately 13.38% This decline in power generation with higher water flow rates can be attributed to excessive cooling of the gasification reactor.Excessive water flow rates may lead to a reduction in gasification efficiency, thereby indirectly diminishing power generation.Based on these results, the optimal water flow rate is 11.5 kg/s.Next, considering a biomass flow rate and water flow rate of 10 kg/s and 11.5 kg/s, respectively, the influence of the airflow rate on the power generated was studied.For this, a range of values between 35.5 kg/s and 37.5 kg/s for the air flow rate was considered, Table 4. From the results, it is evident that the power generated decreases as the airflow rate decreases.For instance, at an airflow rate of 37.5 kg/s, the power generated is 8.749 MW, whereas a decrease in the airflow rate to 35.5 kg/s results in a power output of 8.223 MW, representing a decrease of approximately 6.01%.Therefore, it can be concluded that the optimal air flow rate is 37.5 kg/s.This phenomenon occurs because increasing the air flow rate enhances the gasification efficiency, allowing for more efficient conversion of biomass into power.
Finally, the effect of the temperature of the gasification process on the power generated was studied.The range of temperatures considered was from 700 °C to 800 °C.The results can be consulted in Table 5.From the results obtained, we can see that the power generated by the system decreases with the decrease in the temperature.For a temperature of 800 °C, the power generated is 8.749 MW, but for a temperature of 700 °C, the power generated is 6.404 MW, which represents a decrease of approximately 26.80%.Higher temperatures, usually promote faster reactions and conversion of biomass components.As a result, the power generation increases with the increase in temperature.
Based on these results, the optimal biomass flow rate is 10 kg/s.The water flow rate, air flow rate, and gasification temperature can be kept constant at 11.5 kg/s, 37.5 kg/s, and 800 °C, respectively.
The results obtained were compared with those presented in the literature by Rakaz and Abdulrazik [26].
Figure 4 illustrates the power generated for different biomass flow rates and water flow rates.It is evident that the power generated increases with an increase in biomass flow rate and a decrease in water flow rate.The maximum power generated in the current study is 8.749 MW for a biomass flow rate of 10 kg/s and a water flow rate of 13.5 kg/s.In contrast, Rakaz and Abdulrazik [26] achieved a maximum power output of 1.764 MW for a biomass flow rate of 5 kg/s and a water flow rate of 11.5 kg/s.Figure 5 displays the power generated for different temperatures and airflow rates.The power generated increases with an increase in air flow rate and temperature.Notably, Rakaz and Abdulrazik [26] achieved a maximum power output of 2.170 MW by increasing the boiling temperature from 700 °C to 800 °C.
These comparisons demonstrate that the results obtained in the present study align with those of Rakaz and Abdulrazik [26].Both studies confirm that the power generated increases with an increase in biomass flow rate, temperature, and airflow rate, and a decrease in water flow rate.The findings of this study indicate that employing the gasification process yields higher energy generation compared to the combustion process.However, after replacing the combustion chamber with the gasification system, it was found that gasification allows better performance in obtaining power and, in addition, allows the formation of syngas.Since the plant only needs 1.3 MW to operate, the additional power produced can be sold to the national power grid.Furthermore, the excess of power produced can possibly help with the fossil fuel dependency problem and minimize environmental degradation.
It was also observed that for a biomass flow superior to 10 kg/s, the simulation was no longer doable due to air becoming a limiting reactant.
The energy produced also relies on the thermodynamic properties of biomass, including proximate and ultimate analyses, moisture content, low heating values, etc., alongside various other parameters.To investigate the impact of these thermodynamic properties, a comparison was made between the results obtained for Portuguese municipal solid waste, as shown in Table 1, and those for forest residues and vine-pruning residues, as presented in Table 6.The operating conditions for flow rates and temperature are as previously stated.To calculate the efficiency of the system, the cold gas efficiency (CGE) was calculated using the equation below [35]: The LHV of the syngas can be determined by using the following expression [35]: where  represents the mole fraction of the syngas compounds.
The total efficiency was determined by using the following equation, taking into account the power generated ( ) and the lower heating value of the biomass [35]: The results, as shown in Table 7, reveal that the highest power generation occurs with Portuguese.Specifically, power generation for forest residues and vine-pruning residues when compared to municipal solid waste is 5.49% and 5.71% lower, respectively.
Regarding cold gas efficiency (CGE), Portuguese municipal waste demonstrates an efficiency of 50.67%, while forest residues and vine-pruning residues exhibit efficiencies of 15.67% and 5.83%, respectively.This substantial decrease in CGE highlights Portuguese municipal waste as a notably more efficient source of energy generation.Several factors, including waste composition (Tables 1 and 6), may contribute to this efficiency difference.
For total efficiency, Portuguese municipal waste, forest residues, and vine-pruning residues showcase efficiencies of 6.08%, 3.91%, and 5.46%, respectively.This suggests that the energy generation process using Portuguese municipal waste is relatively efficient overall.Additionally, despite vine-pruning residues having a low CGE, their overall energy generation process remains efficient compared to forest residues.

Conclusions
In this study, the optimization of a biomass cogeneration plant was investigated by replacing the combustion chamber with a gasification system.It was found that the use of a gasification process yielded an energy production of 6.172 MW with a biomass flow of 5 kg/s, which exceeds the plant's energy needs by 4.7 times (1.3 MW).This energy production could be increased by 41.75% with a biomass flow of 10 kg/s.The optimal flow rates determined were 10 kg/s for biomass, 11.5 kg/s for water, and 37.5 kg/s for air, with a gasification temperature of 800 °C.
Replacing the combustion chamber with a gasification system was found to improve power generation performance in addition to producing syngas.
Moreover, the power generated was observed to be influenced by biomass, water, and airflow rates, as well as gasification temperature.Power generation increased with higher biomass rates, airflow, and gasification temperature, while it decreased with increasing water flow rate.Additionally, thermodynamic properties such as proximate and ultimate analysis, moisture content, low heating value, etc., alongside efficiency, play crucial roles in analyzing power generation.It was evident that Portuguese municipal waste presented higher values of power generated, cold gas efficiency (CGE), and total efficiency when compared with forest residues and vine-pruning residues.This disparity could be attributed to several factors, including the composition of the waste.
By generating both energy and heat, these systems can make more efficient use of the fuel, which could lead to significant cost savings over time.The electricity generated can reduce the amount of energy that needs to be purchased from the grid and the heat produced can also be used, reducing the need for additional fuel to meet thermal energy demands.However, the economic analysis is always important.The analysis of the payback period, return on investment, and net present value are essential to determine whether the benefits of increased power production and overall efficiency outweigh the initial and ongoing costs.

Figure 1 .
Figure 1.Process flow diagram of cogeneration plant.

Figure 3 .
Figure 3. Biomass cogeneration plant with temperature and pressure.

Figure 4 .
Figure 4. Power generated at different biomass and water flow rates compared with the results obtained by Rakaz and Abdulrazik [26].

Figure 5 .
Figure 5. Power generated at different temperatures and air flow rates compared with the results obtained by Rakaz and Abdulrazik [26].

Table 3 .
Power generated for different water flow rates.

Table 4 .
Power generated for different air flow rates.

Table 5 .
Power generated for different gasification temperatures.

Table 7 .
CGE, total efficiency, and power generated for the three biomasses.