Introduction

Water is a critical resource essential for human survival and various industrial operations, often found in conjunction with oil. With the continuous expansion of oil exploration and production, the volume of oilfield wastewater has dramatically increased. This wastewater is notably complex, characterized by elevated concentrations of organic compounds and contaminants associated with petroleum (Liu et al. 2013). The consequences of neglecting proper treatment or directly releasing these effluents into the environment are severe, resulting in irreversible ecological damage and posing substantial health hazards. Therefore, the efficient treatment of oilfield wastewater is paramount. It serves the dual purpose of meeting the criteria for secondary oil recovery water and aligning with national discharge standards (Li et al. 2015).

Magnetic flocculation technology has emerged as a progressive water treatment method, complementing traditional flocculation processes by employing magnetic seeds as carriers (Wang et al. 2014). Currently, Fe3O4 is a common magnetic adsorbent with good adsorption properties and is widely used. Surface functionalization of magnetic seeds primarily involves the use of inorganic materials, artificial organic polymers, and natural extracts (Zhao et al. 2018). These modified magnetic seeds play a pivotal role in enhancing flocculation efficiency. They contribute to the formation of more compact and heavier aggregates, thereby improving decontamination capabilities and sedimentation rates (Liu et al. 2018; Pinto et al. 2018).

Numerous studies have delved into the application of magnetic seeds across diverse contexts. Researchers studied the synthesis and structure of ferroferric oxide magnetic nano-particles and their influence on the structure, optical and magnetic properties of new polymethyl methacrylate/polyaniline composite materials for electromagnetic and optical applications. The properties of ferroferric oxide were studied, evaluated, and eventually applied to magnetoelectric devices (Elamin et al. 2022). Many studies have been reported on magnetic Fe3O4 particles coating with organic materials as adsorbent for metal removal, such as chitosan and polyacrylamide (Liu et al. 2009a, b; Hong et al. 2007). Numerous widely modified the surface of Fe3O4 magnetic particles with organic magnetic seeds through ethanol and stearic acid, resulting in a remarkable 96.7% oil removal rate from oil-contaminated deep well groundwater. Someone synthesized nano-Fe3O4 with polymerized aluminum chloride and employed the modified magnetic seeds to treat Microcystis aeruginosa (Jiang et al. 2010). Several researchers harnessed ribose to modify the Fe3O4 surface, thus creating algae with the capability to eliminate algae from water (Liu et al. 2009a, b). Others fabricated a magnetic adsorbent from antigorite, bentonite, and iron oxide (ABI), showing excellent adsorption performance for both positively and negatively charged contaminants (Farahat et al. 2022). In addition, a magnetic COF adsorbent was made with abundant heteroatoms acting as effective adsorption sites. The adsorbent has good adsorption performance for Pb (II), with a removal rate of 95.64% at 10 min and a maximum adsorption capacity of 411.80 mg g−1. According to the Zeta potential and XPS analysis, N and S on the surface of the adsorbent interact with Pb (II) through electrostatic attraction and chelation (Wang et al. 2023). What is more, porous carbon has excellent adsorption capacity and stability among all adsorption materials, so it has been used widely as adsorption materials (Singh et al. 2021; Shen 2022). Magnetic carbonaceous adsorbents were prepared from nano-Fe3O4 ball-milled biochar (BC) and activated carbon (AC), and their ability to adsorb methylene blue (MB) in water was evaluated and compared (Li et al. 2020). Besides, through the preparation of MnFe2O4-supported activated carbon magnetic adsorption materials (MnFe2O4@AC), which was used for the adsorption removal of acetochlor in water medium, the adsorption capacity of 0.2 g L−1 adsorbent at 25 °C was about 226 mg g−1 (Wang et al. 2021).

Coagulants and magnetic materials stand as pivotal elements in the magnetic coagulation process. Over time, coagulants have undergone continuous research and development, resulting in a variety of types available today. A prevailing direction in this realm emphasizes cost-effectiveness, low toxicity, and high efficiency. Inorganic high-molecular-weight coagulants exhibit notable dirt removal capabilities and possess high relative molecular weight, yet their toxic and corrosive nature is a concern. Conversely, synthetic organic high-molecular-weight coagulants offer advantages in coagulation with minimal influence from treatment conditions and reduced sludge production, but their cost tends to be higher. Additionally, residual monomers in high-molecular-weight polymers pose risks, including gene mutation, abnormal growth, and carcinogenic potential. In contrast, non-toxic natural coagulants present an eco-friendly alternative, devoid of secondary pollution risks. However, they often exhibit lower coagulant activity and might not yield optimal results when used independently. Thus, a strategic combination of these two coagulant types can significantly enhance treatment efficacy.

Unmodified magnetic iron oxide faces challenges in air due to its susceptibility to oxidation and agglomeration, diminishing the stability and dispersibility of the magnetic phase. Additionally, its limited specific surface area restricts its efficacy in purifying contaminated wastewater. However, through modification or surface treatment, the stability and specific surface area of Fe3O4 can be substantially enhanced. Material modification involves altering a material’s surface morphology and structural composition through specific physical or chemical reactions to achieve desired modifications. This alteration significantly enhances the properties of modified magnetic materials in several aspects, including improved dispersibility, chemical stability, surface hydrophobicity/hydrophilicity, and biocompatibility.

In this experiment, our objective is to augment the removal efficiency of organic pollutants. We aim to achieve this by surface-modifying commonly used magnetic seeds. The assessment includes scanning electron microscopy (SEM), specific surface area pore analysis for comparing morphological and pore structural properties (Ma et al. 2003), X-ray diffraction (XRD), and vibrating-sample magnetometry (VSM). The study meticulously examines surface morphology, adsorption kinetics, and adsorption isotherms (Sharma and Lee 2017). It juxtaposes the performance and mechanisms of modified magnetic seeds against conventional ones in treating oily wastewater. Specifically, we focus on reducing chemical oxygen demand (COD) and oil concentration in raw water samples. Additionally, we explore the effects of various combinations of magnetic seed dosages, flocculant polymerized aluminum chloride (PAC), and coagulant aid polyacrylamide (PAM) on oily wastewater treatment efficacy. Through determining the optimal treatment combination and employing the single-factor method to control magnetic seed dosage, flocculant PAC concentration, and coagulant PAM concentration for both ordinary and modified magnetic seeds, we analyze the impact of individual factors on oily wastewater treatment. This comprehensive investigation aims to compare the treatment efficiency of two magnetic seeds, establish optimal conditions for the magnetic flocculation stage, and provide significant research insights. It furnishes a robust theoretical framework and experimental data crucial for oilfield-produced water treatment, advancing high-efficiency pollutant removal practices.

The research was conducted at the Liaohe River Basin Water pollution Prevention and Control Research Institute from February 2023 to September 2023, Liaoning Province, China.

Materials and methods

Test equipment

The experimental materials encompassed raw water samples with a pH of 7, containing 1527 mg/L COD and 63 mg/L oil. The experimental apparatus and instruments utilized encompassed a UV–Vis spectrophotometer (SHANGHAI METASH INSTRUMENTS CO., LTD., China), an electronic balance (Fuzhou Huazhi Scientific Instrument Co., Ltd., USA), a precision acidity meter (Shanghai Leici Precision Instrument Co., Ltd., China), a specific surface area pore analyzer (Micromeritics Instruments Corporation., China), a blast drying oven (Shanghai Kuntian Laboratory Instrument Co., Ltd., China), a magnetic stirrer (Shanghai Meiyingpu Instrument and Meter Manufacturing Co., Ltd., China), a scanning electron microscope (Beijing Yi Cheng Heng Da Technology Ltd., China), as well as various testing materials and chemicals including potassium dichromate (K2Cr2O7), potassium aluminum sulfate (Kal(SO4)2), ammonium molybdate((NH4)2MoO4), sodium hydroxide (NaOH), nitric acid (HNO3), hydrochloric acid (HCl), sodium chloride (NaCl), acetic acid, absolute alcohol purchased from Sinopharm Chemical Reagent Co., Ltd. (China). Ferroferric oxide was purchased from Jinan Zhiding Welding Material Co., Ltd. (China). The primary objective of this experiment was to perform surface modification on conventional magnetic seeds with the aim of treating petroleum and organic pollutants present in oily wastewater through the application of magnetic flocculation.

Magnetic seed preparation method

Fifty grams of Fe3O4 was weighed and immersed in 500 mL of 2% hydrochloric acid for a period of 2.5 h. Subsequently, 100 g of FeCl3–6H2O was introduced to 1 L of water and thoroughly stirred to ensure complete dissolution of the iron salt. The Fe3O4 was separated from the hydrochloric acid solution and added to the iron salt solution. The pH was adjusted to 8–9 using a 1 mol/L NaOH solution with vigorous stirring, followed by slow-speed stirring for 1.5 h. The mixture was then subjected to a water bath at 100 °C for 40 min. The resulting mixture was filtered to obtain a solid phase, which underwent repeated washing with deionized water. The washed solid phase was subsequently dried in a blast oven at 110 °C for 5 h, resulting in the modified magnetic seed. The final weight of the modified seed was recorded as 74.8 g and was stored in a hermetically sealed container.

Characterization of magnetic seeds

The morphology of both plain and modified magnetic seeds was observed through scanning electron microscopy (SEM). Furthermore, the pore size distribution of both types of seeds was analyzed using the density functional theory (DFT) method to ascertain any alterations in pore dimensions.

Adsorption mechanism experiment

Adsorption kinetics

Two 500-mL conical flasks were prepared, each containing 200 mL of extracted oil at the same concentration and water. In each flask, 1 g of ordinary or modified magnetic seeds was introduced. The water samples were subjected to agitation at room temperature with a stirring speed of 200 r/min. Samples were extracted at intervals of 0, 1, 2, 3, 5, 10, 15, 20, 30, 40, and 50 min to assess the COD and oil content. The quasi-primary adsorption kinetic model, quasi-secondary adsorption kinetic model, and internal diffusion model fitting experiments were conducted successively (Njoku et al. 2014; Shin et al. 2011, Zhang et al. 2019).

Adsorption isotherms

Different containers were prepared, each containing 200 mL of oily solution with varying oil concentrations (5 mg/L, 10 mg/L, 15 mg/L, 20 mg/L, 25 mg/L, and 30 mg/L). A gram of ordinary or modified magnetic seed was added to each container. The solutions were stirred at 200 r/min for 60 min at room temperature using a thermostatic shaker. The resulting adsorption isotherms were generated by fitting data to two adsorption isotherm models (Langmuir 1918).

Experimental design

In this experiment, the flocculant polymerized aluminum chloride (PAC) was added and stirred at 200 r/min for 1 min. Subsequently, surface-modified magnetic powder was introduced, and stirring was maintained for an additional 1 min. The coagulant aid PAM was then added and stirred at 100 r/min for 2 min, followed by a 7-min settling period. The supernatant was extracted to determine the concentrations of COD and oil in the water samples. Under consistent conditions, the effects of various combinations of flocculant PAC, modified magnetic seeds Fe3O4, and coagulant aid PAM on the removal efficacy of COD and oil in the oily wastewater were assessed to establish the optimal treatment combination. In the single-factor test, conditions such as magnetic seed dosage, flocculant concentration, coagulant aid concentration, and initial pH were varied, ultimately culminating in the determination of oil content rate and COD.

Results and discussion

Characterization

SEM analysis

Scanning electron microscope (SEM) images of both conventional and modified magnetic seeds were captured at a magnification of 2 microns. The ordinary magnetic seeds showcased a primarily spherical shape, boasting small particle size and excellent dispersion. Conversely, the modified magnetic seeds exhibited an irregular, granulated morphology, characterized by varied particle sizes, notably larger particles, and rugged surfaces marked by numerous tiny pores. This distinct contrast in morphology arises from the iron oxide layer present on the surface of the modified seeds, causing a significant transformation in their surface topography. The porous, rough, and heterogeneous nature of the modified magnetic seeds established the groundwork for the subsequent experiments (Fig. 1a, b).

Fig. 1
figure 1

Magnetic seeds (a) and modified magnetic seeds (b)

Specific surface area and pore size distribution analysis

The analysis indicated that the pore sizes of the modified magnetic seeds predominantly fell within the range of 2–5 nm, signifying a substantial decrease in pore size compared to the conventional magnetic seeds (Fig. 2a, b).

Fig. 2
figure 2

Pore size distribution of ordinary magnetic seeds (a) and pore size distribution of modified magnetic seeds (b)

Furthermore, the average pore volume of ordinary magnetic seeds measured 0.00169 cm3/g, while that of the modified magnetic seeds was calculated at 0.04792 cm3/g. The augmented pore volume in the modified magnetic seeds renders them highly effective for the adsorption of pollutants from water (Table 1).

Table 1 Comparison of pore capacity before and after modification of Fe3O4

XRD analysis

The characteristic peaks of the modified magnetic seeds are observed at 2θ = 30.51°, 35.48°, 43.29°, 57.09°, and 62.56°, well indexed to (220), (311), (400), (511), and (440) reflections of Fe3O4, respectively. XRD pattern confirms the pure formation of Fe3O4 without any presence of other Fe species like Fe2O3 and FeO. Comparatively, the diffraction spectrum of Fe3O4 in ordinary magnetic seeds displays weak peak intensity due to the crystal plane decrease attributed to smaller particle size and smoother surface, resulting in weaker or even absent trace diffraction peaks. Upon modification of the ordinary magnetic seeds, there is a noticeable increase in peak height, sharpening of peak shapes, enhanced resolution, and the emergence of clearer trace diffraction peaks. Analysis of these strong Fe3O4 peaks indicates that the modification primarily results in increased specific surface area and pore structure. This augmentation contributes to superior adsorption performance when pollutants interact with the Fe3O4 crystal planes. The enhanced crystallinity of the modified magnetic seeds demonstrates its improved effectiveness. Comparison of the characteristic diffraction peak intensities between the modified and ordinary magnetic seeds indicates the effective combination of modified magnetic seeds with the flocculant, forming modified magnetic flocs. Consequently, this leads to a reduction in the content of individual components (Fig. 3).

Fig. 3
figure 3

Characterization results of XRD spectrum of magnetic seeds

VSM analysis

The hysteresis lines of the magnetic flocculants were measured, respectively, which showed a typical "S" curve, indicating that the coercivity values were low and the flocculants had good superparamagnetism. The saturation magnetization strength (M) was 58.91 emu-g and 11.43 emu-g, respectively, which obviously showed that the modified magnetic seeds were better than the common magnetic seeds. During the flocculation process, the modified magnetic seeds were wrapped by a large number of flocs to form stable magnetic flocs, which could accelerate the settling speed and reduce the settling time under the action of the applied magnetic field (Fig. 4).

Fig. 4
figure 4

Magnetic hysteresis curve of magnetic seeds

COD adsorption experiment

Both conventional and modified magnetic seeds displayed a swift increase in COD adsorption within the initial 5 min, followed by a gradual decrease in the rate of increase. Adsorption ultimately stabilized after 15 min. At the 15-min mark, the equilibrium adsorption amount for conventional magnetic seeds plateaued at 36.15 mg. Conversely, the modified magnetic seeds reached equilibrium after 12 min, showcasing an adsorption capacity of 48.37 mg. Evidently, adsorption increased progressively over time. This outcome underscores the enhanced COD adsorption capability of the modified magnetic seeds after complete exposure to organic pollutants. This improvement is attributed to their amplified specific surface area and finer pore structure, providing superior performance compared to their conventional counterparts (Fig. 5a–c).

Fig. 5
figure 5

Quasi-first-order adsorption kinetic model (a), quasi-second-order adsorption kinetic model (b), and internal diffusion adsorption kinetic model (c) (COD)

The experimental data concerning COD adsorption by both conventional and modified magnetic seeds did not conform to the trend predicted by the internal diffusion model, indicating its inadequacy in describing the COD adsorption process accurately. However, the quasi-first-order and quasi-second-order adsorption kinetic models showed excellent fits for the adsorption behavior of COD by both types of magnetic seeds. For conventional magnetic seeds, the quasi-first-order and quasi-second-order models exhibited correlation coefficients (R2) of 0.93 and 0.97, respectively. Similarly, for modified magnetic seeds, the correlation coefficients (R2) were measured at 0.95 and 0.99. Particularly noteworthy was the quasi-second-order model’s higher R2 value, suggesting an enhanced fitting effect. The determination of equilibrium concentration (Qe) via UV–visible spectrophotometry corroborated this finding. Ultimately, the equilibrium concentration (Qe) derived from the quasi-second-order adsorption kinetic model closely matched the experimental adsorption data. This alignment affirms the model’s precision in accurately depicting the adsorption process (Table 2).

Table 2 Parameters related to quasi-first-order adsorption kinetic model, quasi-second-order adsorption kinetic model, and internal diffusion model (COD)

COD adsorption by both conventional and modified magnetic seeds displayed an ascending trajectory as the COD concentration increased. However, at a certain COD concentration threshold, the equilibrium adsorption amount attained a steady state. Furthermore, for equivalent COD concentrations, the adsorption efficiency of the modified magnetic seeds significantly outperformed that of the conventional magnetic seeds, showcasing a superior adsorption capacity (Fig. 6a, b).

Fig. 6
figure 6

Langmuir isotherm model (a) and Freundlich isotherm model (b) (COD)

The Langmuir adsorption isotherm model and the Freundlich adsorption isotherm model effectively captured the adsorption behaviors of both conventional and modified magnetic seeds across varying COD concentrations. For the common magnetic seeds, the R2 values for the Langmuir and Freundlich models were 0.96 and 0.89, respectively. Correspondingly, the modified magnetic seeds displayed R2 values of 0.97 and 0.91. Notably, the saturation capacity of the modified magnetic seeds, as determined by the Langmuir adsorption isotherm model, measured 47.6 mg/g. This capacity surpassed that of the conventional magnetic seeds, which registered 34.3 mg/g, by an impressive 38.78% (Table 3).

Table 3 Parameters related to Langmuir isotherm model and Freundlich isotherm model (COD)

Oil adsorption experiments

In the oil adsorption process by the magnetic seeds, there was a rapid initial increase in adsorption within the first 5 min, followed by a gradual decrease in adsorption rates from 5 to 15 min. Beyond the 15-min mark, adsorption continued, ultimately reaching saturation as the magnetic seeds became saturated with oil contaminants. In contrast, the modified magnetic seeds exhibited a faster adsorption rate, continuously accumulating oil contaminants from 5 to 12 min until saturation was achieved. By the 12-min mark, the surface of the modified magnetic seeds was nearly entirely coated by oil contaminants, marking the conclusion of the adsorption process within this timeframe. Comparison of adsorption levels within the same time frame showcased a higher adsorption capacity of the modified magnetic seeds for petroleum, consistent with the earlier findings on COD adsorption. This emphasizes the conspicuous enhancement in petroleum adsorption capabilities demonstrated by the modified magnetic seeds (Fig. 7a–c).

Fig. 7
figure 7

Quasi-first-order adsorption kinetic model (a), quasi-second-order adsorption kinetic model (b), and kinetic model of internal diffusion adsorption (c) (oil)

The internal diffusion adsorption kinetic model yielded R2 values of 0.85 for conventional magnetic seeds and 0.77 for modified magnetic seeds in the oil adsorption process. This discrepancy between observed behavior and the model’s trend line suggests its inadequate representation of the intricate oil adsorption process. Conversely, the quasi-first-order adsorption kinetic model displayed higher R2 values of 0.91 and 0.94 for the oil adsorption process by magnetic seeds. Upon employing the quasi-second-order adsorption kinetic model, the R2 values escalated to 0.96 and 0.98 for conventional and modified magnetic seeds, respectively. Moreover, the equilibrium adsorption capacities predicted by these models (2.45 mg and 3.33 mg) closely approximated the experimental equilibrium adsorption quantities. This alignment further validates the quasi-second-order adsorption kinetic model’s accuracy in characterizing the oil adsorption process for both conventional and modified magnetic seeds (Table 4).

Table 4 Parameters related to quasi-first-order, quasi-second-order, and internal diffusion adsorption kinetic models (oil)

The adsorption of oil by both conventional and modified magnetic seeds exhibited an augmentation with increasing oil concentration. However, an equilibrium adsorption capacity plateau was observed as the oil concentration reached a certain threshold. Notably, the modified magnetic seeds consistently outperformed the ordinary magnetic seeds in terms of adsorption capacity and effectiveness (Fig. 8a, b).

Fig. 8
figure 8

Langmuir isotherm model (a) and Friedrich isotherm model (b) (oil)

The Langmuir adsorption isotherm model was utilized to model fats and oils adsorption by magnetic seeds at various concentrations, resulting in R2 values of 0.95 and 0.96, respectively. Similarly, the Freundlich adsorption isotherm model demonstrated R2 values of 0.98 and 0.99, respectively. The n value in the Freundlich adsorption isotherm model signifies the adsorbent’s binding capacity, with higher n values indicating enhanced adsorption potential. In this study, the n values obtained from the Freundlich model were 1.312 for conventional magnetic seeds and 1.661 for modified magnetic seeds. These values denote favorable oil adsorption tendencies for both ordinary and modified magnetic seeds. However, the higher n value for modified magnetic seeds signifies a more robust adsorption capacity compared to the conventional seeds (Table 5).

Table 5 Langmuir isotherm model- and Freundlich isotherm model-related parameters (oil)

Impact of various dosing combinations

When relying solely on flocculant PAC to treat oilfield-produced water, the removal efficiency for both oil and COD is least effective during a 5-min settling period. This inefficiency can be attributed to the limited flocculation effect within this short timeframe, as it falls short of achieving optimal settling conditions. However, a significant enhancement in both oil and COD removal rates is observed upon the introduction of PAM and magnetic seeds. The introduction of PAM notably improves the removal rates by optimizing flocculation conditions. Acting as a coagulation aid, PAM enhances the effectiveness of flocculation and improves the structure of pollutant flocs. This leads to larger and denser pollutant flocs, thereby improving removal efficiency. Simultaneously, the magnetic seeds, with their ionic polarity, metallic properties, and strong adsorption capacity, act as effective carriers for pollutants. This strengthens the binding of pollutants, leading to the formation of denser and heavier flocs, consequently enhancing flocculation and sedimentation efficiency. To further optimize the treatment efficacy of oilfield-produced water, a dosing combination of PAC + modified magnetic seeds + PAM was adopted, aiming to maximize the synergistic effects of these components (Fig. 9).

Fig. 9
figure 9

Effect of dosing regimen on oil and COD removal

Dosage influence

The removal efficiency of both COD and petroleum increases proportionally with higher magnetic seed dosing. Upon reaching a peak removal efficiency, continued dosing of magnetic seeds results in an equilibrium removal rate. Optimal results are achieved with a dosage of 4g of ordinary magnetic seeds, leading to a reduction in COD concentration from 1527 to 632.6 mg/L (a removal rate of 58.6%) and a decline in oil concentration from 63 to 18.54 mg/L (a removal rate of 71%). Similarly, the best performance for modified magnetic seeds is observed at a dosage of 3 g, resulting in a COD concentration of 394.3 mg/L (a removal rate of 58.6%) and an oil concentration of 4.1 mg/L (a removal rate of 71%). The reason for this phenomenon is that the increase in magnetic seed dosage provides more carriers for pollutant flocs, allowing these flocs to adhere to the magnetic seed surfaces and aiding swift removal through sedimentation. This mechanism significantly enhances the treatment efficiency for COD and petroleum. The existing literature suggests that as magnetic seed concentration increases, Zeta potential rises, impacting the compression of the double electric layer in flocculation. This emphasizes the complex interplay of factors affecting flocculation efficacy. Moreover, the superior performance of surface-modified magnetic seeds in treating oily wastewater compared to their ordinary counterparts can be attributed to the irregular surface and finer pores of the former. These features result in a larger specific surface area, enhancing pollutant adsorption and consequently elevating COD and oil removal rates (Su et al. 2016; Liu et al. 2016; Sun at al. 2016) (Fig. 10a, b).

Fig. 10
figure 10

Effect of magnetic seed dosing on COD removal (a) and effect of magnetic seed dosing on oil removal (b)

PAC influence

As the dosing concentration of flocculant PAC increased, both the removal rates of COD and petroleum showed a corresponding increase. The most effective removal rates for COD by both magnetic seeds and modified magnetic seeds were achieved at a flocculant concentration of 250 mg/L. This resulted in a reduction of COD concentration from 1527 to 621.7 mg/L and 391.6 mg/L, corresponding to removal rates of 59.3% and 74.4%, respectively. Similarly, the optimal petroleum removal was achieved at a flocculant concentration of 200 mg/L. Under this condition, petroleum concentration was reduced from 63 to 17.3 mg/L and 3.1 mg/L, yielding removal rates of 72.5% and 95.1%, respectively. This result directly stems from the mechanism of flocculation. The introduction of the flocculant initiates the adsorption of hydroxyl groups onto colloidal particles in water, facilitating complementary coordination, bridging, and anisotropic charge neutralization. Consequently, this process leads to the formation of Al (OH)3 colloidal precipitates, fostering collisional bonding among colloidal particles (Ganjidoust et al. 1996). At lower PAC concentrations, the flocculant’s positive ions neutralize the negative charges on pollutants. However, this might not yield flocs of sufficient size and gravity to overcome buoyancy, hampering effective sedimentation (Zheng et al. 2011). Therefore, it is suspended on the surface of the solution; at the same time, the low concentration of flocculant cannot fully net and sweep the pollutants in the water, and the adsorption and bridging effect between flocculant and colloidal particles is also inhibited. Higher concentrations of the flocculant are essential to ensure adequate netting and sweeping of pollutants, enabling effective adsorption bridging between the flocculant and colloidal particles (Jia et al. 2017). Nevertheless, excessive concentrations of the flocculant result in an abundance of positively charged particles, intensifying repulsion and destabilizing the system (Jia et al. 2018; Chen et al. 2016; Zagklis et al. 2012). Optimal treatment efficacy for both COD and petroleum pollutants is achieved with a flocculant concentration of 250 mg/L in magnetic flocculation (Fig. 11a, b).

Fig. 11
figure 11

Effect of PAC on COD removal (a) and effect of PAC on oil removal (b)

PAM influence

Increasing the dosing concentration of coagulant PAM resulted in higher removal rates of both COD and petroleum. Optimal treatment efficacy was observed for both ordinary and modified magnetic seeds at a coagulant concentration of 2 mg/L. In this scenario, COD concentration decreased from 1621 to 647.4 mg/L and 377.1 mg/L, corresponding to removal rates of 57.6% and 75.3%, respectively. Petroleum concentration decreased from 63 to 19.6 mg/L and 4.9 mg/L, with removal rates of 68.8% and 92.3%, respectively. The introduction of PAM as a polymer coagulant aid rapidly forms large-sized pollutant flocs with multiple branches, enhancing adsorption and bridging capabilities. This augmentation strengthens flocculation, reducing COD and oil concentrations. Experiments indicate that coagulant aids accelerate flocculation speed by increasing the rotation radius of high-molecular-weight PAM in water. This larger radius facilitates faster collision and adsorption of impurity particles with PAM, expediting flocculation. However, excessive PAM dosage stabilizes unstable impurity particles in water, undermining treatment effectiveness. Moreover, PAM, being a macromolecule organic matter, has inherent toxicity and potential for pollution. While it enhances treatment effectiveness, it may lead to secondary pollution. Residual monomer content in oily and municipal sewage treatments typically remains below 1%, limiting PAM use in water treatment. Consequently, researchers are exploring new, pollution-free flocculants for enhanced water treatment (Raj et al. 2016; Chao aet al. 2015) (Fig. 12a, b).

Fig. 12
figure 12

Effect of PAM on COD removal (a) and effect of PAM on oil removal (b)

pH influence

Both COD and petroleum removal rates increased with rising pH levels. The optimal removal rates for petroleum and COD using common magnetic seeds were achieved within a pH range of 7–8. Specifically, COD concentration decreased from 1527 to 621.4 mg/L and 386.4 mg/L, with corresponding removal rates of 59.3% and 74.7%. Similarly, petroleum concentration decreased from 63 to 17.7 mg/L and 4.2 mg/L, yielding removal rates of 71.9% and 93.3%. This phenomenon can be attributed to the strong electroneutralization-coagulation mechanism of the hydrolysis product-polynuclear hydroxyl polymer, existing in a high-valence form (Yang and Ni 2012; Guerin et al. 2017). The range of pH 7 to 8 results in optimal flocculation efficacy due to two key factors:

Influence of pH on aluminum ion hydrolysis and polymerization

PAC ionizes in water to generate Al3+ ions, but the basic Al3+ ions do not exist in the solution, but often exist in the form of hydrated ions of Al (H2O)63+. As the pH continues to increase, OH- ligands will continue to replace hydrated aluminum ions-coordinated water molecules, and the hydrolysis process and polymerization process occur almost simultaneously. As shown in the following equation, the final product is a precipitate of [{Al(OH)2}nAl]n+3+. As pH increases, hydroxyl ions (OH) replace coordinated water molecules of hydrated aluminum ions (Al(H2O)63+), promoting hydrolysis and polymerization reactions. It is confirmed that pH value is one of the important factors in the removal of organic pollutants (Olukowi et al. 2022).

$$ {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)_{6}^{3 + } + {\text{H}}_{2} {\text{O}} \leftrightarrow {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)_{5} {\text{OH}}^{2 + } + {\text{H}}_{3} {\text{O}}^{ + } $$
$$ {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)_{5} {\text{OH}}^{2 + } \to {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)_{4} \left( {{\text{OH}}} \right)_{2}^{ + } \to {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)_{3} \left( {{\text{OH}}} \right)_{3} \to {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)_{2} \left( {{\text{OH}}} \right)_{4}^{ - } \to $$
$$ {\text{Al}}\left( {{\text{H}}_{2} {\text{O}}} \right)\left( {{\text{OH}}} \right)_{5}^{2 - } \to {\text{Al}}\left( {{\text{OH}}} \right)_{6}^{3 - } $$
$$ 2{\text{AlOH}}^{2 + } \to \left[ {{\text{Al}}\left( {{\text{OH}}} \right)_{2} {\text{Al}}} \right]^{4 + } \to \left[ {{\text{Al}}\left( {{\text{OH}}} \right)_{2} {\text{Al}}\left( {{\text{OH}}} \right)_{2} {\text{Al}}} \right]^{5 + } \to \cdots \cdots \to \left[ {\left\{ {Al\left( {{\text{OH}}} \right)_{2} } \right\}_{n} {\text{Al}}} \right]^{n + 3 + } $$

Effect of pH on solubility of Al(OH)3, a hydrolysis product of Al3+

The hydrolysis product of Al3+, Al(OH)3, exhibits different forms at varying pH levels. Previous studies by Matijevic, Brosset, and others confirm that Al(OH)3 primarily precipitates within the pH range of 6–8. As pH increases beyond 8, part of Al(OH)3 dissolves into Al(OH)4. The content of Al(OH)3 significantly influences flocculation efficacy. Thus, the optimal treatment effect occurs at a pH range of 6 to 8, as corroborated by experimental results (Fig. 13 a, b). In addition, the pH will also have a corresponding impact on the coagulant PAM. The polymer chain of PAM is the key to adsorption and bridging. When the pH is too small or too high, the polymer bonds will break and curl, thus affecting the bridging. The effect and distance reduce the flocculation effect.

Fig. 13
figure 13

Effect of pH on COD removal (a) and effect of pH on oil removal (b)

Results under optimal conditions

The optimal conditions for the magnetic flocculation treatment stage were established through one-factor experiments: a magnetic flocculation flocculant PAC concentration of 250 mg/L, a magnetic seed dosage of 4 g, a coagulant PAM concentration of 2 mg/L, a water temperature of 20–25 ℃, pH ranging from 7 to 8, and a settling time of 7 min for magnetic flocculation using ordinary magnetic seeds. For magnetic flocculation treatment with modified magnetic seeds, the optimal conditions included a magnetic flocculation flocculant PAC concentration of 250 mg/L, a magnetic seed dosage of 3 g, a coagulant PAM concentration of 2 mg/L, a water temperature of 20–25 °C, a pH range of 7–8, and a settling time of 6 min (Fig. 14).

Fig. 14
figure 14

Water sample after magnetic flocculation treatment

Through magnetic flocculation, the treatment of oily wastewater resulted in a reduction of the average COD concentration from 1527 to 614.8 mg/L and 374.3 mg/L, leading to removal rates of 59.7% and 75.5%, respectively. Furthermore, the average oil concentration decreased from 63 to 18.3 mg/L and 4.3 mg/L, corresponding to removal rates of 71% and 93.2%, respectively. These results highlight the notable advantages of modified magnetic seeds over ordinary magnetic seeds in the treatment of oily wastewater (Table 6). It is important to note that, as shown in (Table 7), the maximum adsorption capacity is much higher than previously reported values for adsorbents.

Table 6 Experimental results under optimal conditions
Table 7 Adsorption capacities of various adsorbents for the adsorption of oily sewage

Conclusion

In conclusion, this study investigated the treatment of oily wastewater through magnetic flocculation utilizing modified magnetic seeds. The key findings are as follows:

Surface morphology analysis Ordinary magnetic seeds exhibited a predominantly spherical shape with small particle size and a smooth surface. In contrast, modified magnetic seeds displayed irregular lumps with non-uniform particle sizes and a rough surface.

Adsorption mechanism The study revealed that modified magnetic seeds possessed superior adsorption capacity and faster equilibrium rates for both COD and petroleum compared to ordinary magnetic seeds. The Langmuir and Freundlich adsorption isotherm models accurately characterized the adsorption behaviors of both magnetic seed types on COD. The Langmuir model demonstrated a 38.78% higher saturated adsorption capacity for modified magnetic seeds (47.6 mg/g) compared to ordinary magnetic seeds (34.3 mg/g). The oil adsorption analysis revealed that modified magnetic seeds exhibited larger adsorption capacity and quicker equilibrium compared to ordinary magnetic seeds, with the Freundlich adsorption isotherm model favorably describing the adsorption behaviors. The n values of 1.312 and 1.661 supported the enhanced adsorption capacity of modified magnetic seeds.

Optimal treatment program The combination of flocculant (PAC) + magnetic seeds + coagulant aid (PAM) proved significantly superior to other combinations. The optimal conditions for magnetic flocculation with modified magnetic seeds included a magnetic flocculation flocculant PAC concentration of 250 mg/L, a magnetic seed dosage of 3 g, a coagulant aid PAM concentration of 2 mg/L, a water temperature of 20–25 °C, pH ranging from 7 to 8, and a settling time of 6 min.

Enhanced effectiveness Under the established optimal conditions, magnetic flocculation utilizing modified magnetic seeds achieved remarkable results. It led to a COD removal rate of 75.5%, reducing the concentration from 1527 to 374.3 mg/L, and a remarkable 93.2% removal of oil pollutants, lowering the concentration from 63 to 4.3 mg/L. By contrast, magnetic flocculation with ordinary magnetic seeds achieved a 59.7% COD removal (from 1527 to 614.8 mg/L) and a 71% oil removal (from 63 to 18.3 mg/L). These outcomes underscore the efficacy of magnetic flocculation in treating oily sewage.