Introduction

The onset of magnetic polarization requires a significant localization of the states likely to carry a finite magnetic moment. Such localization is illustrated by a high density of states (DOS) at the Fermi level n(EF) in an initially spin-degenerate electron system configuration. n(EF) can be quantified from calculations within density functional theory (DFT) [1, 2] and inferred from the Stoner theory of band (ferro)magnetism [3], whereby localization leading to a large n(EF) magnitude is an indication of unstable electronic system in spin-degenerate configuration (also labeled non-spin-polarized NSP) and it should be stabilized by spin polarization (SP) via dispatching the electrons into two spin populations: majority spins ↑ and minority spins ↓. The difference between ↑ and ↓ spin populations gives a finite magnetic moment. In general, magnetization develops on d states of transition metals or f states of rare earths and actinides: nf (n = 4, 5, respectively). Regarding transition metals nd (n = 3, 4, 5), the first period developing finite magnetization is ferromagnetic metals Fe, Co and Ni, but not metals of second and third periods because their 4d and 5d bands are too broad to allow for d states to localize enough. Also rare earth gadolinium is a ferromagnet at room temperature with M = 7 μB magnetic moment. Note that while in 3d ferromagnetic metals, the onset of the magnetic moment is of interband nature (mediated by the electron gas), in Gd, the moment arises from 4f intraband spin polarization.

On the other side, the elements devoid of d states have p valence external subshells characterized by large spatial expansion, which leaves them little chance for the development of magnetic moment. However, ordered magnetic moments were identified in hexaborides AEB6 (AE = Ca, Sr) [4] as well as in CdS doped with main group elements [5]. Also, the onset of finite magnetization carried by N-p states, thanks to the localization of N(pz), was recently shown, based on computations within DFT in a layered carbon graphitic-like AlB2-type NC2 structure with 1.1 μB aligned along c-hexagonal axis [6]. The AlB2-type NC2 structure (cf. Fig. 1) can also be viewed as a honeycomb arrangement of C sublattice interlayered by N, a feature close to the lithium intercalation compounds [7] used as electrodes in electrochemical processes of battery charge–discharge. In this context, two graphitic anode compositions were identified: LiC12 and LiC6 [8] and characterized by in situ neutron diffraction with layered-like structure within P6/mmm space group (like AlB2-type NC2), cf. Fig. 1c, d.

Fig. 1
figure 1

CxN layered structures in P6/mmm space group shown in simple cell and multiple cell projections to highlight the extended basal plane projection: a NC2 [2], b geometry-optimized NC6 and c NC12 based on LiC6 and LiC12 experimental structures [3]

Following the unusual results of magnetization of main group elements in certain structural and electronic conditions [4, 5] and of N(p) in layered AlB2-type NC2 P6/mmm [6] on the one hand and the context of extended two-dimensional (2D) carbon network in LiC6 and LiC12 [8] in the same space group as AlB2–NC2 (cf. Table 1), it became necessary to further investigate the magnetic behavior of N in such extended 2D carbon networks of NC6 and NC12 (Fig. 1) obtained from geometry optimizations starting from the corresponding Li-based experimental structures.

Table 1 Layered NCx (x = 2, 6, 12)

Also, this study of NC6 and NC12 is inscribed to a certain extent in the context of early investigations more than 25 years ago of nitrogen-poor carbonitrides with CVD/PVD growth experiments aiming at preparing firstly layered and then ultra-hard compounds as C11N4 for applications as coating materials in tooling machinery [9, 10].

The paper reports on such original investigations and shows that the effect of carbon lattice expansion leads to the full polarization of all three N(p) electrons with 3 μB saturated magnetic moment in a ferromagnetic ground state from energy–volume equations of states and to different magnetovolume behaviors with weak and strong ferromagnetic behaviors of NC6 and NC12, respectively.

Computation framework

Within DFT plane waves, VASP code [11, 12] was used to geometry optimize atomic positions and lattice parameters leading to ground-state configuration with minimized inter-atomic forces. We performed two sets of calculations considering spin-degenerate (non-spin-polarized NSP) and spin-polarized (SP) configurations for each one of the two carbonitrides NC6 and NC12. The calculations are based on the projector augmented wave (PAW) method [12, 13] with potentials built within the generalized gradient approximation (GGA) for an account of the effects of exchange and correlation [14]. Within our computational scheme, the conjugate-gradient algorithm [15] was used to relax the atom positions of the different chemical systems into their ground-state structure. The structural parameters were considered to be fully relaxed when forces on the atoms were less than 0.02 eV/Å and all stress components were below 0.003 eV/Å3. The tetrahedron method with Blöchl corrections [16] was applied for both geometry relaxation and total energy calculations. Brillouin-zone (BZ) integrals were approximated using the special k-point sampling of Monkhorst and Pack [17]. The calculations were converged at an energy cutoff of 500 eV for both compounds. The k-point integration is carried out with a starting mesh of 6 × 6 × 6 up to 10 × 10 × 10 for best convergence and relaxation to zero strains.

Properties relevant to electron localization are obtained from real-space analysis of electron localization function (ELF) according to Becke and Edgecomb [18] which was initially formulated for Hartree–Fock approach and then adapted to DFT methods. ELF is based on the kinetic energy in which the Pauli exclusion principle is accounted for: ELF = (1 + χ 2 σ )−1 with 0 ≤ ELF ≤ 1, meaning that ELF is a normalized function. In this expression, the ratio χσ = Dσ/D 0 σ , where Dσ = τσ − ¼(∇ρσ)2/ρσ and D 0 σ  = 3/5 (6π2)2/3ρ 5/3 σ correspond, respectively, to a measure of Pauli repulsion (Dσ) of the actual system and to the free electron gas repulsion (D 0 σ ) and τσ is the kinetic energy density. In this paper, we use ELF planes along selected orientations of the cell to show differentiated electron localizations with color maps: blue areas for no localization, red for full localization and green for free electron-like localization.

Geometry optimization and energy-dependent results

Geometry optimizations pertain to atomic relaxations with no structural constrains. Starting from the lithium–carbon compounds, iterative calculations led to minimize the inter-atomic forces while keeping the symmetry in P6/mmm space group. The protocol was carried out for both spin-degenerate (NSP) and spin-polarized (SP) configurations for each composition.

Electron localization function maps

An illustration of the results after full geometry relaxation is obtained from the electron localization ELF mapping. Figure 2a, b shows the basal plane ELF projection of N contours in NC6 (top) and NC12 (bottom) for four adjacent cells. The color scale shown at the bottom of the figures is from 0 (blue) to 1 (red). The presence of large blue areas between the strong concentrations of electrons around N indicates localization and isolation of individual N. Vertical ELF contour plot at Fig. 2c, d shows the electron concentration around C–C pairs with one layer in NC6 and two layers in NC12 on the one hand and the localization around N along the hexagonal c-axis. Non-vanishing green free electron-like areas indicate bonding between N and C. Lastly, Fig. 2e, f shows for NC6 and NC12 the strong localization of electrons between C–C in honeycomb-like carbon network.

Fig. 2
figure 2

Electron localization function ELF slices of title compounds: a, c, e for NC6 and b, d, f for NC12

Energy-related results analyses

Table 1 provides the starting crystal data of LiC6 and LiC12 used to optimize the corresponding carbonitrides in both spin configurations, NSP and SP. Also for the sake of completeness, the data of NC2 are included at first column. The x internal coordinate of carbon as well as the C–C distances changes little from Li to N cases meaning that the carbon host network undergoes negligible changes [even for NC2 with a single C–C pair and where d(C–C) is only slightly smaller]. a lattice parameter changes little from NC6 to NC12 on the one hand and from NSP to SP magnetic configuration on the other hand. This implies that the a parameter defining the horizontal planes is hexagonal lattice, which is controlled by the carbon network.

Using the NSP calculations, trends of cohesive energies Ecoh were established within the NCx series averaged as per one atom for better comparison. N and C energies were calculated based on the atom placed in a cubic box. Then, E(N) = − 6.830 eV and E(C) = − 7.11 eV. From the energy optimization, ETot.(NC6) = − 56.44 eV and ETot.(NC12) = − 111.446 eV, while ETot.(NC2) = − 21.52 eV. Then, the cohesive energies are averaged as per one atomic constituent to enable trends. They amount to (in eV/at.): Ecoh.(NC2) = − 0.16 eV/at.; Ecoh.(NC6) = − 0.99 eV/at.; Ecoh.(NC12) = − 1.48/at. The increase in cohesive energy is in line with the extension of the carbon network, and while it is almost 6 times from NC2 to NC6, it amounts to 33% from NC6 to NC12 which is most cohesive.

Major changes are observed from NSP to SP for the c-hexagonal parameter. This was equally observed for NC2 (1st column). The outcome is that the volume of the cell is larger in the spin-polarized configuration as a consequence of the onset of magnetization on nitrogen which amounts to M = 3 μB in both NC6 to NC12 compounds. Note that in NC2 M = 1.1 μB.

One first observation that can be proposed is that M(NC2) = 1.1 μB is not a saturated magnetization and that saturation requires an extended carbon network such as the one in NC6 to NC12 where it amounts to 3 μB, i.e., with the polarization of all three p electrons. Somehow this agrees with the situation of rare earth (RE) Gd where the 7 μB magnetic moment arises from the seven electrons of the 4f-half filled subshell. With this parallel approach, it can be suggested that alike RE p-magnetization here is equally of intraband polarization nature. We shall further develop on this original observation in next sections.

Spin-degenerate density of states (DOS) and origin of the magnetic instability

The origin of the spin polarization should be assessed based on the projection of the spin-degenerate NSP DOS. Figure 3 top panel shows the site-projected DOS for NC6 exemplarily. The DOS of N and all six carbons are projected. The energy reference along x-axis is with respect to the Fermi level EF which is crossed by a large N-DOS, whereas C shows little contribution with nevertheless a small peak following the shape of N-DOS whence the quantum mixes between C and N leading to the chemical bonding. As stated in Introduction, such large n(EF) magnitude which is of p-character (s-states are far lower in energy) is an indication of unstable electronic system in spin-degenerate state. The role of each orbital is shown by the decomposition over px, py and pz in the lower panel of Fig. 3. Two kinds of p-DOS can be seen, two degenerate in plane px and py, broader (notice the DOS shoulder) than out-of-plane pz which resembles more the carbon DOS at EF. These results mirror the ELF projections in Fig. 2 where panels (a) and (b) show the px and py ELF isolated from carbon, whereas panels (c) and (d) exhibit finite ELF between N and C–C pairs while bonding. Then, all three N(p) contribute to the instability which eventually leads to magnetic polarization. As a matter of fact, subsequent SP calculations lead to the onset of magnetization of 3 μB in both carbonitrides. The illustration of such integer magnetization identified in both compounds is illustrated in Fig. 4 by the spin-projected (UP ↑ and DOWN ↓) total DOS where the Fermi level is now in a small gap in NC6 and slightly larger but well defined in NC12, implying that the three p electrons are fully polarized as UP ↑ spins. These are called majority spins because the corresponding DOS are shifted to lower energy versus DOWN ↓ (minority spins) shifted to higher energy as can be seen in the SP DOS plots. Consequently, starting from the high DOS at EF in the NSP calculations (Fig. 3), the electron system relaxes to a SP ground by reducing the large n(EF) magnitude. The two compounds are then predicted as ferromagnetic semiconductors. This behavior is close to that observed for C2O and CrO2 [19] which are strong half metallic ferromagnets as well as Co3Sn2S2 [20, 21].

Fig. 3
figure 3

NSP site-projected DOS in NC6 and N(p) states projected over x, y and z components

Fig. 4
figure 4

Spin-projected total DOS of ferromagnetic NC6 and NC12

Energy–volume equations of state- and volume-dependent magnetic behavior

At this point, the evaluation of the impact of volume changes upon the onset and change of magnetization requires the assessment of the energy–volume equation of states (EOS) of each compound in its two magnetic configurations NSP/SP with calculations around minima found from geometry optimization (Table 1). The resulting curves are plotted in Fig. 5. In both compounds, the ground-state configuration is magnetic (SP) with large stabilization versus NSP: Δ\(E_{\text{NC}_{6}}\)(SP − NSP) = − 1.91 eV/cell and Δ\(E_{\text{NC}_{12}}\)(SP − NSP) = − 2.19 eV/cell, and the stabilization for NC12 is much larger.

Fig. 5
figure 5

Energy–volume curves of NC6 and NC12 in non-spin-polarized (NSP) and magnetically ordered (spin-polarized SP) configurations. In both, the ground state is SP (ferromagnetic) at larger volume than NSP

The fit of the curves which show a quadratic behavior is done with third-order Birch EOS [22]:

$$E\left( V \right) \, = \, E_{\text{o}} \left( {V_{\text{o}} } \right) \, + \, \left[ {9/8} \right]V_{\text{o}} B_{\text{o}} \left[ {\left( {\left[ {\left( {V_{\text{o}} } \right)/V} \right]} \right)^{2/3} {-}1} \right]^{2} + \, \left[ {9/16} \right]B_{\text{o}} \left( {B^{\prime } {-}4} \right)V_{\text{o}} \left[ {\left( {\left[ {\left( {V_{\text{o}} } \right)/V} \right]} \right)^{2/3} {-}1} \right]^{3}$$

where Eo, Vo, Bo and B—the fit parameters—are, respectively, the equilibrium energy, the volume, the bulk modulus and its pressure derivative. The obtained corresponding values are given in the insert. χ2 is the goodness-of-fit indicator.

One first result is the difference of magnitudes between bulk modules, larger for NC12 for both NSP and SP on the one hand and the decrease in B0(SP) versus B0(NSP) accompanying the reverse trends of volume; i.e., the larger the volume, the smaller the bulk modulus. The SP/NSP crossovers are at 70 and 120 Å3 volume magnitudes for NC6 and NC12.

The results can be further assessed by plotting the magnetization as function of volume. The scattered points shown in Fig. 6 present a different behavior at low volume, i.e., with a progressive increase in NC6 and a much steeper increase in NC12 both tending to 3 μB, which is in both carbonitrides the saturation magnetization. Note however that saturation is reached in NC12 before the NSP/SP crossover line opposite to NC6 where magnetization collapses right at the vertical red line of crossover. Then it can be suggested that NC12 is a stronger ferromagnet than NC6.

Fig. 6
figure 6

Variation of the magnetization with cell volume in NC6 and NC12

Conclusion

In spite of the focus of present work on the magnetic properties of binary carbon-rich NCx with results that encourage synthesis endeavor, the topic is yet inscribed to a certain extent in the context of early investigations more than 25 years ago of nitrogen-poor carbonitrides in a European Network for the search of new ultra-hard materials. The know-how-to in synthesizing such compositions with modern CVD/PVD and other growth techniques leading for instance to original compositions as C11N4 carbonitride in both 2D and 3D forms [9, 10] may cast confidence that further growth experiments with smaller amounts of nitrogen might lead to new nitrogen-deficient carbonitrides with compositions ranging from NC6 to NC12 which can be then proposed to the physics community for further characterization, especially the unusual magnetic behavior.