Introduction

After the discovery of graphene [1], most efforts have been made to find new two-dimensional (2D) materials [2,3,4,5]. 2D materials have unique physical properties which are attractive for electronic, thermal, magnetic and optical applications. Commonly, two main categories were defined for the 2D materials: graphene-based (GB) and graphene-like (GL) materials. The GBs contain new materials such as graphene, fluorographene and graphene oxides, and the GL materials (free-standing carbon-free 2D crystals) WS2 and Co2VAl [5,6,7,8,9,10,11].

Indubitably, most GL compound candidates have the layered compound as graphite, which encompasses sharp anisotropic structure so that they have strong inter-atomic bonds inside each layer against very weak van der Waals-type bonding between neighboring sheets.

So, the 2D compounds with mechanical exfoliation (micro-mechanical cleavage) and various chemical approaches [12,13,14,15,16,17] can be synthesized and investigated for GL classes. The probability of being the GL compounds in the isotropic crystals with a 3D-like system of directional inter-atomic bonds is more than other compounds. For the first time, the graphene-like carbides were proposed in the ternary MAX phases [18]. A set of 2D GL compositions of MXene have been reported [19,20,21,22,23,24,25] which were obtained from their 3D MAX phases, where M belongs to the transition d metals, X stands for C or N, and A denotes Cd, Al, Ga, In, Tl, Si, Ge, Sn, Pb, P, As or S. The 2D GL titanium carbides and nitrides Tin + 1Xn (X = C, N, n = 1, 2, 3) are obtained from 3D Tin + 1AXn(A = Al…, X = C, N) [26, 27] with hexagonal lattice by p63mmc space group [19, 28, 29].

Accordingly, the MAX (Tin + 1AXn) structure is a close-pack in-plane hexagonal MX inner layer of A atoms along the c-axis. The M–X bonds have the strong covalent bonds, where the inter-atomic A–A bonds and interlayer M–A ones are the van der Waals ones. These weak bonding could easily be broken in chemical reactions (for instance, Ti3AlC2 + 3HF = AlF3 + 3/2H2 + Ti3C2) leaving a 2D hexagonal MX known as monolayer MXene [30, 31]. The 3D Tin + 1AXn ceramics have interesting physical properties such as low density, high melting point and rust resistance [32,33,34,35,36].

The electronic and optical studies reported that these compounds are good candidates for anti-ultraviolet ray coating materials as well as high-temperature apparatus. Recently, the physical properties of Tin + 1Xn (X = C, N; n = 1, 2, 3) 2D GL such as structural, electronic and optical properties have been investigated, all implicating a high potential for application in nano-technology [37]. Some theoretical and experimental works were focused on the electrical resistivity and conduction, elastic constants [38] and their application in the Li-ion batteries [39,40,41,42,43,44,45].

Addition of impurities is a good technique to engineer the physical behavior of the materials, especially the magnetic metals. For the first time, we added the Cr atom to the Ti2N GL nano-sheet and calculated the electronic and optical behavior of the Ti2N:Cr GL. This paper is organized as follows: the next section gives computational details, followed by which part and results are collected and the final section concludes the paper.

Computational methods

The electronic and optical properties of the Ti2N:Cr GL have been investigated based on the density functional theory (DFT) framework and Wien2K code [46, 47]. The calculations are done by full-potential augmented plane wave (FP-LAPW) and the exchange potential is approximated by GGA [48]. The super-cell structure of the Ti2N:Gr GL (Fig. 1) was optimized by mini-position command and the atomic forces on its atomic positions were optimized to 0.1 Reyd/a.u. The input parameters such as RKmax, KPoint, lmax and Gmax were optimized based on the total energy to 7.5, 400, 10 and 13.5, respectively. Also, the optical calculations are approximated by random phase approximations (RPA) using KPoint of 700 in this part.

Fig. 1
figure 1

The Ti2N:Cr GL super cell, drawn by xcrysden code

Results and discussion

Electronic properties

The band structure diagrams contain important information about the electronic and optical properties of materials. The Ti2N:Cr GL band structure along the symmetry directions of the first Brillouin zone for two spin channels is depicted. The Cr impurity belongs to the transition metals with the half–full d orbital replaced with Ti atom, with its electronic structure similar to Ti. The pure Ti2N GL has no magnetic behavior; therefore, we added the Cr impurity to it, the magnetic moment emerged in the Ti2N:Cr GL case. The band structures of the Ti2N:Cr GL of the two up and down spin channels are depicted in Fig. 2 for two large and little energy ranges. It is shown that a set of the energy levels are located in the − 7 to − 5 eV range, which has no magnetic behavior and no sensitivity to the external magnetic field. An energy gap of 3 eV exists in the − 5 to − 2 eV interval in the valance area which is independent of the external magnetic fields. But in the − 2eV to 8eV range the energy levels are intertwined, continuously, implying to the high metallic nature of this compound. For investigating the magnetic behavior of this composition, the band structure repainted around the Fermi level − 2 to 2 eV. It is shown that under the external magnetic field the splitting occurred in the up spin and the level shapes are completely different in the two mentioned spins. The curve slopes of the levels show completely different behavior in the two mentioned spins. The curve gradients of the up spin are greater than down spin especially along \(\varGamma \to {\rm M}\) and \({\rm K} \to \varGamma\), respectively; so, the electron mobility is higher in the up spin than down spin, implying the magnetic metallic nature of Ti2N:Cr GL.

Fig. 2
figure 2

The band structure of the Ti2N:Cr GL in the two up and down spins (left and right) for two large and low-energy ranges

The density of states (DOS) is another useful tool for studying the electronic and optical properties of materials. The DOS diagrams of the Ti2N:Cr GL composition for the up and down spins are depicted in Fig. 3. Little anisotropy of DOS at the − 7 to − 5 eV interval and also at the lower and upper Fermi levels has been shown. The partial DOS of the Ti2N:Cr GL atoms is depicted in the (b, c and d) panels for Ti, N and Cr atoms, respectively. It is shown that the main magnetic anisotropy at the Fermi level originated from the Ti- and Cr-d orbitals and then their p orbitals. Also, the Ti- and Cr-d orbitals around at the valance band refer to their bonding. The continuous bands in the lower to upper Fermi level imply very good electronic conductivity in the two mentioned spins. So, we expect this compound to have good optical sensitivity in the infrared and visible areas.

Fig. 3
figure 3

a The Ti2N:Cr GL total DOS and bd partial DOS of its atoms versus energy

Optical property

Based on the metallic properties of the last section, we except Ti2N:Cr GL to be a good candidate for optical applications in the infrared and visible areas. Accordingly, the optical coefficients were calculated based on the RPA method by selecting the 400 K point in the first Brillouin zone. In the first step, the imaginary part of the dielectric tensor is obtained and based on the Kramers–Kronig relations the real part of the dielectric is extracted [49, 50]. All other optical parameters such as absorption, energy loss functions (Eloss), reflection, refraction and extinction can be extracted from the dielectric tensor. Based on the metallic nature of the Ti2N:Cr GL compound, the optical calculations were done based on the intraband framework. The interband transition of the imaginary part of dielectric function (Im ε(ω)) is formulated as follows, which includes the summation of interband transitions from the occupied valence levels \(\left(\left| {\psi_{k}^{{V_{n} }} } \right\rangle \right)\) to unoccupied conduction ones \(\left( \left| {\psi_{k}^{{C_{n} }} } \right\rangle \right)\):

$${\text{Im}} \varepsilon_{ij}^{{[{\text{inter}}]}} \left( \omega \right) = \frac{{h^{2} e^{2} }}{{\pi m^{2} \omega^{2} }}\mathop \sum \limits_{n} \int {{\text{d}}k\psi_{k}^{{C_{n} }} |P^{i} |\psi_{k}^{{V_{n} }} \psi_{k}^{{V_{n} }} |P^{j} |\psi_{k}^{{C_{n} }} {\text{d}}\left( {E_{k}^{{C_{n} }} - E_{k}^{{V_{n} }} - \omega } \right)} ,$$
(1)

where P refers to momentum operator.

The real part of the dielectric function that results from Im ε(ω) is defined as follows:

$${\text{Re}} \varepsilon_{ij}^{{\left[ {\text{inter}} \right]}} \left( \omega \right) = \delta_{ij} + \frac{2}{\pi }P\mathop \int \limits_{0}^{\infty } \frac{{\omega^{\prime}{\text{Im}}\varepsilon_{ij} \left( \omega \right)}}{{\left( {\omega^{\prime}} \right)^{2} - \omega^{2} }}.$$
(2)

In the intraband transitions, Im ε(ω) and Re ε(ω) are corrected to the following form:

$${\text{Im }}\varepsilon_{ij}^{{\left[ {\text{intra}} \right]}} \left( \omega \right) = \frac{{\varGamma \omega_{{{\text{pl}},ij}}^{2} }}{{\omega \left( {\omega^{2} + \varGamma^{2} } \right)}},$$
(3)
$${\text{Re }}\varepsilon_{ij}^{{\left[ {\text{intra}} \right]}} \left( \omega \right) = 1 - \frac{{\omega_{{{\text{pl}},ij}}^{2} }}{{\omega \left( {\omega^{2} + \varGamma^{2} } \right)}} ,$$
(4)
$$\omega_{\text{pl}}^{2} = \frac{{ne^{2} }}{{\varepsilon_{0} }},$$
(5)

where \(\varGamma\) demonstrates the lifetime broadening in the Drude model and \(\omega_{\text{pl}}^{2}\) denotes the plasma frequency and n is the electron density.

The total dielectric function includes the inter- and intraband terms obtained as follows:

$$\varepsilon \left( \omega \right) = \varepsilon^{{\left[ {\text{intra}} \right]}} \left( \omega \right) + \varepsilon^{{\left[ {\text{inter}} \right]}} \left( \omega \right).$$
(6)

Re ε(ω) and Im ε(ω) of the Ti2N:Cr GL have been shown in Fig. 4 versus photon energy. Based on the two-dimensional (2D) geometry of the Ti2N:Cr sheet, two directions for the incident light were selected as xx and zz which are in-plane and perpendicular to the sheet. Re ε(ω) is optical response tensor to the incident light. It is shown that Re ε(ω) has anti-symmetric behavior versus the incident light angle, especially in lower energies (infrared, visible and ultra violet edge). The static value of Re ε(ω) (Re ε(0)) is shifted toward the infinite positive value along the xx-direction and is 13 along zz-direction, implying the very high metallic nature of this compound, especially along xx. By increasing photon energy, Re ε(ω)-xx dropped dramatically in the infrared region which indicated the optical instability of this direction, reached moderate behavior in the visible area and then shifted to the low amount after 5 eV. But the optical response along the zz-direction has stability and by increasing the photon energy, its amount is slightly decreased towards the ultraviolet edge and at the higher energies, the optical response reached convergence for the two mentioned directions. Based on the metallic behavior of the Ti2N:Cr GL, Re ε(ω) has several roots for the two directions which maybe originated from the plasmonic oscillations. Compared to the pure case [37], the main effect of adding Cr impurity to the Ti2N GL occurred along the xx-direction in the infrared energy, so that the Re ε(ω) sign is changed from negative to positive at zero and also its peak in the visible area is shifted to the negative area. These effects originated by increasing the metallic nature by adding the Cr atom to the Ti2N GL structure.

Fig. 4
figure 4

The real and imaginary parts of dielectric function of the Ti2N:Cr GL along the two xx- and zz-directions versus photon energy

The Im ε(ω) contains important information about the electronic structure of the materials; each Im ε(ω) peak indicates the optical transition of the occupied to unoccupied levels. It indicates the anisotropic behavior of the Im ε(ω) at the lower energies for the two mentioned directions. The Im ε(ω) is shifted to the infinite amount at zero energy which is due to the high metallic nature of this compound along the xx-direction but by increasing photon energy, it dropped dramatically. Along the zz-direction, we see a difference; its amount is increased from zero in the visible area and then decreased by applying photon energy. The main Im ε(ω) peaks of the two mentioned directions are located in the lower energies which originated from the full Ti- and Cr-d orbitals to Ti- and Cr-d ones and then N-p orbital transitions, compared with the DOS diagram. After 10 eV, the real and imaginary parts of dielectric function have been shifted towards zero amount which shows the transparent behavior of this composition for two light accidents. It should be noted that the Ti2N:Cr GL optical response depends on the angle of the incident light. By comparing the Im ε(ω) to the last publications in the pure case, it is shown that the peaks are increased especially along the zz cases which belong to optical transitions of the Cr-d orbitals [37]. Based on the metallic nature of the Ti2N:Cr nano-sheet, its optical absorptions occurred in the IR region which makes it a suitable case for optical sensing in this optical area.

Another important optical parameter of the Ti2N:Cr GL is the Eloss which shows the photon energy loss in the matter (See Fig. 5). The main Eloss diagrams for the mentioned directions have occurred at the 10–15 eV interval energy, while the dielectric functions in this energy range are very low, so it can be seen that the Ti2N:Cr GL is a good optical sensor by minimum Eloss at the infrared and visible areas. The Re ε(ω) has several roots along the xx- and zz-directions in the energies as 0.5, 4.1, 5.9, 8, 9.2, 10.1, 10.5, 13 eV and 4.9, 5.2, 10.1 eV, respectively, but the main Eloss peaks occurred at 4.1, 8, 10.1, 13 eV for xx-direction and 5.2, 8, 10.1 eV for zz-direction, which show the plasmonic energies (Figs. 5, 6).

Fig. 5
figure 5

The Eloss function versus photon energy of the xx- and zz-directions

The absorption diagrams for the Ti2N:Cr GL of the in-plane and perpendicular directions have been depicted in the Fig. 6. The absorptions are increased significantly in the infrared and visible areas compared to the dielectric functions which indicated that this compound is a good candidate for infrared sensors. By comparing with the pure case, it is shown that added Cr has led to increased absorption in the infrared region. Based on the lower amount of the Eloss in the lower optical energies, this compound is suitable for IR sensors.

Fig. 6
figure 6

The absorption diagram of the Ti2N:Cr GL along the two xx- and zz-directions versus photon energy

The refraction and extinction diagrams are shown in Fig. 7 versus photon energy. The refraction index has infinite amount at zero energy which originated from the high metallic behavior of the d orbitals along xx-direction, but has the finite refraction about 3.5 which is referred to the semiconducting nature. By increasing the photon energy, the refraction dropped dramatically along xx which denoted the optical instability in the infrared region. At higher energies (up to 10 eV) the two painted refractions are shifted to one and lower of it, which implied the super luminance phenomena that the light velocity is higher than vacuum amount.

Fig. 7
figure 7

The refraction and extinction diagram of the Ti2N:Cr GL along the two xx- and zz-directions versus photon energy

The zz diagram is dropped with slight slope and after visible area the Ti2N:Cr GL has the insulator conduct. Based on the high metallic nature of the Ti2N:Cr GL at lower energies and existence of the half–full d orbitals, the extinction variations are very intense and we see high absorption in the infrared area along xx, but zero amount for zz-direction which indicated the semiconducting behavior. After 10 eV, all extinctions are very low which indicated the transparent treatment of this composition. After 10 eV, the refraction index is lower than 1 which seems to exceed the group velocity of the electromagnetic waves in the matter than light velocity.

Conclusions

The Cr impurity was replaced in the Ti site in the Ti2N GL and the electronic and optical calculations were done based on DFT framework by FP-LAPW method. Ti2N:Cr GL was found to show magnetic behavior; therefore, the electronic structure in the two up and down spins is different. Increasing the density around the Fermi level has caused an increase in electron mobility. The optical response of our compound has a red shift than the pure case. Also, the optical behavior has the anisotropy conduct in the infrared and visible areas. The main optical response at the xx- and zz-directions occurred in the lower energies but the Eloss magnitudes are in the ultraviolet region, so this composition is a good candidate for infrared sensors. By adding the Cr impurity to this nano-sheet, the Im ε(ω) peaks are increased which referred to the Cr-d orbital transitions. The metallic nature is increased along the xx-direction and along the zz has semi-metallic behavior in the lower energies but at higher energies reached the insulating behavior and symmetry along the two mentioned directions. Also, the light phase velocity is higher than its amount in the vacuum in the higher energies of ultraviolet range.