Energy Analysis of a Rotary Drum Bioreactor for Composting Tomato Plant Residues

Energy produced from plant residue composting has stimulated great interest in heat recovery and utilization. Composting is an exothermic process often controlled through temperature measurements. However, energy analysis of the overall composting system, especially the rotary bioreactors, is generally not well known and very limited. This study presents detailed energy analysis in a laboratory-scale, batch-operated, rotary bioreactor used for composting tomato plant residues. The bioreactor was considered as a thermodynamic system operating under unsteady state conditions. The composting process was described, the input generated and lost energy terms as well as the relative importance of each term were quantitatively evaluated, and the composting phases were clearly identified. Results showed that the compost temperature peaked at 72 h of operation reaching 66.7 ◦C with a heat generation rate of 9.3 W·kg−1 of organic matter. During the composting process, the accumulated heat generation was 1.9 MJ·kg−1 of organic matter; only 4% of this heat was gained by the composting material, and 96% was lost outside the bioreactor. Contributions of thermal radiation, aeration, cylindrical, and side-walls surfaces of the reactor on the total heat loss were 1%, 2%, 69%, and 28%, respectively. The information obtained is applicable in the design, management, and control of composting operations and in improvement of bioreactor effectiveness and productivity.


Introduction
In Saudi Arabia, tomato crop represents 15.5% of the total cultivated area, producing about 0.5 million tons per year, and greenhouse production represents 58% of the greenhouse total vegetable production, with a production area of 1550 hectares, yielding about 0.2 million tons per year [1].Typical vegetable greenhouse operations produce 40-60 tons of organic residues per hectare per year [2].Accordingly, the greenhouse industry in Saudi Arabia currently produces over than 0.3 million tons of organic wastes per year [2].There is a considerable amount of tomato plant residue, as a result of trimming and harvesting the crop that must be disposed-off properly [2,3].Composting of plant residues is considered to be the most desirable organic waste management method [3].Traditional composting systems are open, include agitated (windrow) and static solids beds; they require a large space and longtime of composting process (i.e., 1-2 years, on average) [4].Enclosed or in-vessel systems use fixed or rotary bioreactors for composting have been developed.These systems can process large amounts of waste without taking up much space, and they offer good control of the environmental conditions such as temperature, moisture content, and airflow rate [5].Rotary drum bioreactors are considered to be an efficient and promising technology, as this type of composters are enclosed, provide agitation, aeriation, and compost mixing, and produce a consistent and uniform end product without any odor or leachate related problems [6].In which the composting time is drastically reduced to 2-3 weeks [7].The majority of agricultural residues are generated at the end of the season at once.In addition, in a continuous system, the possibility of mixing fresh material with composted one can occur.Therefore, in agricultural practice, a batch operating systems is preferred to insure product hygiene [2].Previous studies used rotary drum bioreactors, and the drums were turned manually from time to time during composting process.Therefore, the effect of turning frequency (6, 12, 18, and 24 h interval times between two turning operations) on the stability of compost and composting performance was examined [8].However, the composting performance of a continuously rotating bioreactor (at low speeds) has never been evaluated in previous studies.
Organic waste composting produces a considerable amount of heat due to heat liberation from microbial metabolic activity, and an elevated temperature of the system (70-90 • C) may be achieved during composting of municipal solid waste [9,10].Therefore, understanding and exploring energy generation and transfer phenomena during composting is essential for controlling, managing and optimizing the composting processes.On the other hand, Rodriguez, L. et al., (2012) [11] reported that by optimizing the operating conditions during the thermophilic stage, the process could be sped up and useful compost could be provided in less time; therefore, it is important to optimize the operating conditions to reduce the composting time as much as possible [11].Moreover, temperatures from 52 to 60 • C are considered to maintain the greatest thermophilic activity in composting systems; this range of temperatures reduces weed seed viability and suppresses pathogens activity during composting [7,8].Accordingly, quantifying the generated and lost energy terms during composting is the key factor for managing and improving bioreactor performance.In the previous literature, a limited number of studies have investigated the potential energy content of compost.All focused on the in-vessel fixed bioreactors, and some of them have calculated the generated heat during composting.For example, the heat produced during composting of wheat straw was calculated to be 17.06 MJ•kg −1 of organic substances [12], during composting of poultry droppings was 12.8 MJ•kg −1 of organic substances [13], during composting of tomato plant residues-wood shavings-municipal solid mixture was 570 kJ•kg −1 of degraded dry mass [14], during composting of poultry manure-wood shavings mixture was 16-19 MJ•kg −1 of volatile solid of mixture [15], during composting of municipal waste was 1.136 MJ•kg −1 of degraded matter [16], and during composting of green waste, industrial sludge, liquid waste, and sewage was in the range from 7 to 10 MJ•kg −1 of organic matter degraded [17].Even though previous studies have focused on estimating the heat generation in fixed bioreactors, the heat losses during the composting process have not received much attention.Bach et al. [18] reported that, the heat loss from the reactor walls was the largest term in the laboratory-scale bioreactor, while heat removal by water evaporation was the largest in the commercial bioreactor.Ghaly et al. [14] reported that the heat losses from the side walls of bioreactors were accounted to be 30-90% of the total heat generated based on the insulation effectiveness of the bioreactor.The heat generation rate during the composting process is a function of chemical, physical, and biological properties of the composted material; therefore, the previous studies reported wide variations in the amount of heat (0.5-20 MJ•kg −1 ) released from organic material decomposition.Also, wide variations in the amount of heat losses (30-90% of heat generation) were reported [14][15][16][17][18][19][20][21][22][23].Moreover, previous studies dealt with fixed or manually rotated (from time to time) drum composters to account for the amount of heat generation and/or losses during composting process.However, information on the heat generation and losses during the composting process of a continuously rotating (at low speed) bioreactor are still missing.Such information is essential to maintain the composting process at optimum temperature and to evaporate moisture from solid reactants to produce compost at low moisture content.In addition, quantifying the energy terms during the reaction process of this type of composter is necessary to reduce the heat losses and to increase the production rate of compost within a short time.
Accordingly, the objective of this study is to provide thermal analysis of composting tomato plant residues in a laboratory-scale rotary drum bioreactor (i.e., continuously rotating at low speed of 3 rpm) and to evaluate the relative importance of each energy term relating to the total generated heat.The analysis will be performed in unsteady state conditions.Such information will be helpful in the proper design and optimum operation of rotary drum bioreactors.

Plant Residues
Greenhouse tomato fresh plant residues (leaves, stems, and some green and damaged fruits) were collected from various fields in Riyadh, Saudi Arabia.The average moisture content (MC) of the collected residues was about 90%.Then, they were spread out on the ground to dry for three days (MC 60%).The residues were chopped using a gas motor-powered shredder (model FYS-76 Shredder, Mainland, Zhejiang, China) to promote better aeration and moisture control.Grinding was performed to decrease the particle size to about 1 cm in order to boost the microbial degradation process.The grinded residues were left to dry out for an additional two consecutive days on the floor (MC 15%), then transported to the Biological Lab at the Research Station, Agricultural Engineering Department, King Saud University, Riyadh, and placed inside a refrigerator at 4 • C until used.

Experimental Apparatus
Three identical pilot scale rotary drum bioreactors (each with a volume of 200 L) were constructed in the laboratory at the Research Station, Agricultural Engineering Department, King Saud University, (Riyadh, Saudi Arabia, 46 • 47 E, longitude and 24 • 39 N, latitude).Each bioreactor was designed to provide a space for 50 kg (wet bases) of compost mixture plus 25% of the volume as a head space.Each bioreactor is a steel barrel with an inner diameter of 585.0 mm, length of 914.4 mm, and wall thickness of 0.9 mm.In each bioreactor, an opening door of 50 × 40.5 cm was made for loading, unloading, sampling, and cleaning purposes.A rubber gasket lining was fixed on the inner side of each opening door to keep it tight and to prevent any leakage.The outer surfaces of each reactor were insulated with a layer of 25 mm-thick glass wool blanket.Each reactor rotates horizontally around a fixed axis (a steel tube, 50 mm outer diameter) at 3 rpm by using a 0.25 HP electric motor (model no.220-380-3, Zhejiang, China).The perimeter of the tube in each reactor includes on-line holes distributed longitudinally in the upper surface of the tube for aeration purposes.Layout dimensions for the constructed rotary drum reactor, installed on a steel-angle frame with the rotating system, are illustrated, not to scale, in Figure 1.
www.mdpi.com/journal/energiesAccordingly, the objective of this study is to provide thermal analysis of composting tomato plant residues in a laboratory-scale rotary drum bioreactor (i.e., continuously rotating at low speed of 3 rpm) and to evaluate the relative importance of each energy term relating to the total generated heat.The analysis will be performed in unsteady state conditions.Such information will be helpful in the proper design and optimum operation of rotary drum bioreactors.

Plant Residues
Greenhouse tomato fresh plant residues (leaves, stems, and some green and damaged fruits) were collected from various fields in Riyadh, Saudi Arabia.The average moisture content (MC) of the collected residues was about 90%.Then, they were spread out on the ground to dry for three days (MC 60%).The residues were chopped using a gas motor-powered shredder (model FYS-76 Shredder, Mainland, Zhejiang, China) to promote better aeration and moisture control.Grinding was performed to decrease the particle size to about 1 cm in order to boost the microbial degradation process.The grinded residues were left to dry out for an additional two consecutive days on the floor (MC 15%), then transported to the Biological Lab at the Research Station, Agricultural Engineering Department, King Saud University, Riyadh, and placed inside a refrigerator at 4 °C until used.

Experimental Apparatus
Three identical pilot scale rotary drum bioreactors (each with a volume of 200 L) were constructed in the laboratory at the Research Station, Agricultural Engineering Department, King Saud University, (Riyadh, Saudi Arabia, 46° 47′ E, longitude and 24° 39′ N, latitude).Each bioreactor was designed to provide a space for 50 kg (wet bases) of compost mixture plus 25% of the volume as a head space.Each bioreactor is a steel barrel with an inner diameter of 585.0 mm, length of 914.4 mm, and wall thickness of 0.9 mm.In each bioreactor, an opening door of 50 × 40.5 cm was made for loading, unloading, sampling, and cleaning purposes.A rubber gasket lining was fixed on the inner side of each opening door to keep it tight and to prevent any leakage.The outer surfaces of each reactor were insulated with a layer of 25 mm-thick glass wool blanket.Each reactor rotates horizontally around a fixed axis (a steel tube, 50 mm outer diameter) at 3 rpm by using a 0.25 HP electric motor (model no.220-380-3, Zhejiang, China).The perimeter of the tube in each reactor includes on-line holes distributed longitudinally in the upper surface of the tube for aeration purposes.Layout dimensions for the constructed rotary drum reactor, installed on a steel-angle frame with the rotating system, are illustrated, not to scale, in Figure 1.

Experimental Procedure and Measurements
For aeration in each reactor, compressed air was supplied continuously at a flow rate of 0.005 m 3 •min −1 from a reservoir (10 bar, 0.2 m 3 volume) connected with an air compressor (Airmac, CRM203, 2.2 kW, Parkinson, Australia).The compressed air was supplied to the horizontal tube that the reactor rotates around.The compressed air passes through a flow meter that can regulate the flow rate of air in the range of 0.001-0.025m 3 •min −1 , and then to the compost via on-line holes that were made in the upper side of the horizontal tube (Figure 2a).The temperature of the compost (T c ) was measured using four thermocouple sensors fixed longitudinally at four locations below the horizontal tube (see Figure 2b).In the tube, the holes for aeration were on the upper side, while the thermocouple sensors were fixed on the lower side to be far enough from the inlet air to minimize the negative influence of air on the measured temperature.Temperatures of the outer surface of insulation (T s ) and the outer and inner surfaces of the barrel (T o and T i ) were measured using thermocouple sensors attached properly to the surfaces.The thermocouples used were copper-constantan, (type-T, Cole Parmer, Chicago, IL, USA).The wires of the four sensors used to measure T c were passed inside the tube to the outside and connected to a portable data logger (Testo 177-T4 V01-02), fixed at the end of the tube, to record the measured temperatures.The wires of the thermocouple sensors used to measure T i , T o , and T s were connected to another portable data logger (Testo 177-T4 V01-02) fixed at the outer surface of the reactor.The ambient temperature (T am ) and relative humidity (RH am ) were measured using Thermo-hygrometer DMA033 (LSI-Lastem, Milano, Italy).The measured parameters were recorded every 10 seconds, averaged every 10 min, and saved in the data loggers. www.mdpi.com/journal/energies

Experimental Procedure and Measurements
For aeration in each reactor, compressed air was supplied continuously at a flow rate of 0.005 m 3 •min −1 from a reservoir (10 bar, 0.2 m 3 volume) connected with an air compressor (Airmac, CRM203, 2.2 kW, Parkinson, Australia).The compressed air was supplied to the horizontal tube that the reactor rotates around.The compressed air passes through a flow meter that can regulate the flow rate of air in the range of 0.001-0.025m 3 •min −1 , and then to the compost via on-line holes that were made in the upper side of the horizontal tube (Figure 2a).The temperature of the compost (Tc) was measured using four thermocouple sensors fixed longitudinally at four locations below the horizontal tube (see Figure 2b).In the tube, the holes for aeration were on the upper side, while the thermocouple sensors were fixed on the lower side to be far enough from the inlet air to minimize the negative influence of air on the measured temperature.Temperatures of the outer surface of insulation (Ts) and the outer and inner surfaces of the barrel (To and Ti) were measured using thermocouple sensors attached properly to the surfaces.The thermocouples used were copper-constantan, (type-T, Cole Parmer, Chicago, IL, USA).The wires of the four sensors used to measure Tc were passed inside the tube to the outside and connected to a portable data logger (Testo 177-T4 V01-02), fixed at the end of the tube, to record the measured temperatures.The wires of the thermocouple sensors used to measure Ti, To, and Ts were connected to another portable data logger (Testo 177-T4 V01-02) fixed at the outer surface of the reactor.The ambient temperature (Tam) and relative humidity (RHam) were measured using Thermo-hygrometer DMA033 (LSI-Lastem, Milano, Italy).The measured parameters were recorded every 10 seconds, averaged every 10 min, and saved in the data loggers.Tomato residues and chicken manure (20% dry weight) were mixed properly.At the beginning of the experiment, moisture content of the mixture was adjusted to be about 60-65% and C/N ratio at about 30:1.After that, the mixture was transferred to the three bioreactors (each was filled up to 75% of the total volume) initiating the active phase of the composting process.The active phase continued until the bioreactor average temperature dropped below 35 °C.Compost materials were then transferred outside the bioreactors and left for curing for an additional 30-60 days.During the curing phase, only moisture content was monitored to ensure the completion of the degradation process.Tomato residues and chicken manure (20% dry weight) were mixed properly.At the beginning of the experiment, moisture content of the mixture was adjusted to be about 60-65% and C/N ratio at about 30:1.After that, the mixture was transferred to the three bioreactors (each was filled up to 75% of the total volume) initiating the active phase of the composting process.The active phase continued until the bioreactor average temperature dropped below 35 • C. Compost materials were then transferred outside the bioreactors and left for curing for an additional 30-60 days.During the curing phase, only moisture content was monitored to ensure the completion of the degradation process.

Energy Analysis
The bioreactor was considered as an open thermodynamic system in the un-steady state condition; the compost-humid air mixture in the bioreactor enclosed by a control volume suggested being the size of the space inside the bioreactor (Figure 2a).To describe the energy exchange between the different components of the bioreactor and to quantify the different energy terms, energy balance was applied to the control volume under the unsteady-state condition, assuming the following: (i) The moist air and the compost inside the reactor are well mixed and characterized by an average temperature, T c .(ii) The thermophysical properties of the compost and moist air are equivalent properties independent of temperature, and the pressure inside the bioreactor is the atmospheric pressure.The air enters the bioreactor at the atmospheric conditions (T am , RH am ) and exits nearly saturated (T c , RH ~0.95).(iii) Parameters in the upcoming analysis are time dependent and to simplify the expressions, time t is omitted from all the symbols hereafter.
The energy balance equation that describes the different mode of energy crossing the boundary of the control volume (Figure 2a) is given by where E in is the rate of energy input to the control volume (W), Q gn is the generated energy rate due to the metabolic activity of compost (W), E out is the rate of outlet energy leaving the control volume (W), and IE c is the internal energy of compost, gained or lost (W).Descriptions of the energy terms in Equation ( 1) are as follows: m a I am and E out = .
where I am is the enthalpy of the ambient air (kJ•kg −1 ), .
m a is the flow rate of ambient air entering and leaving the bioreactor (i.e., used for aeration in kg•s −1 ), and I e is the enthalpy of moist air (kJ•kg −1 ), nearly saturated, exiting from the reactor at an equivalent temperature equal to the compost temperature (T c ).The enthalpy of air at inlet and exit of the bioreactor (i.e., estimated at T am and T c ) is reported by Abdel-Ghany et al. [24] as In Equation (3), the absolute humidity (ω) in kg of water vapor per kg of dry air is given by ω = 0.623 e (101.325− e) , and e = RH × e s,T where e and e s,T are the partial pressure of water vapor in the air and in the saturated air (kPa), both at a certain temperature T ( • C) and at the atmospheric pressure.Value of e s,T (in kPa) is reported by Abdel-Ghany et al. [24] as The rate of change of the internal energy of compost, d/dt[IE c ], in Equation ( 1) over a small time interval, ∆t, is given by where m c is the mass of compost (kg), and Cp c is the specific heat of compost at constant pressure ).The convective-radiative heat loss (Q loss in W) from the outer surface of the bioreactor to the surrounding air (Equation ( 2)) is given by where A cy and A sw are the areas of the outer surfaces of the cylindrical part and of the side walls of the bioreactor (m 2 ) and U cy and U sw are the overall heat loss coefficient (W•m −2 • • C −1 ) of the cylindrical part and of the side walls.U cy and U sw are equal to the inverse of the equivalent heat transfer resistances (1/R eq-cy and 1/R eq-sw ) between the compost having a temperature, T c and the outside ambient air having a temperature, T am .
The heat transfer resistances between the compost and the ambient air (Figure 3) include (i) the thermal radiation resistance (R r ) between the outer surface of the bioreactor and the ambient air, (ii) the convective resistance (R co ) between the outer surface of the bioreactor and the ambient air, (iii) the conductive resistance (R s ) through the insulation thickness, (iv) the conductive resistance (R o ) through the drum steel-wall thickness, and (v) the convective resistance (R ci ) between the compost-air mixture and the inner surface of the bioreactor.Diagrams of the resistances networks for the cylindrical part and side walls part are illustrated in Figure 3a,b.Diagrams for the elevation and side view cross sections to show the dimensions layout, radii, and length of each part in the bioreactor are illustrated in Figure 2a,b.The thermal resistances for the cylindrical part in Figure 3a are defined as follows: In Equation (8a), h r , h ci , and h co are the radiation heat transfer coefficient between the outer surface of the bioreactor and ambient air, the convective coefficient between the compost-moist air mixture and the inner surface of the bioreactor, and the convective coefficient between the outer surface of the bioreactor and ambient air (W•m −2 • • C −1 ), respectively.The measured temperatures, T i and T c , were almost similar during the experiment; therefore, the convective resistance at the inner surface of the bioreactor can be neglected (R ci = 0 and R wi = 0, Figure 3a The heat transfer resistances between the compost and the ambient air (Figure 3) include (i) the thermal radiation resistance (Rr) between the outer surface of the bioreactor and the ambient air, (ii) the convective resistance (Rco) between the outer surface of the bioreactor and the ambient air;,(iii) the conductive resistance (Rs) through the insulation thickness, (iv) the conductive resistance (Ro) through the drum steel-wall thickness, and (v) the convective resistance (Rci) between the compost-air mixture and the inner surface of the bioreactor.Diagrams of the resistances networks for the cylindrical part and side walls part are illustrated in Figure 3a,b.Diagrams for the elevation and side view cross sections to show the dimensions layout, radii, and length of each part in the bioreactor are illustrated in Figure 2a,b.The thermal resistances for the cylindrical part in Figure 3a are defined as follows: In Equation (8a), hr, hci, and hco are the radiation heat transfer coefficient between the outer surface of the bioreactor and ambient air, the convective coefficient between the compost-moist air mixture and the inner surface of the bioreactor, and the convective coefficient between the outer surface of the bioreactor and ambient air (W•m −2 •°C −1 ), respectively.The measured temperatures, Ti and Tc, were almost similar during the experiment; therefore, the convective resistance at the inner surface of the bioreactor can be neglected (Rci = 0 and Rwi = 0, Figure 3a  The outer surface of the reactor exchanges thermal radiation with the inside surfaces of the laboratory building; by assuming these surfaces are at ambient temperature, Tam, the radiation heat transfer coefficient, hr in Equation (8a), is given by Reference [25] as where   and  are the emissivity of the outer surface of the bioreactor and Stefan-Boltzmann constant (5.6696 × 10 −8 W•m −2 •K −4 ), respectively.On the outer surface of a rotating bioreactor, a mixed The outer surface of the reactor exchanges thermal radiation with the inside surfaces of the laboratory building; by assuming these surfaces are at ambient temperature, T am , the radiation heat transfer coefficient, h r in Equation (8a), is given by Reference [25] as where ε s and σ are the emissivity of the outer surface of the bioreactor and Stefan-Boltzmann constant (5.6696 × 10 −8 W•m −2 •K −4 ), respectively.On the outer surface of a rotating bioreactor, a mixed convection mechanism (natural and forced convection) is expected.Several correlations are reported in the literature to determine the convective coefficient (h co ) on the outer surface of high speed rotating cylinders, which are not suitable for a bioreactor rotating at low speeds.The most suitable correlation is reported by Guen et al. [26] and used to estimate h co on the outer surface of a rotary drum reactor used for asphalt materials production; this correlation is in the following form: where L c is the circumferential length on the reactor surface (L c = 2π•r s ) in meter.In the laboratory, the air stream velocity is very low, and the free stream Reynolds number, Re ∞ in Equation ( 10) was assumed to equal zero.The rotational Reynolds number is Re Ω = 2Ωr 2 s /υ, in which Ω is the angular velocity of the bioreactor and υ is the kinematic viscosity of air.Gr is Grashof number on the outer surface of bioreactor, estimated at the mean temperature (T am + T s )/2.To examine the suitability of Equation ( 10) to be used for estimating h co in the present analysis, values of h co were estimated, during the experiment, by using Equation ( 10) and compared with those estimated by using correlations for a stationary reactor, reported in Reference [14] as where D is the bioreactor diameter (2r s , m).Equation ( 11) is for the convective coefficient on the outer surface of the horizontal cylindrical part of the bioreactor.During the composting process, the time course of h co values estimated by using Equation (10), at different rotational speed of reactor (i.e., 5, 10, 30, and 50 rpm), are illustrated in Figure 4 in comparison with those estimated from Equation (11) for the fixed reactor (rpm = 0).Results in Figure 4 indicated that Equation ( 10) is valid only for bioreactors rotating at a speed of ≥50 rpm.However, for bioreactors operating at low speed (rpm <50), the natural convection relation (Equation (11)) is recommended to estimate h co .This is because the mixed or forced convection mechanism should always result in h co values being much higher than that of the natural convection mechanism.To this end, Q cylinder can be determined by calculating U cy as 1/R eq-cy (Figure 3a).To determine the convective-radiative heat loss from the side walls (Q side-wall ), the value of U sw was calculated as 1/R eq-sw and the resistance diagram is illustrated in Figure 3b.As in Equation ( 11), the convective coefficient at the outer surface of the side walls is given by Reference [14] as The bioreactor energy balance, Equation (1), is rearranged to be in the form where Q loss is the heat losses by radiation and convection (from the cylindrical surface and circular vertical side walls of the bioreactor), (Q loss = Q side-wall + Q cylinder ).The heat loss with the exhausted air during the aeration process (Q air ) was estimated as .m a (I e − I am ) and the radiation heat loss (Q rad ) can be separately estimated as Q rad = h r (A sw + A cy )•(T s − T am ); ∆IE c is the rate of change of internal energy of compost.The energy terms in Equation ( 12) were calculated at each time interval by substituting the relevant energy terms in Equations ( 2)-( 11) into Equation (13).The input parameters to the calculation were the measured values of T am , T c , T s , RH am , and the bioreactor dimensions and the thermophysical properties of air, compost, insulation, and bioreactor materials.The thermophysical properties were assumed to be constant values independent of temperatures.This information is listed in Table 1.

Temperatures Profile
The source of heat in the bioreactor is generated due to the compost metabolic reactions.This in turn increases the temperatures of the bioreactor components.The time course of the measured temperatures in the bioreactor (i.e., compost, Tc, inner surface of bioreactor, Ti, outer surface of

Temperatures Profile
The source of heat in the bioreactor is generated due to the compost metabolic reactions.This in turn increases the temperatures of the bioreactor components.The time course of the measured temperatures in the bioreactor (i.e., compost, T c , inner surface of bioreactor, T i , outer surface of insulation, T s , and ambient, T am ) are illustrated in Figure 5.The temperature of compost started to increase rapidly after the creation of composting conditions.Because of the fast breakdown of the available organic matters and nitrogenous compounds throughout microbial activities, the temperature of compost (T c ) speedily increased to about 53 • C on the first two days and reached its maximum value (66.7 • C) after 72 h of operation.Then, it continued at higher than 60 • C for more than 12 h.This result was in accordance with results reported by Ghaly et al. [14] and Petric [27] for composting tomato plant residues.In Figure 5, the inner surface temperature of the bioreactor (T i ) is nearly equal to T c during the first four days of operation, and after that, the maximum difference was about 4 • C at the end of operation.Accordingly, the internal heat transfer resistance, at the inner surface of the bioreactor (R ci , in Equation (8a)) was neglected without jeopardizing the accuracy of the present analysis.
Energies 2018, 10, 449 9 of 14 www.mdpi.com/journal/energiesinsulation, Ts, and ambient, Tam) are illustrated in Figure 5.The temperature of compost started to increase rapidly after the creation of composting conditions.Because of the fast breakdown of the available organic matters and nitrogenous compounds throughout microbial activities, the temperature of compost (Tc) speedily increased to about 53 °C on the first two days and reached its maximum value (66.7 °C) after 72 hours of operation.Then, it continued at higher than 60 °C for more than 12 hours.This result was in accordance with results reported by Ghaly et al. [14] and Petric [27] for composting tomato plant residues.In Figure 5, the inner surface temperature of the bioreactor (Ti) is nearly equal to Tc during the first four days of operation, and after that, the maximum difference was about 4 °C at the end of operation.Accordingly, the internal heat transfer resistance, at the inner surface of the bioreactor (Rci, in Equation (8a)) was neglected without jeopardizing the accuracy of the present analysis.

Heat Generation and Losses
The rate of heat generated during the composting process (W•kg −1 of compost) and the accumulated heat (kJ•kg −1 ) are illustrated in Figure 6 during the 107 hours of composting time.As the heat was generated, the compost temperature (Tc) increased reaching 66.8 °C at the peak time.The peak of heat generation rate was 9.3 W•kg −1 of organic matter reached after 72 hours of the composting process.In total, an amount of heat totaling 1.9 MJ per kg organic matter was generated during composting.Evolution of heat generation in Figure 6 depends on several parameters controlling the reaction process such as: aeration effectiveness, the humidity distribution in the compost, oxygen and nitrogen concentration, and so on.In Figure 6, reduction in the heat generation rate was observed after 18 and after 48 hours of operation and the drastic reduction was observed after the temperature of compost (Tc) reached 66.8 °C (cooling phase).This limit of temperature may have exceeded the optimum temperature for thermophilic microorganisms; therefore, microbial growth and activity declined.As a result, the heat production rate as well as the compost temperature drastically decreased.Another reason would be that the consumption of bioavailable nutrients by the microorganisms reduced the metabolic reaction [14].

Heat Generation and Losses
The rate of heat generated during the composting process (W•kg −1 of compost) and the accumulated heat (kJ•kg −1 ) are illustrated in Figure 6 during the 107 h of composting time.As the heat was generated, the compost temperature (T c ) increased reaching 66.8 • C at the peak time.The peak of heat generation rate was 9.3 W•kg −1 of organic matter reached after 72 h of the composting process.In total, an amount of heat totaling 1.9 MJ per kg organic matter was generated during composting.Evolution of heat generation in Figure 6 depends on several parameters controlling the reaction process such as: aeration effectiveness, the humidity distribution in the compost, oxygen and nitrogen concentration, and so on.In Figure 6, reduction in the heat generation rate was observed after 18 and after 48 h of operation and the drastic reduction was observed after the temperature of compost (T c ) reached 66.8 • C (cooling phase).This limit of temperature may have exceeded the optimum temperature for thermophilic microorganisms; therefore, microbial growth and activity declined.As a result, the heat production rate as well as the compost temperature drastically decreased.Another reason would be that the consumption of bioavailable nutrients by the microorganisms reduced the metabolic reaction [14].
www.mdpi.com/journal/energiesAccording to Clark et al. [28] and Miller [29], the heat losses in laboratory-scale bioreactors are expected to be high due to the higher surface area to volume ratio.The convective-radiative heat loss from the outer surface of bioreactors was accounted to be in the range of 60-90% of the total heat losses [13,14,30].For the present analysis, the time course of different modes of energy rate loss from inside to outside the reactor is illustrated in Figure 7.This figure showed about 96% of the generated heat was lost to outside the bioreactor via convection, radiation, and aeration processes.Due to the high surface to volume ratio, most of the heat loss (97% of the total loss) was lost by convection from the outer surface of the bioreactor (69% via cylindrical body and 28% via vertical side walls).However, only 2% of the total heat loss was lost with the exhausted gas during the aeration process.The minor thermal radiation loss (1% of the total loss) is because the bioreactor's surroundings were the laboratory walls with an assumed equivalent temperature equal to the ambient air temperature (Tam).However, for bioreactors operating outdoors, the outer surface of the bioreactor would exchange thermal radiation with the sky dome (with an equivalent temperature, Tsky, which is much lower than the ambient temperature, Tam).In this case, the contribution of thermal radiation loss would be much higher than the radiation loss from the indoor operated bioreactors.During composting process, the rate of change of the internal energy of compost (IEc = mcCpc(dTc/dt)) was linked to the heat generation rate (Qgn) and is illustrated in Figure 8.The rate of change of the internal energy strongly depends on the variation of heat generation as well as the compost temperature.During the temperature raise period (the active phase), the internal energy of compost increased (energy gain, positive, +ve), while in the cooling phase period, the internal energy decreased (negative, -ve).Therefore, the heat gained by the compost accounted for only 4% in the form of internal energy.According to Clark et al. [28] and Miller [29], the heat losses in laboratory-scale bioreactors are expected to be high due to the higher surface area to volume ratio.The convective-radiative heat loss from the outer surface of bioreactors was accounted to be in the range of 60-90% of the total heat losses [13,14,30].For the present analysis, the time course of different modes of energy rate loss from inside to outside the reactor is illustrated in Figure 7.This figure showed about 96% of the generated heat was lost to outside the bioreactor via convection, radiation, and aeration processes.Due to the high surface to volume ratio, most of the heat loss (97% of the total loss) was lost by convection from the outer surface of the bioreactor (69% via cylindrical body and 28% via vertical side walls).However, only 2% of the total heat loss was lost with the exhausted gas during the aeration process.The minor thermal radiation loss (1% of the total loss) is because the bioreactor's surroundings were the laboratory walls with an assumed equivalent temperature equal to the ambient air temperature (T am ).However, for bioreactors operating outdoors, the outer surface of the bioreactor would exchange thermal radiation with the sky dome (with an equivalent temperature, T sky , which is much lower than the ambient temperature, T am ).In this case, the contribution of thermal radiation loss would be much higher than the radiation loss from the indoor operated bioreactors.During composting process, the rate of change of the internal energy of compost (∆IE c = m c Cp c (dT c /dt)) was linked to the heat generation rate (Q gn ) and is illustrated in Figure 8.The rate of change of the internal energy strongly depends on the variation of heat generation as well as the compost temperature.During the temperature raise period (the active phase), the internal energy of compost increased (energy gain, positive, +ve), while in the cooling phase period, the internal energy decreased (negative, -ve).Therefore, the heat gained by the compost accounted for only 4% in the form of internal energy.

Composting Phases
Under optimal conditions, beyond the lag period, composting proceeds from the initial state ( ∼ =10 h) through three phases as illustrated in Figure 9.These phases are (i) the moderate-temperature phase, (T c = 25-45 • C), which lasted for about one day, (ii) the high-temperature (thermophilic) phase, which lasted for two days, and (iii) the cooling and maturation phase, which lasts from one day in the bioreactor (the cooling phase in the present experiment) to several days outside the bioreactor for maturation process.Results in Figure 9 show that time consumed in the high-temperature phase could be significantly reduced to about two days compared to several days or even several months in other composting methods.However, during the thermophilic phase the temperature remained above 55 • C for a period of 36 h that may enough to satisfy the regularity requirement for the destruction of pathogens.This is because compost temperatures from 52-60 • C are able to maintain the greatest thermophilic activity in composting systems and reduce weed seed viability and suppression of pathogens activity [7,8].

Composting Phases
Under optimal conditions, beyond the lag period, composting proceeds from the initial state (10 h) through three phases as illustrated in Figure 9.These phases are (i) the moderate-temperature phase, (Tc = 25-45 °C), which lasted for about one day, (ii) the high-temperature (thermophilic) phase, which lasted for two days, and (iii) the cooling and maturation phase, which lasts from one day in the bioreactor (the cooling phase in the present experiment) to several days outside the bioreactor for maturation process.Results in Figure 9 show that time consumed in the high-temperature phase could be significantly reduced to about two days compared to several days or even several months in other composting methods.However, during the thermophilic phase the temperature remained above 55 °C for a period of 36 h that may enough to satisfy the regularity requirement for the destruction of pathogens.This is because compost temperatures from 52-60 °C are able to maintain the greatest thermophilic activity in composting systems and reduce weed seed viability and suppression of pathogens activity [7,8].

Conclusion and Recommendation
Thermal analysis was applied to batch-operated, laboratory-scale rotary drum bioreactors used for composting tomato plant residues.The analysis was performed with a control volume, suggested to be on the inner surfaces of the bioreactor containing the compost material-moist air mixture, under unsteady state thermal conditions.The heat generated from the degradation of the organic matter raised the compost temperature, Tc.According to the evolution of Tc, the three main phases encountered in the composting process (lag, active, and maturation phase) could be clearly identified.The maximum heat production rate (at Tc = 66.7 °C) was 9.3 W•kg −1 of organic matter; the rate of heat production drastically decreased after the temperature, Tc, had reached 66.7 °C due to the decline in microbial growth and activity.The total amount of heat generated during the composting process was 1.9 MJ per kg organic matter; 94% of this heat was lost to outside the bioreactor, and only 4% gained by the compost material in the form of internal energy stored.The bioreactor was operated inside the laboratory.Therefore, the radiation loss was negligible (1% of the total heat loss).However, for bioreactors operating outdoors, radiation loss to the sky dome would be much higher and cannot be neglected.The heat loss with the exhaust gas accounted for 2% of the total heat loss because the aeration rate was low.Therefore, the aeration system needs to be

Conclusions and Recommendation
Thermal analysis was applied to batch-operated, laboratory-scale rotary drum bioreactors used for composting tomato plant residues.The analysis was performed with a control volume, suggested to be on the inner surfaces of the bioreactor containing the compost material-moist air mixture, under unsteady state thermal conditions.The heat generated from the degradation of the organic matter raised the compost temperature, T c .According to the evolution of T c , the three main phases encountered in the composting process (lag, active, and maturation phase) could be clearly identified.The maximum heat production rate (at T c = 66.7 • C) was 9.3 W•kg −1 of organic matter; the rate of heat production drastically decreased after the temperature, T c , had reached 66.7 • C due to the decline in microbial growth and activity.The total amount of heat generated during the composting process was 1.9 MJ per kg organic matter; 94% of this heat was lost to outside the bioreactor, and only 4% gained by the compost material in the form of internal energy stored.The bioreactor was operated inside the laboratory.Therefore, the radiation loss was negligible (1% of the total heat loss).However, for bioreactors operating outdoors, radiation loss to the sky dome would be much higher and cannot be neglected.The heat loss with the exhaust gas accounted for 2% of the total heat loss because the aeration rate was low.Therefore, the aeration system needs to be improved to provide proper aeriation, which stimulates microbial breakdown of organic matter.This, in turn, would significantly reduce the production period.For a continually rotating drum (as in the present case), natural aeriation is suggested by making holes of appropriate size on the drum surface.The pressure difference between inside and outside the rotating drum will induced aeriation.The heat losses via convective from the outer surface of the bioreactor was extremely high (94% of the total heat generated).These losses can be reduced significantly by increasing the insulation effectiveness-for example, by applying reflective painting to the inner and outer surfaces of the drum, and by using radiation shields with insulation blanket.This would quickly increase the compost temperature (T c ) raise and significantly reduce the production time.Optimization is needed to keep T c over 55 • C as long as possible to enhance the reaction process and to suppress pathogens activity.Moreover, instead of the constant rotating speed (3 rpm) used in the present study, the effect of different speed on the composting process should be examined.

Figure 1 .
Figure 1.Schematic diagram showing two views of the constructed rotary drum bioreactor system; dimensions in cm, not to scale.

Figure 1 .
Figure 1.Schematic diagram showing two views of the constructed rotary drum bioreactor system; dimensions in cm, not to scale.

Figure 2 .
Figure 2. Cross sectional views of the bioreactor showing: (a) the air inlet and outlet ports, the horizontal tube including the aeration ports and the thermocouples supports, and the energy terms cross the suggested control volume, and (b) thermocouple sensor locations in the bio-reactor.

Figure 2 .
Figure 2. Cross sectional views of the bioreactor showing: (a) the air inlet and outlet ports, the horizontal tube including the aeration ports and the thermocouples supports, and the energy terms cross the suggested control volume, and (b) thermocouple sensor locations in the bio-reactor.
,b).In Equation (8-b), K s and K b are the thermal conductivity of the drum material (steel) and of the insulation (glass wool) in W•m −1 • • C −1 .The dimensions r i , r o , r s , and L are illustrated in Figure 2a,b.Energies 2018, 10, 449 6 of 14 www.mdpi.com/journal/energiesresistances(1/Req-cy and 1/Req-sw) between the compost having a temperature, Tc and the outside ambient air having a temperature, Tam.
,b).In Equation (8-b), Ks and Kb are the thermal conductivity of the drum material (steel) and of the insulation (glass wool) in W•m −1 •°C −1 .The dimensions ri, ro, rs, and L are illustrated in Figure 2a,b.

Figure 3 .
Figure 3. Electrical analogy for the thermal resistances against heat losses transmitted between the compost-moist air mixture and the outside ambient air (a) through the cylindrical part and (b) through vertical circular side walls.

Figure 3 .
Figure 3. Electrical analogy for the thermal resistances against heat losses transmitted between the compost-moist air mixture and the outside ambient air (a) through the cylindrical part and (b) through vertical circular side walls.

Table 1 .
Parameters used in the calculation of energy terms.r o − r i ) 0.007 m specific heat, Cp s 490

Figure 5 .
Figure 5.Time course of temperatures measured for the ambient air (Tam), outer surface of reactor (Ts), inner surface of reactor (Ti) and compost (Tc) during the composting process.

Figure 5 .
Figure 5.Time course of temperatures measured for the ambient air (T am ), outer surface of reactor (T s ), inner surface of reactor (T i ) and compost (T c ) during the composting process.

Figure 6 .
Figure 6.Time course for the heat generation rate (W) and the cumulated heat (MJ), per kg of organic matter, during the composting process.

Figure 6 .
Figure 6.Time course for the heat generation rate (W) and the cumulated heat (MJ), per kg of organic matter, during the composting process. www.mdpi.com/journal/energies

Figure 7 .
Figure 7. Energy-rate losses from inside to outside the bioreactor during the composting process via radiation, convection, and the exhausted air.

Figure 8 .
Figure 8.The total energy generation rate and the change of internal energy of compost during the composting process.

Figure 7 .Figure 7 .
Figure 7. Energy-rate losses from inside to outside the bioreactor during the composting process via radiation, convection, and the exhausted air.

Figure 8 .
Figure 8.The total energy generation rate and the change of internal energy of compost during the composting process.

Figure 8 .
Figure 8.The total energy generation rate and the change of internal energy of compost during the composting process.

Figure 9 .
Figure 9. Composting phases were outlined based on the measured temperature of compost (Tc) in the present study.

Figure 9 .
Figure 9. Composting phases were outlined based on the measured temperature of compost (T c ) in the present study.

Table 1 .
Parameters used in the calculation of energy terms.