Algal Biomass from Wastewater and Flue Gases as a Source of Bioenergy

Algae are without doubt the most productive photosynthetic organisms on Earth; they are highly efficient in converting CO2 and nutrients into biomass. These abilities can be exploited by culturing microalgae from wastewater and flue gases for effective wastewater reclamation. Algae are known to remove nitrogen and phosphorus as well as several organic contaminants including pharmaceuticals from wastewater. Biomass production can even be enhanced by the addition of CO2 originating from flue gases. The algal biomass can then be used as a raw material to produce bioenergy; depending on its composition, various types of biofuels such as biodiesel, biogas, bioethanol, biobutanol or biohydrogen can be obtained. However, algal biomass generated in wastewater and flue gases also contains contaminants which, if not degraded, will end up in the ashes. In this review, the current knowledge on algal biomass production in wastewater and flue gases is summarized; special focus is given to the algal capacity to remove contaminants from wastewater and flue gases, and the consequences when converting this biomass into different types of biofuels.


Introduction
World energy demand is increasing continuously due to industrialization, technology development and population growth, and is expected to reach 9.2 billion by 2050 [1].In 2015, the world's total primary energy was supplied by fuel petroleum (that accounted for 31.7%),coal (28.1%), natural gas (21.6%), biofuels and waste (9.7%), nuclear (4.9%), hydro (2.5%) and the combination of geothermal, solar, wind, tidal/wave/ocean, heat and others (1.5%) [2].A continuous dependence on fossil fuels will raise energy prices as crude oil reserves diminish.Energy based on fossil fuels might, therefore, be economically unsustainable in the future [3], but even more important is its footprint on our climate: worldwide reductions in global greenhouse gas emissions (GHG) will be essential to avoid the worst consequences.GHGs are the main cause of global warming and melting of the poles, and they also lead to the loss of marine biodiversity through ocean acidification.The oceans have been found to absorb approximately one-third of the anthropogenic carbon dioxide (CO 2 ) emitted each year, which then is dissolved and gradually reduces the pH of the water [4].Thus, the use of renewable energy is essential if we want to sustain the Earth for future generations.However, to be a viable replacement for fossil fuel, the source of renewable energy has to be economically competitive, should be produced at amounts able to meet energy demand, and its production has to provide a net energy gain [3].By 2020, the European Union (EU) countries are required to provide 20% of the final energy consumed from renewable sources [5]; 56% of the renewable energy supply in the EU should originate from biomass [6].The Energy Strategy 2020 of the European Commission has given a long-term target for the EU and other industrialized countries resulting in an 80-95% cut of GHG emissions by 2050 [7].Additionally, the United Nations Paris Agreement proposes a worldwide reduction to 40 Gt CO 2 emission equivalents instead of the 55 Gt aimed at by 2030.
The term biomass covers all organic material in non-fossil form originating from land-and water-based vegetation as well as all organic wastes [8].Biomass is a complex mixture consisting mostly of carbohydrates, lipids, lignin, proteins and organic acids [9].Contrary to fossil fuels, biomass is a source of clean energy with a negligible content of sulfur, N (nitrogen) and ash, resulting in low emissions of sulfur dioxide (SO 2 ), nitrogen oxides (NO x ) and, importantly, the CO 2 emission is, at least, theoretically net-zero [10].Nevertheless, gaining energy from biomass feedstock, originating from agriculture, forest lands or other ecosystems, has ecological and economic impacts [11,12].The biomass is usually either burnt to produce electricity and thermal energy, or used for the production of transportation fuels, so-called biofuels [13].Biofuels are generally classified in three categories: (i) first-generation biofuels originate from biomass that is generally edible (i.e., food-crop feedstock), mainly consisting of sugar, starch, and vegetable oil; (ii) second-generation biofuels are bio-based products that come from non-food feedstock, such as lignocellulosic agricultural, forest feedstocks and municipal solid wastes; and (iii) third-generation biofuels are produced from microalgal biomass [14].The expansion of first-generation biofuels and their direct competition with food-crop production for land area has negatively impacted the environment; GHG emissions were actually raised from changes in land usage and biomass-conversion systems; pollutants were emitted and water depleted [3,[15][16][17][18].Not only did biodiversity decrease, but also global food prices increased dramatically [12,19].The production of second-generation biofuels, instead, has the prospective advantages of consuming waste residues and using abandoned land, thus promoting the improvement of economic conditions in emerging and developing regions.However, currently, the production of such fuels is not cost-effective, and technical hitches have to be resolved before their potential can be realized [20,21].The growth of second-generation biofuel crops could also become unsustainable on a long-term basis when they compete with the plantation of food crops for available land [22].For both the production of first-and second-generation biofuels, large areas are needed to cultivate the crops, and hence they are not a viable alternative to fossil fuels, as the produced volumes cannot cover our global fuel demand [23,24].Therefore, the exploitation of microalgae to generate third-generation biofuels seems to be a feasible alternative for producing renewable energy, overcoming the disadvantages of first-and second-generation biofuels [25,26].
Microalgae have much higher growth rates and productivities than conventional forest or agricultural crops and other aquatic plants.They can synthetize lipids in concentrations up to 70% dry-weight biomass, and exposed to nutrient-or other environmental stress their lipid amounts can even be up to 90% [25][26][27][28].Microalgae have a very short harvesting cycle compared to crop plants, which are generally harvested once or twice per year; plus, microalgae can grow all year round (depending on species and cultivation conditions), allowing several continuous harvests with significantly increased yields [29].Thus, the yield of microalgal oil per area may substantially exceed the yield of the best oilseed crops [25,30].It is estimated that microalgae can produce up to 94,000 L biofuel per ha per year, while corn only yields about 560 L per ha annually [31].Moreover, the aquatic growth of microalgae in tanks or bioreactors requires less land area: up to 297 or 770 times less than soybean or corn crops, respectively [25].Microalgae require less freshwater than terrestrial crops, which reduces the pressure on freshwater sources.Depending on the species, they even can grow in marine, brackish and/or wastewater, which are unsuitable for human consumption.Microalgal cultures do not require the application of herbicides or pesticides.Different species are adapted to live in a broad variety of environmental conditions, allowing culturing in various environments, contrary to terrestrial feedstocks [30,32].In addition, different types of renewable fuels such as biodiesel, methane, hydrogen or ethanol can be produced from microalgal biomass [25,30,33].Biodiesel from microalgal biomass has been shown to perform as well as petroleum diesel, while at the same time its emissions of particulate matter, CO, hydrocarbons, and SO x are reduced [34].Some microalgae species even produce high-value compounds, such as polyunsaturated fatty acids, natural dyes, polysaccharides, pigments, antioxidants, bioactive compounds, and/or proteins, which can potentially revolutionize the industries of cosmetics, pharmaceuticals, nutrition, food additives and aquaculture [26].
From an ecological and economic perspective, it is particularly interesting the possibility of culturing microalgae in wastewater, allowing the bio-treatment of sewage coupled with the production of potentially valuable biomass, and at the same time reducing GHG emissions [35].Microalgae are able to take up ammonium, nitrate and phosphate from wastewater.As photosynthetic organisms, they further are able to transform CO 2 from flue gases into biomass [36], thereby reducing CO 2 emissions, the major GHG.With our current technology, large-scale biofuel production from algae seems only to be economically feasible when coupled with wastewater treatment [37].The production costs of algal biomass using a 100 ha open pond system were estimated to be €4.95 per kg [38].
Even with an all-year operation and the optimistic assumption of lipids to be 35% of the biomass [39], the price of crude algae biomass currently is still not economically feasible.However, combining algal biomass production with tertiary wastewater treatment will create better economic prospects.Many reviews combine the current knowledge on the topic; in this review, we will, therefore, focus only on the latest literature.Wastewater as culture medium is a cost-effective solution for recycling nutrients, and the need for additional N and P (phosphorus) sources is estimated to decrease by about 55% [40].This review will focus on our current knowledge about culturing microalgae in different types of wastewater and flue gases, the various microalgal species adapted to grow in wastewater, and it will summarize research focusing on the conversion of algal biomass.

The Composition of Wastewater and Flue Gases
Depending on its source, wastewater is classified as municipal, agricultural or industrial.Although microalgae have been used for wastewater treatment since the late 1950s [41], at present the chemical processing of wastewater or the manufacture of activated sludge are still the most common wastewater-treatment methods [35].Removal of N and P is an important requirement of wastewater treatment; otherwise, if discharged to water systems, these nutrients will cause eutrophication of aquatic ecosystems, potentially endangering human health, biodiversity and ecosystem sustainability [42,43].Nitrogen is present in the wastewater influent as ammonia (NH 4 + ), organically bound nitrogen or even nitrite (NO 2 − ) or nitrate (NO 3 − ).Phosphorus is present in both the wastewater influent and effluent primarily in the form of phosphates (PO 4 3− ).Although municipal and industrial wastewaters are usually treated before their release into the environment, agricultural wastewater derived from animal manure is often directly spread over feedstock lands as fertilizer, and it can contain N and P concentrations of >1000 mg L −1 [44].Crops are not able to fully absorb the nutrients provided by the manure, and thus the excess nutrients will be washed off, resulting in eutrophication of receiving waters.Agricultural runoff can further contain herbicides, fungicides and insecticides.Municipal wastewater can also contain multiple inorganic substances from domestic and industrial origin, comprising several heavy-metal pollutants such as arsenic, cadmium, chromium, copper, lead, mercury and zinc [45].Compared to agricultural and municipal wastewater, there is less N and P in industrial wastewater.On the other hand, industrial wastewater may contain high levels of heavy-metal pollutants and organic chemical toxins (hydrocarbons, biocides, and surfactants) [46].Nevertheless, its composition is extremely variable depending on the industrial sector.Commonly, wastewater treatment is performed in two or three stages as follows: (i) the primary treatment removes large particles through grids or sedimentation; (ii) the secondary treatment diminishes the biochemical oxygen demand (BOD) by oxidizing organic compounds and NH 4 + .
This treatment is often carried out in aerated tanks using bacteria that degrades the organic material and protozoa that grazes on the bacteria, and it results in activated sludge.The organic material is then converted to CO 2 and water; (iii) tertiary wastewater treatment, i.e., the last treatment prior to discharging the water into the environment, removes mainly the inorganic compounds including N and P [47].N is usually removed in a two-step-process, including nitrification and denitrification; NH 4 + is first oxidized to nitrate by nitrifying bacteria in aerobic reactors, and thereafter in anoxic reactors it is converted to nitrogen gas (N 2 ) by denitrifying bacteria.Removal of P is achieved by chemical precipitation with aluminum or iron salts to form aluminum or ferric phosphate.These salts are usually added in excess to overcome natural alkalinity [47].Alternatively, P is adsorbed to filter materials containing positively charged surfaces [48] or taken up by bacteria exposed to alternating aerobic and anaerobic conditions in a process called enhanced biological phosphorus removal [47].Unfortunately, removed N and P cannot be fully recycled, and instead are buried in landfills or further treated to generate fertilizers [49].
Both the production of fertilizers for feedstock cultivation, and the remediation of wastewater where the remaining of fertilizers end up, have high capital and energy costs [11,50] resulting in a waste of nutrients.This is of major concern as the industrial production of fertilizers relies heavily on N from the energy-intensive Haber-Bosch process (which consumes around 1% of global energy production); P is derived from the mining of phosphate rock, a non-renewable activity that is estimated to lead to depletion of the Earth's phosphorus supply within 50-100 years [51].Microalgae used for the treatment of wastewater, therefore, provide an excellent alternative, because these photosynthetic organisms assimilate N, P and C during their growth, the nutrients can then be recycled and used as bio-fertilizer.The inorganic nutrients present in wastewaters provide cost-effective media for microalgal cultivation and at the same time recycle water, which reduces the overall water footprint of biofuel production from microalgal biomass [26,37,40].Contrary to conventional wastewater treatment, the treatment of wastewater with microalgae does not create additional pollution, and therefore it offers an ecologically safe, cheap and efficient way of removing nutrients [52].
The concentrations of N and P present in wastewater differ considerably depending on its type and the stage of its treatment process [53].Municipal wastewater (also called sewage) has relatively low amounts of total N and P; concentrations are around 10-100 mg L −1 [44].After secondary treatment, total N and P diminish to ranges of 20-40 mg L −1 and 1-10 mg L −1 , respectively [54].These concentrations are highly suited for microalgal cultivation.Sewage contains N and P in a ratio of 11 to 13 (calculated on the basis of NO 3 − and PO 4 3− ) [55].An N:P ratio of 16 originally was widely accepted as optimal for algal growth [55][56][57][58], based on the empirical formula C 106 H 181 O 45 N 16 P describing the chemical composition of algae [59].The typical algal biomass contains 6.6% N and 1.3% P in dry weight [60] with a molar N:P ratio of 11.2, a composition similar to that found in wastewater.Based on the N and P content found in biomass, one can assume that algae cultures in wastewater can produce 0.3-1.15g L −1 of dry weight.Following this assumption, each kilogram of algae produced in wastewater should have assimilated approximately 66 g of dissolved N and 13 g of P, corresponding to 0.7-3.0m 3 of cleaned wastewater.At low N:P ratios, microalgae are able to assimilate P in excess (luxury uptake); the nutrient is then stored within the cells inside the granules in the form of polyphosphate [56,61] and can be metabolized in case of P limitation.Luxury uptake of P in algae increases their cleaning capacity of wastewater.Nitrogen limitation in the culture medium can further lead to N starvation, a recognized stress factor used to promote lipid accumulation in algae [27,32,62,63].The growth of algae in wastewater, therefore, allows the recycling of N and P ions and at the same time it is an effective way to produce biofuel at decreased cost [35].Flue gases from burning natural gas and coal contain 5-6% and 10-15% CO 2 , respectively [36,64].In addition to CO 2 , flue gases may contain more than 100 different compounds, including several noxious gases such as nitrogen oxides (NO x , with nitric oxide and nitrogen dioxide being dominant) and SO x , as well as N 2 , H 2 O, O 2 , unburned carbohydrates (C x H y , such as methane and butane), CO, heavy metals, halogen acids and particulate matter [65].
In order to decrease CO 2 emissions from flue gases, several CO 2 sequestration strategies have been implemented globally.Carbon capture and storage (CCS) methodologies have been widely and intensely studied, and take place in three steps: CO 2 capture, CO 2 transportation and CO 2 storage.CO 2 is stored by absorption, adsorption, gas-separation membranes, or cryogenic distillation.This CCS process is usually carried out at facilities that discharge large amounts of CO 2 into the atmosphere (e.g., cement-manufacturing facilities and power plants) daily [66,67].The gas mixture rich in CO 2 is compressed to a supercritical fluid or liquid, which is then transported and stored in deep oceanic or geological trenches, or is mineralized [68].Although CCS methodologies meet their objectives, they are only short-term solutions with numerous challenges associated, i.e., high costs, energy and space requirements and potential CO 2 leakage over time.Rock-weathering enhancement is a method relying on physical and biological properties to reduce atmospheric CO 2 ; however, there is uncertainty about its time range.Alternatively, biological strategies to capture CO 2 are based on enhancing photosynthesis on our planet either by CO 2 afforestation, ocean fertilization, or microalgal cultivation [69].These processes are an economically and environmentally viable option to be explored, considering that photosynthesis not only captures CO 2, but even releases oxygen as a side product.Although terrestrial plants are able to sequester large amounts of CO 2 from the atmosphere, photosynthesis performed from forests only accounts for 3-6% of carbon annually fixed on the planet, whereas seagrass, algae and cyanobacteria are responsible for approximately 40% [70].Due to the great photosynthetic efficiency of microalgae, which is 10 times higher that of terrestrial plants, their cultivation provides the most promising and environmentally sustainable biological CO 2 capture process [36].

Microalgal Wastewater Reclamation and Biomass Production
Successful microalgal cultivation on an industrial scale using wastewater and flue gases will depend on the selection of excellent microalgal strains from either natural screening or genetic engineering.Strains isolated near power or wastewater-treatment plants may be more tolerant than other native species.One should keep in mind that different species vary considerably in tolerance and productivity.Tedious selection procedures are required depending on the location of the algal farm, the origin of wastewater, and the purpose of the biomass.Many excellent recent reviews summarize the use of various microalgae; in this section, we therefore will refer only to the most recent publications.

Algal Growing Regimes and Physiology to Increase Target Macromolecules
The common term algae refers to a large group of aquatic photosynthetic organisms, and includes eukaryotic macro-and microalgae as well as prokaryotic cyanobacteria.The major algal groups are the following: cyanobacteria (Cyanophyceae), green algae (Chlorophyceae), diatoms (Bacillariophyceae), yellow-green algae (Xanthophyceae), golden algae (Chrysophyceae), red algae (Rhodophyceae), brown algae (Phaeophyceae) and dinoflagellates (Dinophyceae).Green algae are, without any doubt, the most important group of algae used in various wastewater treatment processes.This Chlorophyta phylum includes about 6000 genera of approximately 10,000 species of microscopic and macroscopic eukaryotic algae.All these species contain chloroplasts surrounded by two envelope membranes and an internal membrane called thylakoids, which is partly stacked (grana); the photosystems located inside the thylakoid membrane contain chlorophyll a and b.Starch deposits inside the plastids are the main polysaccharide reserve [71].The majority of species used in wastewater-treatment processes belong to the genus Chlorella and Scenedesmus, which are particularly tolerant to harsh environment and high level of nutrients.
Based on the use of energy and carbon source, algae are able to photoautotroph, heterotroph, photoheterotroph or mixotroph growth.In photoautotroph growth, algae use light as an energy source and inorganic carbon as a carbon source; during heterotroph metabolism the source of energy and carbon are organic compounds.Photoheterotroph growth allows light to be the energy source and organic carbon the source of carbon; and during mixotroph metabolism, algae can use both light and organic compounds as a source of energy and both inorganic and organic carbon as a source of carbon [72].Depending on the chosen growth regime, the algal biomass composition will differ [73], which should be considered when specific macromolecules such as lipids or carbohydrates are the target products.Commonly for the production of biodiesel a high amount of algal lipids is needed, while biomass with a high portion of carbohydrates is important for the production of bioethanol, biobutanol and biohydrogen.
In some studies the mixotrophic growth in the presence of both organic and inorganic carbon has been shown to be the most productive for achieving a high algal growth rate and final biomass [72,74,75].Hence, the organic and inorganic carbon present in wastewater and flue gases could potentially result in high biomass production during mixotrophic growth.Several cultivation methods have been developed with the aim of increasing the algal cell content with energy-rich macromolecules (lipids and carbohydrates).
Exposing the cells to stress has been shown to be highly effective at increasing the concentration of target macromolecules.A stress can be produced by altering either chemical or physical parameters in the culture.Chemical parameters usually include nutrients of the growth medium: carbon, nitrogen, phosphorus, sulphur, iron or salt stress (sodium chloride); while physical parameters include light or temperature [73].
The amount of CO 2 present as an inorganic carbon source affects the concentration and cellular localization of starch; a Chlorella strain grown at high CO 2 concentrations (3% in air) stored starch mainly in the stroma, while during growth at low CO 2 level (air level) starch was stored in the pyrenoids [76].Hence, algae grown in the presence of flue gases that can contain considerably high amounts of CO 2 might be affected in their starch accumulation or cellular storage-localization.
Nitrogen deprivation is one of the most frequently used parameters to increase the lipid content [32], and carbohydrate content of algal cells [77].
Phosphorus limitation was shown to increase the lipid content in algal cells [32]; while P and sulphur limitation increased starch content in Chlorella cells, although in the case of P, this was only for a very limited period of time, after which it decreased again [77].
Some algal species accumulate carbohydrates at high light intensity [73].However, we should bear in mind that algal bioreactors for wastewater treatment often use natural irradiation, which cannot be manipulated and is weather dependent.One way to influence natural light intensity available to the algae is by changing reactor configuration.In field trials, it has been shown that the increase of sunlight together with the limitation of nitrogen resulted in very high lipid productivity [32].Temperature has been shown to affect the fatty acid composition of the lipids; low temperature stimulates the biosynthesis of unsaturated fatty acids [78] that improve fuel fluidity, but decrease its oxidation stability.

Microalgae Strains Used for Wastewater Reclamation
The majority of species used in wastewater-treatment processes belongs to the genus Chlorella and Scenedesmus, which are particularly tolerant.The genus Chlorella with more than 100 unicellular members is best studied among green microalgae; the unicellular algae consist of small round cells protected by a hemicellulose-containing cell wall, providing rigidity [79].Chlorella species are fast growing, very resistant and effective in removing N and P from different wastewater streams [58].The downside of using Chlorella species in wastewater treatment can be their small size and high stability in liquid cultures, which increases the costs of harvesting and biomass separation.Scenedesmus species perform very well in wastewater-treatment processes.The genus is comprised of approximately 70 colonial, green microalgae species; Scenedesmus cells are 5-8 µm wide, twice as long, and form 2 to 16 cell-colonies with poles of terminal cells equipped with a single spine [80].Beside culture-collection strains, locally isolated strains and mixed cultures can be successfully implemented in wastewater treatment [81][82][83].

Monoculture Versus Community
An algal monoculture consists of a single strain precisely selected to produce a desired compound with maximal yield [84]. Algal monocultures cultivated in non-sterile systems like open ponds, using pretreated conventional culture medium, are susceptible to contamination by wild strains unless additional means of control are utilized [55].In wastewater, which contains many microorganisms, it is very difficult to maintain the inoculated strain as a monoculture for longer periods before the culture will be overtaken by other algae present in the environment [55].Therefore, monocultures of high lipid-producing strains are likely to be out-competed by faster growing species [85], depending on many environmental and biological parameters.Maintaining the dissolved oxygen (DO), a certain pH, the culture retention time and dilution rates at certain values are some of the possible solutions favoring the growth of the desired species.However, the reason why a certain algae strain is dominant over another is still not fully understood [55].Locally isolated strains from wastewater ponds have been shown to perform better in wastewater treatment than strains from culture collections [81,82,86,87].Also, algae consortia have been found to be more stable than monoculture [81,82].The shift in the culture composition from selected species to a mixed culture will influence growth parameters as well as the expected final biomass concentration and its lipid content.However, one should keep in mind that mixed cultures also accumulate lipids; if biofuel is the desired product, the biomass production, therefore, might still be satisfactory [55].In order to maximize the performance of each strain, the chemical composition of the wastewater should be analyzed in detail prior to its use as a medium for microalgal cultivation [87].

Control of Grazers
Not only microorganisms, but grazers are also very common in open pond cultures of wastewater.Grazers can be controlled through physical and chemical treatment.An application of e.g., 10 mg L −1 quinine chloride to a contaminated outdoor-growing algae mass culture can completely remove grazers within a short time [88].However, in wastewater treatment any addition of chemicals is unsuitable for economic reasons as well as to avoid secondary water contamination.Adjusting the pH to a high value of 11 for a short period of time was suggested to be an efficient method to remove most grazers, especially in wastewater treatment, which already contains high levels of ammonia [55].Obviously, the selection of robust algae strains is the best solution; in a mixed culture with invasive algae species, the high growth rates will enable the algae to withstand a low population of grazers (with much lower growth rates).

Enhanced Lipid Production During Wastewater Treatment
The total price of crude algal biofuel production using large-scale open-pond cultivation systems was estimated to be €24 per L ($109 per gal), which is far above the costs of producing commercial petrol diesel [89].Profitable crude algal biofuel production will require the development of algae strains and conditions for culture that allow the rapid production of algal biomass with high lipid content and minimal growth of competing strains.Nevertheless, coupling the utilization of wastewater and flue gases to microalgae production is an important part of the development process, since it decreases production costs, provides wastewater bioremediation and reduces air contamination.Large-scale cultivation of algae for lipid and biofuel production requires the availability of space, water, fertilizers, sunlight and CO 2 .The employment of a two-stage cultivation strategy as well as the use of a native, mixed culture has been recommended to enhance lipid accumulation and economic biofuel production in wastewater [90].
A combined process culturing Chlorella vulgaris on wastewater centrate (effluent generated through dewatering activated sludge, which derived from secondary wastewater treatment) with the addition of waste glycerol (deriving from biofuel production) resulted in significant removal of N and P and in biomass with 27% of total lipids [91].Strains of Chlorella vulgaris CICESE and Chlorella vulgaris UTEX were further able to remove all available N and P from municipal wastewater and produced biomass with a lipid content of 20.5-25.7% per dry weight after 21 days of cultivation [92].
To enhance lipid accumulation in the biomass, the most common approach is exposing the algae to nutrient starvation under phototrophic conditions [90].Nitrogen starvation is easy to achieve in open-pond cultures and will lead to lipid accumulation; it is dependent on the biomass concentration at the start of starvation, the light availability, and the physiological state of the culture [93].Wu and coworkers [94] demonstrated that industrial textile wastewater could be used for growth and lipid accumulation of Chlorella sp. with chemical oxygen demand (COD) removal efficiency of 75%.The algal biomass contained 20% of fatty acids upon 7 days of cultivation in textile wastewater supplemented with K 2 HPO 4 and urea at pH 10 with aeration.Álvarez-Diaz and coworkers [95] selected strains of Chlorella vulgaris, Chlorella kessleri and Scenedesmus obliquus based on their ability to produce lipids when cultivated in municipal wastewater after secondary treatment.Scenedesmus obliquus produced a biomass concentration of 1.4 g L −1 with lipid content of 37% and a lipid productivity of 29.8 mg L −1 d −1 , while C. vulgaris reached the highest biomass productivity (0.107 g L −1 d −1 ) and a lipid content of 17.23%, corresponding to a lipid productivity of 0.184 g L −1 d −1 .
The lipid quality of two Botryococcus braunii strains grown in municipal wastewater was tested before and after treatment in the aeration tanks [96].After 10 days of cultivation, the lipid content in pretreated and treated effluent was 24% and 18%, respectively, with N removal efficiencies of 63% and 62% for B. braunii LB572 and 61% and 65% for B. braunii IBL C116, respectively.The removal of P was 100% in all experiments.According to the authors, Botryococcus is a potential lipid source for high-quality biofuel production due to its predominance of saturated fatty-acids [96].
Shen and coworkers [83] studied 20 microalgal strains isolated from a municipal wastewater treatment plant for their ability to treat wastewater and accumulate lipids in their biomass.One strain of Botryococcus sp.NJD-1 was selected as the best candidate strain for biofuel production (up to 61.7% lipid content) and removal of pollutants (up to 64.5%, 89.8% and 67.9% for N, P and total organic carbon [TOC]) in pristine wastewater.

Microalgae Used in Wastewater and Flue-Gas Treatment of Different Origin
The removal of N and P is the primary objective of wastewater treatment by algae.Secondary objectives are the removal of different bioactive contaminants and xenobiotics from wastewater.Treated wastewater has to be separated from the suspended culture and can be released if it complies with the regulations.As mentioned above, wastewater-treatment processes are usually oriented to the production of microalgae biomass or lipid accumulation for biofuel production.
Most studies dealing with microalgal wastewater treatment are performed using municipal wastewater.Laboratory-scale batch cultures of Chlorella vulgaris grown in primary treated municipal wastewater removed, after 10 days, over 90% NH 4 + and 80% PO 4 3− [97].
Scenedesmus sp.cultured in non-treated municipal wastewater was reported to remove 85% of NH 4 + and between 72-76% of PO 4 3− in 24 h, while phosphate-starved cells were able to remove 100% NH 4 + and 87% PO 4 3− , in the same period.Thus, PO 4 3− starvation as pre-treatment seems to enhance the rate of nutrient removal [105].Scenedesmus obliquus cultured in cylindrical bioreactors with secondary treated municipal wastewater provided between 47-98% P removal, and 79-100% NH 4 + removal after 8 days with an estimated biomass productivity of 26 mg −1 L −1 day −1 [98].A native species of Scenedesmus cultured in analogous conditions removed about 99.9% PO 4 3− and NH 4 + daily, with an estimated biomass productivity of 250 mg −1 L −1 day −1 , and 6% total lipids per dry weight after 10 days [100].
C. vulgaris and S. obliquus cultivated in secondary treated sewage as free or immobilized cells in bioreactors were reported to remove 60% and 80% NH 4 + as free cells, and 97% and 100% for immobilized cells; at the same time, PO 4 3− removal was 53% and 80% for free cells, and 55% and 83% for immobilized cells, respectively, after only 48 h of treatment [99].The lipid content of immobilized cells of C. vulgaris and S. obliquus was 17% and 11%, respectively [99].
A novel approach to treating municipal wastewater was reported [82]; Scenedesmus dimorphus was cultivated in floating offshore photobioreactors; the cultures became mixed containing Chlorella, Cryptomonas and Scenedesmus after one year of operation.The authors reported the average lipid content of the algal biomass to be 13%, with a maximum biomass productivity of 22.7 g m −2 day −1 during a 14-day period [82].
Coelastrum cf.pseudomicroporum was cultivated in open ponds filled with municipal wastewater [106].The obtained biomass was used for carotenoid production and also as a bioflocculating agent to separate non-flocculating green algae (Scenedesmus ellipsoideus) and cyanobacteria (Spirulina platensis).C. cf.pseudomicroporum produced up to 91.2 pg cell −1 of total carotenoids.The authors confirmed the bioflocculating ability of C. cf.pseudomicroporum and suggested the alga be used as a bioflocculation tool.
Agricultural wastewater is usually diluted before being used for microalgal cultivation to reduce the high concentrations of nutrients and to decrease turbidity, which restricts light from penetrating the culture [103, [107][108][109][110]. Botryococcus brauinii grown on secondary treated piggery wastewater had an NO 3 − removal efficiency of 98% and an estimated biomass productivity of 700 mg −1 L −1 day −1 , after 12 days of culture [103].Botryococcus braunii cultured in a mixture of cattle feedlot, a hog farm, and a dairy barn, on average removed 88% of total N and 98% of total P in 14 days.After 30 days of growth, it reached an estimated biomass of 84.8 mg −1 L −1 day −1 with total lipids per dry weight of 19.8% [108].
Chlorella pyrenoidosa cultured in the influent and effluent of dairy wastewater reduced the concentrations of NO 3 − and PO 4 3− by 60% and 87% in the influent, 49% and 83% in the effluent, respectively, after 10 days of microalgal growth.The estimated biomass productivity and total lipids per dry weight were 6.8 g L −1 and 3.5 g L −1 respectively in the influent after 15 days of growth [109].
The treatment of anaerobic sludge from a starch wastewater plant with Chlorella sp.resulted in 1.67 g L −1 and 1.43 g L −1 of biomass concentration in heat-treated and untreated anaerobic sludge, respectively, after three days of cultivation [111].Reported removal efficiencies were 98.3% and 83.0% for N and 64.2% and 89.5% for P, in heat-treated and untreated anaerobic sludge, respectively, after two days of cultivation.Co-cultivation of Chlorella sp. with the bacteria Acinetobacter sp., which naturally occurs in wastewater, could improve the nutrient-removal efficiencies from centrate wastewater [112].The observed synergism between the algae and Acinetobacter sp. was attributed to the exchange of CO 2 and oxygen.
A microalgal consortium dominated by Coelastrella sp. was used for the long-term treatment (1 year) of anaerobically digested wastewater in 9600 L high-rate algae ponds with added CO 2 , and resulted in a maximal areal productivity of 29.3 g m −2 d −1 during the summer period [81].
The microalga Scenedesmus sp. was successfully cultivated in starch-containing textile wastewater with a heavy burden of organic compounds.A combined process of activated carbon adsorption, anaerobic digestion and Scenedesmus sp.cultivation removed the color by 92.4%, the COD by 90% and even carbohydrates by 98% with high utilization efficiencies of the culture for acetate (95%), propionate (97%) and butyrate (98%) [113].It was further recently demonstrated that raw tannery wastewater from the leather industry can be used as a source of nutrients by microalgae.Under optimal conditions Scenedesmus sp. was able to remove 85% of N, 97% of P and 80% of COD and reached a concentration of 0.90 g L −1 of biomass after 24 days of cultivation [114].
The microalga Spongiochloris sp. was used to remove hydrocarbons from wastewater originating in the petrochemical industry, which contains mainly diesel hydrocarbons [115].The alga was reported to produce a maximal biomass of 1.5 g L −1 day with 99% removal of total hydrocarbons within 120 days using an airlift photobioreactor [115].
Even marine algae species can be successfully cultivated in wastewater/seawater mixtures; Nannochloropsis oculata and Tetraselmis suecica, for example, reached biomass concentrations of 1.285 g L −1 and 1.055 g L −1 , respectively, after 14 days of cultivation in 75% wastewater [116].
During autotrophic growth, microalgae are able to assimilate CO 2 from the atmosphere, flue gases, aqueous CO 2 and soluble carbonates, and convert it into complex molecules [117].Growth on atmospheric CO 2 is the most basic method; however, its potential yield is limited by the low CO 2 concentration in the air (0.03-0.06% CO 2 ) and by the low efficiency of CO 2 at diffusing from the atmosphere into the water-based culture [36].Thus, maximal microalgal growth relies on enhancing CO 2 concentrations in the culture, either in pure form, compressed or uncompressed, or as part of flue gas.The supplementation of cultures with CO 2 in the form of inorganic carbon, i.e., bicarbonate salts, or as compressed CO 2 gas, enhances photosynthesis and biomass production by up to 256% and 260%, respectively; typically, even a positive effect on lipid production can be observed [118].Considering microalgal CO 2 uptake ranges from 20% and 70%, at least 1.3-2.4kg CO 2 are required per kg of dry microalgae [119]; due to the high costs of CO 2 supplementation, bubbling with flue gases provides the best alternative and simultaneously decreases the emission of GHGs [64] and mitigates the costs of chemical and physical treatments of the flue gases [36].In addition to serving as a source of CO 2 , bubbling with flue gases also provides internal mixing of the culture, avoiding concentration gradients of nutrients and allowing all cells to be exposed equally to the light source, so that self-shading and photo-toxicity are minimized.Bubbling of flue gas further controls the pH of a culture, an important factor to consider as a pH-value below eight prevents NH 4 + to evaporate and PO 4 3− to precipitate [57].Furthermore, this allows the removal of accumulated dissolved oxygen, which is toxic to microalgae [120].However, to directly inject flue gases into microalgal cultures, a suitable design and operation of the carbonation culture system unit is crucial, otherwise almost all of the CO 2 would be released into the atmosphere [121].Knowledge of the composition of the flue gases is important and should be monitored as they vary depending on the source of generation, the combustion system and combustion temperature [122].Although in some flue gases the concentrations of certain compounds, e.g., NO x , SO x or heavy metals, are negligible, in others the concentrations exceed toxic limits, causing acidification of the medium or environmental stress to the microalgae [123].The concentrations of nitrogen oxide for example vary between 50 mg Nm −3 and 1500 mg Nm −3 , of sulfur dioxide from 0-1400 mg Nm −3 and of sulfur trioxide from 0-32 mg Nm −3 [122,123].According to recent reports, the amounts of SO x and NO x in the flue gases have to be low to moderate (about 150 ppm) for successful algal cultivation [36,124].
A continuous supply of flue gas into microalgae cultures has also been shown to inhibit the growth of the cells due to the presence of SO x , NO x , and a high concentration of CO 2 , which causes the pH to decrease.Algae farmers should balance the negative effects of high CO 2 concentrations (decrease of pH affects the utilization of CO 2 , then more energy is used from the algae to maintain the intercellular environment pH) with the positive ones (improve photosynthesis and microalgal growth) [125].The isolation of microalgae strains tolerant to SO x and NO x or high CO 2 concentrations, addition of CaCO 3 or NaOH to control the culture pH, and applying an on-off pulse for flue gas are some of the strategies tested to overcome these issues [126,127].
Optimal CO 2 concentrations vary greatly among microalgae; most species have been shown to prefer concentrations between 5% and 20%.However, a few Hawaiian local strains of Rodophytes, Chlorophytes and Cyanophyceae efficiently performed photosynthesis when exposed to CO 2 concentrations up to 100%, as long as the pH was controlled in the medium [128][129][130].
The additional obstacles in the utilization of flue gases are related to the power requirement due to its low pressure, as well as the requirement for cooling operations due to its high temperature.Increases in temperature (>20 • C) can cause a significant reduction in CO 2 solubility, which eventually leads to declined photosynthetic efficiency [120].Nevertheless, one of the major bottlenecks for the utilization of flue gas in microalgal cultivation is its composition of heavy metals, which ultimately might end up in the biomass [131].Heavy metals from flue gases have been reported to accumulate in microalgal biomass and to affect both biomass and lipid productivity [131][132][133].Heavy metals are potentially toxic to microalgae, and their accumulation in the biomass might further cause carcinogenic, teratogenic and mutagenic effects on human health [134].The adsorption or uptake of heavy metals by microalgae, therefore, has the potential to limit the use of the biomass [132].
The potential of CO 2 fixation from flue gases combined with wastewater treatment by microalgae has been investigated by a few researchers, and has emerged as a feasible alternative.Biomass and lipid productivity for Scenedesmus sp.cultivated with ambient air containing 10% CO 2 were 217.50 and 20.65 mg L −1 d −1 (9% of biomass), while those for Botryococcus braunii were 26.55 and 5.51 mg L −1 d −1 (21% of biomass), respectively.With flue gas containing 5.5% CO 2 , the lipid productivity for Scenedesmus sp. and B. braunii was increased 1.9-fold (39.44 mg L −1 d −1 ) and 3.7-fold (20.65 mg L −1 d −1 ), respectively [135].
Biomass productivity of Chlorella sp. and Scenedesmus sp.isolated from a coal-fired thermoelectric power plant was high in the presence of air supplemented with 6% and 12% CO 2 , with maximum biomass productivities of 0.087 and 0.085 g dry weight L −1 d −1 , respectively.Furthermore, these two species were still able to grow in a medium containing up to 18% CO 2 [136].C. vulgaris cultured in industrial wastewater and flue gases from a steel-making plant was able to perform CO 2 fixation and NH 4 + removal rates of 26 g m −3 h −1 and 0.92 g m −3 h −1 , respectively [137].
Three strains from the genus Scenedesmus cultivated in a combination of municipal, agricultural (dairy) and industrial (paper and pulp) wastewater in different quantities incorporated with flue gas containing 10% CO 2 demonstrated N and P removals up to 99%, biomass concentrations between 0.62 g L −1 and 1.49 g L −1 , and lipid yields up to 37% of the dry weight [101].Scenedesmus obliquus grown under mixotrophic conditions in secondary-treated municipal wastewater and agricultural wastewater in different dilutions with flue gases (10-14% CO 2 ), demonstrated nutrient removal, biomass growth, lipid productivity and carbohydrate productivity up to 22 mg total N L −1 , 0.44 g L −1 , 11 and 16 mg L −1 day −1 , respectively, after 6 days of cultivation [124].Scenedesmus sp.cultured in domestic wastewater had a 46.1% increase in biomass productivity with a total of 35.6% lipid and 10.4% carbohydrate upon cultivation in a closed system with the use of 2.5% flue gas CO 2 .It also had nutrient-removal efficiencies of about 95% NH 4 + , 66% NO 3 − and 72% PO 4 3− [138].

Removal of Pharmaceuticals
Primary and secondary wastewater treatment have a limited capacity to remove pharmaceuticals from municipal wastewater, because most of these compounds are not metabolized by microorganisms [139].Wastewater, therefore, contains not only nutrients, but also contaminants like pharmaceuticals or heavy metals.Drugs most frequently found in wastewater are antibiotics, steroids, antidepressants, analgesics, anti-inflammatory, anti-pyretics, beta-blockers, lipid-lowering drugs, sedatives, and stimulants [139].The concentrations of pharmaceuticals in wastewater, however, are much lower than the reported IC50 values for microorganisms, so that a significant reduction of the algal culture should not occur in tertiary wastewater treatment.The ability of algae to assimilate many common pharmaceuticals prevents their accumulation in natural water bodies.
The microalgae Chlorella sp. and Nitzschia acicularis were used to remove an endocrine-disrupting compound added to wastewater.The algae were either allowed to swim freely in the wastewater or they were immobilized in alginate.After 10 days of the experiment, the removal rates were 64% and 89% for nitrogen and 90% and 96% for P in the free and immobilized algae, respectively.Furthermore, the authors reported kinetic removal rates of the endocrine-disrupting compounds in the range of 0.01-0.34d −1 , with better removal in the cultures containing alginate beads than in free-swimming microalgae [140].
Chlorella sp., Chlamydomonas sp. and Mychonastes sp. were used for wastewater reclamation, lipid accumulation and the removal of the antibioticum cephalosporin (100 ppm) [141].While the lipid production was not inhibited in the algae, the maximum biomass concentration was about 10% lower than in antibiotic free cultures.Cephalosporin disrupts the synthesis of the peptidoglycan layer of bacterial cell walls, but obviously only exhibits weak toxic effects on microalgal growth.
The toxicity of ibuprofen, ciprofloxacin and chlorophenols was tested on microalgae like Chlorella vulgaris CCAP 211/11B [142], and IC50 values in the range of 11-90 ppm were determined for these pharmaceuticals.Actual concentration of these pharmaceuticals in wastewater are far lower, and usually they are determined in the ng L −1 range [139].The antibiotics trimethoprim, sulfamethoxazole and triclosan were tested at concentrations of 10 µg L −1 , reflecting maximal concentrations detected in wastewater, but no toxic effects were observed on the growth of Nannochloris sp.during seven days of incubation [143].

Heavy-Metal Contamination in Wastewater
Industrial wastewater often contains heavy metals and organic chemical toxins such as hydrocarbons, biocides and surfactants.Effluents from textile, leather, tannery, electroplating and other metal-processing industries have substantial amounts of toxic metal ions.Often, large industries have their own treatment plants, and therefore these contaminants remain contained in the industrial facilities and do not contribute to municipal wastewater [84].
Contaminants present in the wastewater, e.g., pharmaceuticals or heavy metals, can be taken up by the algae and can accumulate in the biomass, since the algal cell walls are porous and allow the free passage of molecules and ions in aqueous solution, and heavy metals can bind to ligands present in the cell walls.Both living and non-living microalgal cells have been reported as being able to sequester significant quantities of toxic heavy metal ions from aqueous solutions [150,151].However, the use of non-living cells is more convenient and practical because living biomass cells usually require the addition of growth media which increases BOD or COD in the wastewater effluent [152].Additionally, non-living algae is not affected by the toxicity of the heavy metals.Thus, non-living biomass can be subjected to chemical and physical treatment techniques to improve its performance, and adsorbed metals can be easily recovered from the biomass leading to repeated use of the biomass, and consequently a more profitable process.
Living microalgae have been used to perform quaternary wastewater treatment, which is designed to remove organics, heavy metals, and soluble minerals [153].The sequestering mechanism employed depends on the structure and concentration of chemical substances, temperature, pH, and nutrient accessibility in the cultivation medium, along with cell size, number, the eco-physiological capacities of the applied species and their cell conditions (living or non-living) [154].Some examples of sequestering processes are physical absorption, ion exchange, chemisorption, covalent bonding, surface precipitation, redox reactions and crystallization in the cell surface [155].Biochemical transport mechanisms across the algal cell membranes include passive diffusion, facilitated diffusion, or active transport, with different transport rates [156].Metals are taken up either by biosorption (passive uptake), where the metal ion binds to the cell wall, or by ATP-dependent active uptake through the membrane [157]; the choice of transport usually is dose dependent [158].At low metal ion concentrations, active transport is favored by the cell [156]; trace concentrations of heavy metals in municipal wastewater usually do not inhibit significantly the growth of the algal consortium.Many algae strains even show high tolerance to trace amounts of Hg, Cd, Pb and Cr [58,[159][160][161][162].
In order to eliminate the negative impacts of pollutants in wastewater on microalgal growth, Chang et al. proposed an annular ion-exchange-membrane photobioreactor [163].Direct mixing of the algae cells with wastewater is excluded in this bioreactor by separating the culture from wastewater in two different chambers, so that only nutrients are exchanged.The growth of C. vulgaris has been tested in this bioreactor on synthetic wastewater medium and also on untreated tannery industrial effluent with a high Cr concentration.The authors reported a biomass concentration of 2.04 g L −1 after 12 days of the experiment, with removal efficiencies of 87% for N, 71% for P and 89% for Cr.

The Use of Algal Biomass
The recycling of nutrients in wastewater reclamation is crucial for achieving environmental sustainability.The production of N and P fertilizers has a high energy requirement, 11.1 kWh kg −1 and 10 kWh kg −1 , respectively [11]; hence, recycling N and P will not only be sustainable, but even save a huge amount of energy at the global scale.As described above, algae are highly efficient in removing pollutants such as heavy metals, pharmaceuticals and emerging contaminants, which is important for wastewater reclamation; however, as pointed out, the aforementioned contaminants will accumulate in the algal biomass.Hence, biomass received from algae grown in wastewater and certain flue gases cannot be used as food, feed or even as biofertilizers.Consequently, algae grown on polluted wastewater and flue gases should be used as a source of bioenergy (Figure 1), where the contaminants can be concentrated in ashes or separated after extraction or transformation of energy-rich compounds.removing pollutants such as heavy metals, pharmaceuticals and emerging contaminants, which is important for wastewater reclamation; however, as pointed out, the aforementioned contaminants will accumulate in the algal biomass.Hence, biomass received from algae grown in wastewater and certain flue gases cannot be used as food, feed or even as biofertilizers.Consequently, algae grown on polluted wastewater and flue gases should be used as a source of bioenergy (Figure 1), where the contaminants can be concentrated in ashes or separated after extraction or transformation of energyrich compounds.
Even though biodiesel derived from microalgal biomass is of high potential, there are several challenging technical barriers that need to be solved before making this algal biofuel a reality.These challenges include the development of cost-and energy-effective cultivation and harvesting techniques, sustainable and energy-efficient lipid-conversion technology [164].Even though biodiesel derived from microalgal biomass is of high potential, there are several challenging technical barriers that need to be solved before making this algal biofuel a reality.These challenges include the development of cost-and energy-effective cultivation and harvesting techniques, sustainable and energy-efficient lipid-conversion technology [164].

Chemical Conversion of Algal Lipids
Lipids are extracted from the algal biomass and chemically treated to produce fatty acid methyl esters (FAMEs), or fatty acid ethyl esters (FAEEs) biodiesel.The chemical conversion includes esterification and transesterification (Figure 1).Even though esterification and transesterification are well-known chemical conversion techniques at the industrial scale for FAME production from vegetable oils, when applied to algae an extra production step has to be included to disrupt the tough cell wall surrounding many algae species.

Esterification
The esterification process is a reversible reaction, where an acid reacts with an alcohol forming an ester.Esterification can be performed by the addition of a homogeneous or heterogeneous catalyst [165].Homogeneous acid (HCl, H 2 SO 4 ) and alkaline catalysts (NaOH, KOH) are the most traditional, while heterogeneous solid acid catalysts are good alternatives [165], even though their results vary considerably among algal species [166].The heterogeneous solid catalyst Amberlyt-15 showed a free fatty acid (FFA) conversion of 84% in Chlorella protothecoides and 35% in Scenedesmus obliquus.The difference in converting the FFA of the two algal strains was found to be caused by their higher molecular weight in Scenedesmus obliquus, which induced shear stress; the addition of 94% H 2 SO 4 resulted in the highest FFA conversion [165].Simultaneous esterification and transesterification reactions using acid catalysts reduce saponification, resulting in an almost complete conversion into biodiesel [84].

Transesterification
Biodiesel is a substitute fuel, manufactured from renewable resources and waste oils.Biodiesel production requires relatively simple chemical reactions; most common is transesterification, and mainly alkali-catalyzed transesterification: a triglyceride (TAG) reacts with an alcohol (most frequently ethanol or methanol) in the presence of a catalyst [25,84].The conversion of the TAG to FAME or FAEE yields glycerol as a byproduct.As mentioned above for esterification, catalysts can be homogeneous (same phase as reactant) or heterogeneous (different phase, usually solid); furthermore, catalysts used for biodiesel production fall into three categories: alkalines, acids, and enzymes.Most frequently, alkaline catalysts are used for the transesterification of fatty acids; however, algae often contain large quantities of FFAs providing a negative impact on alkaline catalysts.Hence, acid catalysts are mainly used to transesterify algal lipids.
Even though algal biomass can contain a high ratio of lipids, only a portion of the total lipids are FFAs and TAGs producing FAMEs (biodiesel).Consequently, the FAMEs yield as a percentage of total lipid and dry algal biomass can vary greatly, ranging from 0.6% to 33.5% of dry weight [167].Biodiesel has been shown previously to contain superior lubricity to conventional diesel [168].However, biodiesel also emits increased amounts of NO x when used as a pure or blended fuel in twoand four-stroke engines [168].Using a B20 blend, with the biodiesel portion containing 76% methyl oleate, the NO x emissions could be eliminated and a NO x neutral blend produced [169].Studying algae wastewater treatment with the addition of CO 2 , the green algae Chlorella vulgaris was shown to contain an oleic acid concentration of 44% after 7 days of cultivation [170] leading to biodiesel of good quality with low NO x emissions.

Thermochemical Conversion
A very interesting process for producing biofuels is the conversion of the entire harvested algal biomass to fuel using a thermochemical process (Figure 1) [171][172][173][174]. Thermochemical conversion allows the use of the entire algal biomass and not just the lipids or carbohydrates.Special cultivation conditions, such as nutrient stress to increase the lipid content, are not needed.The thermochemical process offers even the possibility to inactivate or destroy certain pollutants present in the biomass, i.e., pharmaceuticals or micropollutants.Combustion is the best-known and most widely used thermochemical conversion process; however, algae have a very high content of intracellular water, even after the removal of extracellular water and, therefore, are not suitable for direct combustion without a drastic reduction of the intracellular water content.Other thermochemical processes, which apply a high temperature to dry the biomass in the partial or complete absence of oxygen, might be better suited from a sustainability perspective.These processes, including gasification, hydrothermal liquefaction and pyrolysis [171,173], transform the biomass into a mixture of solids, liquids and gases.

Combustion
Combustion is a thermochemical process used to produce electricity and district heating.The combustion of biomass is feasible only when it contains moisture of less than 50%.Biomass is usually burnt in the presence of air in a furnace, boiler, or steam turbine at temperatures above 800 • C [117].Algal biomass grown on artificial substrates has been shown to contain a high ash concentration, ranging from 7.9-37.8% of the dry weight with a calorific value of 15.4 MJ kg −1 and 19.05 MJ kg −1 , respectively [175].Oxygen concentrations ranging from 25-35 vol % were shown to be optimal for the combustion of Chlorella vulgaris biomass [176].Compared to coal, algal biomass usually contains higher amounts of ash, moisture, reactivity and volatile matter.Concentrations of the following ions are higher in algae ash than in ash originating from coal: Ag-, As-, Au-, B-, Be-, Br-, Ca-, Cd-, Cl-, I-, K-, Mg-, N-, Na-, O-, P-, Si-, Sn-, Sr-and Zn.However, the ash-fusion temperatures required are lower for algal biomass than for coal, including initial ignition temperature, combustion temperature, bulk density, fixed carbon, and heating value [177].A lifecycle analysis study dealing with the environmental impact of wastewater-based algae biofuels showed that, among 16 different pathways, only one had an environmental footprint lower than petroleum diesel when the algae were cultivated on municipal centrate and the biomass was processed by wet lipid extraction or combustion [178].An advantage of using combustion is its use of the entire algal biomass; additional extractions or fractions are not needed.Furthermore, combustion destroys several pollutants such as pharmaceuticals and other emerging contaminants accumulating in algal biomass produced in wastewater.We believe that combustion of algal biomass is a good solution to produce energy from algae grown on wastewater, as long as their biomass is dried efficiently using solar energy or waste heat (i.e., industrial).

Pyrolysis
Pyrolysis is a thermochemical conversion of dry biomass that occurs in the absence of oxygen at temperatures below 550 • C [179,180].There are different types of pyrolysis such as slow, fast and catalytic pyrolysis [181].Pyrolysed biomass produces a mixture of different fractions such as biochar, bio-oil and gases (methane, hydrogen, carbon monoxide and carbon dioxide) [117,174,179].Their relative abundance is dependent on the temperature used, and hence additional separation steps and upgrading reactions are required after the process.Recently, 50 ± 2 wt.% of the initial algal biomass grown on wastewater was pyrolysed at 500 • C; the elemental analysis of the resulting bio-oil contained >65 wt.% C, 6-9 wt.% N, 8-10.2 wt.% H with an energy content of 34.4-37 MJ kg −1 [179].Pyrolysis of biomass from Scenedesmus obliquus grown on brewery wastewater resulted in a bio-oil yield of 64% on a dry weight basis [182].Different algal species pyrolyse differently, as indicated by the variation of the composition of the liquid, gas and char fractions [183].In a recent study it was suggested, from an energy perspective, using non-condensable gases and char as fuel in the process to make algal-based bio-oil feasible [179].
While pyrolysis offers relatively low capital costs and relatively high biofuel yields, its drawback is the rather poor fuel quality [174].

Liquefaction
Wet biomass can be converted in a process called hydrothermal liquefaction (HTL) with hot compressed water functioning as a reaction medium.Compared to pyrolysis, HTL is performed at lower temperatures ranging from 200-375 • C, but higher pressures in the range 4-40 MPa [184,185] resulting in higher capital investment.In HTL, catalysts are utilized to accelerate the reaction; recovering the catalyst is often challenging as it inactivates over time.Temperature, total solids, algal lipid content, ash content and retention time are factors that affect bio-oil yields and quality [174,186,187].
The HTL liquid fraction, a complex mixture of different organic compounds, is often called bio-oil or biocrude.Depending on the feedstock and the process used, the bio-oil may need additional fractionation and upgrading to produce a good quality fuel.Fractionation of complex bio-crude yields mixtures of gasoline, diesel and heavy oil, in ratios of e.g., 25%, 50%, and 25%, respectively [188].
One of the major challenges of fuels produced by HTL from algal biomass is their high N, oxygen and sulfur content.If left in the fuel, high levels of NO x will be produced when N is combusted; as a consequence, it first must be removed during the upgrading process [174].A recent study investigated the processing of two algal species by HTL at different temperatures: Galdieria sulphuraria has high protein content and is of interest for wastewater treatment, while the marine algae Nannochloropsis salina is rich in lipids.It was concluded that carbohydrates have to be removed from the biomass prior to HTL, while N can be removed during the catalytic upgrading [189].A two-stage HTL was proposed, which would allow the reduction of the N content in the biocrude of more than 50% [190].A high ash content in the algal feedstock was shown to affect neither the high heating value, nor the boiling point distribution of the algal bio-crude oil.High-ash algal biomass from wastewater treatment systems, therefore, is suitable for HTL without requiring multi-step pretreatments or modifications for biofuel application [187].
In conclusion, the main advantage of HTL is the use of wet algal biomass (algae slurry), while its main drawback is the relatively high operational cost.We should bear in mind that algal cultures in wastewater consist of polycultures varying from season to season; a homogeneous biomass feedstock, which often is demanded by an industrial-conversion processes, therefore cannot guaranteed.

Gasification
Biomass gasification is a thermochemical conversion process occurring at temperatures above 375 • C and pressure above 20 MPa under a controlled amount of oxygen.The limited amount of oxygen leads to an incomplete combustion of the biomass, resulting in the production of combustible gases like CO, H 2 , and low molecular weight hydrocarbon gases [174,191,192].There is a great variation in the yield and the composition of the different gases produced by algal biomass gasification [193].Gasification can be performed on wet (hydrothermal gasification) or dry biomass.Syngas can also be used as a feedstock in the production of chemicals (e.g., methanol; [194]).The gasification of biomass derived from the algae Acutodesmus obliquus with dry matter content of 5% resulted in gasification efficiencies of up to 98% when gasified at a temperature of 600 • C [195].
A novel energy-production system was proposed using nitrogen cycling combined with low-temperature catalytic gasification of the microalgal biomass.In such a process, biomass containing high moisture can be gasified directly into methane-rich fuel gas without including a drying step; at the same time, nitrogen present in the biomass is converted to NH 4 + .It has been claimed that the integration of biological-(CO 2 -fixation by algal photosynthesis) and thermal-based conversion technologies in a farm-scale hybrid design can recover energy via wet gasification, drastically reduce CO 2 emissions, and efficiently recycle nutrients.According to Cantrell and coworkers, such a design would potentially make large-scale intensive animal farming operations sustainable and environmentally friendly by generating on-farm renewable energy [191].Gasification has the advantage of allowing the use of wet algal biomass.The downside of gasifying algae biomass is the possible formation of agglomerates in the gasifier, and operational modifications therefore have to be applied.

Interesterification
Interesterification can be performed chemically or enzymatically and leads to a rearrangement of fatty acids in TAGs.The TAG structure is transformed by the reaction of the fatty acids esters with other fatty acids, alcohols or esters [196].Recently, interest has grown in enzymatic interesterification processes for biodiesel production from algal oil [84,197].The reaction of TAGs with ethyl acetate in the presence of the enzyme lipase produces new esters and triacetin without the formation of glycerol as a byproduct; these lipases can be either extracellular or intracellular immobilized [84].The energy content of the produced biofuel increases due to the formation of triacetin; compared to conventional biodiesel, energy increases of 11% and 2.8% were obtained when the same amount of algal oil was treated with catalytic and enzymatic interesterification, respectively [197].

Anaerobic Digestion
Anaerobic digestion of cyanobacteria, macroalgae or microalgae [198] grown in wastewater [199] is a well-established method.The amount of lipids, carbohydrates and proteins as well as the C/N ratio of the biomass greatly affect the biogas production, often limiting productivity.Ammonia produced during the anaerobic digestion of the algal biomass (during hydrolysis of proteins) was found to inhibit methanogenic bacteria.Originally this ammonia-inhibition was thought to be caused by the increasing pH [199], but lately several other factors have been found to be equally important: imbalance of the (low) C/N ratio [200], nature of the feed and the inoculum; furthermore, other parameters such as pH and the presence of antagonistic ions like Na + , Ca 2+ , and Mg 2+ play an important role [201][202][203][204]. High ammonium concentration at alkaline pH converts acetate (a main substrate for the methanogens) into ammonium acetate or ammonium bicarbonate and results in the depletion of available acetate to the methanogens [200,205].Co-digestions, preferably with substrates that will improve the carbon content, seem to solve this problem [206,207].Co-digestions of different types of sludge and algal biomass have been performed [208,209].A statistically significant synergistic effect was observed when 63% (w/w VS, volatile solids) of undigested sewage sludge was mixed with 37% (w/w VS) of wet algal slurry; the mixture produced 23% more methane than digested sewage sludge alone [208].Interestingly, co-digestion of Chroococcus biomass with cattle-dung resulted in up to 292 mL CH 4 g −1 VS fed with a C/N ratio of 13/1.In contrast, only 202 mL and 142 mL CH 4 g −1 VS fed was recorded for algae (C/N 9.26/1) and cattle dung (C/N 31.56/1)alone, respectively [210].Alternatively, nitrogen-limited biomass has to be used for anaerobic digestion; with this material the production of inhibitory substances is negligible, while extraordinarily high biogas amounts are produced in a stable process.With nitrogen-limited biomass, biogas and the biomass-to-methane energy conversion efficiency was up to 84% [211].
The algal cell wall is an important factor affecting biogas production from algal biomass.The thick cell walls of some algae species limit digestibility during anaerobic digestion [212]; hence pretreatments of the biomass are required for biogas production from microalgae grown in wastewater [213,214].
Thermal, mechanical, chemical and biological pretreatments have been shown to be effective at increasing biomass solubilization and methane yield; unfortunately, these pretreatments are species-dependent [214].
Anaerobic digestion is a well-known and widely used method that has the advantage of using algal slurry without the need for dewatering; however, this method might demand pretreatments to break the cell wall, depending on the algae species to be digested.Another drawback of anaerobic digestion of algae grown on wastewater and flue gases is the relatively high heavy metal content of the digestate that, as a consequence, cannot be used as soil fertilizer.

Bioethanol
Algal biomass can be used as a raw material for ethanol production [84,215,216].Many algae store fixed carbon as starch that can be extracted from the harvested algal biomass mechanically or enzymatically and converted to sugars to feed any form of fermentation.The extracted starch is hydrolyzed either chemically or enzymatically.Enzymatic hydrolysis using thermostable enzymes showed a very high recovery of extracted glucose g g −1 total sugar and a higher bioethanol yield than acid-hydrolyzed mixed algal biomass [217].Once the cells start to degrade, yeast (Saccharomyces cerevisiae) is added to the biomass to ferment the sugars into ethanol.The enzyme invertase catalyzes the hydrolysis of sucrose to convert it into glucose and fructose; then, a second enzyme, zymase, converts the glucose and the fructose into ethanol [84].
Algae that store carbon as starch can be cultivated under conditions that maximize starch formation, e.g., a Chlorella strain grown under sulfur limitation could produce up to about 50% starch by weight [77].Different algae species vary in their content of carbohydrates, ranging from 4-64% expressed on a dry-matter basis [164].In Scenedesmus obliquus, the amount of glucose increased significantly from 53% to 73% of the total carbohydrates as light intensity rose from 60 to 180 µmol photons m −2 s −1 [218].The majority of studies on fermenting algal biomass have been performed with algae cultured in media; however, even microalgae grown in wastewater have been shown to be suitable for the production of bioethanol [219].

Biobutanol
Biobutanol is a four-carbon alcohol that can be used as a biofuel when blended with gasoline and has the potential to act as biodiesel when blended with diesel [220].Due to its chemical structure, the energy content of biobutanol is higher than that of bioethanol.Algal biomass can be used to produce biobutanol via bacterial fermentation of carbohydrate-rich biomass [221][222][223]; the most commonly used are bacteria of the genus Clostridium [192,193].Biobutanol has been produced from algae grown in wastewater, e.g., Neochloris aquatic grown in swine wastewater [221,222].Fermentation of the carbohydrate-rich fraction of the algal biomass after lipid extraction (algal acid hydrolysates) achieved a butanol yield of 8.05 g L −1 [223].
Compared to lower carbon alcohols such as methanol and ethanol, biobutanol has the advantage of higher heating value and causes fewer ignition problems.It is easier to blend with traditional fuels, safer and less corrosive; furthermore, in spite of its higher viscosity, butanol does not create problems for sensitive fuel pumps [220].However, one should not neglect the fact that the octane value of butanol is lower compared to lower carbon alcohols.The presence of certain protein components after pretreatment can also inhibit the fermentation process [221].

Biohydrogen
Biohydrogen has the highest energy content per mass, and can be converted to electricity in a fuel cell.Biohydrogen can be produced by bacteria fermenting algal biomass [224][225][226][227]; the production of biohydrogen is also called dark fermentation.Anaerobic solid-state fermentation of Chlorella sp.reached a maximal hydrogen yield of 165 ± 12 mL H 2 , equivalent to 18.58 mL H 2 g −1 VS and 0.28 L H 2 L −1 reactor d −1 [228].Wet and dry biomass of Scenedesmus obliquus was fermented for the production of biohydrogen using Enterobacter aerogenes and Clostridium butyricum with similar rates of biohydrogen production and purity independent of the water-state of the biomass; hence, the energy-consuming step of drying the biomass seems not to be necessary [225].
A combination of microalgal urban wastewater treatment with biohydrogen production was investigated using Chlorella vulgaris, Scenedesmus obliquus, and a consortium of wild algal species.After nutrient-depletion, the microalgae were kept for two more weeks in the photobioreactor to induce sugar accumulation (22-43%); the algae biomass was then fermented by Enterobacter aerogenes.The H 2 yield gained from Scenedesmus obliquus biomass was similar to that gained from algae grown in synthetic media [224].
Biohydrogen is highly advantageous, containing lower emissions than carbon-based fuels since the combustion of hydrogen releases no carbon dioxide.Nowadays, hydrogen fuels are mainly produced from natural gas, hence the production of biohydrogen via the fermentation of algae grown in wastewater and flue gases is clearly beneficial for the environment with its much lower environmental footprint.The fermentation of algal biomass for the production of biohydrogen is a rather unexplored field; more research is needed considering the organic and inorganic contaminants present in algal biomass produced in wastewater and flue gases; those possibly could inhibit fermentation.

Conclusions
Clearly wastewater of different origin such as municipal, industrial and agricultural, offers a great source of nutrients for algal growth.They reduce the operational cost of algal cultivation compared to expensive media containing fertilizers or nutrients at the same time as nutrients are recycled, and energy is saved during wastewater reclamation.The ability of microalgae to grow at different light conditions, various carbon sources, and a broad range of pH and temperatures, makes them ideal to withstand diurnal variation in pH, light intensity, temperature and DO in open ponds.Their desired characteristics include spontaneous auto-flocculation in the late stationary phase for easier biomass collection and a high lipid content, which can be induced by stresses like e.g., nutrient deprivation.Their remarkable adaptability to different nutrient sources and high resistance to numerous contaminants present in wastewater turns them into unique unicellular factories that, driven by photosynthesis, can clean wastewater and produce valuable biomass as well as lipids designated for biofuel synthesis.However, wastewater does not contain only nutrients for algal growth, but also pollutants (pharmaceuticals, heavy metals) that directly inhibit algal growth and later influence the quality and future use of biomass.Similarly, flue gases are a very valuable source of carbon for the photosynthetic algae, but even they contain other chemicals including heavy metals.Hence, microalgal strains used for wastewater and flue-gas treatment have to be robust and to exhibit high growth rates as well as tolerance to biotic (e.g., grazers) and abiotic contaminants like heavy metals and pharmaceuticals.
The biomass and its compounds (lipids, pigments, polyunsaturated fatty acids (PUFA)) of microalgae grown on wastewater is not suitable for use as food or feed.Instead, extractions of the algal biomass can provide lipids for biofuel production, products of higher value, or N and P to be used as biofertilizers.The remaining biomass can be anaerobically digested to produce biogas, fermented or thermochemically converted (Figure 1).A possibility for improving the energy recovery of algal biomass is the combination of different conversion processes, i.e., FAMEs, with anaerobic digestion or fermentation.The industrial sector is seeking a large, homogeneous supply of biofuels and other biomaterials, a need that algae, theoretically, perfectly meets; however, algal biomass when grown on wastewater can vary greatly both in quality and quantity during the growth season.Hence, it is pivotal to characterize the quality of the biomass produced during the entire growth season; furthermore, the conversion of algal biomass into biofuel should be performed by a method suitable for variations in biomass quality, but still producing a biofuel of high quality.Various methods, therefore, require pretreatment or co-digestion with other types of biomass to optimize production.The thermochemical conversion pathways appear particularly interesting for processing algal biomass and should be chosen based on the target biofuel: the production of electricity or district heating combustion is an appealing option, while pyrolysis or HTL are the choice for gaining liquid fuels.In any case, a complete characterization of the algal biomass at the time of harvest or even during the entire growth season is needed in order to facilitate the choice of product and conversion method.We should bear in mind that the producers of algal biomass and the processing biotechnologists have to work hand in hand to be able to fully exploit its rich energy content.Furthermore, the obvious environmental benefits arising from algal cultivation in wastewater and flue gases should not be overlooked especially in places where water is a limiting factor.
In summary, wastewater and flue-gas reclamation can be combined efficiently for the generation of bioenergy from microalgae.However, for the economic realization of this approach, political decisions for a sustainable future are needed.Future studies focusing on pre-treatments of algal biomass are needed to optimize the energetic value "entrapped" in algal cells.