1 Introduction

The magnetic refrigerator (MR) has become very important as an alternative to gas refrigerator because of its low consumption of electricity, more environmentally friendly device, lower noise, and larger efficiency in the process of cooling [1,2,3,4,5,6,7]. The basic idea of MR depends on using the magnetocaloric effect-(MCE) in the magnetic materials [7,8,9]. This MCE is an effect that occurs upon a sudden change in the applied magnetic field (ΔH) and is followed by a change in magnetic entropy change (∆SM) and temperature [8,9,10,11,12,13,14]. Subsequently, it is thought that the efficiency of MR can be enhanced by functioning many types of magnets, having MCE at cryogenic and room temperatures such as magnetic alloys, magnetic composites, ferrites, manganites, rare earth-based materials, and other types [15,16,17,18,19].

In a usual MCE, the cooling operation in magnetic material occurs as a result of adiabatic demagnetization that is done by removing the applied magnetic field [20]. Conversely, the magnetic materials can be cooled via the adiabatic magnetization that is done by increasing the external magnetic field. This effect is named inverse MCE [21]. This inverse MCE can occur in superconductors over the temperature range of the diamagnetic-paramagnetic transition. Therefore, it is recommended to use different types of superconductors over various temperature ranges of the diamagnetic-paramagnetic transition in the cryogenic system.

Since the detection of MgB2 as a metallic superconductor material with a transition temperature (Ttrans) of 39 K, there are extreme efforts to detect its performance and improve its physical properties [22,23,24].

MgB2 is used in many significant applications like magnets due to its high proficiency that allows it to trap magnetic fields more than different types of ferromagnets and Ttrans of 39 K, creating it as a practical material for exploiting in the cryogenic system and superconducting magnets for accelerators and superconducting motors in electric aircraft [25]. Furthermore, MgB2 is very important in magnetic resonance imaging-(MRI) systems without using liquid helium (LHe), because the price of LHe is increased rapidly in recent years, causing the MRI system to be very expensive [26]. Yudanto et al. prepared MgB2 superconductors by mechanical alloying at various sintering temperatures, revealing that the content percentage of MgB2 phase in the prepared sample is enhanced and more than 90% in samples sintered at temperatures of 850 °C and 900 °C [27]. Furthermore, they have revealed that the behavior of MgB2 as a superconductor was enhanced in samples sintered at temperatures of 850 °C and 900 °C. From these noteworthy results, its purpose is to investigate the MCE of MgB2 in this work. In this research, a phenomenological model (PM) was used to deduce the thermomagnetic properties of MgB2 by simulating the M(T) curves, concluding ∆SM, heat capacity change (\(\Delta \, C_{P,H}\)), and relative cooling power (RCP).

2 Theoretical Aspects of MCE

According to PM [28,29,30,31,32], the magnetization (M) versus temperature (T) of MgB2 through the magnetic transition can be simulated by:

$$ M = \frac{\Delta M}{2}\left[ {\tanh (A(T_{{{\text{trans}}}} - T))} \right] + BT + C $$
(1)

where, \(\Delta M = M_{i} - M_{f}\) (\(M_{i}\) and \(M_{f}\) are the initial and final values of the magnetization at the diamagnetic-paramagnetic transition region, respectively, as shown in Fig. 1), \(A = \frac{{2(B - S_{c} )}}{\Delta M}\), B is the average of (\(\frac{{{\text{d}}M}}{{{\text{dT}}}}\)) at diamagnetic state, Sc is the maximum value of \(\frac{{{\text{d}}M}}{{{\text{dT}}}}\) and \(C = (\frac{{M_{i} + M_{f} }}{2}) - BT_{{{\text{trans}}}}\). In this work, we can observe \(M_{f} \approx 0\). Then \(\Delta M = M_{i}\).

Fig. 1
figure 1

Temperature dependence of magnetization in constant applied field

3 Results and Discussion

The open symbols and solid lines indicate the experimental data of M(T) curves for MgB2 in Ref. [27] and the simulated data using Eq. (1), respectively. The MgB2 samples that were sintered at temperatures of 700, 800, 850, and 900 °C are named MB600, MB700, MB800, MB850, and MB900, respectively, as depicted in Fig. 2.

Fig. 2
figure 2

Magnetization vs. temperature for MgB2 in 0.01 T applied magnetic field

There is a convincing agreement between the experimental and simulated M(T) for MgB2 under 0.01 T magnetic field, deducing that PM is a suitable model for fitting M(T) curves for MgB2. MgB2 displays a sharp transition from the diamagnetic state to the paramagnetic state. This sharp transition allows the \(\Delta S_{M}\) value of MgB2 to be maximized but it is covering low-temperature range. This \(\Delta S_{M}\) of MgB2 under an adiabatic magnetic field shift of 0.01 T can be evaluated as follows [28, 29]:

$$ \Delta S_{M} = 0.01\left( { - \frac{{M_{i} }}{2}A{\text{ sech}}^{{2}} (A(T_{{{\text{trans}}}} - T)) + B} \right) $$
(2)

A maximum of \(\Delta S_{M}\) (∆SMax) can be determined as follows:

$$ \Delta S_{{{\text{Max}}}} = 0.01\left( { - \frac{{M_{i} }}{2}A \, + B} \right) $$
(3)

The rise in sintering temperature causes the particle size increase in samples due to grain growth. Also, the saturation magnetization and transition temperature increase with a particle size which improves the magnetic properties. The Ttrans increases with sintering temperature and the intensity of main diffraction peaks increase and FWHM decreases, clearly signifies that the crystallinity of MgB2 is enhanced [33].

Figure 3 shows the simulated temperature dependence of \(\Delta S_{M}\) for MgB2 under an adiabatic magnetic field shift of 0.01 T, calculated by using Eq. (2). This diamagnetic-paramagnetic transition leads to an increase in the magnetic spin disorder causing \(\Delta S_{M}\) and \(\Delta S_{M}\) to reach a peak value at Ttrans.

Fig. 3
figure 3

∆SM versus temperature for MgB2 in ΔH of 0.01 T

It is clear that the MB700 sample has the lowest value of \(\Delta S_{{{\text{Max}}}}\) due to its MgO content, which is higher than the MgO content of other samples [34]. Furthermore, the MB700 sample has remarkable defects that are detected from the values of the critical temperature gap and residual resistivity ratio [35, 36]. There is a required parameter called RCP which is a measure of the ability of a material to carry heat at a relatively high-temperature difference between the hot and cold sinks in the cycle of an ideal MR. RCP of MgB2 can be given by the ∆SMax and full-width at half-maximum (\(\delta {\text{T}}_{{{\text{FWHM}}}}\)) of the ∆SM curve as follows:

$$ {\text{RCP}} = \Delta S_{{{\text{Max}}}} (T,H_{\max } ) \times \delta {\text{T}}_{{{\text{FWHM}}}} $$
(4)

where \(\delta {\text{T}}_{{{\text{FWHM}}}}\) can be obtained as follows:

$$ \delta {\text{T}}_{{{\text{FWHM}}}} = \frac{2}{A}{\text{cosh}}^{{ - 1}} \left( {\sqrt {\frac{{2AM_{i} \, }}{{AM_{i} \, + 2B}}} } \right) $$
(5)

In conclusion, when using different magnetic fields, magnetism and entropy will be enhanced with different calcination temperatures, which is in agreement with [37,38,39,40].

As shown in Table 1, the values of δTFWHM and RCP change with sintering temperature, indicating the RCP of MgB2 can be tailored with sintering temperature.

Table 1 The MCE parameters for MgB2 samples and other magnetocaloric materials in low applied magnetic field changes

The behavior of the \(\Delta \, C_{P,H}\) curve of MgB2 under ∆H of 0.01 T can be predicted using the PM model [28,29,30] as follows:

$$ \Delta \, C_{P,H} = - 0.01 \, TA^{2} M_{i} {\text{ sech}}^{{2}} (A(T_{{{\text{trans}}}} - T)) \, \tanh (A(T_{{{\text{trans}}}} - T)) $$
(6)

Figure 4 shows the simulated ∆CP,H versus temperature for MgB2 samples under ∆H = 0.01 T. The simulated \(\Delta \, C_{P,H}\) deviated from positive values to negative values around \(T_{{{\text{trans}}}}\).

Fig. 4
figure 4

∆CP,H versus temperature for MgB2 in ΔH of 0.01 T

For further details, the refrigerant capacity (RC) is an important parameter to evaluate the efficiency for MgB2 samples as effective materials in MR. RC was calculated as follows [29, 30]:

$$ RC = \int\limits_{{T_{C} - \frac{{\delta {\text{T}}_{{{\text{FWHM}}}} }}{2}}}^{{T_{C} + \frac{{\delta {\text{T}}_{{{\text{FWHM}}}} }}{2}}} {\Delta S_{M} {\text{dT}}} $$
(7)

It is clear that from Table 1, ∆CP,H(max), and RC show an increase with increasing sintering temperature. This is due to MgB2 content going on to grow while MgO content decreases with increasing sintering temperature [27].

Table 1 shows also comparisons between MCE parameters of MgB2 samples and corresponding ones of other compositions in previous works under low values of magnetic field variation. The MCE parameters of MgB2 samples are significantly larger, and comparable with some MCE parameters of La1-xCdxMnO3, La1.25Sr0.75MnCoO6, Gd1−xCaxBaCo2O5.5, Ni58Fe26Ga28, Ni2+xMn1−xGe, Ge0.95Mn0.05 Films, and (001)-oriented MnAs films as shown in Table 1 [41,42,43,44,45,46,47]. Finally, the combination of MCE and the electrocaloric effect creates opportunities for real-world uses of contemporary refrigeration technology [48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80].

4 Conclusion

A detailed investigation of MCE for MgB2 samples has been done via PM, considering the effect of the sintering temperature on MCE. The results of simulation show that this PM is a valuable model for the calculation of thermomagnetic properties for MgB2 samples in the temperature range of the diamagnetic-paramagnetic transition, confirming MCE of MgB2 samples is of inverse type. Moreover, the MCE for MgB2 samples is compared with those of some other reported magnetic materials, concluding that MgB2 samples could be a promising sharing candidate for MR at cryogenic temperatures. This research will be extended in the future to optimize the magnetic properties of MgB2 samples using a variety of external effects.