Introduction

The use of magnesium alloys is potentially attractive for many applications owing to their light weight. However, surface treatment is often required in order to provide the requisite corrosion protection. Electrolytic processes, such as anodizing and plasma electrolytic oxidation, are commonly employed, and a variety of processes is available that produce relatively thick, porous coatings under dielectric breakdown [15], which are usually used as part of a coating system. The coatings are also of interest for biodegradable magnesium implants, enabling control of the corrosion rate and enhancing the biocompatibility [6, 7]. Films formed in the absence of dielectric breakdown are also being investigated. Fluorine-rich, nanoporous and nanotubular films have been produced using an ethylene glycol/hydrofluoric acid electrolyte [8], as well as thick porous films, containing magnesium, oxygen and carbon species, using ethanol or methanol electrolytes containing nitrate ions [9]. In contrast, barrier films, containing organic and phosphate species, have been grown in amine/ethylene glycol and hot phosphate/glycerol electrolytes, respectively [10, 11], and low-voltage films that contain electrolyte components have been formed in an ionic fluid [12]. Other work has employed a variety of aqueous electrolytes, revealing films containing Mg(OH)2 [13], MgF2 and Mgx+y/2Ox(OH)y [14], MgO and MgAl2O4 [15, 16] hydroxide or oxyhydroxide [17] and MgF2 [18].

Despite the significant research into the anodizing of magnesium, the understanding of the film growth mechanisms is much less developed in comparison with other metals, such as aluminium and tantalum. Mechanistic investigations of film growth are made easier when the films are of uniform thickness and relatively unreactive in the electrolyte. Such films have recently been formed using a fluoride/glycol/water electrolyte [19]. The films were nanocrystalline and grew by outward migration of cations and inward migration of anions, with a formation ratio of ∼1.24 nm V−1. Further, a study of a Mg-Zn-RE alloy, using a fluoride/glycerol/water electrolyte, revealed similar films, but with the thickness differing between the matrix and the second phase within the alloy [20]. The films were rich in fluoride species, with diffraction revealing MgF2 and also MgO. Both studies used a central band of film material that contained an enhanced amount of oxygen and a reduced amount of fluorine as a marker to assess the contributions of anion and cation migration to film formation. The band was derived from the oxide/hydroxide film that was present on the alloy surface before anodizing commenced. The position of the band indicated a transport number of cations in the range ∼0.5 to 0.6 for the films on the sputtering deposited magnesium and at the matrix regions of the alloy. The cation transport number is large compared with other examples of nanocrystalline anodic films. For example, the cation transport numbers for nanocrystalline anodic oxide films formed on hafnium and zirconium, which are the best known examples, are ≤0.05 [21, 22].

In the present study, the effect of current density on the formation of the films on a cast Mg-Zn-RE alloy is investigated, contrasting with the single current density used in the previous studies [19, 20]. Further, the oxidation of Zn-Zr phases of the alloy is examined in order to shed light on ionic migration in the film.

Experimental

A Mg-Zn-RE magnesium was supplied by Magnesium Elektron Ltd as a cast slab of 2.5 cm thickness. The composition of the alloy in wt% according to inductively coupled plasma optical emission spectroscopy was 3.2 % Nd, 0.8 % Zr, 0.7 % Zn, 0.2 % Gd, bal. Mg. The slab was cut to provide specimens with dimensions of 2.5 × 2.0 × 0.5 cm. One face of each specimen, of dimensions 2.5 × 2.0 cm, was then wet ground, using deionized water, on successive grades of silicon carbide paper to a 4000-grit finish. After grinding, the specimens were cleaned ultrasonically in acetone and dried in a flow of cool air. The specimens were then anodized in a Perspex cell at constant current densities of 0.1, 1, 5, 7 and 10 mA cm−2 using a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K. The anodizing was carried out up to voltages close to the dielectric breakdown voltages in order to maximize the film thickness. Each specimen was clamped against a port in the cell, where an O-ring provided a seal with the specimen surface. The working area of the specimen was 1.54 cm2. The cathode was a platinum wire. The current was supplied by a constant current source (Metronix Model 6912). The cell voltage during anodizing was recorded using in-house software based on Labview. After anodizing, the specimen was rinsed in deionized water and dried as previously.

The examination of specimens was concentrated on those formed at 0.1, 5 and 10 mA cm−2. Scanning electron microscopy (SEM) was used for investigation of the alloy microstructure and the surfaces of the anodic films, employing Zeiss EVO 50 and Zeiss Ultra 55 instruments operated at 15 and 3 kV, respectively. Cross-sections of anodized specimens were prepared for transmission electron microscopy (TEM) using a TESCAN Lyra 3 XMU equipped with a focused ion beam (FIB) milling facility. Specimens were coated with platinum to prevent irradiation damage during preparation. The FIB was operated at an accelerating voltage of 30 kV, with currents of 4 and 1 nA for rough milling and rough pre-thinning, respectively. An ion current of 200 pA was used for final thinning to an electron-transparent thickness. At the end of the preparation procedure, all TEM sections were cleaned by an ion beam, using an accelerating voltage of 2 kV and current of 150 pA, in order to minimize the ion irradiation damage. This procedure has been described in detail elsewhere [23]. TEM investigations were performed using a JEOL 2100F instrument operated at 200 kV and equipped with an Oxford instruments X-max energy-dispersive X-ray (EDX) analysis facility. Elemental distributions in sections were measured in the STEM mode with Aztec software.

The compositions of anodic films were investigated by Rutherford backscattering spectroscopy (RBS) employing 2 MeV 4He+ ions supplied by the van de Graff generator at the University of Namur, Belgium. The incident ion beam was normal to the specimen surface, with scattered ions detected at 165° to the direction of the incident beam. The data were interpreted using SIMNRA software. The carbon, oxygen and fluorine contents of specimens were assessed by nuclear reaction analysis (NRA) using the 12C(d,p0)13C, 16O(d,p1)17O and 19F(d,p11,12)20F reactions, employing 0.87 MeV 2H+ ions, with detection of emitted protons at 150° to the direction of the incident beam. The oxygen contents were quantified using a reference specimen of anodized tantalum and were corrected for the isotopic abundance of 16O. Details of the analysis of 16O by NRA can be found elsewhere [24]. The carbon content was estimated from the ratio of the yields of the 12C(d,p0)13C and 16O(d,p1)17O reactions, using literature values of the respective cross-sections [25]. Fluorine could not be quantified by NRA, due to lack of data on the reaction cross-sections.

Results

Alloy microstructure

The microstructure in a mechanically polished section of the alloy is shown in the scanning electron micrograph of Fig. 1. The backscattered electron image reveals light regions where heavier elements, i.e. rare earth metals, zinc and zirconium, are located. The discontinuous Mg-Zn-RE phase occurs at grain boundaries, with lengths up to tens of microns and widths of up to ∼10 μm; EDX analyses by SEM and TEM revealed a composition of about Mg-6 at.%Zn-10 at.%Nd, corresponding to a (Mg + Zn)/Nd atomic ratio of ∼9 and a Mg/Nd ratio of ∼12, the latter suggesting a phase based on Mg12Nd. Clusters of sub-micron sized, zirconium-rich particles are evident within grain centres, occupying regions of up to ∼20 μm in size. Coarser, zirconium-rich particles also occur, which were less common than other second phase particles.

Fig. 1
figure 1

Scanning electron micrograph (backscattered electrons) of the microstructure of the Mg-Zn-RE alloy

Voltage-time behaviour

At the start of anodizing, a voltage surge occurred due to the resistance of the electrolyte. The voltage then increased at a constant rate, as typical of the formation of a barrier-type anodic film. The dependence of the rate on the current density is shown in Fig. 2. Table 1 gives the voltage increments associated with film growth, i.e. the differences between the surge and final anodizing voltages that were employed in this work. The increments were the maximum that could be achieved without the occurrence of gas evolution and sparking due to dielectric breakdown.

Fig. 2
figure 2

The relationship between the gradient of the voltage-time response and the current density for anodizing Mg-Zn-RE alloy in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Table 1 Results of RBS and NRA analyses of the anodic films formed on the Mg-Zn-RE alloy following anodizing at different current densities in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Scanning electron microscopy of the alloy surface before and after anodizing

Figure 3 presents secondary electron scanning electron micrographs of the surface of the alloy after pre-treatment by grinding and also after subsequent anodizing. Figure 3a shows the ground surface at a matrix region, revealing grooves and a network of light features due to cracks in a thin oxide/hydroxide film that was formed during grinding of the alloy. The surfaces of the anodic films were similar at all current densities. Hence, images are shown only for the film formed at 10 mA cm−2. Figure 3b shows the film formed above regions of the alloy matrix and the Mg-Zn-RE phase. The film on the Mg-Zn-RE phase protrudes above the film on the matrix. The matrix film is comparatively smooth, whereas that on the Mg-Zn-RE phase reveals grooves, which are associated with the alloy pre-treatment. The retention of grooves on the Mg-Zn-RE phase is probably due to the formation of the anodic film in such regions mainly by inward transport of anion species, whereas at the matrix, a much greater contribution to film growth is made by the outward transport of cations [20]. Hence, more film material is formed at the film surface above the matrix regions than above the Mg-Zn-RE phase, which enables greater smoothing of the surface. The matrix region of the image also shows some small regions of raised film formed above fine second phase particles. Fig. 3c shows a region where a greater population of fine second phase particles is present. The raised film regions commonly appeared as isolated nodules of a few tens of nanometres in size, or as linear features, of up to ∼1 μm in length, each formed from a row of nodules. Small pores are often associated with nodules. The nodules probably arise from the early stages of dielectric breakdown that occur preferentially in the film formed above the second phase particles. The further stages of dielectric breakdown probably generated the two large protrusions of film material, which were zirconium-rich. Such features were present on the anodized surfaces at low population densities that did not significantly affect later ion beam analyses of films.

Fig. 3
figure 3

Scanning electron micrographs (secondary electrons) of a the ground surface of the Mg-Zn-RE alloy and b, c following anodizing to 416 V at 10 mA cm−2in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Transmission electron microscopy of the film formed at 0.1 mA cm−2

Figure 4a shows a bright field transmission electron micrograph of the film formed at 0.1 mA cm-2 to 401 V above the alloy matrix. The film displays a central light band, located at depths in the range 0.47–0.52 of the film thickness, which has been attributed to the incorporation of the oxide/hydroxide film formed on the alloy before the start of anodizing [20]. The film material above the band has a finely textured appearance, which contrasts with the more featureless underlying material. The EDX elemental linescans of Fig. 4b–g show that magnesium, neodymium, fluorine and oxygen are present throughout the film thickness, whilst carbon is concentrated in the light band near the middle of the film. Zinc is present mainly in the inner half of the film and is enriched at the alloy/film interface. No results are presented for zirconium, which could not be resolved by EDX analysis owing to its relatively low concentration.

Fig. 4
figure 4

a Transmission electron micrograph (bright field) of the anodic film formed above the matrix of the Mg-Zn-RE alloy following anodizing to 401 V at 0.1 mA cm−2in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K. b-f Results of EDX elemental line scan analysis of b magnesium, c neodymium, d zinc, e fluorine, f oxygen and g carbon

Figure 5 shows a bright field image and EDX elemental maps of the film formed at 0.1 mA cm−2 above a region of Mg-Zn-RE phase. The second phase and the overlying anodic film appear darker than the film and substrate at the matrix region due mainly to the presence of increased concentrations of heavier elements. The film is thicker above the Mg-Zn-RE phase than above the matrix and contains a light band at a depth of ∼0.08–0.12 of the film thickness. The band bends toward the light band in the film above the matrix near the edge of the second phase, as marked by the arrows, indicating its similar origin. The volume changes on conversion of the metal into film material and the electric field strengths in the film material differ for the film material formed above the second phase and matrix regions. Hence, the light band within the film is displaced between the two regions.

Fig. 5
figure 5

a Transmission electron micrograph (bright field) and EDX elemental maps of b magnesium, c neodymium, d zinc, e fluorine and f oxygen for the Mg-Zn-RE alloy following anodizing to 401 V at 0.1 mA cm−2in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

A thinner light band is also present near the centre of the film formed above the second phase. The band lies at the boundary between an outer region of the film, where both fluorine and oxygen are present, and an inner region, which is fluorine-rich and oxygen-depleted. The distribution of oxygen suggests that it is immobile or migrates more slowly than fluorine. Relatively fast migration of fluorine species has been reported for barrier-type anodic films formed on tantalum and titanium [26, 27]. Neodymium and zinc are distributed throughout the thickness of the film, and zinc is enriched at the alloy/film interface. The EDX linescans of Fig. 6 reveal that the outer light band of Fig. 5 is enriched in oxygen and depleted in fluorine. The linescans also suggest that zinc is present at a higher concentration in the inner region of the film. The enrichment of zinc is evident near the alloy/film interface. The Mg-Zn-RE phase immediately beneath the anodic film in the micrograph of Fig. 5 shows the presence of a slightly lighter band below the zinc-enriched layer. However, there were no changes in elemental concentrations in the linescans of Fig. 6, suggesting that it may be an artefact of the FIB milling.

Fig. 6
figure 6

Results of EDX elemental line scan analysis of the film formed above the Mg-Zn-RE phase of the Mg-Zn-RE alloy following anodizing to 401 V at 0.1 mA cm−2in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K. a Location of line scan, b magnesium, c neodymium, d zinc, e fluorine and f oxygen

Figure 7a, b shows convergent beam diffraction patterns obtained from areas of a diameter of 100 nm within the anodic film close to the film/alloy interface above the matrix and Mg-Zn-RE phase, respectively. The ring patterns indicate that the film was nanocrystalline at both regions. The analysis of patterns suggested the occurrence of MgO and MgF2. The diffraction pattern above the matrix was sharper and displayed more spots than that above the Mg-Zn-RE phase, which may be due to a finer nanocrystalline structure and/or the increased presence of alloying element species above the latter. Nanocrystalline structures were also revealed for other current densities.

Fig. 7
figure 7

Electron diffraction patterns of the film formed on the Mg-Zn-RE alloy following anodizing to 401 V at 0.1 mA cm−2 in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K above a the matrix and b the Mg-Zn-RE phase

Transmission electron microscopy of the film formed at 5 mA cm−2

Figure 8 shows a transmission electron micrograph and EDX elemental maps at the boundary between the matrix and the Mg-Zn-RE phase of a specimen anodized at 5 mA cm−2 to 434 V. The film above the matrix resembles that formed at 0.1 mA cm−2. A light band is located at 0.10–0.14 of the thickness of the film above the Mg-Zn-RE phase, similarly to that observed in the film formed at 0.1 mA cm−2. The EDX elemental maps of Fig. 8b–f reveal the presence of magnesium, zinc, neodymium, oxygen and fluorine in the film. The maps suggested an enrichment of fluorine relative to oxygen in the inner third of the anodic film on the Mg-Zn-RE phase. An enrichment of zinc at the alloy/film interface can be seen at both the second phase and matrix regions.

Fig. 8
figure 8

a Transmission electron micrograph (bright field) and EDX elemental maps of b magnesium, c neodymium, d zinc, e fluorine and f oxygen for the Mg-Zn-RE alloy following anodizing to 434 V at 5 mA cm−2in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Figure 9 shows a bright field image of the matrix where two needle-like particles have been partly oxidized. EDX point analysis of these particles and also of the plate-like particles evident in alloy revealed relatively high concentrations of zinc and zirconium and low concentrations of neodymium, with the phases containing more zirconium than zinc. The particles possibly consist of the Zr2Zn3 phase [28]. The plate-like particles in the alloy had smaller particles, enriched in neodymium, around their edges. The zinc- and zirconium-rich regions within the inner half of the anodic film that have resulted from the oxidation of the needle-like particles are co-linear with the non-oxidized parts of the particles. However, in the outer part of the film, they are orientated toward the film surface. The EDX elemental maps for oxygen and fluorine (not shown) disclosed negligible variations in intensity across the film thickness other than the depletion of fluorine and enrichment of oxygen in the light band.

Fig. 9
figure 9

a Transmission electron micrograph (bright field) and EDX elemental maps of b magnesium, c neodymium, d zinc and e zirconium for the Mg-Zn-RE alloy following anodizing to 434 V at 5 mA cm−2in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Transmission electron microscopy of the film formed at 10 mA cm−2

The anodic film formed to 416 V at 10 mA cm−2 revealed features similar to those seen at 0.1 and 5 mA cm−2. However, the light band in the film was buried slightly deeper within the film, at 0.52–0.59 of the film thickness. The band at the Mg-Zn-RE phase was located at a depth of ∼0.09–0.13 of the film thickness, similar to the previous location. Enrichment of zinc occurred beneath the film at both the matrix and Mg-Zn-RE regions. Figure 10 shows plate-like zinc- and zirconium-rich particles being incorporated into the anodic film above the matrix. The oxidation of the particle that is circled in Fig. 10 resulted in zinc- and zirconium-rich material in the inner part of the film that is aligned with particles in the alloy matrix. However, the zinc- and zirconium-rich film material is orientated toward the film surface in the outer region of the film. The light band is also located closer to the film surface.

Fig. 10
figure 10

Transmission electron micrograph (bright field) of the Mg-Zn-RE alloy following anodizing to 416 V at 10 mA cm−2 in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Ion beam analysis

Figure 11 shows the experimental and simulated RBS spectra for the specimens anodized at 0.1, 5 and 10 mA cm−2. The energies for scattering from oxygen, fluorine, magnesium, zinc, zirconium and rare earth at the film surface are indicated in the figure. Table 1 gives the results for the film compositions determined from the fitting of the experimental spectra, which also include a specimen anodized at 1 mA cm−2. The total amounts of elements in the film are presented, together with the amount of RE in the RE-enriched surface region. The oxygen contents of the films were determined from NRA, since the signal from oxygen in the RBS spectra was relatively low and overlapped partly with the signal from fluorine. The results of Table 1 show that the atomic ratio of O/F increases with increase of the current density. The ratios are 0.12, 0.20, 0.23 and 0.25 for current densities of 0.1, 1, 5 and 10 mA cm−2, respectively. The oxygen in the film is presumed to be derived mainly from water in the electrolyte, which has been reported to be the main source of oxygen for films formed on zirconium in a similar electrolyte [29]. The molar ratio of water molecules to fluoride ions in the electrolyte is ∼7.8, which is much greater than the atomic ratio of O/F in the films. Thus, the fluoride ions are preferentially incorporated into the film. The preferential incorporation of fluoride ions is possibly related to the more negative Gibbs free energy of formation of MgF2 (−1071.1 kJ mol−1) compared with that of MgO (−569.3 kJ mol−1). Fluoride ions may also be preferentially adsorbed on the film surface under the influence of the electric field.

Fig. 11
figure 11

Experimental and simulated (solid lines) RBS spectra for the Mg-Zn-RE alloy before anodizing and following anodizing to 401, 434 and 416 V at 0.1, 5 and 10 mA cm−2, respectively, in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

The enrichment of rare earth elements at the surface region of the films increased from 1.2 × 1015 to 2.2 × 1015 neodymium atoms cm−2 between current densities 0.1 to 10 mA cm−2. The amounts of other alloying elements in the film were less certain owing to their smaller yields, which were superimposed on much higher yields from the rare earths in the inner film and in the alloy. Since these elements were present in relatively low concentrations, they are not considered further. The enrichment of zinc at the alloy/film interface increased with increase in the current density, from ≤0.5 × 1015 zinc atoms cm−2 at 0.1 mA cm−2 to ∼3.3 × 1015 zinc atoms cm−2. These enrichments apply to the matrix regions of the alloy. The zinc enrichment at the Mg-Zn-RE phase is located at a greater depth than that at the matrix, since the film is thicker above the former region, but is not resolved by RBS as the phase occupies a small part of the analysed area.

Figure 12 shows the yields from the 16O(d,p1)17O and 19F(d,p11,12)20F reactions for the previous specimens. The yields from the reactions are consistent with the findings from RBS that the O/F ratio increases with increase of the current density. Yields from the 12C(d,p0)13C reaction (not shown) revealed ∼1 × 1016 carbon atoms cm−2 on the ground alloy and ∼2 × 1016 carbon atoms cm−2 following anodizing, irrespective of the current density. The carbon on the ground alloy is due to contamination, and similar contamination is likely on the surface of the anodic films. Further, carbon is incorporated into the light bands evident in the transmission electron micrographs [20]. Thus, carbon incorporated into the growing film from glycerol molecules appears to be ≤1 × 1016 carbon atoms cm−2, which is negligible compared with oxygen and fluorine species.

Fig. 12
figure 12

Yields of the 19F(d,p11,12)20F and 16O(d,p1)17O reaction s from NRA analyses of the Mg-Zn-RE alloy before anodizing and following anodizing to 401, 435, 434 and 416 V at 0.1, 1, 5 and 10 mA cm−2, respectively, in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

The efficiency of anodizing was calculated from the ratio of the charges due to the cations in the films and the charge passed through the cell to anodize the specimens. The charge states of magnesium and RE are assumed to be +2 and +3, respectively. Other alloying elements were neglected due to their low and uncertain concentrations. Ratios of 0.94, 0.98, 1.04 and 1.03 were determined for current densities of 0.1, 1, 5 and 10 mA cm−2, respectively (Table 1), which indicated relatively little loss of species to the electrolyte.

Oxidation mechanism

Table 2 presents the thicknesses and the formation ratios of the films at the matrix and Mg-Zn-RE regions, determined from TEM and the cell voltages of Table 1. The Table also lists the ratio of the outer region thickness, measured to the centre of the light band, to the total thickness of each film, which represents the proportion of the film formed due to cation migration; ranges are given since the bands are slightly undulating. The formation ratios decrease with increase of current density, from 1.33 nm V−1 at 0.1 mA cm−2 to 1.13 nm V−1 at 10 mA cm−2 for the matrix, and from 2.52 to 1.62 nm V−1 for the Mg-Zn-RE phase. Such decreases are typical of a high-field conduction process, in which the ionic current density, J, is dependent on the electric field, E, according to the relationship:

Table 2 Thicknesses of film layers and formation ratios determined from transmission electron micrographs for the Mg-Zn-RE alloy following anodizing to 401 V at 0.1 mA cm−2 in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K
$$ J = 2 Nqa\nu \exp \left(-\left(Q-\mathrm{q}\mathrm{a}E\right)/{k}_{\mathrm{B}}T\right) $$

where N is the concentration of mobile species, q is their charge, a is the jump distance, ν is the attempt frequency, Q is the activation energy, k B is Boltzmann’s constant and T is the temperature. Figure 13 shows the dependence of the logarithm of the current density on the electric field for the matrix and Mg-Zn-RE phase. The relationships are non-linear, which is possibly due to dependence of the film composition on the current density.

Fig. 13
figure 13

Relationship between the logarithm of the current density and the electric field for anodizing of the Mg-Zn-RE alloy in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K

Studies of crystalline anodic oxide films on zirconium have indicated that ionic transport occurs mostly by migration of oxygen species along short-circuit paths [30]. It was proposed that crystallite defects are generated by injection of O2− ion into the oxide at the oxide/electrolyte interface. These then propagate across the crystallites, creating a low population density of transport paths of relatively high ionic conductivity. It is suggested that ionic migration in the present films also occurs by short-circuit paths. Oxygen and fluorine species migrate to the alloy/film interface, where nanocrystals of oxide, fluoride and possibly oxy-fluoride are formed. The anions and cations inside the nanocrystals are possibly immobile, mirroring the behaviour of ion-implanted bromine in anodic zirconia [22]. Thus, the nanocrystals replicate the shape of the Zn-Zr particles of Fig. 9. The migration of the cations in the inner region may occur preferentially though the zinc- and zirconium-rich film material, which is of reduced ionic resistivity. In contrast, cations within the outer region of the film migrate in the direction of the electric field and combine with fluorine and oxygen species at the film surface, causing the observed change in orientation of the zinc- and zirconium-rich material. The proposed growth of the film at a Zn-Zr particle is shown schematically in Fig. 14. The present films differ significantly from anodic zirconia, since cations and anions have significant mobility in the films. Thus, generation by defect injection would have to provide easy paths for both types of species. Such a mechanism appears complex in preference to transport along crystallite boundary regions.

Fig. 14
figure 14

Schematic diagram of the growth of the anodic film at the location of a Zn-Zr second phase particle

Enrichments of neodymium occur at the surfaces of the films above both the matrix and the Mg-Zn-RE phase. The enrichment indicates that neodymium species migrate outward in the film at a faster rate than other species. The enrichment reduced with reduction in the current density due to either a reduction in the relative migration rate of the neodymium species or an increased loss of species to the electrolyte. The latter possibility is consistent with the reduced efficiency estimated at the lowest current density. The enrichment of zinc in a thin alloy layer immediately beneath the anodic film is also found in Al-Zn alloys and has been related to the less negative Gibbs free energy per equivalent for formation of zinc oxide in comparison with that for formation of aluminium oxide [31]. However, since the present films contain greater amounts of fluorine than oxygen, the enrichment may be related to the Gibbs free energy of formation of the fluoride. The enrichment of alloying elements and the ionic transport processes in the present films require further investigations in order to develop a deeper understanding of the anodizing behaviour of fluoride-rich films on magnesium.

Conclusions

  1. 1.

    Anodizing of the Mg-Zn-RE alloy at a constant current density in the range 0.1 to 10 mA cm−2 in a glycerol-based electrolyte containing 0.35 M ammonium fluoride and 5 vol.% of added water at 293 K can be carried out at high Faradaic efficiency, resulting in the formation of nanocrystalline barrier-type films.

  2. 2.

    The anodic films contain oxygen and fluorine species, with the latter dominating the composition. The atomic ratio of O/F increases from 0.12 to 0.25 between current densities of 0.1 and 10 mA cm−2.

  3. 3.

    The films form by outward migration of cation species and inward migration of anion species resulting in film growth at the alloy/film and film/electrolyte interfaces during anodizing of both the matrix and second phase regions of the alloy. The location of a band of material originating from the oxide/hydroxide film that was present on the alloy before anodizing commenced suggests that the transport number of cation species at the matrix regions lies in the range ∼0.5 to 0.6, with no significant dependence on the current density.

  4. 4.

    Mg-Zn-RE and Zn-Zr phases can be anodized and incorporated into the anodic films. The incorporation of the species results in local changes in the thickness of the films and the transport numbers of cation and anion species within the film.

  5. 5.

    Zinc is enriched in the alloy immediately beneath the film formed at regions of the matrix and Mg-Zn-RE phase. The enrichment of zinc increases with increase of the current density.

  6. 6.

    The oxidation behaviour of Zn-Zr phases suggests that ionic migration proceeds along short-circuit paths in the film, such as grain boundaries or regions of less-ordered material around grain boundaries.