1 Introduction

Mg and its alloys are becoming increasingly popular owing to their outstanding biological compatibility, suitable mechanical properties, and special biodegradable properties (Ref 1,2,3,4). However, the low corrosive resistance of Mg alloys leads to degradation while H2 gas is produced during this process, which can cause severe problems in the surrounding tissues (Ref 5, 6).

The use of calcium phosphorus coatings is a promising method for enhancing the resistance of Mg to corrosion (Ref 7, 8), and the addition of fluoride ions benefits human bone growth and regeneration, as well as the crystallinity index (Ref 9, 10). Moreover, the introduction of fluorine can further reduce the solubility of hydroxyapatite (HA) while maintaining its biocompatibility (Ref 11, 12). H.R. Bakhsheshi-Rad et al. (Ref 13) prepared HA on Mg alloys by conventional galvanostatic electrode position, which showed improved corrosion resistance compared with that of the HA film alone. Moreno et al. (Ref 14) reported that a fluoro-doped treatment of hydroxyapatite would result in fluoro-doped hydroxyapatite with a solubility reduction of approximately 5 orders of magnitude. Moreover, fluorine-doped hydroxyapatite is considered to have good mineralization properties and the ability to promote cell proliferation (Ref 15).

Based on the above ideas, in this study, fluoride ions were introduced into a Ca-Ph treatment solution, the morphology and composition of the coating at different temperatures and fluoride contents were compared and analyzed, and the corrosion resistance of the F-CaP coating prepared by chemical conversion under the preferred process was studied through immersion and electrochemical experiments.

2 Experiments

2.1 Materials Preparation

Commercial AZ31 Mg alloys were cut into small pieces measuring 15 × 15 × 1 mm in size. These small pieces were polished gradually with sandpaper at grades #600, #800, #1000, and #1200. Then the pieces were dried after being ultrasonically cleared with alcohol and distilled water. To explore the influence of fluoride ions on the resistance to corrosion and composition of coatings, samples were deposited on AZ31 in the bath that contained the solution of 0.042 mol/L Ca (NO3)24H2O and 0.025 mol/L NH4H2PO4. The temperature was changed from 40 to 80 °C, and the fluoride ion concentration was increased from 0.3 to 0.7 M. The samples were then removed from the solution, thoroughly rinsed, and allowed to dry naturally at ambient temperature before being used for specimen characterization, electrochemical measurements, and immersion testing.

2.2 Surface Characterization

Scanning electron microscopy (SEM; Mira 3XMU) and energy-dispersive spectroscopy (EDS) were used to determine the surface morphologies and elemental compositions of these coatings. x-ray diffraction (XRD; SmartLsb SE03030502) was used to analyze the crystal structure of the coating layer using Cu-K radiation (λ = 1.54184 nm) at a scanning speed of 5° per min in the range of 20°− 80°.

2.3 Electrochemical Tests

Electrochemical experiments were carried out in a standard three electrode system on a CHI660 electrochemical working station with a counter electrode composed of platinum. The working electrode was the specimen, and the reference electrode was an Ag/AgCl electrode. The open circuit potential (OCP) of the fluoride-coated specimens was measured for half an hour to regulate the solution and achieve equilibrium. After OCP, electrochemical impedance spectroscopy (EIS) measurements were performed in the frequency range from 0.1 to 100 kHz, and the data were analyzed using Zsimp Win software (Ref 16). Potentiodynamic polarization (PDP) experiments were performed after the EIS test. According to ASTM standard G 102-89, the electrochemical corrosion characteristics (such as the corrosion rate, current density, and corrosion potential) were calculated using a Tafel plot (Ref 17). Simulated body fluid (SBF) was used as an electrolyte to simulate human body fluid conditions (Ref 18). Each treatment condition, as well as the untreated samples, received three measurements.

2.4 Immersion Test

To evaluate the corrosion resistance of the coated samples, immersion experiments in SBF at a pH of 7.4 were performed. For this test. The coated samples with a surface area of 2.25 cm2 were submerged in SBF and soaked at 37 °C for 7 days. To maintain the ion concentration, the solution was refreshed every two days. After 7 days, these samples were removed from the SBF and dried at ambient temperature. The ability to resist corrosion was assessed by integrating hydrogen evolution with sample weight loss during the test.

3 Results and Discussion

3.1 F-CaP Coating Characterization at Different Temperatures

Figure 1 shows the surface morphology of the F-CaP coated samples prepared at various temperatures, and the related EDS results are shown in Figure 1(d). It is obviously true that temperature has a significant impact on micromorphology. The surface morphology of the samples prepared at 40 °C is shown in Figure 1(a). The surface of the sample is similar to a dry riverbed with a certain amount of cracks, and such a structure does not easily to resist the invasion of corrosive substances. When the treatment temperature approaches 60 °C, the petal-like structure of a single compact scale-like crystal covers the surface of the matrix, and there are no obvious holes in the film layer, which can be attributed to the increasing temperature accelerating the pace of the ion reaction during the conversion procedure, resulting in a compact coating (Ref 19). The compact and intact coating showed good resistance to erosion in subsequent immersion tests. When the treatment temperature reaches 80 °C, the reaction accelerates, and a large number of bubbles are sharply generated. The morphology of the coating changes from a relatively regular stacking scaly structure to an irregular rod and needle-like agglomeration structure, and the existence of micropores and microcracks on the surface (Ref 20). On the one hand, these bubbles will occupy the space of the crystal growth, so that some positions cannot be coated by the coating. On the other hand, these bubbles will produce an impact force when they rupture, which may cause the formed coating to fall off and dissolve. During the commissioning of the samples, these pores may become channels for corrosive substances through the coating. The EDS results show that the contents of Mg and Al in the sample are very low, indicating that the coating prepared under all conditions could effectively cover the surface of the substrate. A higher fluorine content was tested, proving that fluorine was successfully doped in the Ca-Ph coating (Ref 21). Figure 1(e) shows that the Ca/P ratio increases with increasing temperature to 1.63 at 80 °C, which is close to the standard stoichiometry of HA (1.67) and explains the appearance of the typical needle HA and FHA peaks in the XRD pattern shown in Figure 2. This proves the successful preparation of FHA on the surface of the AZ31 magnesium alloy, while the Ca/P ratio was 1.4 at 60 °C, indicating that DCPD was deposited at lower temperatures.

Fig. 1
figure 1

The SEM surface morphologies of AZ31 Mg alloys coating F-CaP at (a) 40 °C, (b) 60 °C, (c) 80 °C and the the related (d) EDS components and (e) Ca/P ratio

Fig. 2
figure 2

X-ray diffraction patterns of (a) Ca-Ph coated AZ31 Mg alloys (b) F-CaP coated AZ31 Mg alloy at 80 °C

3.2 Characterization of F-CaP Coatings Synthesized with Different Fluoride Additions

The micromorphology of the F-CaP coatings prepared with different fluoride additions at 60 °C is shown in Figure 3. When the amount of NaF was 0.3 M, the coating was composed of leaf-like crystals. However, obvious holes are visible due to insufficient F-CaP coating formation to cover the matrix surface. With increasing fluorine addition, the crystal size decreases, which could be caused by the replacement of the original OH of fluorine-doped hydroxyapatite by fluorine atoms, and the fluorine atoms are less abundant than OH, so the hydroxyapatite crystal size decreases after replacement (Ref 22, 23). When the amount of fluoride ions added reached 0.5 M, the coating was uniformly and densely arranged on the surface of the matrix. Figure 3(c) clearly shows the coating prepared by adding 0.7 M fluorine, and large cracks appear in the underlying coating. Therefore, it can be concluded that the amount of fluoride ions introduced has a considerable influence on the ability of the F-CaP coating to resist corrosion. The doping of fluorine ions not only changes the morphology of the hydroxyapatite coating but also reduces the calcium and phosphorus density of the coating when fluorine ions are present in excess. This can be attributed to the fact that F and Cl belong to the same main group; similar to Cl, F is also able to pass through the already formed coating. When NaF is added to the coating treatment solution, excessive F- passes through the coating, seriously destroys the previously formed coating, reacts with Mg(OH)2, and even directly corrodes the underlying matrix. The hydrogen bubbles caused by the corrosion matrix will occupy the F-CaP coating on the surface of the magnesium alloy, inhibiting the successful deposition of the F-CaP coating and further preventing the deposition of the complete FHA coating.

Fig. 3
figure 3

The SEM surface morphologies of AZ31 Mg alloys coating F-CaP with different F- addition (a) 0.3 M, (b) 0.5 M, (c) 0.7 M and the related (d) EDS components and (e) Ca/P ratio

3.3 Evaluation of the Corrosion Behavior of F-CaP Coatings Synthesized at Different Temperatures

The influence of the fluoro-heat treatment temperature on the dynamic potential polarization curve of the obtained coating in SBF is shown in Figure 4. Table 1 displays the fitting findings of the curves acquired via Tafel extrapolation. The potentiodynamic polarization results showed that the corrosion resistance of the F-CaP coating was greater than that of the AZ31 substrate. The icorr values of the bare substrate are significantly greater than those of all the coated alloys. As the fluorine heat treatment temperature increased, the corrosion potential (Ecorr) increased from − 1.605 V at 40 °C to − 1.529 V at 60 °C, reaching − 1.412 V at 80 °C. Generally, the higher the corrosion potential is, the stronger the corrosion resistance of the sample, but the corrosion current density (icorr) does not follow this rule. The corrosion current density at 60 °C is minimal, and the corrosion current density at 80 °C is less than that at 40 °C. However, it is still greater than that of the sample treated at 60 °C. This is because the corrosion potential can only be used as a thermodynamic parameter to describe the trend of corrosion resistance, and the density of corrosion currents is used to evaluate the corrosion rate. By calculating the rate of sample corrosion by Equation 1 (Ref 24), the corrosion rate of the produced coating sample is ~ 0.101 mm/y at 60 °C, which is approximately 1/3 of the rate of corrosion of the addressed sample at 40 °C and 80 °C. This demonstrates that the corrosion resistance of the coating created at 60 °C is greater than that of the coatings applied at other temperatures.

Fig. 4
figure 4

Potentiodynamic polarization curves of bare and F-CaP coated AZ31 alloys obtained at different temperatures

Table 1 Corrosion parameters determined from the Tafel extrapolation method of Fig. 4

Figure 5 shows the EIS impedance profiles of the bare and F-CaP coating samples prepared at different treatment temperatures. As shown in Figure 5(a), the diameter of the two arc responses can be seen in the Nyquist plots (Ref 25,26,27,28). The two arc responses correspond to two phase angle peaks in the Porter phase diagram, so two time constant elements are introduced when the equivalent circuit is fitted. As the treatment temperature increases, the impedance mode value increases and then decreases as shown in Figure 5(c), and the radius of the arc resistance also increases and then decreases. When the treatment temperature is 60 °C, the impedance mode value is the largest, and the radius of the arc resistance is also the largest. The F-CaP coating formed at 60 °C has the greatest ability to protect against the magnesium alloy structure in SBF solution and the strongest ability to protect against corrosive ion erosion. The equivalent circuit model of the AC impedance in SBF for the F-CaP coating prepared at different temperatures is shown in Figure 5(d). The fitted circuit elements Rs, Ql, R1, Q2, and R2 represent the solution resistance, the double-layer capacitance, the charge transfer resistance, and the coating capacitance and resistance, respectively. In the equivalent circuit model, the circuit (R2, Q2) is fitted according to the arc resistance in the high-frequency region in the Nyquist plots and the phase angle of the intermediate frequency range in the Porter phase diagram. The circuit (R1, Q1) corresponds to the arc resistance in the Nyquist plots in the low-frequency region (Ref 29). Table 2 shows the circuit fitting results, which indicate that the Rs solution resistance is very low, indicating that the solution resistance has little influence on the electrochemical test. All coatings had lower Q values than did the corrosion product films on the bare alloys. This indicates that the coating has fewer defects than the corrosion products formed on the bare alloy. The coating resistance and charge transfer resistance reach their maximum values at 60 °C, and the minimum Q value is caused by the minimum corrosion area (Ref 30, 31). Combined with SEM image analysis, the sample prepared at 60 °C has a small and dense scaly coating, and the dense coating structure effectively reduces the corrosion area. The corrosion resistance of the F-CaP membrane samples obtained by the 60 °C and 80 °C treatments improved, while the corrosion resistance decreased in the 40 °C sample. At 40 °C, the sample formed only loose and defective coatings. At 80 °C, the reaction temperature reached the formation barrier of FHA, which successfully generated smaller lattice parameters and a more compact crystal structure. FHA, which has a low solubility, greatly improved the corrosion resistance.

$$ P_{i} \, = \,{22}.{85}i_{{{\text{corr}}}} $$
(1)
Fig. 5
figure 5

EIS spectra of bare and F-CaP coated AZ31 Mg prepared at different temperatures (a) Nyquist plots, (b) Bode phase angle plots, (c) Magnitude plots, (d) equivalent circuit model of bare AZ31 Mg, and (e) equivalent circuit model of F-CaP coated AZ31 Mg for curve fitting of EIS results

Table 2 EIS fitting parameters of bare and F-CaP coated AZ31 Mg at different temperatures

3.4 Evaluation of the Corrosion Behavior of F-CaP Coatings Synthesized with Different Fluoride Additions

Figure 6 shows the dynamic potential polarization curves of F-CaP coatings with different amounts of doped fluoride prepared at 60 °C. Table 3 shows the values for the equilibrium potential Ecorr, the density of corrosion currents icorr, and the corrosion rate Pi. The equilibrium potential of the 0.7 M coating was the highest, and the corrosion current density decreased and then increased with increasing fluoride content. The corrosion current density of the sample prepared by 0.5 M was the smallest, indicating that the corrosion rate of the coating prepared by 0.5 M in SBF was the smallest. This is related to the most compact structure of S0.5 M, 60 °C and the presence of visible holes in the S0.3 M, 60 °C. When the coating preparation amount is 0.7 M, the excess F- destroys the originally compact and intact coating, which cannot act as an effective physical barrier.

Fig. 6
figure 6

Potentiodynamic polarization curves of Ca-Ph coatings with varying F- content

Table 3 Corrosion parameters determined from the Tafel extrapolation method

As shown in Figure 7(c), the low-frequency impedance modulus | Z | values of the 0.5 M fluoro-doped samples are significantly greater than the | Z | values of the other two doped samples. The modulus of low-frequency impedance increases with increasing corrosion resistance, so the coating sample with 0.5 M fluoride has the best corrosion resistance (Ref 23). Figure 7 shows the EIS impedance pattern of F-CaP coatings with different fluoride contents. According to the number of time constants of the two phase angles in the high-frequency region of the Nyquist plots combined with the port phase diagram, the equivalent circuit input EIS data are shown in Figure 7(d). The fitted data are shown in Table 4. In addition, the sample with the 0.5 M film layer has the largest arc resistance diameter, which also indicates that the film layer can effectively enhance the corrosion resistance of the magnesium alloy. Figure 7(d) shows the equivalent circuit diagram of different fluorine-doped samples, where Rs is the solution resistance and R1 and Q1 are the charge transfer resistance and constant phase components, respectively. R2 and Q2 indicate the coating resistance and the coating capacitance, respectively. Usually, higher R values indicate lower corrosion rates (Ref 32, 33). Compared with 0.3 M and 0.7 M, 0.5 M had the highest resistance and charge transfer resistance, respectively, at 2681 Ω cm2 and 4759 Ω cm2, which acted as the best physical barrier, indicating that the membrane prepared under these conditions had better corrosion resistance.

Fig. 7
figure 7

EIS spectra of F-CaP coatings prepared with different F- content (a) Nyquist plots, (b) Bode phase angle plots, (c) Magnitude plots, (d) equivalent circuit model of bare AZ31 Mg, and (e) equivalent circuit model of F-CaP coated AZ31 Mg for curve fitting of EIS results

Table 4 EIS fitting parameters of AZ31 Mg alloys coating F-CaP with varying F- content

3.5 The Corrosion Behavior of F-CaP Coated Samples During a Long-Term Immersion Test

To explore the degradation process of sample preparation under different conditions, the samples were soaked in SBF solution for 7 days. Hydrogen precipitation and weight loss are determined during the immersion process, and the corrosion rate is calculated. To ensure the accuracy of the immersion experiments, three repeated experiments were performed. As shown in Figure 8(a), the samples prepared at 60 °C show the lowest amount of hydrogen precipitation during the whole soaking process, and the curve is always the lowest. After 7 days of soaking, the volume of hydrogen released was only 5.289 mL/cm2, which is 4/5 lower than that of the samples prepared under the other two conditions. The results of hydrogen analysis experiments show that the excellent stability of the sample coating prepared at 60 °C can provide effective protection for AZ31 magnesium alloys. Figure 4, 5, 6, 7, 8, 9 also shows that the samples treated at 60 °C have the highest corrosion resistance. Therefore, the hydrogen precipitation and sample weight loss can be arranged in the following increasing sequence: S 0.5 M, 60 °C < S 0.3 M, 60 °C < S 0.7 M, 60 °C < S 0.5 M, 80 °C < S 0.5 M, 40 °C. Figure 8(c) and 9(c) illustrates the predicted corrosion rates based on weight loss and hydrogen precipitation, which correspond well with the electrochemical measurements.

Fig. 8
figure 8

Immersion test results of AZ31 Mg alloys coating F-CaP at various temperatures: (a) volume change of Hydrogen evolution, (b) coating weight loss as a function of SBF solution exposure time and (c) corrosion rate comparison after 7 days

Fig. 9
figure 9

Immersion test results of AZ31 Mg alloys coating F-CaP with varying F- content: (a) volume change of Hydrogen evolution, (b) coating weight loss as a function of SBF solution exposure time and (c) corrosion rate comparison after 7 days

Figure 10 shows an illustration of the external structure of the samples after three and seven days in SBF solution. The surface morphology of the samples changes significantly with prolonged immersion time in SBF. Except for 0.5 M, the coating prepared at 40 °C exposed the underlying magnesium alloy matrix after soaking for 7 days, and the surfaces of the other samples were covered. After 3 days of 0.S5 M, 60 °C F-CaP coating covers the samples, and the surface-scale crystals turn into whiskers, indicating that Ca2+ and PO43- in SBF are dissolved and regenerated on the surface of HA. After 7 days, the surface has no obvious damage, the protective layer remains complete and thick, and the agglomeration becomes spherical HA, which retains its good corrosion resistance. However, in the samples prepared under other conditions, the massive formation of cracks and corrosion layers cause the film layer to crack and stratify, and the film layer lowers the sample's corrosion resistance even further and increases its disintegration rate (Ref 30).

Fig. 10
figure 10

Surface morphologies of the sample handled at 0.3 M,60 °C (a1 and a2), 0.5 M, 60 °C (b1 and b2),0.7 M, 60 °C (c1 and c2), 0.5 M, 40 °C (d1 and d2) ,0.5 M, 80 °C (e1 and e2) immersed in SBF for 3 days (a1, b1, c1, d1 and e1) and 7 days (a2, b2, c2, d2 and e2)

4 Conclusions

By changing the temperature and amount of F- added, different F-CaP coatings were prepared on the magnesium alloy. The sample morphology and content were investigated by different characterization methods, and the electrochemical properties and in vitro degradation behavior were studied by electrochemical tests and soaking experiments. The following conclusions were obtained:

  1. 1.

    Temperature had a great effect on the morphology of the F-CaP coating. An increase in the temperature accelerates the reaction rate of the ions during the deposition process, creating a compact and dense coating and promoting the generation of the FHA phase. However, when the temperature is too high, the violent reaction produces a large amount of hydrogen, which occupies the growth position of the coating so that some positions cannot be covered by the coating and produces an impact force when ruptured, prompting the formed coating to fall off and dissolve.

  2. 2.

    When the amount of fluoride ions is insufficient, the F-CaP coating cannot completely cover the surface of the matrix. If the amount of fluoride is too large, excessive fluoride ions will pass through the surface of the uncoated coating and react with the matrix, hindering the growth of the F-CaP coating.

  3. 3.

    The full and compact coating morphology efficiently shields AZ31 magnesium alloy against corrosion by simulated bodily fluids when the concentration of doped fluorine ions is 0.5 M and the temperature is adjusted to 60 °C.