Nanoporous Carbon Materials toward Phenolic Compounds Adsorption

Nanoporous carbon-based sorbents are used to generate a three-dimensional real-space model of the nanoporous structure using the concept of Gaussian random fields. This pore model is used to derive important pore size characteristics, which are cross-validated against the corresponding values from gas sorption analysis. After filling the model pore structure with an aqueous electrolyte and rearranging the ions via a Monte Carlo simulation for different applied adsorption potentials. In comparison to nanopores formed from solid-state membranes (e.g., silicon oxide, aluminum oxide, polymer membranes, glass, hafnium oxide, gold, etc.) and very recently 2D materials (e.g., boron nitride, molybdenum disulfide, etc.), those nanopores produced from carbon materials (e.g., graphene, carbon nanotubes (CNTs), diamond, etc.), especially those from graphene appear to be perfect for adsorption process. The thickness of carbon structures nanopores can be as thin as 0.35 nm, resembling the height of the base spacing. Moreover, the sizes of carbon structures nanopores can be precisely fabricated and tuned to around 1.0 nm, the similar size of many heavy metals and organic pollutants molecules. Furthermore, carbon materials are chemically stable and feature-rich surface chemistry. Therefore, various carbon nanopore sequencing techniques have been developed. Finally, in this chapter the adsorption of phenolic compounds on nanoporous carbon specifically the active carbon are overviewed and how to affect the heterogeneity of activated carbon surface, PH of the solution on the efficiency of adsorption.


Introduction
Contamination of water is one of the significant issues in the universe, that poses negative effects on individual and surroundings. The rising in industrial and human activities resulted in increasing the flowing of wastewater into water supplies [1,2]. In the last years, the impacts of exposure of human and animals to chemicals in the ambiance especially the aquatics medium has taken the high interest of many scientists and decision-makers [3]. Among these chemicals, phenolic compounds are considered the most important due to their toxic effect on animals and humans carbons (NPC) is considered one of the most effective and economical adsorbents used in the separation of organic and inorganic contaminants from the aquatic environment due to their various properties such as high surface area and high porosity, in addition to they are inexpensive, abundance, generate from renewable sources, very thermally stable, and their perfect chemical resistance [20][21][22]. Furthermore, NPC can attract attention to used in many purposes due to its rule in decreasing the amount wastes in the environment through using them in Their preparation process. Their unique properties offer new opportunities in the area of inclusion chemistry, guest host interaction, and molecular manipulations, showcasing their potential impact in a wide range of research fields, such as adsorption, separation, catalysis, electronic devices, and drug delivery [18,19,21].
Activation process(such as physical or thermal activation and chemical activation methods) is one of the methods used to prepare nanoporous carbon but due to the disadvantages of this process, the vision has been directed to using the templating method in the preparation process [19,23].

The aim of this chapter
To prepare nanoporous carbon materials (NPC) to use in phenolic compound removal, discussing preparation methods, properties of these materials especially activated carbon, and improving these properties to improve the performance of these materials in adsorption application by using templating methods.

Phenolic compounds
Nowadays there is a growing concern around the world constantly about the increasing volume of pollutants in the water and the removal of dangerous pollutants from wastewater is one of the most important environmental issues at present. Phenolic derivatives are among the common environmental pollutants. The extremely low concentration of these pollutants is an obstacle to water use. Phenols are toxic and carcinogenic that can cause a bad taste and smell in drinking water also harmful to human health [5,24]. Phenolic compounds come to water from different various sources such as oil refineries, coal gasification sites, petrochemical units, and from the synthesis of plastics, paints, pesticides, insecticides, pharmaceutical, etc. according to European Union countries, the maximum concentration of phenols in the drinking water is limited to .5 ppb and in the USA to 1 ppb. Both the US Environmental Protection Agency (EPA) and the European Union (EU) involve indicated that nitrophenols and chlorophenols rank first on the pollutant list. The most widespread of phenolic compounds in water is chlorophenol that generates from the chlorination of aromatic compounds that present in water and soil. Phenols have weak acidic properties. (Table 1) discuss the basic information about most phenolic compounds [5,6,9].
Diverse technologies have been employed for the removal of phenolic compounds from a variety of water sources including steam distillation, aerobic and anaerobic biodegradation, oxidation by ozone, ion-exchange resins, adsorption, and membrane filtration [11]. But above-mentioned methods, adsorption is the most applied technique for water treatment due to its very simple technique as it works by adding the adsorbent to the polluted water and then target pollutants are adsorbed into the adsorbent, cost-effective, friendly environment and the availability of a wide range of adsorbents. The adsorption of phenol and its derivatives on nanoporous carbon especially activated carbon has become an important issue by many researchs [9,25]. Adsorption is the most applied technique for the removal of phenolic compounds as it is low cost with high efficiency and easy ergonomic design besides that activated carbon is the most applied adsorbent as it has an internal porous structure (consisting of pores of varying size) with large surface area and specific chemical structure of the surface. And the efficiency of adsorption capacity of phenolic compounds on the activated carbon accompanied by numbers of factors such as: • Nature of surface functionality of adsorbent and its pore structure • Properties of adsorbate (phenol) such as pKa, functional group, size, and polarity • Adsorption parameters such as PH of the solution, temperature, dose of adsorbent, and concentration of adsorbate [24,25].
There are also important factors such as the type of precursors for Activated carbon preparation and the aqueous solubility of phenolic compounds [9,11,26].
Despite extensive studies on factors affecting phenol adsorption, the mechanism of its adsorption is unclear and should be further studied. In particular, the most controversial matter is the role of the presence of oxygen group on its surface in the uptake of phenols [24].
In this study, we have tried to explain the importance of the above factors and how to prepare suitable AC from cheap and available precursors to remove phenolic compounds.

Historic perspective of nanoporous carbons
Carbon is the most spreading element on the earth, it has distinct characteristics and can form many compounds with different properties. Carbon has been used for a long period in form of coal, charcoal, and carbon black. After that has been discovered a new process to improve the properties of carbon materials through  Table 1.
The basic information about most phenolic compounds [24].
activation of charcoal. These new materials are called nanoporous carbon materials [13,27,28]. Carbon was used in past in form of charcoal or carbon black for many purposes: • It was used as a pigment in the painting of caves from 35000 to 11000 BC.
• Using the carbon in form of charcoal in the production of metal, in 8000 BC.
• Used to decrease minerals in process of bronze fabrication by ancient Egyptians, in 3750 BC • In medicinal use, since, The first proof was in 1550 BC, where ancient Egyptians used charcoal in the treatment of the stomach tract and removing odors from putrefying injuring.
• In water treatment, since in 450 BC, charcoal filters were used in the treatment of drinkable water [28,29].
• In the eighteenth century, carbons made from blood, wood, and animals were used for the purification of liquids.
• In the treatment of gases was this observed by the Swedish chemist Karl Wilhelm Scheele in 1773.
• Decolorizing of solutions, experiments on this was performed by Lowitz in 1786.
However, a few years later, in 1794, an English sugar refinery successfully used wood charcoal for decolorization. This application remained a secret until 1812 when the first patent appeared in England, although from 1805 wood charcoal was used in a large-scale sugar refining facility in France for decolorizing syrups, and by 1808 all sugar refineries in Europe were using charcoal as a decolorizer [25,30].
In 1811, it was proved that the efficiency of decolorization of sugar syrups by bone char was higher than wood char. In 1815, the majority of sugar refining facilities were using granular bone-derived char.
In 1817 Joseph de Cavaillon patented a method of regenerating used bone chars, but the method was not entirely successful [13,23].
The first example of producing an activated carbon by a combination of thermal and chemical processes was constituted by Bussy In 1822 who demonstrated that the decolorizing abilities of carbons depended on: • the source material, • the thermal processing, • and the particle size of the finished product.
At the beginning of the twentieth century, Raphael von Ostrejko who patented between 1900 and 1903 made a revolution by exploring two distinct methods for the production of nanoporous carbon materials (activated carbon materials) from the activation of charcoal. This scientific breakthrough caused an improving the performance of these carbon materials in many applications by formation a high porosity in carbon materials skeleton.
Because of these discoveries, the first factory for the production of activated carbon materials has been built in Ratibor and was became the oldest factory for activated carbon production in the world [28,30].
The first application of activated carbon was in World War I, when it was used in manufacturing soldiers masks for protection against hazardous gases and vapors [25].
The production and search for new activated carbons have been boosted decade after a decade due to their fundamental role in various technological applications which are related to, namely, restricted environmental regulations, recovery of valuable chemical compounds, and catalyst support. Nowadays, the driving forces for the research in nanoporous carbons are related to the properties of the most recent carbon materials: fullerenes, carbon nanotubes, and graphene. However, the excellent properties of these novel carbon forms also fostered the interest in the traditional porous carbons and, in recent years, a considerable number of studies searching for new synthetic approaches have been published. The main objective is the preparation of highly porous materials with controlled porosity, and often also with tuned surface chemistry, to present enhanced behavior as, for example, electrode materials for supercapacitors [26,28,31,32].

Properties of nanoporous carbons
Carbon is one of the most abundant elements on the Earth and plays a critical role in the bio-and ecosystems. Carbon has the unique capability of forming a variety of interesting materials exhibiting extraordinarily different physical and chemical properties [20,22,27]. Fullerene [33], carbonnanotubes [33], graphite [15,34], and diamond [35] are examples. To improve performance, nanoporous structures have been introduced into carbon because nanopores can give a large surface area.
Porous materials have various properties than bulk materials have [27].
• pores are classified according to their accessibility to surroundings into ( Figure 1): Types of pores according to their accessibility to surroundings [29].
• open pores (b,c,d,e,f): pores that interact with the outer surface of the material and they are divided into pores open at one end (b,f) and pores that are open at two ends (e), and these type of pores are used in adsorption, catalysis and sensing processes [29].
• closed pores(a): pores which have no connection to the outer surface (isolated from the surroundings), they result from breakdown the parts close to the external shell of pores due to insufficient heating of porous materials, and these type of pores are used in Lightweight structural applications or thermal insulation [29,36,37].
IUPAC (International Union of Pure and Applied Chemistry) proposed the classification of pores according to their size: • Micropores: pores that have a diameter < 2 nm, they are divided into pores their width less than 0.7 called ultramicropores or narrow micropores and pores in a range of 0.7 and 2 nm called supermicropores or micropores [4,28].
• mesopores: pores that have a diameter between 2 to 50 nm.
Nanoporous materials have unique features such as high specific surface area, shape-selective effects, fluid permeability, large porosity, and ordered uniform pore configuration. Therefore these materials can be used for many purposes such as separation, sensing, and catalysis applications [19,39].  Table 2.
Various nanoporous materials with different properties such as surface area, porosity, pore size, thermal stability, etc. [9] are discussed in ( Table 2).
The classification of pores discussed above is limited by the data of nitrogen adsorption-desorption at 77 k and that depends on: each pore size has a different mechanism of pore filling determined by isotherm profile [28].
1. Micropore filling: is represented as a primary physisorption divided into two categories: • ultramicropores (narrow micropores) filling occurs at low relative pressures (P/P0 < 0.01) and is controlled completely by the enhanced fluid-solid Adsorption interactions (enhancement of the adsorbentadsorbate interaction). This process is called (primary micropore filling).
• supermicropores (wider micropores) filling occurs at a higher relative pressure (P/P0 in range of 0.01-0.15) and is controlled by cooperative fluid-solid interactions and fluid-fluid interactions.
2. mesopores filling: occurs through the pore condensation (all adsorbate molecules are in contact with the surface of the adsorbent) followed by the occurrence of multilayer adsorption occurrence and end with capillary condensation due to the sorption process in mesopores relay on fluid-solid interaction and attractive fluid-fluid interactions.
3. The macropores are very large science act as open space, therefore, do not allow the capillary condensation [28,40]. 4. In nanoporous carbons, the porosity results from the spaces between crystallites graphite randomly cross-linked that form the carbon skeleton structure, less ordered carbon materials consumption, and from reactive carbon atoms removal in the crystallite during activation process [28].

Surface chemistry of nanoporous carbons
The main component of the nanoporous carbon skeleton is carbon atoms, but the basic structure of these materials also contains hydrogen and oxygen and may also include groups containing nitrogen, sulfur, or phosphorus, depending on the precursor, preparation route, and post-synthesis functionalization. Owing to the presence of unsaturated carbon atoms that are extremely reactive, these heteroatoms are primarily found at the edges of the basal planes. Due to particular interactions with the adsorptive and also the solvent in the case of solution adsorption, the elemental composition, and type of surface groups of a nanoporous carbon affect its efficiency in both gaseous and liquid phase processes. Properties such as hydrophobicity/hydrophilicity or acid/base action are extremely dependent on the surface chemistry of these materials [28,37,41,42].
According to acid/base character, due to the presence of both acid and basic sites on their surface, nanoporous carbons are considered amphoteric materials. Thus, the materials may present net acid, basic or neutral surfaces depending on the amount and the power of all the surface groups [19,38,42].
Many methods can be used to evaluate nanoporous carbons surface chemistry and the best way to achieve a good characterization is using the supplementary techniques and incorporation between of the data analysis such as: • Boehm titrations and potentiometric titrations give qualitative and quantitative data on the nanoporous carbon's surface.
• diffuse reflectance infrared spectroscopy (DRIFT) and X-ray photoelectron spectroscopy (XPS) give only qualitative information about the surface of the nanoporous carbons.

Acidic surfaces
The chemical nature of nanoporous carbons is determined by surface groups containing oxygen that are mostly located on the external surface or edges of the basal plane.
The amount of oxygen on the surface has a high effect on the nanoporous carbons , s adsorption abilities as these groups constitute the majority of adsorption surface.
These groups can be classified according to chemical nature into three categories: acidic, basic, neutral.
The responsible for surface acidity is Functional groups such as: Carboxylic acid or carboxylic anhydride, lactone, and phenolic hydroxyl. These Oxygen-containing functionalities are created by oxidation of carbon surface. The most commonly used activation methods to introduce oxygencontaining acidic groups are oxidation by gases and aqueous oxidants.
• Gas-phase treatment: Oxygen, air, carbon dioxide, and steam can be used in the gas phase treatment. In these processes two routes of oxidation are used: • oxidation at low temperature can be used to form strong acidic groups (carboxylic).
• oxidation at high temperatures can be used to form a large number of weak acid groups (phenolic).

Figure 2.
Acidic and basic surface functional groups on a carbon basal plane [42].
• Liquid phase Treatment: Nitric acid or nitric and sulfuric acid mixture are very effective oxidizing agents due to the introduction of a significant number of oxygenated acidic functionalities onto the carbon surface that mainly includes carboxylic, lactone, and phenolic hydroxyl groups.
A greater quantity of oxygen groups in form of carboxylic and phenolic hydroxyl groups are produced in liquid phase oxidation at much lower temperatures compared to the gas phase oxidation [37,42].

Basic surfaces
Basicity of activated carbon can be associated with: i. resonating -electrons of carbon aromatic rings that attract protons, ii. basic surface functionalities (e.g., nitrogen-containing groups) that are capable of binding with protons.
The basic character of activated carbons, however, arises primarily from electrons of delocalized graphene-layer. It was proved that these electrons could act as Lewis bases.
The contribution of basal planes to carbon fundamentality has been studied by some researchers. Leon y Leon et al. studied the surface basicity of two carbon series and showed that solution protons can be adsorbed from oxygen-free carbon sites.
These sites are found on the basal plane of carbon crystallites in -electron-rich areas. Fundamental sites are therefore the Lewis type associated with the carbon structure itself [42].
Nitrogen-containing functionalities can be introduced through: • either reaction with nitrogen-containing reagents (such as NH 3 , nitric acid, and amines).
Possible structures of the nitrogen functionalities include the following: amide group, imide group, lactame group, pyrrolic group, and pyridinic group; which are shown in (Figure 3). Nitrogen functionalities generally provide basic property, which can enhance the interaction between carbon surface and acid molecules such as, dipole-dipole, H-bonding, covalent bonding, and so on [37,41,42].

Nanoporous carbons analysis
Nanoporous carbons are used in various applications such as separation, catalysis and energy storage, and so on [19]. The properties of these materials depend on the application used. Therefore, characterization of these materials is very necessary to determine the properties of materials before use in experimental applications. Surface area, pore size, and porosity are important properties in the fields of catalysis, separation, batteries, gas and energy storage, and others.
As selectivity, diffusional rates and transport phenomena are important properties in catalyzed reactions, determining the pore structure in-depth is very necessary as it controls these properties.
Various techniques can be used for this purpose such as: • gas adsorption analysis(physical adsorption) • small-angle X-ray (SAXS) • small-angle neutron scattering (SANS) • Mercury intrusion porosimetry • Nuclear magnetic resonance (NMR-based methods) • scanning electron microscopy • transmission electron microscopy • thermoporometry, • Brunauer, Emmett, and Teller (BET) technique Each approach has a small applicability length scale for the study of pore size. The International Union of Pure and Applied Chemistry (IUPAC) gave a detailed overview of the various methods for characterizing pore size and their application range [43][44][45].
Gas adsorption is a common one among these, as it allows a wide variety of pore sizes to be examined, including the full range of micro-and mesopores. Moreover, as opposed to some of the methods described above, gas adsorption techniques are easy to use, are not harmful, and are not expensive [45].

Adsorption process
In general, adsorption is defined as the enrichment of molecules, atoms, or ions in the vicinity of an interface. In the case of gas/solid systems, adsorption takes place in the vicinity of the solid surface and outside the solid structure. The material in the adsorbed state is known as the (adsorbate), while the adsorptive is the same component in the fluid phase. The adsorption space is the space occupied by the adsorbate. Adsorption can be physical (physisorption) or chemical (chemisorption) [1,5,46].

Chemical adsorption: (chemisorption)
In chemisorption, the intermolecular forces involved lead to the formation of chemical bonds. When the molecules of the adsorptive penetrate the surface layer and enter the structure of the bulk solid, the term absorption is used. It is sometimes difficult or impossible to distinguish between adsorption and absorption: it is then convenient to use the wider term sorption which embraces both phenomena, and to use the derived terms sorbent, sorbate, and sorptive [1,46].

Physisorption: (physical adsorption)
Is widely used for the surface and textural characterization of nanoporous materials (e.g. for textbooks and reviews see: Sanghi, Canevesi, Celzard, Thommes [40], and Fierro. 2020 [4]; Thommes 2015 [46]; Thommes 2014 [40]) [40]. Physisorption is a general phenomenon and occurs whenever an adsorbable gas (the adsorptive) is brought into contact with the surface of a solid (the adsorbent). The forces involved are the van der Waals forces. Physisorption in porous materials is governed by the interplay between the strength of fluid-wall and fluid-fluid interactions as well as the effects of confined pore space on the state and thermodynamic stability of fluids in narrow pores [6,7,40].
There has been considerable progress over the last two decades in understanding sorption phenomena in small pores, which in turn has contributed to substantial progress in physical adsorption.
The development and application of microscopic methods, such as functional density theory (DFT) of inhomogeneous fluids (e.g., nonlocal density functional theory, NLDFT) or computer simulation methods such as Monte Carlo (MC) and molecular dynamic (MD) simulations, is closely correlated with this advancement [29]. Among many porous materials, nanoporous carbons (NPC), with interpenetrated and regular nanopore systems, have recently triggered enormous research activities because of their fascinating chemical and physical properties, such as high specific surface area, tunable pore structure, catalytic activity, high thermal and chemical stability, intrinsic high electrical conductivity, low density, and wide availability. Therefore, they have been implemented in hydrogen storage, pollutant adsorption, energy storage,(i.e., batteries, supercapacitor), catalysts, energy conversion, and electrochemical devices [19,27,36,37].

Nanoporous carbon materials synthesis
Various natural biomass such as cassava peel waste, chicken eggshell, seed shell, rubberwood sawdust, wood, peanut kernel, lignocellulose (biomass) materials, corn cob, Kraft lignin, scrap tires, textile waste, rice husk, palm shell, and sugar have been employed as precursors for the production of NPC. These sources are generally rich in carbon giving amorphous phases, and the plant wastes containing the cellulose are familiar to form graphitic nanostructures with high-temperature treatments [47].
Conventional porous carbon materials, such as activated carbon, have routinely been prepared by pyrolysis followed by the activation process of the organic precursors, such as coal, plant, wood, or polymers, at specific high temperatures [19].

Activation
Carbonaceous materials are activated to create porosity, controlled morphology, and functional groups on the surface. The pyrolysis process is generally carried out before undergoing the activation process as the former process generates organic residues, which may block the porous channels of the final carbon materials. Physical and chemical activation are two preferred choices for the fabrication of nanoporous carbon materials from carbon-rich precursors, including waste materials [47,48] (Table 3).

Physical or thermal activation
Physical activation is usually carried out In two consecutive heating stages: Carbonization of the raw material under the inert atmosphere (usually nitrogen) to devolatilize the raw material, accompanied by activation consisting of partial gasification of the char acquired with oxidizing agents (i.e. steam, carbon dioxide or a combination of both) leading to the creation of a porous network.
While carbonization normally occurs at temperatures between 400 and 600°C, temperatures ranging from 800 to 1000°C are needed for gasification. Micro only

Type of activation
• The KOH/precursor ratio has a greater effect on the capacity of adsorption and PSD than the activation temperature. • Increasing the KOH/precursor ratio widens pores from narrow to large micropores and to small mesopores in a lesser extent; also hinders the morphology of granules (particle disintegration leads to powders). Table 3.
Appropriate precursors, kinetic of activation, and type of porosity are typically obtained for the most common activating agents [28].
It is also possible to skip the carbonization stage, depending on the raw material, and proceed directly to thermal activation [47,48].
• CO 2 is considered the preferred choice for physical activation due to the ease of handling, control of various parameters, and slow reaction rate. Instead of diffusional regulation which is quicker but contributes to external particle burning and, ultimately, to poor production of porosity. CO2 activation must occur in conditions that ensure chemical control (slow activation rate-days).
The reactions of steam and carbon dioxide with carbon are endothermic, thus: To sustain the necessary high temperature, thermal activation requires an external energy supply [28,31].
• Oxygen (or air) is not widely used as an oxidizing agent because its carbon reaction is highly exothermic and rapid, and instead of particle consumption, it is difficult to monitor and ensure porosity growth.
Oxygen activation is scarcely used because of this and the safety concerns associated with temperature regulation.
However, low amounts of oxygen (or air) may be added to steam or carbon dioxide during thermal activation to help sustain high temperatures by responding to the gases emitted during activation (i.e. CO and H2).
This strategy has the benefit of decreasing CO and H2 pressure, both inhibiting activation gases and increasing the triggering agent's partial pressure [28] ( Table 3).

Chemical activation
Chemical activation normally needs just one heating step: the raw material is combined with an activating agent (e.g. ZnCl2, H3 PO4, KOH) and further treated at temperatures between 400 and 900°C under a controlled atmosphere, depending on the activating agent selected. The activating agent helps to remove the residual water moieties from the raw materials by acting as a dehydrating agent and also assists as an oxidant. Both the processes affect the decomposition of precursors and rearrangement of the resulting carbon atoms into an aromatic framework ( Table 3).
Chemical activation offers an additional advantage of introducing functional groups such as -COOH, -NH, or -OH on the surface of the porous carbon. However, the crystallinity of the sample after the chemical activation is reduced due to the continuous dehydration and the oxidation with the activating agent, which creates a lot of defect sites along the carbon walls of the final product [28,47,48].
The mechanism of pore formation depends, in this process, on the chemical agent: • Zinc chloride facilitates the elimination of water molecules from the raw material's lignocellulosic structures.
• The selective removal of carbon atoms happens in none of these systems.
• The method is more complicated with potassium hydroxide as the structure is disintegrated and the metallic potassium is intercalated into the "graphic" laminar structure, particles are broken down and granular activated carbon synthesis is prohibited. At the same time, due to reaction with CO2 and H2 O, resulting from the redox reaction of carbon with potassium compounds, there is also some gasification of carbon atoms. The lignocellulosic precursor loses volume by contraction during carbonization (i.e. heat treatment under inert atmosphere), but when chemical activation is applied, the activating reagent is incorporated into the particles which inhibit the anticipated contraction, i.e. the activating agent will act as a template for microporosity formation. [28,31,32,48,49].
Chemical activation has advantages over the physical process discussed in (Table 4).

Other nanoporous carbons synthesis methods
The chemical activation process using KOH, K2CO3, K2O, ZnCl2, KHCO3, H 3 PO4, etc., and their reaction are very useful to make nanopores, however, harsh reaction condition, cost of required chemicals and processes, residue, ununiformed pore distribution, and difficult control of pore size should be considered for upscaling the production and commercialization. Compared with chemical activation, physical activations utilizing mainly CO2 and steam activation usually has a high yield and bulk density but suffers from a relatively low surface area and pore volume due to the lower degree of carbon etching. Therefore, many researchers have studied the efficiency of other methods to fabricate nanoporous carbon materials.
Thus, hard-and soft-templating approaches have been successfully introduced for the preparation of NPC with well-defined pore structures and narrow pore size distributions. In this Chapter, the hard-and soft-templating synthesis are introduced as potential approaches for the preparation of NPC materials with a special emphasis on the progress and developments in the methodology.
Hard synthesis of templates requires the use of pre-synthesized organic or inorganic templates, while the soft synthesis of templates depends on the creation of nanostructures through self-assembling organic molecules [19,23]. • Relative low surface area and pore volume due to the lower degree of carbon etching. • Two consecutive heating steps Table 4. Advantages and dis advantages of activation processes [28,48].

Templating method
Historically, Knox and co-workers, who demonstrated the synthesis of graphitic porous carbons for liquid chromatography separation by impregnation of spherical porous silica gel particles with phenolic resin and subsequent carbonization and silica removal, first reported the templating process in 1986. This technique has gained considerable attention since then and different types of template carbons are synthesized. The resulting carbon synthesized by the templating method has a relatively narrow PSD and regulated architecture called a templated carbon.
The templated carbonization method permits one to control the carbon structure in terms of various aspects, such as pore structure, specific surface area, microscopic morphology, and graphitizability, which makes this method very attractive [48].
Porous materials are fabricated in several different ways. The Hard Template Method and Soft Template Method are the two most common methods to make porous materials [39,50,51].

Hard template method
The most common hard template synthetic route for mesoporous carbon materials was first reported by Knox et al. using a spherical solid gel as the template. Highly ordered NPC with oriented mesoporous structures can be obtained using the hard template method.
The hard template method includes the following steps: (a) synthesis of a suitable porous template; (b) introduction of a suitable carbon precursor into the template pores using the method of wet impregnation, chemical vapor deposition, or a combination of both methods; (c) polymerization and carbonization of the carbon precursor; and (d) removal of the inorganic template. Following these steps, porous carbon with a specific pore structure is formed [19,48,52].
Also, Dandan Guo, Jin Qian, Ranran Xin, Zhen Zhang, Wei Jiang, Gengshen Hu, Maohong Fan prepared Mesoporous carbons enriched with nitrogen by hard template method for supercapacitors. Where CCl 4 and ethylenediamine (EDA) represent precursors whereas silica act as a hard template [53] (see Figure 4). While Wei Liu, Hong Yuan, and Yihu Ke Prepared ordered mesoporous carbon-based on soybean oil by using the hard template method where a hard template is represented by ordered mesoporous SiO 2 molecular sieves (SBA-15) [55].
However, when extracting from the template, the sacrificing of the solid template and mesoporous NPC structures limits the usefulness of hard template synthesis. The use of soft template synthesis will overcome these constraints [51,54,56].

The soft template method
The soft template is a kind of surfactant, which has a strong interaction with the carbon source, and mesoporous carbons with different structures can be obtained through the soft template method. This method possesses good controllability and operability; as a result, it has very good application prospects. The mechanisms of the soft template method include a liquid-crystal template mechanism, a synergistic assembly mechanism, a "rod micellar" mechanism, and so on; these mechanisms have been widely recognized [48,52].
Amphiphilic molecules, such as surfactants and block copolymers, have been extensively used as soft-templates in the synthesis of ordered mesoporous materials. The discovery of ordered mesoporous carbon materials appeared to have a great impact in this field because of the fascinating features of their unique physical and chemical properties which can surmount the shortcomings in various technological applications. Preparing these ordered mesoporous carbons can be difficult to achieve by a simple self-assembly method for many reasons, although recent reports have demonstrated that polymeric micelles can serve as templates for mesoporous carbons.
The key requirements for a successful synthesis using the soft-templating method are  (1-2-b), (2-c) polymerization of the carbon precursor followed by carbonization, (2-d) graphitization giving nanoporous graphene sheets. Black lines represent the 2D building units, namely carbon nitride or graphene layers [19].
(i) the ability of the precursor species, such as the copolymers and the carbon source, to self-assemble into nanostructured polymer composite, (ii) the presence of at least one performing species, and one carbon source, (iii) the stability of the pore-forming species which can endure the temperature required for thermally decomposing the carbon source during carbonization process, and finally (iv) the ability of the carbon source to form cross-linked polymers that can retain their nanostructures during the thermal decomposition. The synthesis principles of these self-assembled nanostructured mesoporous carbons open the way for the development of new strategies for materials in the future. Researchers have reported that only a few materials meet the requirements for the successful synthesis of ordered mesoporous carbons using a softtemplating approach [23,50,56]. Some of the research activities related to the softtemplating synthesis of polymeric structures are summarized [19] (see Figure 5). 6. Activated carbon as the essential phenol removal adsorbent 6

.1 The activated carbon precursors
There is a wide range of raw materials that can be successfully used as a precursor for the preparation of activated carbon. Almost interesting precursors have been obtained from any carbonaceous materials such as agricultural waste, wood, petroleum coke, and industrial biomass. An important aspect in the preparation of activated carbon is the use of different parts of plants including the pulp, stems, shells, peels, flowers, fruits, seeds, stones, peels, and leaves. All these precursors can be carbonized and then activated under desired conditions to yield activated carbon [25]. The selection of the precursors is based mainly upon the following several factors: • High carbon content and low amount of ash.
• Availability and inexpensive.
• Low content of inorganic matter.  Table 5.
Properties of some raw materials and the properties of activated carbon generated [24].
The characteristic of activated carbons such as physicochemical properties that responsible for carbon adsorption properties and other possible applications depend on selected carbon precursors in addition to the preparation method. Lately, it is longer than lignocellulosic resources and waste biomass is the most used precursors for the production of the activated carbon ( Table 5). Summary of the properties of some raw materials and the properties of activated carbon generated [24,57,58].
The usage of lignocellulosic biomass in the generation of activated carbon has many features as it is renewable and most abundant in nature, inexpensive, and helps to dispose of its negative impact effect on the environment. Numerous reviews have been devoted to inexpensive precursors of activated carbon in recent years [58,59].

Generation of porosity and surface chemistry (activated carbon)
All activated carbon is generally characterized by a porous structure with their high surface area, usually have few amounts of chemically bounded heteroatom oxygen, hydrogen, sulfur, and nitrogen. Beside may contain around 20% by weight of a mineral substance called ash content [24,49]. It is known that the surface of activated carbon has a high heterogeneous phenomenon. AC surface heterogeneity comes from two various sources called geometrical and chemical sources. Geometric heterogeneity results from differences in the size and shape of pores, cracks, pits, and steps. Chemical heterogeneity is associated with different functional groups, especially the oxygen groups that are most often found at the edges of turbine crystals, as well as with various surface impurities. The heterogeneity of AC (Geometric, Chemical) surfaces affect unique adsorption properties. The chemical properties and structure of activated carbon and its structure can be changed depending on the type and nature of presence and number of oxygen functional groups on its surface [24,25,36,59].
It's possible to produce activated carbon from all carbonaceous materials which its preparations involve two major steps: carbonization of the precursors followed by activation method as shown in (Figure 6). Carbonization means the conversions of raw materials at elevated temperatures into a highly stable carbon structure with an elementary and partially -developed pore structure. During this step, water and volatile substances are removed leaving the char behind. Followed by activation of Figure 6. Synthesis of activated carbon [49]. char by physical or chemical activation to produce highly porous activated carbon. The generated activated carbon characterize by having a porous structure, high surface area, and highly reactive surface functionality. Physical activation involves the carbonization of the precursors in the presence of inert gas in the range between 500 to 900°C followed by gasification of the resulting char with carbon dioxide. Steam, air, or mixtures of both can be also used as activating agents. Excessive temperatures lead to reduced carbon content, collapse its pore structures and increase ash generation. in physical activation, proper temperature and time are so important to achieve adequate pore development and the creation of functional groups. In chemical activation, the raw material is directly impregnated with an activating agent such as KOH, NaOH, H 3 PO 4 ,H 2 SO 4 , HNO 3 , ZnCL 2, and FeCL 3, and the impregnated product is pyrolyzed at high temperature for a certain time and then product washed to remove the activating agent. The activating agent can contribute in the oxidation and gasification the carbon precursors to improve porosity and transform surface functional group. The pores generated from activation are usually identified as microspores and mesoporous [24,28,48]. Chemical activation has advantages among physical included in (a)-the low temperature of activation. (b) Well developed in the porous structures.
Different pore sizes (micro, meso, and macropores) are obtained depending on the nature and type of precursors, activating agent, and reaction conditions such as time and temperature. The properties of raw material such as its type and size, the type of activating agent, the ratio of mixing raw material with the activating agent, the conditions of heating in the furnace, will have a significant effect on the characteristics of the final product including surface area and pore size [24,48].
However, first and foremost, the adsorption features of activated carbon are dictated by its chemical composition. The existence of hydrogen and oxygen groups on the surface of the activated carbon directly affects the adsorption performance. Original AC precursors, the activation process, or post-treatment after the preparation process can be the source of these surface groups. The oxygen groups are mainly formed on the surface of activated carbon following activation by air exposure or by relevant post-treatment [25,57,60,61].
Carbon is more likely to chemisorb oxygen than any other species. Chemisorbed oxygen present on the surface of AC to form carbon and oxygen functional groups can be acidic, neutral, or basic. The formation of oxygen groups on the carbon surface is generated from the reaction with the activating agent used such as (H 2 So 4 , HNO 3 ,H 2 O 2 ) and other oxidizing gases like CO 2 and O 3 . Among the factors affecting the nature of the surface group of oxygen, the temperature may be taken into account, as surface acidity is formed that includes carboxyl functional groups, carboxylic anhydrides, lactones, and phenol hydroxyls upon exposure to low temperature while basic surface that generated from delocalized π-electrons on a carbon basal plane like pyrone, quinone, and carbonyl generated at high tempertature [24].
To define the number of groups of oxygenated surfaces, The Boehm titration method is used. The basic functional groups are the most preferred than the acidic functional group for the adsorption of phenolic compounds. And some experimental methods like temperature-programmed desorption (TPD), infrared spectroscopy, acid-base titration, X-ray photoelectron spectroscopy (XPS), can be used to characterize surface-oxygen groups [24,57].

Role of surface heterogeneity on adsorption of phenol
Although activated carbon has been investigated for a long time as an effective adsorbent of organic pollutants, the exact structure of the functional groups and the mechanism of phenolic compounds adsorption is not well understood yet. 21 Nanoporous Carbon Materials toward Phenolic Compounds Adsorption DOI: http://dx.doi.org /10.5772/intechopen.96380 Much information should be considered before applied adsorption of phenol such as: 1. The effects of surface functionalities on adsorption phenols exhibit a complex significance than the porosity effect.
2. Activated carbon have an amphoteric character in an aqueous solution (possesses both, acidic and basic surface functional groups) and has a positive or negative charge on its surface depending on the solution of PH. The type of nature of activated carbon surface affects the adsorption of organic electrolytes such as phenol so it is so important to determine the charge of the surface of activated carbon as well as the extent of ionization of the phenol before the application of phenol adsorption [41].
3. The chemical characteristics on activated carbon surface determine from functional groups and π-delocalized electrons of fused aromatic structures. The affinity of the activated carbon toward adsorbate can be determined from the content of surface functional groups and pHpzc. The pHpzc indicates zero net surface charge of the adsorbents that implies their electronic surface charges. The surface is positively charged at pH < pH PZC in which water gives protons more than the hydroxyl group and when pH > pH pzc the surface has a negative charge. It is commonly assumed, that for pH < pK a adsorption of non-ionized organics does not depend on the surface charge of AC. However, for pH > pK a the phenolic compound is dissociated, and adsorption of its ionic form depends on the surface charge.
4. In the case of phenolic adsorption, the basic surface of activated carbon is so preferred to achieve high performance of adsorption of phenol.
The adsorption capacity of phenol on activated carbon depends on some factors such as: a. The solubility of phenols in water.
b. The degree of activation.
And thus adsorption capacity increase with increasing specific surface area and porosity while it decreases by the solubility of phenolic compounds in water and increases the hydrophobicity of phenolic substituted. For example, phenolic compounds that having low solubility in water like p-cresol and p-nitrophenol are adsorbed on activated carbon than other phenols. On the other hand, chlorophenol, nitrophenol, cresol adsorbed greater on activated carbon than phenol and aminophenol due to their hydrophobic group. The adsorption of phenolic compounds onto the ACs mainly contribute to three types of interactions namely, (i) ππ dispersion interaction, (ii) the electron-donor-acceptor complex formation, and (iii) the hydrogen-bonding formation. The mechanism of adsorption of phenolic compounds toward activated carbon occurs through the formation of electron donor-acceptor complex between the aromatic ring of phenol and basic sites on the surface of activated carbon (basic surface oxygen complex and/or πelectron-rich sites on the basal planes). Therefore, the relative affinity between the carbon surface's basic characteristic and aromatic phenolic ring increases. Electron withdrawing of phenolic rings tends to form electron donor-acceptor complex between these ring and basic sites on the surface of activated carbon [24,25,42]. In the case of oxidation, the surface of activated carbon with a strong oxidizing agent leads to the formation of the acidic surface with a large quantity of carboxyl and phenolic groups with a small amount of carbonyl and chromene lead to inhibition of phenol adsorption. During the adsorption of phenol on activated carbon, these regions act as a donor and the aromatic rings of phenol as acceptors. Phenol adsorption onto the activated carbon is controlled by dispersive force between π electrons. The interaction of π-π dispersion occurs between basal planes of activated carbon and the phenol aromatic ring [24,42]. The change in PH solution affects phenol adsorption. The adsorbed amount of PH decrease at low and high PH values. At low PH value, protons were added to compete with the adsorbate for the carbonyl sites leading to a reduction of adsorption of phenol at this value. Besides the surface chemistry of activated carbon, the pore structure also affects the adsorption process. The porosity of activated carbon has been considered an important factor in the adsorption processes of phenolic compounds from aqueous solutions. The adsorption capacity of small molecules such as phenol to the inner surface of carbon correlates with the content of micropores and BET surface area, while for mesoporous ACs, substituent group in the phenol and nature of the carbon controlled the phenol adsorption as well [24,37,38,41].

Conclusion
Nanoporous carbon materials have an attractive rate performance in many applications of recent technology such as pollutant adsorption. In this chapter, the properties of nanoporous carbon and its various preparation methods are presented. Also, our choice of the preparation method, reaction conditions, and the precursor materials affect the properties of the resulting nanoporous structure. The adsorption of phenolic compounds from polluted water is one of the most common uses of nanoporous carbon, especially activated carbon in water treatment. Numerous factors are known to have an important influence on phenolic adsorption like the type of carbon structure, functional groups present on the surface, oxygen availability on its surface, pH value of the aqueous media, etc. Furthermore, there are several scientific papers reviewed -aspects most relevant to indicating today's trends and potential insights in elucidating the adsorption mechanisms of phenolic compounds on activated carbon.