Introduction

Rapid development of textile industry is directly related to increasing pollution of fresh water bodies. It is anticipated that the waste generated by industry will increase at a geometric rate. Synthetic dyes have been used in textile industry for nearly 200 years (Ikram et al. 2022). They are chemical compounds of complex structure, showing high resistance to temperature, light and oxidizing substances. The presence of organic dyes in water reservoirs disturbs the penetration of light and thus the process of photosynthesis, which eventually results in reducing the content of oxygen (Vilén et al. 2022).

Thanks to its excellent physicochemical properties suitable for the purpose of adsorption, the most popular and highly effective sorbent is activated carbon. Its production as well as the demand for it, have been increasing from one year to another (Vilén et al. 2022). Activated carbon may be obtained by physical or chemical activation. The former process is realized in two steps. The first step is carbonization which is a thermal decomposition of a precursor containing carbon in organic connections, taking place in a neutral gas environment. The obtained carbonizate is subjected to activation with an activating gas, at a high temperature, in order to oxidize the carbonizate surface. The activating gas may be carbon(IV) oxide, oxygen or steam (Naji et al. 2022). Chemical activation is a single step process in which the precursor is impregnated with an activator (sodium or potassium carbonate, phosphoric(V) acid solution, zinc chloride or a sodium hydroxide) and then subjected to thermochemical treatment in a neutral gas atmosphere (Heidarinejad et al. 2020). The above-mentioned activators show high reactivity, which permits skipping the stage of carbonization, use of much lower temperature of the process and shortening of the time of activation. As each of the activators mentioned is characterized by a specific reactivity toward the precursor, the obtained activated carbons show different physicochemical properties (Kahn et al. 2019). According to the Lewis theory, the activators H3PO4 and ZnCl2 are acids and react with the oxygen functional groups present on the surface of the activated material. The reactions catalyze the processes of dehydration and dehydrogenation that lead to pyrolysis of the precursor (Gao et al. 2020). Impregnation with phosphoric(V) acid at first leads to hydrolysis of glycoside bonds in hemicellulose of the precursor, followed by degradation, dehydration and condensation of the precursor accompanied by intensive liberation of carbon oxide and methane (Naji et al. 2022). When using potassium carbonate as an activator, it is known to reduce to K, K2O, CO and CO2, in a neutral environment. In the process of activation, potassium compounds penetrate the carbon structure and through chemical reactions enlarge the precursor pores (Foo et al. 2012). The use of sodium carbonate usually leads to material of poorer textural parameters, although this activator has a similar mechanism of activity (Heidarinejad et al. 2020). Chemical activation, although involving much higher cost and characterized by lower yield than the physical alternative, is often much more effective as it leads to getting adsorbents showing more developed porous structure and greater effectiveness in removing liquid or gas pollutants (Heidarinejad et al. 2020).

The precursors that may be used for production of activated carbons range from materials of animal origin (BalAltuntaş et al. 2020) to those of plant origin, including residues of supercritical extraction (Bazan-Wozniak et al. 2022), fruit stones(Cabrita et a. 2010) and easy to grow plants cultivated on a large scale (Kahn et al. 2019). The number of papers concerning the production of activated carbon has been continually increasing over the last decades (Bhattacharya et al. 2023; Bazan-Wozniak et al. 2022).

Production of fennel (Foeniculum vulgare) in Europe reaches over 600 000 tonsper year and is run mainly in Italy, France, Spain, Germany and the Netherlands(Shurr et al. 2022). Funnel seeds have found application in a wide range of areas, including gastronomy, perfumery and pharmaceutical industry as funnel seeds extract shows antiseptic and purgative properties as well as helps alleviate cough. According to recent studies, fennel extract may also be an alternative to antibiotics (Khan et al. 2022a, b). The properties of fennel seeds, their characteristic structure and their high availability make them attractive candidate for a precursor for activated carbon production. This realization inspired us to make an attempt at obtaining activated carbon by chemical activation of the residues of supercritical extraction of fennel seeds. The obtained products were characterized by determination of specific surface area, number of oxygen functional groups, pH of the activated carbons aqueous solutions, their elemental composition and content of mineral admixtures. Sorption capacities of the obtained activated carbons toward organic and inorganic pollutants of liquid phase: methylene blue and iodine, were determined. The methylene blue adsorption was also characterized by kinetic and thermodynamical studies.

Materials and methods

Materials

The precursor used for obtaining activated carbons were the residues of fennel seeds supercritical extraction. This material was characterized by the content of volatile matter of 7.89 wt%, moisture content of 5.27 wt% and ash content of 5.83 wt%. Prior to any treatment the precursor was dried for 24 h and then it was subjected to chemical activation with either of the three activators: sodium carbonate, potassium carbonate or a 50% solution of phosphoric (V) acid. Adsorption properties of the obtained activated carbons were tested toward methylene blue (MB) representing organic pollutants and iodine representing inorganic ones. Reagents were of analytical grade and were purchased from Merck (Darmstadt, Germany). Deionized water was used for the preparation of the solutions.

Preparation of activated carbons

The dry precursor was divided into three portions and each of them was impregnated with one of the three activators Na2CO3 (sample labeled as ACNa), K2CO3 (labeled as ACK) or a 50% solution of H3PO4 (labeled as ACP). For all activators, the impregnation ratio of precursor to activator was 1:2. Samples of impregnated precursors were placed in a tube furnace and heated from room temperature to 500 °C—sample ACP or to 700 °C—samples ACNa and ACK. After reaching the target temperature, the samples were thermostated for 45 min. The chemical activation was carried out in a nitrogen atmosphere blown at a rate of 330 mL/min. After the process, the samples were cooled to room temperature in a neutral atmosphere. Samples ACNa and ACK were washed at first with a hot 5% solution of hydrochloric acid and then to neutralize the material, with about 10 L of boiling distilled water until getting a neutralized filtrate. Sample ACP was washed only with boiling distilled water. The activated products were dried to constant mass.

Biocarbons characterization

Textural properties of the obtained samples were characterized on the basis of isotherms of nitrogen adsorption/ desorption measured at 77 K using an AutosorbiQ analyzer from Quantachrome Instruments (Boynton Beach, FL, USA). Prior to measurements of nitrogen adsorption, the carbon samples were degassed in vacuum for 12 h at 300 °C. The surface area of the samples was calculated from the appropriate isotherm of nitrogen adsorption, according to the Brunauer, Emmett, Teller method. The total pore volume (VT) was determined on the basis of the volume of adsorbed nitrogen at the relative pressure p/p0 = 0.99, which is obtained by dividing the equilibrium pressure by saturation pressure and expressed for the volume of adsorbed nitrogen in liquid state at a given temperature. The mean pore diameter (D) was calculated from the equation: D = 4VT/SBET, where SBET is the specific surface area of the carbon samples. The pores were assumed to be of cylindrical shape. The ash content was determined by a standard method, according to the norm ASTM D2866-94 (2004). Thermo Scientific FLASH 2000 Elemental Analyzer was employed to establish the elemental composition of precursor and biocarbons.

The content of surface oxygen functional groups of basic or acidic character was determined for both the precursor and the activated carbon samples (Mahardiani et al. 2019). Values of pHof water extracts of all samples were measured using a pH-meter made by Elmetron, model CP—401.For the obtained activated carbon samples also the iodine number was determined (Bazan 2017).

Adsorption of methylene blue

Methylene blue (MB), analytical grade, was purchased from Merck (Darmstadt, Germany). Stock solution of MB was made in concentration of 1000 mg/L and it was used to make solutions of concentrations in the range 10–200 mg/L. To evaluate the adsorption capacities of the activated carbon samples toward MB, 25 mg of each sample was mixed with 50 mL of an MB solution of a proper concentration. The samples with MB solution were shaken for 24 h on a shaker (Heidolph, Schwabach, Germany) at the rate of 200 rpm/min. Then, the samples were taken out with a syringe and centrifuged for 10 min in a laboratory centrifuge (OHAUS, Parsippany, USA). The concentration of methylene blue in the solution was measured spectrophotometrically at λmax 665 nm, using a Carry 100 Bio spectrophotometer, (Agilent, SantaClara, CA, USA). The amount of MB (qe) adsorbed on the samples studied was calculated from the equation:

$${q}_{e} =\frac{{C}_{0}-{C}_{e}}{m}\times V$$

where: C0–the initial concentration of MB solution, [mg/L]; Ce –the concentration of MB in the solution at equilibrium [mg/L]; m-the mass of the activated carbon sample [g]; V –the volume of MB solution MB [L].

The effect of pH (varied in the range 3–11) of the aqueous solution of MB on the sorption capacities of the activated carbon samples was tested (BlueLine 25 pH electrode (SI Analytics, Weilheim, Germany). Measurements were performed for the biocarbon samples of 25 mg. Each of the samples was flooded with 50 mL of the aqueous solution of MB. The MB concentrations were of 50 mg/L for samples ACNa and ACP, and 150 mg/L for sample ACK. The effect of temperature of adsorption on the adsorption capacities of the activated carbon samples toward MB was also studied. Biocarbon adsorbent samples ACNa and ACP of 25 mg were flooded with 40 mg/L MB, while sample ACK was flooded with 200 mg/L MB. Sorption of MB on activated carbon samples was run at three temperatures of 25, 45 and 60 °C. To study the effect of pH of the dye solution and temperature on the sorption capacity of the activated carbon samples, the flooded samples were shaken for 24 h on a shaker (Heidolph, Schwabach, Germany) at the rate of 200 rmp/min. After this time, spectrophotometric measurements were made.

Two models, proposed by Langmuir and Freundlich, were considered in order to establish the mechanism of MB adsorption on the samples studied (Table 1).

Table 1 Equations describing the models of adsorption proposed by Langmuir and Freundlich

According to the Langmuir model, on the adsorbent surface there is a specific number of active sites, the so-called adsorption sites, each of which is able to adsorb one molecule of adsorbate, so that an adsorption monolayer of adsorbate molecules is formed. The model assumes no interactions between the adsorbate molecules (Canales-Flores et al. 2020). According to the Freundlich model, a multilayer of the adsorbent molecules is formed on the adsorbent surface. The Freundlich model is used for description of heterogeneous systems (Ezzati et al. 2020).

In order to characterize the kinetics of adsorption of MB from an aqueous solution on the activated carbon samples, two kinetic models were considered: that of pseudo-first order proposed by Lagergren and pseudo-second order proposed by Ho&McKay (Table 2) (Tien et al. 2017).

Table 2 Models of adsorption kinetics

In the Lagergren model, the adsorption rate is directly proportional to the difference between the equilibrium and temporary concentration the adsorbate adsorbed on the adsorbent (Tien et al. 2017). The model proposed by Ho&McKay describes the rate of occupation of the available active centers by the adsorbate, which is proportional to the square of the number of free adsorption sites (Tien et al. 2017). The experimental adsorption studies were conducted in triplicate, and the results are presented with the standard deviation.

Results and discussion

Elemental analysis

Table 3 presents results of elemental analysis of the precursor and activated carbons obtained in the study. Dry fennel seeds contain nearly 51 wt% of elemental carbon. The content of sulfur and hydrogen is much lower in the activated carbon samples than in the precursor. After pyrolysis of the precursor, the content of elemental carbon increased by 21–27% points. Chemical activation of the precursor led to a decrease in the contents of oxygen, sulfur and hydrogen in the activated carbon samples. Upon activation of the precursor, sulfur oxides and hydrides were released, leading to a decrease in the contents of these elements in the activated carbon samples (Sekirifa et al. 2013). As follows from the elemental analysis, the highest percentage of carbon was obtained for the sample activated with potassium carbonate (ACK), while the lowest—for the sample activated with phosphoric(V) acid (ACP). Another conclusion from Table 3 data is that the use of carbonates as activators led to the adsorbents of greater content of nitrogen.

Table 3 Elemental analysis of the precursor and activated carbon samples and yield of the activation processes

The ash content in fennel seeds reaches 5.8 wt.%, while the content of mineral substance in the activated carbon samples varied from 0.2 to 11.7 wt% (Fig. 1). The activated carbon obtained as a result of the precursor activation with potassium carbonate contained only 0.2 wt% of ash. For comparison, the activated carbon obtained by chemical activation of peach stones with potassium carbonate (Cabrita et al. 2010)contained 13 wt% of ash, which is 65 times more than sample ACK. The content of ash in sample ACNa, activated with sodium carbonate was 2.7 wt%. Sample ACP, obtained by activation of fennel seeds with a 50% solution of H3PO4, contained far more mineral substance than the other samples. The activated carbon obtained from barley husk chemically activated with orthophosphoric acid (Canales-Flores et al. 2020) showed the ash content of 11.9 wt%, while the adsorbents obtained from corn cob and Agave salmiana leaves contained only 3.1 and 1.1 wt% of ash, respectively. In view of the above literature data, it may be concluded that the choice of precursor determines the content of mineral substance in the final product. The activated carbon samples obtained by chemical activation of fennel seeds with sodium and potassium carbonates were washed with a 5% solution of HCl in order to wash out the unreacted carbonates (Sevilla et al. 2021), while the sample activated with phosphoric (V) acid washed only with hot water, which shows that the type of washing may also affect the content of ash in the adsorbents. According to Fig. 1, the two-stage washing of samples ACK and ACNa leads to adsorbents of low content of ash composed mainly of inorganic compounds like mixtures of alkali metal oxides and their carbonates or salts (Vassilev et al. 2013).

Fig. 1
figure 1

The content of ash in the precursor and activated carbon samples obtained from it

Physiochemical properties of the obtained activated carbons

According to Table 4, the total surface area of the activated carbon samples varies from 345 to 1052 m2/g. Textural parameters of the obtained adsorbents depend on the type of activator used. The specific surface area of samples ACP and ACNa is 518 and 345 m2/g, respectively. Particularly interesting is sample ACK showing the best textural parameters: specific surface area of 1052 m2/g, large pore volume of 0.678 cm2/g and high ratio of the volume of micropores to the total pore volume (80%). For comparison, the commercial adsorbent Norit SX2 has the specific surface area of 1092 m2/g (Bazan-Wozniak et al. 2022).The well-developed porous structure of sample ACK is related to the mechanism of activation with potassium carbonate. Sample ACP shows the largest average pore diameter and the lowest ratio of micropores volume to the total pore volume.

Table 4 Textural parameters of activated carbons

Figure 2 presents the isotherms of low-temperature nitrogen adsorption/ desorption and pore size distribution obtained for the activated carbon samples studied. The isotherms may be classified as type IV(a) (Thommes et al. 2015). The capillary condensation is accompanied by hysteresis which is known to occur for pores wider than ~ 4 nm. The IUPAC classification distinguishes six types of hysteresis loops closely related to the porous structure of the adsorbent and the mechanism of adsorption. For all activated carbon samples studied the hysteresis loops represent type H4, characteristic of materials containing narrow slit pores (Thommes et al. 2015), which is in agreement with the data presented in Table 4.

Fig. 2
figure 2

Low-temperature N2 adsorption–desorption isotherms A and pore size distribution B of ACNa, ACK and ACP samples

Further analysis of textural parameters shows that sample ACPis characterized by the lowest ratio of the micropores volume to the total pore volume and the presence of pores of the greater average diameter. Moreover, chemical activation of fennel seeds leads to carbon adsorbents of microporous (ACK) or micro-mesoporous (ACNa, ACP) surface character.

Table 5 presents the textural parameters and conditions of obtaining activated carbons from different precursors of plant origin as a result of chemical activation with orthophosphoric acid, sodium carbonate or potassium carbonate. A comparison of sample ACP with the adsorbent obtained by chemical activation of lemon and orange peels with an 85% orthophosphoric acid (Ramutshatsha-Makhwedzha et al. 2022) shows that the latter has almost three times smaller total surface area than the former (obtained by fennel seeds activation with a 50% solution of this acid. Moreover, sample ACPwas obtained at a lower temperature and a much shorter time of thermostating. Thanks to these conditions, the process of obtaining of ACP was cheaper, more ecological and more effective. Orthophosphoric acid acts as a catalyst, its presence facilitates bond cleavage reactions and favors crosslinking of the structure through cyclization, condensation and generation of phosphate and polyphosphate bonds. After its removal by washing out, polyphosphates leave unoccupied voids—pores. The higher the content of orthophosphoric acid in a system, the greater the amount of polyphosphates, and thus, the greater the volume of pores (Sych et al. 2012). However, when a too high concentration of orthophosphoric acid is used, the pore walls may become very thin and eventually collapse, leading to a decrease in pore volume and BET surface (Sych et al. 2012).

Table 5 Comparison of textural properties of activated carbon samples obtained from different agricultural waste products subjected to chemical activation with different reagents

Hussaroet al. (2014) have studied a series of activated carbons obtained by chemical activation of oil palm shells with sodium carbonate at different weight ratios of activator to precursor. The activation temperature of all samples was 700 °C and the time of thermostating was 120 min. With increasing weight ratio of activator to precursor, the textural parameters of the obtained adsorbents were observed to improve. In comparison with the adsorbents obtained from oil palm shells, sample ACNa, obtained from fennel seeds, has over twice smaller specific surface area and the pore volume smaller by 25–169 cm3/g.

A comparison of sample ACK with the adsorbents obtained from other precursors characterized in Table 5, shows that the activated carbon sample obtained from Cassia fistula rose (Tran et al. 2018) has specific surface area by almost 35% greater than sample ACK obtained from fennel seeds using the same activator (potassium carbonate). However, the activated carbon sample from Cassia fistula rose was obtained at a temperature by 100 °C higher than that used to produce ACK and in a thermostating time 5 times longer, which increased the time of the process, cost of sample production and was less ecological. The total pore volume of the above compared two samples was similar. The adsorbent obtained from peach stones (Cabritaet al. 2010) in similar activation conditions, showed the specific surface area by almost 200 m2/g greater and the pore volume by about half smaller. Moreover, the adsorbent from peach stones was heated for a longer time, which increased the cost of its production.

In order to characterize the acid–base properties of the precursor (fennel seeds) and the activated carbon samples obtained from it, the pH of their water extracts were measured and the number of surface oxygen functional groups was determined by the Boehm method, Fig. 3.

Fig. 3
figure 3

The number of oxygen functional groups on the surface of the activated carbon samples studied and pH of the water extracts of the samples

The water extract of fennel seeds has pH of 6.1 and contains more acidic than basic groups. Prevalence of acidic groups over basic ones was determined for each of the activated carbon sample obtained. The most acidic surface character, pH of 3.0, was found to have sample ACP, obtained by fennel seeds activation with a 50% solution of H3PO4.The content of acidic surface oxygen functional groups on ACP surface was 2.0 mmol/g, while that of basic groups was 0.6 mmol/g. The pH of water extracts of the activated carbon samples activated by potassium or sodium carbonates were higher. The content of acidic groups on sample ACK surface was 1.75 mmol/g, while that of basic groups was 0.55 mmol/g. The analogous contents for sample ACNa were 2.61 mmol/g (acidic groups) and 0.80 mmol/g (three times less basic groups). For comparison, Tran et al. (2018) have obtained activated carbon from Cassia fistula rose by chemical activation with potassium carbonate, that contained 2.12 mmol/g surface acidic groups and 1.56 mmol/g surface basic groups. Thus, it may be concluded that chemical activation of plant precursors (Tran et al. 2018; Bazan-Wozniak et al. 2018Doczekalska et al. 2022) predominantly gives activated carbons containing more acidic groups than basic ones on the surface. Acidic oxygen functional groups are formed upon oxidation of activated carbon at high temperatures and their presence is responsible for the polar and hydrophilic character of the carbon samples surface (Alves et al. 2016). Basic oxygen functional groups are formed as a result of oxygen chemisorption on the carbon samples surface at a high temperature and in the atmosphere of oxidizing gas (Alves et al. 2016). Therefore, basic character of the carbon samples surface is typical of samples obtained by physical activation of plant origin precursors (Heidarinejad et al. 2020).

Adsorption of iodine

The main aim of the study was evaluation of sorption abilities of the obtained activated carbon samples toward liquid pollutants, represented by methylene blue and iodine. The yield of adsorption depends on the physicochemical properties of both, adsorbate and adsorbent (Heidarinejad et al. 2020). The activated carbon properties determining the character of adsorption are: pore size, specific surface area and the presence of oxygen functional groups on the surface (Queiroz et al. 2020).

The iodine numbers of samples ACP and ACK were found to be 1196 and 1215 mg/g, respectively (Fig. 4). According to the results of their physicochemical studies, the specific surface area of samples ACP and ACK was more developed than that of sample ACNa (Table 4), which is directly related to the lower value of the iodine number of the latter sample, of 317 mg/g. For comparison, the activated carbon sample obtained by chemical activation of hop cones with Na2CO3 (Bazan-Wozniak et al. 2018) is characterized by the specific surface area of 1048 m2/g and the iodine number of 1278 mg/g. It should be noted that the iodine numbers of commercial activated carbon adsorbents F-300 and WG-12 are 850 mg/g and 1050 mg/g, respectively, so smaller than those obtained for samples ACK and ACP (Nowicki et al. 2015). The activated carbon obtained by activation of fennel seeds with a 50% solution of phosphoric (V) acid was found to show much higher sorption capacity toward iodine than it would be expected on the basis of its textural parameters (Table 4). Tounsadi et al. (2016) reported a similar result for the activated carbon sample obtained from Glebionis coronaria L. biomass with orthophosphoric acid, using a precursor to activator mass ratio of 1:2. Specifically, one gram of this activated carbon had a specific surface area of 102 m2/g and was able to adsorb 795 mg of iodine. Probably, the use of H3PO4 as an activator leads to the formation of such functional groups on the activated carbon surface that react with iodine molecules. Orthophosphoric acid may modify the carbon surface properties through introduction of phosphoric groups (Danish et al. 2022; Canales-Flores et al. 2020; Tounsadi et al. 2016). Perhaps this may be the reason why the iodine numbers of sample ACP and the adsorbent obtained from Glebionis coronaria L. biomass were much higher than their textural parameters would imply.

Fig. 4
figure 4

Iodine numbers of the obtained activated carbons

Adsorption of methylene blue

On the basis of the results presented in Fig. 5 it follows that the most effective adsorbent toward methylene blue in aqueous solution proved to be sample ACK obtained by precursor activation with potassium carbonate as an activator. The sorption capacity of this sample toward MB was 474 mg/g. For comparison, the activated carbon obtained by chemical activation of orange peel with potassium carbonate (Foo et al. 2012) of the specific surface area of 1104 m2/g, was able to adsorb 380 mg/gof MB, so almost 100 mg/g less than sample ACK.The latter sample has a well-developed specific surface area, microporous structure (Table 4) and very low ash content (Fig. 1), which are conducive to high sorption capacity. The sorption capacity of sample ACNa, obtained by fennel seeds activation with sodium carbonate, is almost 6 times lower (77 mg/g) than that of sample ACK. For comparison, the adsorbent obtained from oil palm leaves activated by a 10% solution of Na2CO3 (Cabrita et al. 2010) was able to adsorb 889 mg/g. As shown above, sample ACNa was characterized by the least developed specific surface area, which explains the much poorer sorption capacity of this sample. As follows from our study, 1 g of sample ACPis able to adsorb 122 mg/gof MB. This result can be compared with that of the adsorbent obtained from Agave salmiana leaves (Canales-Flores et al. 2020) by activation with phosphoric(V) acid, whose sorption capacity toward MB was 89 mg/g, which is close to 30% lower than that of sample ACP.

Fig. 5
figure 5

Isotherms of methylene blue adsorption on biocarbons (biocarbon mass: 25 mg, initial dye solution concentration: 5–45 mg/L for ACNa, 20–70 mg/L for ACP and 190–250 mg/L for ACK, volume of methylene blue solution: 50 mL, temperature: 23 ± 1 °C)

Figure 6 presents results of the fit of the experimental data to the Langmuir and Freundlich models, assuming different mechanisms of interaction between the adsorbate and adsorbent. The model best fitting the experimental results provides information on the type of mechanism of interaction between adsorbents and MB. Tables 6 and 7 present the values of characteristic constants obtained from the experimentally determined linear and nonlinear isotherms. Figure 6 shows the linear fit of the Langmuir and Freundlich isotherms for the obtained ACs, while Fig. 7 shows the nonlinear fit. The values of qmax for the nonlinear Langmuir model are by 2–9 mg higher than the experimental qe values. The correlation coefficient R2 determined assuming the linear models is higher than that obtained for nonlinear ones. The character of the nonlinear curves of the Langmuir and Freundlich models does not allow a clear determination according to which model the adsorption process occurs.

Fig. 6
figure 6

Linear fitting of methylene blue adsorption isotherms on biocarbon adsorbents to Langmuir a, Freundlich b models

Table 6 The values of constants determined for the linear Langmuir and Freundlich models used for the fit of experimental data of MB adsorption
Table 7 The values of constants determined for nonlinear Langmuir and Freundlich models used for the fit of experimental data of MB adsorption
Fig. 7
figure 7

Nonlinear fitting of methylene blue adsorption isotherms on biocarbon adsorbents to Langmuir a, Freundlich b models

The character of MB adsorption on the obtained activated carbon samples was best described by the linear versions of the Langmuir and Freundlich models. According to the data presented in Table 6, for all activated carbon samples the correlation coefficient was higher for the fit with the Langmuir model. The highest correlation was obtained for sample ACK (0.999), while the lowest for sample ACP (0.973).

To sum up, it is reasonable to assume that the MB adsorption on activated carbons studied is described by the Langmuir model, which implies the formation of an adsorption monolayer on the adsorbent surface (Medhat et al. 2021; Ishak et al. 2022; Gupta et al. 2022).

In the Langmuir isotherm equation, the constant KL defines the maximum amount of a substance that can be bonded to the adsorbent unit area at equilibrium, which is a measure of adsorption strength; the higher the KL constant, the stronger the adsorption (Khan et al. 2022a, b). Thus, the sample ACK shows the greatest affinity to the adsorbate (MB), while sample ACNa—the lowest.

The constant 1/n in the Freundlich model informs about the system’s inhomogeneity; the higher the constant, the greater the inhomogeneity (Al-Ghouti et al. 2020). The least heterogeneous is sample ACNa, while the most heterogeneous is sample ACK. The constant KF obtained for Freundlich isotherms, is a measure of selectivity (Villabona-Ortíz et al. 2022) and it is the lowest for the sample of the poorest sorption capacity, ACNa, while the highest for the sample of the greatest sorption capacity, ACK.

pH effect

To maximize the yield of adsorption, the pH of the MB aqueous solution should be optimized. The value of pH has a significant impact on the acidic and basic properties of activated carbon surface, so also on its ability to adsorb anionic and cationic dyes (Ishak et al. 2022). Figure 8 presents the effect of pH of the aqueous solution of MB on its adsorption on the activated carbons obtained.

Fig. 8
figure 8

The effect of pH on the adsorption of methylene blue (biocarbon mass: 25 mg, initial dye solution concentration: 40 mg/L for ACNa and ACP, 200 mg/L for ACK, methylene blue solution volume: 50 mL, temperature: 23 ± 1 °C)

As presented in Fig. 8, the sorption capacities of the activated carbon samples studied slightly increase with increasing pH of the MB aqueous solution. Therefore, it may be concluded that the value of pH of the MB aqueous solution has minor effect on the sorption capacities of the activated carbon samples studied. It is economically beneficial as these samples are effective MB adsorbents in the whole range of pH studied. In other words, no optimization of pH of the MB solution is needed to get effective MB adsorption by the samples studied. A significant increase in the sorption capacity of activated carbons toward MB with increasing pH has been observed by Gupta et al. (2022) and Shiet al. (2022).This dependence is related to the fact that the pH of MB solution affects the charge on the adsorbate molecule and that on the adsorbent surface, which induces electrostatic interactions. The functional groups on the adsorbent surface may be protonated or deprotonated. The positive effect of increasing pH of MB solution on the activated carbons’ sorption capacity is determined by the MB molecule properties. MB is a cationic dye and in aqueous solution its molecules have a positive charge. In the solution of basicpH, the hydroxyl ions tear away the protons of the oxygen functional groups on the activated carbon surface, leading to generation of negative charge on the adsorbent surface. It increases the affinity of MB molecules to the adsorbent surface and thus, its sorption capacity (Pathania et al. 2017).

Adsorption kinetics

The dependence of the amount of adsorbed dye on the time of contact of MB solution with the adsorbent is presented in Fig. 9. The experimental data were fitted with the pseudo-first order and pseudo-second order kinetic models, (Table 8). Adsorption of MB was very fast at the beginning of the process, then it gradually slowed down until reaching the state of equilibrium.

Fig. 9
figure 9

The effect of contact time of biocarbon with methylene blue (biocarbon mass: 25 mg, initial dye solution concentration: 40 mg/L for ACNa, 40 for ACP and 200 for ACK volume of methylene blue solution: 50 mL, temperature: 23 ± 1 °C)

Table 8 Kinetic models parameters

With increasing time of contact between the activated carbon samples and MB solution, no significant changes were noted in the samples sorption capacities. For the samples obtained by chemical activation of fennel seeds with potassium carbonate and those activated with a 50% solution of H3PO4, the state of equilibrium was reached in 10 to 20 s, for sample ACNa it took about 180 min. It should be emphasized that for sample ACK the maximum sorption capacity was experimentally determined in a very short time, which is economically beneficial. Peruse of literature reveals that in many adsorption processes it was necessary to run the process for a few h to reach the state of adsorption equilibrium (Pathania et al. 2017). A rapid increase in the MB adsorption at the beginning of the process is most probably a result of availability of many free adsorption sites on the adsorbents’ surface (Misran et al. 2022).

The fit of Table 8 data to the pseudo-first order kinetic model is characterized by the correlation coefficient R2 from the range 0.845–0.981, while the analogous fit to the pseudo-second order kinetic model is characterized by R2 values not lower than 0.997. These values of the correlation coefficient imply that the adsorption of MB on the obtained activated carbon samples is described by the pseudo-second order model. The kinetic constant of the pseudo-second order kinetic model describes the rate of the chemical reaction; the higher the kinetic constant, the faster the reaction (Tien et al. 2017). For samples ACK and ACP the kinetic constant of second order was 6.94 × 10–4[g/mg × min], while for sample ACNa it was 1.81 × 10–3 [g/mg × min], which indicates that the process of MB adsorption on sample ACNa was much slower than on the other two samples.

Thermodynamic study

Figure 10 presents the effect of temperature on the sorption capacities of the studied activated carbon samples. With increasing temperature the effectiveness of MB removal by adsorption on the studied samples increases as well. This relation is particularly well pronounced for sample ACNa. At 60 oC the sorption capacities of samples ACNa and ACP are very similar, of 75 and 78 mg/g, respectively, although their textural parameters are significantly different, (Table 4). The sorption capacity of sample ACNa at 60 °C was by 83% greater than at 45 °C. The effect of increasing temperature on the sorption capacities of samples ACK and ACP was insignificant, which is economically beneficial as it means that the process is effective at room temperature and does not need additional energy expenditure.

Fig. 10
figure 10

Temperature influence on the adsorption of methylene blue (biocarbon mass: 25 mg, initial dye solution concentration: 40 mg/L for ACNa and ACP, 200 mg/L fpr ACK, methylene blue solution volume: 50 mL, temperature: 23 ± 1 °C)

The data presented in Table 9 imply that for all activated carbon samples studied the process of adsorption is spontaneous, which is supported by the negative value of free enthalpy (Go) that decreases with increasing temperature. The effectiveness of capturing of MB molecules from aqueous solution increases with increasing temperature, so the process is endothermic. It is confirmed by the positive values of the adsorption enthalpy (Ho, Table 9). With increasing temperature of the process of adsorption the rate of diffusion of MB molecules increases as does the sorption capacity of the obtained activated carbon samples. Entropy ΔS is a measure of a system disorder and also has an impact on the adsorption process in which MB molecules are attracted to and bonded to the adsorbent surface. The degree of disordering of the activated carbon samples obtained by chemical activation of fennel seeds increases in the order ACP < ACNa < ACK.

Table 9 Thermodynamical parameters of MB adsorption from aqueous solution on the carbon adsorbents studied

Mechanisms of adsorption

This section provides an explanation of the adsorption mechanism of MB. The pH of the solution plays a crucial role in the electrostatic interaction between the adsorbent and MB. The acidity dissociation constant (pKa) of MB is 3.14 (PubChem). The net charge on the adsorbent surface, determined by the isoelectric point, influences the nature of the interaction. At pH values higher than the isoelectric point, the adsorbent surface carries a net negative charge, facilitating electrostatic attraction and absorption of MB. Consequently, the optimal pH for MB absorption can sometimes be as low as 10–11 (Iwuozor et al. 2021). π–π interactions occur between the adsorbent's benzene ring and MB (Fig. 11), facilitated by MB's three benzene rings (with substituted carbons) (Jawad et al. 2021). Electronegative heteroatoms in MB, such as nitrogen and sulfur, can form hydrogen bonds with functional groups on the adsorbent surface. π-π interactions between the benzene rings of the adsorbent and methylene blue, as well as hydrogen bonding with electronegative heteroatoms in MB, are important for adsorption. The hydrophobic effect is less significant due to MB's high solubility (Iwuozor et al. 2021).

Fig. 11
figure 11

The adsorption mechanisms of methylene blue by adsorbents

Conclusions

Characterization of the carbon adsorbents obtained from fennel seeds by chemical activation with potassium carbonate, sodium carbonate or a 50% solution of phosphoric(V) acid was performed. The choice of activating reagent influenced the textural parameters of the activated carbon samples. Samples ACP and ACK exhibited higher sorption capacities for iodine (1196 mg/g and 1215 mg/g, respectively) compared to ACNa (317 mg/g). The adsorption of MB from water followed the Langmuir model, forming a monolayer on the adsorbent surface. The sorption capacities for MB were 474 mg/g (ACK), 122 mg/g (ACP), and 77 mg/g (ACNa). The adsorbent-adsorbate interactions followed the pseudo-second order model, irrespective of the pH of the MB solution, while increasing temperatures enhanced sorption capacities and indicated an endothermic and spontaneous adsorption process. Analysis of the data characterizing the obtained activated carbon adsorbents shows that the sample obtained by the precursor activation with potassium carbonate can be particularly effective and economic adsorbent of toxic organic dyes from aqueous solutions.