Introduction

The importance of harvesting solar energy has expanded enormously in response to rising global energy demand and the need for sustainable and renewable resources.1 To address this growing demand, it is crucial to enhance the efficiency of solar panels in capturing and converting sunlight into usable electrical energy. Thin-film solar cells have emerged as a flexible and economically viable technology for proficiently capturing solar energy. Additionally, the conversion of heat into electrical energy through thermoelectric (TE) power generation offers a promising avenue for utilizing renewable energy sources.2

In this context, material science assumes a critical role in the development of advanced materials with superior properties suitable for use in thin-film solar cells and TE power systems. This study aims to contribute to this field by investigating novel quaternary chalcogenide materials and their properties, with the ultimate objective of enabling cost-effective and efficient utilization of solar energy and heat conversion technologies.

In recent times, quaternary chalcogenides, also known as diamond- like semiconductors, have gained significant attention from researchers. This is due to their diverse range of intriguing features that hold potential for various technological applications such as photovoltaic, nonlinear optics,3 and solar cells.4 The theoretical and experimental syntheses of quaternary I2-II-IV-VI4 (I = Cu, Ag, II = Zn, Cd, Iv = Si, Ge, Sn, VI = S, Se, Te) compounds began in 1958, when Goodman demonstrated that various series of new semiconductor compounds could be derived from the known ones by a process of ‘cross-substitution’. This involves replacing one element per pair of elements from other groups of the periodic table while keeping the valence electron constant.5 These materials exhibited a notable transition from semiconducting to semimetallic behavior, dependent on the specific phase and chemical compositions.6

As an example, the ternary compound CuGaS2 can be produced by substituting one Cu+ cation and one Ga+3 cation for Mg+2 cations in the diamond structure of MgS. If the Ga atom in the ternary compound CuGaS2 is replaced by Mg+2 and In+3 cations, along with one of the Cu atoms being replaced by Mg+2, a quaternary compound CuMg2InS4 is formed. These compounds can exhibit various space group symmetries and cation ordering methods, including stannite (ST), kesterite (KS), wurtzite-stannite (WS), and monoclinic (Pc) phases.7 The investigation of quaternary chalcogenide semiconductors has spanned over 40 years; however, the nature of their crystal structures has remained a topic of contention.

One such investigation involved the synthesis of a novel family of quaternary semiconductors, namely Cu2ZnAS4-x and Cu2ZnAS4 (where A = Al, Ga, In), as wurtzite phase nanocrystals using the colloidal hot-injection method. The direct band gap of these materials within the visible wavelength range, coupled with their exceptional absorption cross-section, has generated significant potential for their utilization in solar energy conversion endeavors.8 In another study, researchers synthesized nanocrystals of the ST phase CuZn2AlS4 (CZAS) and discovered that, from an energy perspective, the ST structure exhibited greater stability compared to the KS, WS, orthorhombic, and zinc blende structures.9

In an additional exploration, the Cu2MgSnS4 compound was synthesized using hot injection methods, revealing that it crystallizes in the tetragonal structure (i.e., KS). Furthermore, UV-Vis absorption spectroscopy revealed that the compound possesses an optical gap of 1.63 when synthesized using hot injection methods. Using another syntheses technique called ultrasonic co-sputtering, the same compound was found to have a tetragonal structure with an optical gap of 1.76 eV.10 In a related theoretical inquiry, Akil et al studied a compound of the same category but with a different structure, Na2ZnSnS4 , and found that it is stable in the KS phase. Their findings were in good agreement with experimental data.11,12

In this study, to explore the properties of the CuMg2InS4 chalcogenide, the state-of-the-art ab initio self-consistent FP-LAPW + lo method, coupled with the generalized gradient approximation and Perdew–Burke–Ernzerhof (GGA-PBE) method derived from Perdew’s 2008 functional theory, has been employed. To achieve a more precise determination of the band gap energy, the modified Becke–Johnson potential (TB-mBJ) has been utilized to calculate the density of states and band structure.13 Our investigation primarily focused on evaluating the structural, mechanical, thermodynamic stabilities, linear optical response, and thermoelectricity of the compound. It is noteworthy that we utilized two different codes for computation, namely Wien2k and VASP.

The organization of this paper is as follows: section "Computational Details" outlines the technical aspects of our calculation in a succinct manner. In section "Results and Discussion", we present our key findings and analyze the structural, elastic, thermoelectric, and optical properties of the compound under examination. Lastly, in section "Conclusion", we summarize our main outcomes and present our conclusions in a brief manner.

Computational Details

We employed the FP-LAPW + lo method, as implemented in the Wien2k code,14 to investigate the structural, electronic, and optical properties of the CuMg2InS4 compound. To calculate the exchange correlation potential, we used the PBE correlation energy functional, which is widely used in density functional theory (DFT) calculations. However, it is known to underestimate the band gap of semiconductors.15 Therefore, to obtain a more accurate description of the band gap energy, The TB-mBj potential13,16,17,18 is used to calculate the density of states and band structure. In order to ensure accurate results, we performed convergence tests on the parameters R.Kmax and Kpoints. After testing various values, the R.Kmax of 8 and Kpoints of 600 were found to be optimal for our study. The muffin-tin radii (RMTs) for the Cu, Mg, In, and S were set to 2.16, 1.8, 2.3, 1.84, respectively. These parameters were used to accurately describe the structural, electronic, and optical properties of the CuMg2InS4 compound. It is important to note that the choice of RMTs can significantly affect the results, and, hence, they were carefully selected based on previous studies and theoretical considerations. During the self-consistent cycles, we set the cut-off energy at − 6 Ry, which separates the valence and core states. The energy and charge convergence criteria were chosen to be 10−6 Ry, and 10−5 e, respectively.

To investigate the TE transport properties of the CuMg2InS4 compound, we utilized the FL-APW method with the TB-mBJ exchange potential19 to ensure accurate results, and a very high- density k-grid of 34 × 34 × 34 k-points was used for integration over the irreducible Brillouin zone. The TE properties versus temperature were then calculated using the BoltzTrap code.20

Regarding the calculations performed using the VASP code, it should be noted that all the energy calculations were conducted using VASP 5.4.4,21,22 which is a DFT- based code. The calculations employed the GGA-PBE23 for the exchange-correlation energy, as well as recent projector-augmented wave potentials. A plane wave basis set with an energy cutoff of 600 eV and reciprocal space grid interval of 0.25 Å was utilized. In addition, the van der Waals dispersion energy correction was computed using Grimme et al.’s DFT-D3 method.24,25 Calculations conducted using VASP are often referred to as “parameter-free” since the user is only required to input the atom types and initial coordinates. The choices outlined above primarily concern achieving convergence in the calculations. The crystal structures underwent energy minimization through the optimization of cell parameters and atomic positions, resulting in residual forces less than 0.01 eV/Å and an average residual force nearly one order of magnitude smaller. A series of single-point energy calculations were subsequently performed to calculate the Hellmann–Feynman forces acting on all atoms in the cell. Each structure was obtained by displacing one of the symmetry-inequivalent atoms by 0.01 Å along both positive and negative Cartesian directions. Using these data, the dynamical matrix was constructed and diagonalized for any k-vector using the PHONOPY program.26 VASP calculates the second-order derivatives of the total energy with respect to ion positions using a finite difference approach. The resulting data is then used to construct and diagonalize the dynamical matrix, from which phonon modes, elastic, internal strain tensors, and piezoelectric constants can be derived. Additionally, linear response theory is employed to calculate the ionic contribution to the dielectric tensor.

Results and Discussion

Structural Properties and Phase Stability

The quaternary diamond-like semiconductor compounds I2–II–IV–VI4 can be synthesized from I–III–VI2 compounds by substituting every two atoms from the III column with one atom from the II column and one atom from the IV column, resulting in a doubled structure of the I–III–VI2 compound.4,7,27 The latter ternary compound is also obtained from a binary II–VI compound by replacing one atom from column II with one atom from column I and one atom from column III.28,29 Our compound CuMg2InS4 has three crystal structures: firstly, a tetragonal structure with a KS phase (space group I-4; no.79) and a ST phase (space group I-42 m; no. 121) where a = b ≠ c and α = β = γ = 90°; secondly, an orthorhombic structure with a WS phase (space group Pmn21; no.1) where a ≠ b ≠ c and = β = γ = 90°; and finally, a Pc structure (space group Pc; no.7) where a ≠ b ≠ c, α = γ = 90°, and β ≠ 90°. A system’s overall energy, or more commonly, the difference in energy between distinct phases, can provide valuable insights into its properties. To gain a better understanding of our compound, CuMg2InS4, we fitted the change in total energy with respect to the volume for its four phases with the Birch–Murnaghan equation of state.30 Based on our calculations, the energy order of the phases for CuMg2InS4 is WS < Pc < ST < KS, indicating that the WS phase in the most stable (see Fig. 1). Conversely, the KS structure has the highest total energy, suggesting that it is the least energetically stable. Table I summarizes the lattice constants, equilibrium volume, bulk modulus, and pressure derivative of the WS, Pc, ST, and KS phases of the CuMg2InS4 . and Table II presents the relaxed atomic positions of the atoms in the structural ground phase of the CuMg2InS4, showing good agreement between the results obtained using the FP-LAPW and DFT-D3 approximations. As there is currently no available experimental or theoretical data with which to compare, our findings can serve as a useful reference for guiding future research on this compound.

Fig. 1
figure 1

(Color online) Calculated energy versus volume, using FP-LAPW, for KS, WS, ST, and Pc phases of CuMg2InS4 compound.

Table I Lattice parameters a (Å), b/a, c/a, bulk modulus B (in GPa), its derivative (B'), and formation energy E formation (in eV/atom) for KS, WS, ST, and Pc phases of the CuMg2InS4 compound
Table II Calculated atomic positions for the structural ground phase (WS phase) of CuMg2InS4

Formation energy is a measure of the stability of a crystal phase relative to its constituent elements in their standard states.31 A lower formation energy indicates greater stability, suggesting that the phase is more likely to occur under given conditions. Based on the calculated formation energies, as shown in Table I, the WS phase has the lowest formation energy, followed by the ST, Pc, and finally KS phases, indicating that WS is the most stable phase while Pc is a less stable one.

Mechanical Properties

Stress tensors were calculated for the WS phase of the CuMg2InS4 compound to analyze its mechanical stability and determine other mechanical properties. Due to its crystalline symmetry, the number for \({C}_{ij}\) constants in this phase has been reduced to nine independent elastic constants, namely C11, C12, C13, C22, C23, C33, C44, C55, and C66.32 Other mechanical properties, such as the bulk modulus (B), shear modulus (G), Young’s modulus (E), and Poisson’s ratio (v), can be computed using the elastic constant through the Voigt–Reuss–Hill approximation. These properties can be expressed as33,34,35:

$${B}_{V}=\frac{1}{9}({C}_{11}+2{C}_{12}+2{C}_{13}+{C}_{22}+2{C}_{23}+{C}_{33}$$
(1)
$${B}_{R}=\frac{1}{\left({S}_{11}+{S}_{22}+{S}_{33}\right)+2({S}_{12}+{S}_{13}+{S}_{23})}$$
(2)
$${G}_{V}=\frac{1}{15}({C}_{11}-{C}_{12}-{C}_{13}+{C}_{22}-{C}_{23}+{C}_{33}+3{C}_{44}+3{C}_{55}+3{C}_{66})$$
(3)
$${G}_{R}=\frac{15}{4\left({S}_{11}+{S}_{22}+{S}_{33}\right)-4\left({S}_{12}+{S}_{13}+{S}_{23}\right)+3({S}_{44}+{S}_{55}+{S}_{66})}$$

where \({S}_{ij}\) represents the elastic compliance constants, which are the inverse matrix of \({C}_{ij}\). The Hill model calculates the shear modulus and bulk modulus as the arithmetic means of the Voigt and Reuss bounds36,37:

$$B=\frac{{B}_{V}+{B}_{R}}{2}$$
(4)
$$G=\frac{{G}_{V}+{G}_{R}}{2}$$
(5)

To calculate the values of v and E, the following equations are utilized38:

$$E=\frac{9BG}{3B+G}$$
(6)
$$\nu =\frac{3B-2G}{2(3B+G)}$$
(7)

The results obtained from the FL-APW and DFT-D3 methods are presented in Table III. It is evident that the values obtained from the FP-LAPW method closely match those obtained from the DFT-D3 method, thereby indicating the reliability of our calculations. Furthermore, all of the calculated elastic constants are positive, and they satisfy all mechanical stability criteria39,40:

$$ \begin{aligned} & C_{11} > 0; C_{11} C_{22} > C_{12}^{2} \\ & C_{11} C_{22} C_{33} + 2C_{12} C_{13} C_{23} - C_{11} C_{23}^{2} - C_{22} C_{13}^{2} - C_{33} C_{12}^{2} > 0 \\ & C_{44} > 0; C_{55} > 0; C_{66} > 0 \\ \end{aligned} $$
(8)
Table III Elastic constants Cij, bulk B, Young's E, and shear moduli G (in GPa), and Poisson ratio ν for the structural ground state of CuMg2InS4

The calculated bulk modulus (B) of CuMg2InS4 is less than 100 GPa, indicating that it can be categorized as a soft material. When comparing this compound with Cu2MgSnS441 and Na2ZnSnS4,11 it is found that Cu2MgSnS4 has the highest bulk, and shear moduli, followed by CuMg2InS4, and then Na2ZnSnS4. Thus, Cu2MgSnS4 is anticipated to be the stiffest among the three compounds. Moreover, the bulk modulus value is greater than the shear modulus G, indicating that the mechanical stability of this material is more dependent on the G parameter.42 Furthermore, the B/G ratio confirms that CuMg2InS4 is ductile (B/G = 1.75). The Young’s modulus E represents the ratio of linear stress to linear strain, and its value for the CuMg2InS4 compound is approximately 64 GPa, demonstrating its stiffness properties.

In Fig. 2, the phonon dispersion curve for our material in its structural ground state is presented. The curve was computed using the pseudo-potential, plane wave methods, and finite difference approach43,44 with GGA, and it is drawn along high symmetry directions within the irreducible Brillouin zone. The positive phonon frequencies in the curve demonstrate the dynamical stability of the material.

Fig. 2
figure 2

Phonon dispersion along the principal high-symmetry directions in the Brillouin zone of CuMg2InS4.

Electronic Properties

Semiconductors are known to have a natural band gap between their valence and conduction bands, making them useful in a variety of applications. Figure 3 displays the band structures of CuMg2InS4 in WS phase at its equilibrium structural lattice parameters, shown along high symmetry directions in the first Brillouin zone. The use of the GGA approximation indicates that CuMg2InS4 has a direct band gap of 1.229 eV at the Γ point. Meanwhile, the TB-mBJ calculation demonstrates that WS has a corrected band gap of 1.672 eV.

Fig. 3
figure 3

(Color online) Calculated band structures, along the principal high-symmetry directions in the first Brillouin zone of the WS phase for the CuMg2InS4 compound, by (a) GGA, and (b) GGA + mBJ approximations.

The electronic states that comprise the estimated energy bands of CuMg2InS4 can be observed from the corresponding total density of states and partial density of states in an energy range of − 8 eV to 8 eV, as shown in Fig. 4. The valence band (VB) is composed of three distinct regions, labeled VB1, VB2, and VB3, which are situated in different energy ranges. The lowest energy region, VB1, exists between − 6 eV and − 5.5 eV, and is comprised of hybridized S-p and In-s states. The S-p states are mainly responsible for the group of valence bands (VB2) which exist between − 4.8 eV and − 2.3 eV. Finally, the highest energy bands (VB3), ranging from − 0.99 to 0 eV, are dominated by Cu-d and S-p states. The forbidden band widths between VB1 and VB2 and between VB2 and VB3 are found to be 0.66 eV and 0.85 eV, respectively. The conduction band (CB) can be divided into two distinct regions, with a forbidden band width of 0.46 eV. In the lower region of the conduction band (CB1) ranging from 1.80 eV to 2.61 eV, the contribution from In-S states is significant, whereas, in the higher energy region (CB2) from 3.1 eV and above, the contribution from In-p states is dominant.

Fig. 4
figure 4

(Color online) Calculated total and partial densities of states for the WS phase of the CuMg2InS4 compound, by (a) GGA, and (b) GGA + mBJ approximations.

The highest VB can be mainly attributed to the anti-bonding component of the p-d hybridization between the anion S and the cation Cu, while the lowest CB is primarily dominated by the anti-bonding component of the s-p hybridization between the cation In and anion S. To deepen our comprehension of these bonds, we have conducted a thorough analysis of the electron localization function (ELF) along the plane (001). This comprehensive investigation aims to provide valuable insights into the nature and characteristics of chemical bonding.45 In Fig. 5, it is evident that there exists an observable antibonding interaction between the sulfur (S) atom (depicted in yellow) and the copper (Cu) atom (depicted in blue). Likewise, a bonding interaction is also present between the indium (In) atom (depicted in purple) and the sulfur (S) atom.

Fig. 5
figure 5

(a) Atomic structure and (b) ELF analysis in the plane (001).

Optical Properties

Dielectric Function

To explain the linear response of a system to electromagnetic radiation, which is related to photon–electron interactions,46 a complex dielectric function can be defined as a three-dimensional tensor:

$${\varepsilon }^{\alpha \beta }\left(\omega \right)={\varepsilon }_{1}^{\alpha \beta }\left(\omega \right)+i{\varepsilon }_{2}^{\alpha \beta }\left(\omega \right)$$
(9)

Two types of contributions to \({\varepsilon }^{\alpha \beta }\left(\omega \right)\) are intra-band and inter-band transitions. Intra-band transitions are only relevant for metals, while inter-band transitions can be further divided into direct and indirect transitions. The imaginary part of the dielectric function \({\varepsilon }_{2}(\omega )\), is determined using momentum matrix elements between the occupied and unoccupied states for inter-band transitions.3,7:

$${\varepsilon }_{2}\left(\omega \right)=\frac{V{e}^{2}}{2\pi \hslash {m}^{2}{\omega }^{2}}\int {d}^{3}k {\sum }_{nn^{\prime}}{\left|\langle kn|p|k{n}^{\prime}\rangle \right|}^{2}{f}_{kn}\left(1-{f}_{k{n}^{\prime}}\right)\delta ({E}_{kn}-{E}_{kn^{\prime}}-\hslash \omega )$$
(10)

where \(e, V,|kn>, {f}_{kn, },\hslash \omega \) and m are the electronic charge, unit cell volume, momentum operator k, crystal wave function n, Fermi distribution function, energy of the incident photon, and electron mass, respectively. This equation considers both intra-band and inter-band transitions, with the latter divided into direct and indirect transitions. The momentum matrix elements between the occupied and unoccupied states are used to determine the imaginary part of the dielectric function. To determine the real part \({\varepsilon }_{1}(\omega )\), the Kramers–Kronig relationship can be used4:

$${\varepsilon }_{1}\left(\omega \right)=1+\frac{2}{\pi }M{\int }_{0}^{+\infty }\frac{{\varepsilon }_{2}(\omega )}{{\omega }^{2}}d\omega $$
(11)

where M is the integral’s principal value. Once the complex dielectric function is established, all other frequency-dependent optical constants can be obtained. Notable optical functions such as reflectivity \(R(\omega )\), absorption coefficient \(\alpha (\omega )\), refractive index \(n(\omega )\), and extinction coefficient \(K(\omega )\) are expressed by:

$$\alpha \left(\omega \right)=\sqrt{2}\omega \left[\sqrt{{\upvarepsilon }_{1}{(\omega )}^{2}+ {\upvarepsilon }_{2}{(\omega )}^{2}}-{\upvarepsilon }_{1}(\upomega )\right]$$
(12)
$$R(\omega )={\left|\frac{\sqrt{{\upvarepsilon }_{1}\left(\upomega \right)+\mathrm{i}{\upvarepsilon }_{2}\left(\upomega \right)}-1}{\sqrt{{\upvarepsilon }_{1}\left(\upomega \right)+\mathrm{i}{\upvarepsilon }_{2}\left(\upomega \right)} +1}\right|}^{2}$$
(13)
$$n\left(\omega \right)=(1/\sqrt{2}{)\left[\sqrt{{\upvarepsilon }_{1}{(\omega )}^{2}+ {\upvarepsilon }_{2}{(\omega )}^{2}}+ {\upvarepsilon }_{1}(\upomega )\right]}^\frac{1}{2}$$
(14)
$${\mathrm{K}\left(\upomega \right)=(1/\sqrt{2})\left[\sqrt{{\upvarepsilon }_{1}{(\omega )}^{2}+ {\upvarepsilon }_{2}{(\omega )}^{2}}-{\upvarepsilon }_{1}(\upomega )\right]}^\frac{1}{2}$$
(15)

This study is focused exclusively on the WS phase, as it is the most stable phase among the ones studied and has a direct band gap. Due to its crystal symmetry, the optical parameter tensors in an orthorhombic structure have three components.

Our analysis, presented in Fig. 6, involved estimating both the imaginary \({\varepsilon }_{2}\) and real \({\varepsilon }_{1}\) components of the dielectric tensor in different directions. We observed that the lattice constants b and c, which correspond to the y and z directions, respectively, are almost equal. Consequently, the dielectric tensor components along these directions are also similar. However, we noted a clear anisotropy between the x direction and the y and z directions, with a value of approximately 1.62, as shown in Fig. 6. The analysis of the imaginary component \({\varepsilon }_{2}\) of the dielectric tensor revealed that the onset of the \({\varepsilon }_{2}\) spectra, which corresponds to the first optical critical points, occurs at 1.11 eV. This value is in good agreement with the fundamental energy gap, indicating the optical transition from the highest valence band state to the lowest conduction band state at Γ. We also observed that the optical spectrum \({\varepsilon }_{2}\) of the CuMg2InS4 compound can be divided into three regions, A, B, and C, these regions displaying three main peaks, along with smaller peaks on their right sides. Furthermore, the peak maximums are located within the energy range of 2–7 eV, with the highest peak maximum observed at around 6.24 eV.

Fig. 6
figure 6

(Color online) Dielectric response of CuMg2InS4 in WS phase: energy-dependent variation of its (a) real and (b) imaginary components.

By analyzing the highest VB and lowest CB of the CuMg2InS4 compound, we can connect the trend observed in the imaginary dielectric function with the density of states and band structure. This allows us to identify the origin of the various inter-band transitions that contribute to the observed peaks in the density of states spectra. Specifically, the peaks in region A can be attributed to the transition from S-p and In-s states of VB1 to the In-s state of CB1, while the peaks in region B arise from the transition between S-p states of VB2 and the Mg-p state of CB2. Finally, the peaks in region C result from the transition between Cu-d and S-p states of VB3 and the Mg-p state of CB2.

In the real part spectrum, we observed major peaks with magnitudes of 9.29, 8.20, and 8.62 for \({\varepsilon }_{1}^{xx}\), \({\varepsilon }_{1}^{yy}\), and \({\varepsilon }_{1}^{zz}\), respectively. These peaks are located at energy values of approximately 2.00 eV, 1.97 eV, and 3.63 eV, respectively. Notably, the \({\varepsilon }_{1}^{yy}\) spectra crosses the zero line four times, whereas both \({\varepsilon }_{1}^{xx}\) and \({\varepsilon }_{1}^{zz}\) cross it two times. This feature is prerequisite for the occurrence of plasma oscillations, but it is not a sufficient condition. Therefore, we need to examine the electron energy-loss function \(L(\omega )\) to determine the associated screened plasma frequencies.47 It is worth noting that the quantity \({\varepsilon }_{1}\) represents the dispersion, and its transition to zero indicates a lack of diffusion, leading to maximum absorption.11 Consequently, the analysis of the absorption coefficient can be used to confirm this.

Absorption Coefficient

One of the most significant coefficients in optical properties is the optical absorption coefficient (α), which measures the amount of energy that an electromagnetic wave loses per unit length when it passes through a medium.48 Figure 7 shows the energy-dependent absorption spectra of CuMg2InS4 up to 27 eV for each polarization direction. The highest absorption points are at 10.78 eV, 10.54 eV, and 8.58 eV for \({\alpha }^{xx}\), \({\alpha }^{yy}\), and \({\alpha }^{zz}\), respectively, coinciding with a sudden drop in ε2.

Fig. 7
figure 7

(Color online) Absorption coefficient for CuMg2InS4 in its WS phase.

We notice that the absorption is maximum in the ultraviolet range, while the recent study of Cu2MgSnS441 coumpound reveals that it exhibits a high absorption coefficient in the visible light range.

Reflectivity

The optical reflectivity, R, represents the proportion of incident power to reflected power. Figure 8 displays the energy-dependent reflectivity of the CuMg2InS4 compound along crystallographic orientations up to 27 eV. Within the energy range of [0, 11 eV], the reflectivity increases with energy and shows almost identical peaks as the \({\varepsilon }_{2}\) curve. The reflectivity reaches its maximum value along each direction between 8 and 15 eV, while the corresponding ε1 remains below zero, indicating a regime dominated by absorption.

Fig. 8
figure 8

(Color online) Optical reflectivity for CuMg2InS4 in its WS phase.

Refractive Index

Figure 9 displays the energy-dependent refractive index n for the three polarizations of CuMg2InS4 in a spectral range of up to 27 eV. The refractive index exhibits remarkable anisotropy, and both components, \({n}^{yy}\) and \({n}^{zz}\), follow a similar pattern in relation to the hypothetical dielectric constant n, with identical primary peak positions. In the visible and infrared spectrum, n increases with energy. The maximal refractive indices of 3.15, 2.94, and 3.0 are observed at 2.02 eV, 4.14 eV, and 4.06 eV, respectively, for \({n}^{xx}\), \({n}^{yy}\) and \({n}^{zz}\). In the ultraviolet region, n decreases significantly after these peaks and reaches its minimum value of 0.36 at 12.77 eV.

Fig. 9
figure 9

(Color online) Refractive index for CuMg2InS4 in itsWS phase.

Thermoelectric Properties

Thermoelectric energy conversion presents a practical solution to address energy challenges, as it enables direct conversion of waste heat energy into electrical energy. At present, research efforts are focused on developing high-performance thermoelectric materials. The performance of these materials is topically evaluated using dimensionless figure-of merit (ZT)49:

$$ZT=\frac{{S}^{2}\sigma }{{\kappa }_{e}+{\kappa }_{L}}T$$
(16)

where \(S, \sigma \) denote the Seebeck coefficient and electrical conductivity, respectively, and their product \({S}^{2}\sigma \) is called the power factor. Additionally,\({\kappa }_{L}\), \({\kappa }_{e}\) , and T represent lattice thermal conductivity, electronic thermal conductivity, and absolute temperature, respectively. Therefore, achieving a high ZT value requires a high absolute value of the Seebeck coefficient, along with low thermal conductivity and electrical resistivity. The complex interdependence between these coefficients makes it challenging to provide straightforward design guidelines for optimizing thermoelectric materials. Singh raised this issue at the onset of the current century.50

Chalcogenides offer several advantages for use in thermoelectric energy converter applications. Firstly, most of them can be easily doped into p- or n-type, which is crucial for constructing thermoelectric devices.51 Secondly, they consist of soft chemical bonds and heavy components, leading to low thermal conductivity.52 Thirdly, they possess a wide range of structures, which make them suitable for modifying thermoelectric performance. In our study, for instance, they exhibit three distinct crystal forms at room temperature and pressure (tetragonal, orthorhombic, and monoclinic). The temperature-dependent transport properties, estimated using GGA PBE + mBJ potential, are plotted in Fig. 10. The Seebeck coefficient depends not only on temperature but also on the effective mass and concentration of the carrier.53

Fig. 10
figure 10

Temperature-dependent transport properties for CuMg2InS4 in the WS phase: (a) Seebeck coefficient (S), (b) electrical conductivity, (c) power factor, and (d) electronic thermal conductivity.

Figure 10a shows that the Seebeck coefficient initially increases rapidly up to 295 K, but then decreases as the temperature rises and the carrier concentration increases, leading to an increase in electrical conductivity and electronic thermal conductivity. The electrical conductivity, illustrated in Fig. 10b, also increases with temperature, indicating semiconductor behavior of our compound. Figure 10c presents the calculated power factor (\({P}_{F}={S}^{2}\sigma /\uptau )\), which reaches a maximum value of 6.1010W/mK2s at temperatures above 400 K. Electronic thermal conductivity (\({\kappa }_{e}/\tau \)) , which is directly linked to electrical conductivity, increases relatively linearly with temperature, as shown in Fig. 10d. CuMg2InS4 compound, similar to Cu2ZnSnSe4 compound,54 exhibits a combination of high electrical conductivity and low thermal conductivity, making it a desirable material for efficient thermoelectric conversion. The high electrical conductivity allows for the efficient movement of charge carriers, enabling the generation of an electric current when subjected to a temperature gradient. In layered structural materials, the phonons are dispersed across the layers, resulting in reduced thermal conductivity. As CuMg2InS4 with a band gap of 1.64 eV exhibits thermoelectric properties, band gap engineering could be interesting in reducing the band deviation and improving thermoelectric performance within the doped system. Hence, our findings are expected to inspire experimentalists to adjust properties through band gap engineering.

Piezoelectricity and Macroscopic Static Dielectric Tensor Ionic Contribution

Piezoelectricity is the ability of material to generate an electrical charge in response to an applied mechanical stress, or to generate a mechanical deformation in response to an applied electric field. The piezoelectric response is dependent on the crystal structure of the material, and chalcogenides are particularly interesting because they can exhibit piezoelectricity despite having a non-centrosymmetric crystal structure.

One example of chalcogenide with piezoelectric properties is the binary compound Bi2Se3 which has a layered crystal structure and exhibits strong piezoelectricity along the c-axis. This material had been investigated for its potential applications in energy harvesting and sensing.10 Other chalcogenides, such as binary chalcogenides like MoS2 and WS2 and WS, have also been shown to exhibit piezoelectricity, although the magnitude of the effect may be weaker. These materials are of interest for applications such as sensors, actuators, and energy-harvesting devices.29

Overall, the study of piezoelectricity in chalcogenides in an active area of research, and further exploration of these materials could lead to the development of new technologies and devices. Our compound CuMg2InS4 belongs to the mm2 class and exhibits five nonzero components, namely e15, e24, e31, e32, and e33as presented in Table IV

Table IV Calculated piezoelectric coefficients eij (C/m2)

These values represent the material’s ability to generate an electrical charge in response to mechanical stress or strain in different directions. The values of e15, e24, and e31 are relatively high, indicating a strong piezoelectric response in these directions. The magnitude of the e32 coefficient is also significant, though slightly lower than the other three coefficients. The value of e33 is negative and relatively large, which suggests that the electrical charge generated is in the opposite direction to the applied mechanical stress. The values of the coefficients depend on the crystal structure and composition of the material. The obtained values of the piezoelectric coefficients, e15, e24, and e31, suggest that the studied compound shares similar piezoelectric properties to Cu2ZnSnS4 . Both compounds possess a non-centrosymmetric structure, which enables the generation of piezoelectricity in the same directions. This similarity in their piezoelectric properties underscores the potential for these materials to be utilized in analogous applications requiring strong and effective piezoelectric behavior.55 Overall, the obtained values of the piezoelectric coefficient suggest that CuMg2InS4 has a strong and complex piezoelectric response that could make it suitable for a range of different applications. However, the suitability of the material will depend on factors such as its mechanical and thermal properties, as well as the specific requirements of the application.

The macroscopic static dielectric tensor describes the response of material to an external electric field, and it can be decomposed into electronic and ionic contribution. The ionic contribution to the macroscopic static dielectric tensor (\(\epsilon \)) is related to the polarization of the ions in the crystal lattice. The calculated \(\varepsilon \),, using DFT-D3 method, is

$$\epsilon =\left(\begin{array}{ccc}2.486342& -0.192619& -0.152069\\ -0.192619& 3.110964& 0.221177\\ -0.152069& 0.221177& 3.196729\end{array}\right)$$
(17)

The obtained output gives the ionic contribution to the macroscopic static dielectric tensor. The tensor is a 3 × 3 matrix with elements given in units of F/m, and it describes how the electric field interacts with the ions in the crystal lattice.

The diagonal elements of 2.786342, 3.110964, and 3.196729 correspond to the polarizability of the lattice along the x, y, and z directions, respectively. The off-diagonal elements (− 0.192619, 0.221177, and − 0.152069) correspond to the correlation between the polarizability in different directions. Therefore, these values describe the ionic contribution to the macroscopic static dielectric tensor for CuMg2InS4.

Conclusions

We have presented a comprehension theoretical investigation of the structural, electrical, optical, and thermoelectric properties of CuMg2InS4 within the GGA approximation in the framework of DFT. Our results show that the WS phase is the most energetically and mechanically stable phase of the investigated chalcogenide. The computed band structure and density of states by GGA + TB-mBJ approximation demonstrate that the compound is a direct band gap semiconductor with a band gap of approximately 1.64 eV. The linear optical properties, including the complex dielectric function, refractive index, absorption coefficient, and reflective coefficient, were also analyzed. We found that the TB-mBJ method is more reliable for optical property calculations, and our calculations show that the compound has high absorption, high reflection, and high refraction at different energy levels, indicating its suitability for various optical applications. Regarding the thermoelectric properties, CuMg2InS4 has a low thermal conductivity and a high power factor, making it suitable for thermoelectric applications. Additionally, the results on its piezoelectric coefficients suggest that the material can produce an electric charge when subjected to mechanical stress or strain in various directions. These findings provide a foundation for future experimental investigation of the properties of CuMg2InS4 and its potential applications in various fields.