1 Introduction

Although mechanical vapor compression has been the dominant cooling technology for the past century [1], it still faces a number of challenges related to its environmental footprint. For instance, the phase-out of refrigerants with ozone depleting and global warming potentials brought about a more widespread use of flammable substances, which pose a new set of concerns, restrictions and additional technological challenges for consumer applications [2, 3].

Magnetic refrigeration (MR) is an emerging cooling technology which does not rely on hazardous fluids. In MR, the temperature of a magnetocaloric material (MCM) changes as a result of cyclical changes in the applied magnetic field due to the so-called magnetocaloric effect (MCE). The magnitude of the MCE depends on material properties, magnetic field variation and temperature, and it is maximum at the Curie temperature of the material [4, 5]. Applications of the MCE at near room-temperature are not restricted to cooling applications [6, 7]; it can also be applied to the development of thermomagnetic motors [8, 9].

For operating temperatures typical of household cooling applications, the MCE is of the order of 2–5 K/T. To amplify this temperature change, heat regeneration is usually employed [5]. Active magnetic regenerators (AMR) are thermal devices in which the magnetocaloric material is packed as a porous matrix subjected to a periodic flow of an aqueous heat transfer fluid. The flow is synchronized with successive magnetization and demagnetization steps of the MCM in the porous bed to produce a refrigerating effect. Thus, the AMR is essentially a cascade of infinitesimal “layers” of MCM that are activated simultaneously to build up a longitudinal temperature profile in the matrix. The layers can be made of the same material, resulting in a homogeneous regenerator. However, given the dependence of the MCE on temperature, it is desirable to build multilayer regenerators, where each adjacent layer has a slightly different composition that will function around its own Curie temperature, maximizing the magnetocaloric effect of each portion.

A typical AMR cycle is comprised of the following steps: (1) The magnetic circuit magnetizes the MCM, thereby increasing its temperature due to the MCE; (2) during the cold blow, cold fluid previously in thermal contact with the low-temperature source flows through the warm bed, absorbs part of its energy and releases it as heat to the high-temperature sink through the hot heat exchanger; (3) the MCM is demagnetized and cooled down as a result; (4) as the fluid flow is reversed (hot blow), it releases energy to the bed, and decreases its temperature so it can absorb the thermal load at the cold heat exchanger in contact with the low-temperature source. Different cycles can be devised by changing the duration and synchronization between the two cycle characteristic waveforms:

  1. 1.

    The applied magnetic field profile, which describes the oscillating magnetic field over one regenerator;

  2. 2.

    The fluid flow profile, which describes the time-variation of flow rate through one bed.

Fluid flow profiles can be more easily investigated experimentally, as no changes in the fluid flow hardware are generally required, provided that a reliable and flexible valving system is in place. In particular, the effect of the duration of the fluid blows has been extensively investigated [10,11,12]. There appears to be a consensus in the literature that the cooling capacity of magnetic refrigerators can be increased by displacing the fluid during periods where the magnetic field is at its extreme values.

Controlling the duration of the fluid blows can be achieved with the use of solenoid valves; a model for a digital hydraulic system and a calculation of valve power has been presented in Refs. [13, 14]. An application of electronic valves in AMR devices has been presented in Ref. [15], using the control logic (for synchronizing the valve operation with the magnetic profile) described in Ref. [16].

In contrast, because of the complexities involved in designing and fabricating magnetic circuits, the applied magnetic field profiles (or simply the magnetic waveforms) are much less studied and are usually investigated in the context of their synchronization with the fluid flow profile using numerical analysis. Considering a trapezoidal magnetic profile and a square fluid flow waveform, one of such analyses showed that small delays between the increase of the magnetic field and the start of the fluid flow are beneficial for the cooling capacity, as they assure that the solid is fully magnetized before initiating its energy transfer with the fluid [17]. To the authors’ knowledge, Ref. [18] was the only work to experimentally vary the magnetic profile, by controlling the rotation of magnetic cylinders. They also showed that the cooling capacity of an AMR device depends on the time lag between magnetization and fluid flow.

If the time delay between magnetization and fluid displacement is further increased so that the fluid flow period can coincide with different stages of the magnetic profile, different thermodynamic cycles can be obtained with different performance trends; the Brayton AMR cycle (explained previously) yields the highest cooling capacities, while the Ericsson AMR cycle—with isothermal (de)magnetization steps—yields the highest values of the coefficient of performance [19]. This conclusion was confirmed by a more extensive numerical analysis in Ref. [5], which also varied the amplitude of the trapezoidal magnetic profile and proposed magnetic circuit designs capable of generating such profiles. Reference [20] carried out a numerical comparison of the square wave (step change), sinusoidal and rectified cosine magnetic profiles for a sinusoidal fluid profile and concluded that the cooling capacity and maximum temperature spans are maximal for the instantaneous magnetic profile.

As previously noted, the fluid flow profile is implemented with a proper design of the fluid flow system, while the magnetic profile is an important input when designing a magnetic circuit [21]. With the goal of AMR design in mind, none of the works revised in this paper considered different shapes and amplitudes of the magnetic field waveform. Regarding shape, the combination of a trapezoidal magnetic profile and an instantaneous fluid flow profile currently prevails in the literature [17, 18, 22], and this is also the situation investigated in the present paper. However, sinusoidal magnetic profiles can be achieved with more compact systems [23], and their generation and impact on AMR performance have been investigated in our group [24, 25]. However, no work has investigated how these waveforms, when synchronized with optimized fluid flow profiles, measure up against the instantaneous magnetic profile, which is recognized in the literature as the optimal waveform for when the fluid flow profile is fixed.

As far as the incorporation of the magnetic field waveform in the AMR performance optimization is concerned, the studies published in the open literature can be classified into three categories, namely segregated, semi-segregated and integrated design. In the first category, the magnetic field waveform remains constant (i.e., fixed shape and amplitude) during the AMR optimization. In the semi-segregated approach, parameters associated with the magnetic field waveform are allowed to change, but no consideration is given to the configuration of the magnetic circuit (i.e., magnet materials, geometry, segmentation) needed to generate such waveforms. Finally, in the integrated design approach, the magnetic circuit that generates the waveform is mathematically incorporated in the analysis (through conservation equations and appropriate closure relationships involving the magnetic field), so objective functions may now be formulated involving the mass, size, geometry or material cost of the magnetic circuit. References [26, 27] are examples of segregated AMR optimization. In Ref. [26], single-objective optimization coupled with a dimensionless parametric analysis enabled identifying the utilization factor that optimized the performance of Gd-based AMRs in terms of the temperature span and cooling capacity. Reference [27] introduced a detailed numerical model of a sixteen-layer La–Fe–Mn–Si–H parallel-plate AMR, and coupled it with a DoE-based (design of experiment) optimization method. A square wave magnetic field waveform with a 1.5-T maximum magnetic flux density was applied. Examples of semi-segregated AMR optimization are given in Refs. [28,29,30], where multi-objective optimization techniques were employed to optimize the performance of parallel-plate [30] and sphere packed-bed AMRs [29] using methods such as weighted sum, weighted product and genetic algorithms, among others. A common finding to all of such studies is that no configuration exists which can simultaneously optimize all objectives (e.g., cooling capacity and temperature span), so a compromise is required according to specified design constraints. Finally, in their integrated approach to AMR optimization, Ref. [31] employed a topology-based optimization of the magnetic circuit (using genetic algorithms) to reduce to a minimum the cost of cooling. In this sense, not only the capital costs were considered (using simple prismatic magnet segments in the magnetic circuit), but also the operating costs associated with the AMR itself. More recently, in Ref. [25], a magnetic circuit consisting of concentric Halbach cylinders was analytically modeled and integrated with models for the power expenditure of the flow management system and for the fluid flow and heat transfer in the AMR to determine the geometric characteristics of the latter which maximized its performance. Designer maps, which embodied the existing trade-offs between the system variables, provided easy visual access to the regenerator dimensions which maximized the cooling capacity or the COP.

The present work complements the previously mentioned studies by investigating the performance of a magnetic refrigerator subjected to different magnetic profile waveforms. The cooling capacity and the COP are calculated taking account of the magnetic profile parameters, while also considering how the AMR geometry affects the performance parameters in conjunction with the magnetic profile. To simplify the analysis, the shape of the fluid flow waveform is assumed fixed, but some of its parameters are also varied. To emulate constraints on an operating point of actual magnetic refrigeration devices, the temperature span is kept fixed, so a few comments are made regarding the second-law efficiency.

2 Materials and methods

As explained before, we performed numerical simulations using a previously developed AMR model, varying the profile-specific and geometric parameters. We also implemented a model to calculate the power consumption of a novel fluid management system, which is a topic not yet extensively studied in the literature. The output variables from this integrated model are the cooling capacity, the several power contributions (the magnetic power to magnetize the material, the pumping power to overcome pressure drop in the regenerator and the power to actuate the electronic valves) and the coefficient of performance (COP).

2.1 AMR model

2.1.1 Governing equations

Simulations were performed using a one-dimensional AMR mathematical model, implemented using the finite volume method [32]. The model solves momentum and energy balance equations for the solid and fluid phases, represented by indices “s” and “f,” respectively. The model geometry is shown in Table 1 and assumes that the regenerator is composed of monodisperse packed spheres with porosity \(\varepsilon\).

Fig. 1
figure 1

AMR model geometry

The momentum equation for the fluid domain is given by:

$$\begin{aligned} \frac{\rho _{\mathrm {f}}}{\varepsilon } \frac{\partial V_z}{\partial t}= -\frac{\partial P}{\partial z} - \frac{\mu _{\mathrm {f}}}{K} V_z - \frac{c_{\mathrm {E}} \rho _{\mathrm {f}}}{K^{1/2}} \left| V_z\right| V_z \end{aligned}$$
(1)

where the macroscopic inertial term on the left-hand side is balanced with the pressure gradient, Darcy stress and Forchheimer drag [33]. The momentum equation is solved for the time-dependent uniform fluid velocity \(V_z\) through the bed.

The energy equation for the fluid phase can be written as:

$$\begin{aligned} \begin{aligned} \rho _{\mathrm {f}} c_{p,\mathrm {f}} \left( \varepsilon \frac{\partial T_{\mathrm {f}}}{\partial t} + V_z\frac{\partial T_{\mathrm {f}}}{\partial z}\right) =&-\hbar _{\mathrm {sf}} \beta \left( T_{\mathrm {f}} - T_{\mathrm {s}}\right) \\&+ \left| V_z\frac{\partial P}{\partial z}\bigg |_f \right| \\&+ \varepsilon \left( k_{\mathrm {f}}^{\mathrm {eff}} +\rho _{\mathrm {f}} c_{p,\mathrm {f}} D_{\mathrm {ld}}\right) \frac{\partial ^{2}T_{\mathrm {f}}}{\partial z ^{2}} \\&+ \dot{q}_{\mathrm {csg}} \end{aligned} \end{aligned}$$
(2)

where the left-hand side includes the inertial and advection terms, and the right-hand side includes terms for the solid-fluid heat transfer, viscous dissipation, heat conduction, porous-media dispersion and casing losses.

The energy equation for the solid phase is written as:

$$\begin{aligned} \rho _{\mathrm {s}} c_{\mathrm {s}}(1 - \varepsilon )\frac{\partial T_{\mathrm {s}}}{\partial t} = \hbar _{\mathrm {sf}}\beta (T_{\mathrm {f}}-T_{\mathrm {s}}) + (1-\varepsilon )k_{\mathrm {s}} ^{\mathrm {eff}}\frac{\partial ^{2}T_{\mathrm {s}}}{\partial z^{2}} \end{aligned}$$
(3)

where the terms represent, respectively, inertia, solid-fluid heat transfer and heat conduction.

Initial and boundary conditions, closure relations for the porous media terms, solution methods and convergence criteria and analyses are discussed in detail in [32]. This AMR model solves the above equations for one regenerator operating between given source temperatures (assuming ideal heat exchangers in contact with the thermal reservoirs), during one full cycle (hot and cold blows and magnetization and demagnetization periods), given specified operating conditions (to be discussed later).

The casing heat transfer term \(\dot{q}_{\mathrm {csg}}\) in Eq. 2 is calculated solving the heat conduction equation in the regenerator casing [32]. It can be neglected in some circumstances if an insulating casing material is assumed, which greatly simplifies the analysis.

2.1.2 Fluid flow profile modeling

The pressure gradient in Eq. 1 is modeled as:

$$\begin{aligned} -\frac{\partial P}{\partial z} = \rho _{\mathrm {f}} A_{\mathrm {t}} g(t) \end{aligned}$$
(4)

where \(g(t)\) is a dimensionless function that expresses the mathematical waveform of the pressure gradient, and \(A_{\mathrm {t}}\) is its amplitude, adjusted in a convergence loop. In this loop, the mass flow rate calculated in terms of the Darcy velocity from Eq. 1 is compared with the input mass flow rate until convergence is obtained.

The canonical fluid flow profile considered in this work is the square wave or instantaneous profile, because of the instantaneous change in flow rate, as shown in Fig. 2.

Fig. 2
figure 2

Instantaneous fluid flow profile. Adapted from [25]

The instantaneous mass flow rate, \(\dot{m}_{\mathrm {f}}(t)\), is defined over a cycle with a period \(\tau\), and represents the fluid flow through a given regenerator bed. The so-called hot cycle, during which the MCM is magnetized, occupies the time interval \(0 \le t < \nicefrac {\tau }{2}\), while the cold cycle lies between \(\nicefrac {\tau }{2} \le t \le \tau\). The flow profile oscillates between two plateaus of equal magnitude \(\dot{m}_{\mathrm {f,max}}\) and opposite directions, which are centered in each half-cycle. During the hot cycle, the cold blow period is \(\tau _{\mathrm {CB}}\), and during the cold cycle the hot blow period is \(\tau _{\mathrm {HB}}\). If balanced flow exists, then \(\tau _{\mathrm {CB}} = \tau _{\mathrm {HB}}\).

During each half-cycle, there are periods without fluid flow defined as:

$$\begin{aligned} \tau _{\mathrm {0,HC}}= & {} \frac{\nicefrac {\tau }{2} - \tau _{\mathrm {CB}}}{2} \end{aligned}$$
(5)
$$\begin{aligned} \tau _{\mathrm {0,CC}}= & {} \frac{\nicefrac {\tau }{2} - \tau _{\mathrm {HB}}}{2} \end{aligned}$$
(6)

where HC and CC stand for hot cycle and cold cycle, respectively.

The fluid flow profile can be mathematically defined as:

$$\begin{aligned} \dot{m}_{\mathrm {f}}(t)= {\left\{ \begin{array}{ll} 0, &{} 0 \le t< \tau _{\mathrm {0,HC}} \\ \dot{m}_{\mathrm {f,max}}, &{} \tau _{\mathrm {0,HC}} \le t \le \nicefrac {\tau }{2} - \tau _{\mathrm {0,HC}} \\ 0, &{} \nicefrac {\tau }{2} - \tau _{\mathrm {0,HC}}< t< \nicefrac {\tau }{2} + \tau _{\mathrm {0,CC}} \\ -\dot{m}_{\mathrm {f,max}}, &{} \nicefrac {\tau }{2} + \tau _{\mathrm {0,CC}} \le t \le \tau - \tau _{\mathrm {0,CC}} \\ 0, &{} \tau - \tau _{\mathrm {0,CC}}< t < \tau \\ \end{array}\right. } \end{aligned}$$
(7)

When the blows have different time durations, the AMR cycle is considered unbalanced, and that is known to have a negative effect on performance [11, 34]. In this work, the blows are always balanced; hence, the blow fraction, i.e., the ratio of blow durations to cycle period [11], can be evaluated as:

$$\begin{aligned} F_{\mathrm {B}} = \frac{2\tau _{\mathrm {B}}}{\tau } \end{aligned}$$
(8)

where \(\tau _{\mathrm {B}}\) is the duration of one blow.

2.1.3 Magnetic profile modeling

The magnetic profile is modeled by a waveform of magnetic field strength, H(t), applied perpendicular to the regenerators, as shown in Fig. 1. The magnetic field is assumed uniform throughout the beds. The applied field is corrected from demagnetization effects to yield the effective field inside the regenerators:

$$\begin{aligned} H^{\mathrm {eff}} = H - N_{\mathrm {D}} M \end{aligned}$$
(9)

where M is the magnetization field of the material, and \(N_{\mathrm {D}}\) is a demagnetization factor.

The magnetocaloric effect is implemented using the so-called discrete approach [35]; every time the magnetic field changes, based on the input magnetic profile, the solid temperature is calculated according to:

$$\begin{aligned} T_{\mathrm {s}}(t + \Delta {}t) = T_{\mathrm {s}}(t) + \Delta {}T_{\mathrm {ad}}\left( T_{\mathrm {s}}(t),H^{\mathrm {eff}}(t),H^{\mathrm {eff}}\left( t + \Delta {}t\right) \right) \end{aligned}$$
(10)

where the adiabatic temperature variation, \(\Delta {}T_{\mathrm {ad}}\), a standard measure of the MCE, is calculated from tabulated experimental data for magnetocaloric materials as function of temperature and effective field [32]. Experimental curves for \(\Delta {}T_{\mathrm {ad}}\) as a function of temperature and magnetic field change can be found in Ref. [36].

The magnetic profiles considered in this work are presented in terms of the flux density \(B = \mu _0 H\), where \(\mu _0\) is the permeability of free space; the magnetic field H is used in the evaluation of the magnetocaloric effect.

The instantaneous (square wave) profile (represented by the subscript “IT”) and the rectified cosine profile (represented by “RC”) are defined solely in terms of the extreme values \(B_{\mathrm {min}}\) and \(B_{\mathrm {min}}\), and are shown in Fig. 3.

$$\begin{aligned} {B}_{\mathrm {IT}}\,(t)= & {} {\left\{ \begin{array}{ll} {B}_{\mathrm {max}}, &{} 0 \le t< \nicefrac {\tau }{2} \\ {B}_{\mathrm {min}}, &{} \nicefrac {\tau }{2} \le t < \tau \\ \end{array}\right. } \end{aligned}$$
(11)
$$\begin{aligned} {B}_{\mathrm {RC}}\,(t)= & {} B_{\mathrm {min}} + \left( B_{\mathrm {max}} - B_{\mathrm {min}}\right) \left|\cos \left( \frac{\pi }{\tau } \left( t - \frac{\tau }{4}\right) \right) \right| \end{aligned}$$
(12)
Fig. 3
figure 3

Instantaneous (“IT”) and rectified cosine (“RC”) magnetic profiles

A suitable approximation of the instantaneous profile is the magnetic ramp profile, shown in Fig. 4, with finite transition times between the levels of constant magnetization. The magnetic profile oscillates between a low value \({B}_{\mathrm {min}}\) and a high value \({B}_{\mathrm {max}}\), and remains at each plateau for a period of \(\tau _{\mathrm {M}}\). The plateaus are balanced and centered at each half-cycle.

Fig. 4
figure 4

Magnetic ramp profile

The ramp period\(\tau _{\mathrm {R}}\) is defined as:

$$\begin{aligned} \tau _{\mathrm {R}} = \frac{1}{4}\left( \tau - 2 \tau _{\mathrm {M}}\right) \end{aligned}$$
(13)

such that there are four ramp periods in one full cycle. The ramp rate, \(\tan \theta _{\mathrm {R}}\), is given by:

$$\begin{aligned} \tan \theta _{\mathrm {R}} = \frac{\left( {B}_{\mathrm {max}} - {B}_{\mathrm {min}}\right) }{2\tau _{\mathrm {R}}} \end{aligned}$$
(14)

The magnetization fraction, \(F_{\mathrm {M}}\), is the fraction of the cycle during which the magnetocaloric material is subjected to a constant magnetic field:

$$\begin{aligned} F_{\mathrm {M}} = \frac{2\tau _{\mathrm {M}}}{\tau } \end{aligned}$$
(15)

The ramp profile (“RM”) can be mathematically defined as:

$$\begin{aligned} {B}_{\mathrm {RM}}(t)= {\left\{ \begin{array}{ll} \nicefrac {\left( {B}_{\mathrm {max}} + {B}_{\mathrm {min}}\right) }{2} + t \tan \theta _{\mathrm {R}} , &{} 0 \le t< \tau _{\mathrm {R}} \\ {B}_{\mathrm {max}}, &{} \tau _{\mathrm {R}} \le t< \nicefrac {\tau }{2} - \tau _{\mathrm {R}}\\ {B}_{\mathrm {max}} - \left( t - \left( \nicefrac {\tau }{2} - \tau _{\mathrm {R}}\right) \right) \tan \theta _{\mathrm {R}} , &{} \nicefrac {\tau }{2} - \tau _{\mathrm {R}} \le t< \nicefrac {\tau }{2} + \tau _{\mathrm {R}} \\ {B}_{\mathrm {min}}, &{} \nicefrac {\tau }{2} + \tau _{\mathrm {R}} \le t < \tau - \tau _{\mathrm {R}}\\ {B}_{\mathrm {min}} + \left( t - \left( \tau - \tau _{\mathrm {R}}\right) \right) \tan \theta _{\mathrm {R}} , &{} \tau - \tau _{\mathrm {R}} \le t \le \tau \\ \end{array}\right. } \end{aligned}$$
(16)

Additionally, the average values of the magnetic field during each half-AMR cycle are considered for comparison between profiles. The average magnetic profile during the hot cycle (\(0 \le t < \nicefrac {\tau }{2}\)) is denoted by \(\overline{B}_{\mathrm {high}}\) and the average during the cold cycle (\(\nicefrac {\tau }{2} \le t < \tau\)) is denoted by \(\overline{B}_{\mathrm {low}}\). For the instantaneous waveform, these average values are identical to the extreme values.

2.1.4 Evaluation of solid and fluid properties

The fluid properties are considered constant in the momentum equation to decouple the solution procedures to determine the velocity and temperature fields. The properties are computed at the average temperature between the hot and cold sources, and are evaluated from interpolation of tables imported from the EES software [37]. In all simulations shown in this work, the heat transfer fluid is a 80/20 vol% mixture of water/ethylene glycol. For the energy equations, the fluid properties are also calculated from tabulated data, but the temperature dependence is considered.

Both single- and multilayer regenerators are considered in this study. Single-layer regenerators are composed of gadolinium (Gd), a benchmark material with a Curie temperature of 290 K. For simplicity, the solid density is assumed constant at \(\rho _{\mathrm {s}} = {7900}\,\mathrm{kg}/\mathrm{m}^{3}\) and the solid thermal conductivity is set to \(k_{\mathrm {s}} = {10.5}\hbox {W}/(\hbox {mK})\). The specific heat capacity of \(\text{ Gd }\) is calculated as a function of temperature and magnetic field based on experimental data, using a bilinear interpolation scheme; more details on the experimental dataset are available in [32].

For the multilayer simulations, gadolinium-yttrium alloys are used, \(\text{ Gd }_{1-x}\hbox {Y}_{x}\), where x is the yttrium fraction. This fraction reduces the Curie temperature of the alloy relative to that of pure gadolinium. Due to the lack of experimental data on the magnetocaloric properties of \(\text{ Gd }_{1-x}\hbox {Y}_{x}\) alloys at the time this analysis was made, a simpler approach was used in which the dependence of magnetization, specific heat capacity and entropy with respect to the magnetic field for alloys with a low yttrium fraction are identical to those of pure gadolinium, but are shifted to a lower Curie temperature (corresponding to the yttrium fraction).

2.1.5 Performance metrics

The AMR model is solved for only one bed, but assumes that the \(N_{\mathrm {reg}}\) identical beds experience the same cycle. Thus, the extensive performance parameters are multiplied by that factor. The cooling capacity is calculated as [32]:

$$\begin{aligned} \dot{Q}_{\mathrm {C}}= N_{\mathrm {reg}}\frac{1}{\tau } \int _{\tau _{\mathrm {HB}}} \dot{m}_{\mathrm {f}}(t) c_{p,\mathrm {f}} \left( T_{\mathrm {C}} -T_{\mathrm {f,CE}} \right) \mathrm{d}{t} \end{aligned}$$
(17)

As pointed out in Ref. [25], since external sources of irreversibility (e.g., heat transfer with a finite temperature difference in the heat exchangers) are ignored and no eddy currents and hysteresis losses are present, the magnetic power required to magnetize the solid refrigerant and produce the MCE in the AMR cycle is given by the product of the Carnot efficiency and the cooling capacity as follows:

$$\begin{aligned} \dot{W}_{\mathrm {mag}}= \dot{Q}_{\mathrm {C}}\frac{T_{\mathrm {H}} - T_{\mathrm {C}}}{T_{\mathrm {C}}} \end{aligned}$$
(18)

Irreversibility due to fluid friction is accounted for in the calculation of the pumping power:

$$\begin{aligned} \dot{W}_{\mathrm {pump}}= N_{\mathrm {reg}}\frac{1}{\tau }\int _0^{\tau }\frac{\dot{m}_{\mathrm {f}}}{\rho _{\mathrm {f}}} \Delta P \mathrm{d}{t} \end{aligned}$$
(19)

where \(\Delta P\) is the total pressure drop through the regenerator (including one hot and one cold blow).

2.2 Hydraulic system and fluid flow profile model

The hydraulic system designed to modulate the fluid flow through different regenerators at different time instants is composed of a pump and a set of electronic valves which can be precisely controlled to yield the desired blow durations. The electrical power consumed by the valve array is computed separately from other work contributions.

In the present analysis, two types of valves are considered. In the first approach, called Type R valves, the model proposed in Ref. [13] is used, assuming that the individual power consumption of each valve is independent of frequency and blow fraction. The valve power, \(\dot{W}_{\mathrm {valve}}\), can be computed as:

$$\begin{aligned} \dot{W}_{\mathrm {valve}}= N_{\mathrm {valve}}F_{\mathrm {B}}\left( \dot{W}_{\mathrm {valve,n}}+ \frac{1}{2}\dot{W}_{\mathrm {relay,n}}\right) \end{aligned}$$
(20)

where \(N_{\mathrm {valve}}\) is the number of valves, \(\dot{W}_{\mathrm {valve,n}}\) is the measured average nominal power for one normally closed electronic valve and \(\dot{W}_{\mathrm {relay,n}}\) is the nominal power for one controlling relay. The factor \(\frac{1}{2}\) is due to two valves being controlled by one relay.

In the second approach, Type Svalves are used, which have a nominal power lower in magnitude, but which depends on the frequency and blow fraction. These valves were experimentally characterized in Ref. [14], where a single valve was attached to a measurement circuit and set to operate for a range of values of blow fraction and frequency; the valve power was calculated from the averaged values of voltage and current after the periodic steady state was reached. From those experiments, the valve power was experimentally correlated as:

$$\begin{aligned} \dot{W}_{\mathrm {valve}}\,[\hbox {W}]= N_{\mathrm {valve}}\left( 0.927 f\,[\hbox {Hz}] + 1.023 F_{\mathrm {B}} + 0.226 f\,[\hbox {Hz}] F_{\mathrm {B}} - 0.037\right) \end{aligned}$$
(21)

Equation (21) was correlated for blow fractions of 50 and 100 % and frequencies in the range of 0.2–1.6 Hz, with an uncertainty on the order of 0.4 W for a single valve. The use of different valve types will be discussed in the Results section.

Independent of the valve type used, it is also assumed that each valve system is capable of producing the fluid flow profile shown in Fig. 2, where the displaced fluid mass during one blow in one regenerator bed is \(\dot{m}_{\mathrm {f,max}} F_{\mathrm {B}} \nicefrac {\tau }{2}\). The utilization factor can then be calculated as:

$$\begin{aligned} \Phi = \frac{\dot{m}_{\mathrm {f,max}} F_{\mathrm {B}} c_{p,\mathrm {f}}}{2 f m_{\mathrm {s}} c_{\mathrm {s}}} \end{aligned}$$
(22)

and in all results shown in this work, the number of valves is calculated as:

$$\begin{aligned} N_{\mathrm {valve}} = 2 N_{\mathrm {reg}} \end{aligned}$$
(23)

2.3 Coefficient of performance and second-law efficiency

The coefficient of performance is calculated as the ratio of the cooling capacity—the main output parameter from the AMR model—and all previously cited power contributions:

$$\begin{aligned} \mathrm {COP}= \frac{\dot{Q}_{\mathrm {C}}}{\dot{W}_{\mathrm {pump}}+ \dot{W}_{\mathrm {mag}}+ \dot{W}_{\mathrm {valve}}} \end{aligned}$$
(24)

The maximum possible COP between the source temperatures is the Carnot COP, calculated as:

$$\begin{aligned} \mathrm {COP}_{\mathrm {Carnot}} = \frac{T_{\mathrm {C}}}{T_{\mathrm {H}} - T_{\mathrm {C}}} \end{aligned}$$
(25)

and the second-law efficiency is defined as:

$$\begin{aligned} \eta _{\mathrm {2nd}}= \frac{\mathrm {COP}}{\mathrm {COP}_{\mathrm {Carnot}}} \end{aligned}$$
(26)

3 Results and discussions

The analysis of the magnetic profiles was performed at two different stages. Initially, the instantaneous (square-wave) and the rectified cosine profiles are compared using a simpler approach (i.e., neglecting casing losses). Later, based on the selection of the most promising magnetic profile, a more in-depth analysis was carried out to determine the optimal geometric and operating parameters of the AMR system.

3.1 Comparison of instantaneous and rectified cosine profiles using a simplified model

At the first stage of the present analysis, the instantaneous and rectified cosine profiles are compared considering a single-layer regenerator without casing losses, using Type R valves. The parameters used in all simulations are presented in Table 1.

Table 1 AMR parameters kept fixed in the simulations with different magnetic profiles

When comparing the performances resulting from the application of the different magnetic profiles, the same average magnetic field during the hot cycle will be considered; this implies a higher peak for the rectified cosine. For the cold cycle, the minimum values for both profiles are the same, as shown in Fig. 5. As a reference, in all simulations, the minimum value for the rectified cosine was fixed at \({B}_{\mathrm {min}} = {0.1 \hbox { T}}\).

Fig. 5
figure 5

Configuration of average and extreme values of the instantaneous and rectified cosine profiles

Simulations were carried out for various values of blow fraction. The rectified cosine profile can benefit from smaller blow fractions that concentrate the flow during the periods of very high and very low fields, thereby increasing the average variation in magnetic field [11]; this is not observed with the instantaneous profile, since the field is constant and reducing the blow fraction will only reduce the period when the fluid is in contact with the warm solid, decreasing the regenerator effectiveness. In this section, all results use the critical value of blow fraction that maximized the cooling capacity: fluid flowing during the entire period for the instantaneous profile, and only during 60 % of the period (the smallest blow fraction tested) for the cosine profile; this latter case is shown in Fig. 6.

Fig. 6
figure 6

Rectified cosine magnetic profile (solid lines) and the instantaneous flow profile with blow fraction of 60 % (dashed lines)

Figure 7 shows the cooling capacity attained by the device at a frequency of 1 Hz for different utilizations. The horizontal axis shows the average field value during the high field region. The instantaneous profile almost always yields a higher performance, and since the average field during the hot cycle (high field stage) is the same, the main difference is due to the low magnetic field levels. In this comparison, the instantaneous profile is capable of keeping a low magnetic field over the entire half-cycle, which is beneficial for performance; as demonstrated in Ref. [20], a higher average magnetic field during the low-field stage increases the solid temperature and consequently results in warmer fluid entering the cold heat exchanger, representing a thermal loss. Analyzing points of different profiles of constant utilization (which should result in the same regenerator effectiveness), for \(\Phi =1.0\) and \(B_{\mathrm {high}} = {1.40}\hbox {T}\), the cooling capacity for the instantaneous profile is \({196.3\,\%}\) higher than for the cosine profile. This results from the fluid being able to cool down to lower temperatures during the low-field cycle, since the cosine profile cannot maintain the field as low as the instantaneous profile (cf. Fig. 5), even with the reduction of blow fraction.

Fig. 7
figure 7

Cooling capacity as a function of the average high magnetic field, for different utilizations. “IT”: instantaneous (blow fraction of 100 %); “RC”: rectified cosine (blow fraction of 60 %)

The only exception in this comparison is observed for the lowest utilization of \(\Phi = 0.2\), where the performance is slightly better for the RC profile. Since the blow fraction for the cosine is smaller, the mass flow rate is higher in the latter for the same utilization [cf. Eq. (12)]. This increases the heat transfer rate, as previously explained—outweighing the effects of the magnetic field.

Also noticeable in Fig. 7 is the nonlinear relationship between cooling capacity and utilization. For instance, for the “RC” profile at the highest magnetic field, the cooling capacity increases when the utilization is raised from 0.2 to 0.6, but then returns to the same levels with a further increase of the utilization to 1.0. Since the frequency is constant in Fig. 7, increasing the utilization means increasing the mass flow rate; initially, this results in higher heat transfer rates due to higher Nusselt numbers, but further increase reduces the effectiveness and amplifies viscous dissipation, to the point where the cooling capacity is null for certain points with the highest utilization.

The same analysis, but in terms of the coefficient of performance, is shown in Fig. 8, where the instantaneous profile yields better results for medium to high levels of utilization. This can be explained based on the behavior of the magnetic, valve and pumping powers shown in Fig. 9 for a fixed utilization of 0.6. As can be seen, the magnetic power only differs between the profiles due to changes in cooling capacity. Also, the valve power is higher for the instantaneous profile since the valves must remain open for longer periods. However, the proportional increase in pumping power, due to larger flow rates when operating with the smaller blow fraction of the “RC” profile, is even higher (than the change in valve power). Although not shown in Fig. 9, the effect of higher utilization levels is to make the pumping power even more relevant; as depicted in Fig. 8, the lowest levels of the coefficient of performance are attained with the smallest blow fraction (for the rectified cosine profile) and higher utilization, corresponding to the highest flow rate levels.

Fig. 8
figure 8

Coefficient of performance as a function of the average high magnetic field, for different values of utilization. “IT”: instantaneous (blow fraction of 100 %); “RC”: rectified cosine (blow fraction of 60 %)

Fig. 9
figure 9

Power contributions as a function of the average high magnetic field, for a utilization of 0.6. “IT”: instantaneous (blow fraction of 100 %); “RC”: rectified cosine (blow fraction of 60 %)

In general, considering target values for the cooling capacity, AMRs operating with the instantaneous magnetic profile lead to better performance results. As can be seen in Fig. 7, an instantaneous profile with the lowest possible value of \(B_{\mathrm {min}}\) and the highest possible value of \(B_{\mathrm {max}}\), with a flow profile occupying the whole cycle with average values of utilization, results in the highest values of cooling capacity among all simulations.

The rectified cosine profile, found in compact systems using Halbach arrays, can surely benefit from reducing the blow fraction, both in terms of cooling capacity and temperature span. However, for the typical parameters evaluated in this paper, even if the blow fraction is optimized for the “RC” profile, the “IT” profile still gives better results.

3.1.1 Analysis of the instantaneous profile

As shown in the previous section, the instantaneous profile generally yields the highest values of cooling capacity. Therefore, in this section, a more detailed analysis of this profile is carried out, where the maximum field is varied, but the minimum value is kept at 0.05 T. Figure 10 shows the cooling capacity as a function of the utilization, for several levels of the maximum magnetic field and two different operating frequencies. Because of the conflict between a low heat transfer rate for flow rates that are too low and losses in regenerator effectiveness in flow rates that are too high, there are critical values of utilization that maximize the cooling capacity, and these critical values increase with the magnetic field. For higher magnetic fields, the increase in the MCE surpasses the loss of effectiveness, and one can go to higher flow rates without losing performance. It can also be seen in Fig. 10 that at higher frequencies the values of cooling capacity are higher, and also the critical values of utilization are lower. However, this is usually achieved at the expense of an even higher power consumption at higher frequencies [38, 39], resulting in a decrease of the coefficient of performance with frequency. Critical values of utilization that maximize the COP (all other parameters fixed) are also observed, but these tend to be smaller than the critical values for cooling capacity; at higher utilization levels, the pumping power increases more rapidly than the cooling capacity.

Fig. 10
figure 10

Cooling capacity as a function of utilization, for various values of the high magnetic field for the instantaneous profile

Fig. 11
figure 11

Performance metrics as a function of the regenerator height (all other parameters were set as in Table 1, for utilization factor of 0.4) for various values of the high magnetic field of the instantaneous profile

The geometric parameters in Table 1 were chosen from preliminary simulations, so they are not optimal. To understand the impact of the regenerator geometry on the system performance with the instantaneous profile, the regenerator height was varied in Fig. 11, and all other parameters from Table 1 were kept fixed and with \(\Phi =0.4\). The height was chosen as the geometric parameter to be varied as it usually represents a design trade-off in magnetic refrigerators [25]: taller regenerator cross sections allow for more magnetocaloric material while reducing the volume of the magnetic circuit (cf. Fig. 12).

As expected, higher magnetic fields allow for smaller regenerators (hence more compact systems) to achieve a desired cooling capacity. For instance, to achieve a capacity of 100 W, increasing the field from 1.0 to 1.2 T results in regenerators that are 36 % smaller. Comparing the results for the cooling capacity and coefficient of performance, the trends are largely the same, as the former is more sensitive to variations in the magnetic field and regenerator height than the components of power; note that increasing the regenerator height increases the mass of magnetocaloric material, hence increasing the cooling capacity, but it also changes the area available for the fluid flow (influencing pumping power) and the demagnetization factor (influencing the magnetic power).

3.2 In-depth analysis of the magnetic ramp profile

Based on the better performance of the instantaneous profile, the ramp profile is a naturally suitable target profile for the design of magnetic refrigerators and will be analyzed in this section, representing the second stage in the analysis of magnetic profiles.

Moving towards a more realistic model, casing losses are included, using the model from Ref. [32]. The bed is enclosed in a solid casing of thickness \(h_{\mathrm {csg}}\), and two air layers of thickness \(h_{\mathrm {air}}\) separate the AMR and its casing from the inner and outer magnet cylinders, as shown in Fig. 12. The optimal design of such magnetic cylinders aiming at a particular magnetic profile will be the subject of future publications.

Fig. 12
figure 12

Model for the casing losses in regenerators

Preliminary analyses carried out in Ref. [40] showed that a stainless steel casing with a thickness of \(h_{\mathrm {csg}} = {0.5}\,{\mathrm{mm}}\) is thick enough to ensure mechanical integrity and easy manufacturing, while being thin enough to accommodate the material with a low thermal conductivity.

In addition, in the present study, an air gap clearance thickness was set at \(h_{\mathrm {air}} = {1} {\mathrm{mm}}\). This value gave rise to a peak in cooling capacity due to the compromise between minimizing losses and maximizing the magnetocaloric mass. The thermophysical properties of stainless steel and air were also obtained with interpolation of tables exported by the EES software [37].

The simulations in this section also use multilayer regenerators. A summary of all parameters adopted in this section, including the Curie temperatures and volumetric fractions (relative to the length of the bed) of each layer, is presented in Table 2; more details on the selection of these parameters are shown in Ref. [41]. In addition, in the following results, Type S valves are used, with valve power calculated by Eq. 21.

Table 2 Fixed parameters for the AMR simulations used in this chapter

Figure 13 shows the two profiles that will be used in this section and how they are synchronized. Regarding the magnetic profile, the magnitude of the high value will be varied to investigate the performance of the AMR system, while the minimum will be kept fixed at \({B}_{\mathrm {min}}= {0.05 \hbox {T}}\).

Fig. 13
figure 13

Comparison between the magnetic ramp profile (solid line) and the instantaneous fluid flow profile (dashed line)

3.2.1 Performance curves for variable blow and magnetization fractions

Figure 14 shows the cooling capacity and coefficient of performance of the AMR system for a fixed utilization factor of 0.4 and for a magnetic profile with a maximum at 1.3 T, for variable blow and magnetization fractions. To facilitate the analysis, the results are plotted in terms of the ratio \(\nicefrac {F_{\mathrm {M}}}{F_{\mathrm {B}}}\), with curves for different values of \(F_{\mathrm {B}}\). It is clear that both the cooling capacity and the coefficient of performance exhibit a peak at \(F_{\mathrm {M}} = F_{\mathrm {B}}\). Moreover, to the right of the peak, i.e., for higher values of \(F_{\mathrm {M}}\), the reduction of both performance metrics is slower, meaning it is better to have a magnetization plateau that is wider than the fluid flow plateau.

The reduction in performance for \(F_{\mathrm {M}} > F_{\mathrm {B}}\) can be explained by an increase in heat leakage through the casing, as the solid begins to lose energy to the environment when the fluid is not flowing. For \(F_{\mathrm {M}} < F_{\mathrm {B}}\), the fluid begins to flow when the solid is not totally warmed up, losing effectiveness, and this effect is amplified with larger blow fraction values; notice that, to the left of the peak, the performance parameters are the lowest for the highest value of \(F_{\mathrm {B}}\).

Fig. 14
figure 14

Performance of the AMR system for various blow and magnetization fractions, utilization of 0.4 and high magnetic field of 1.3 T

The influence of the utilization is demonstrated in Fig. 15, where the cooling capacity is plotted for different utilization factors. For increasing \(\Phi\) in this range, not only do the overall values of cooling capacity increase, but also the importance of choosing the blow fraction becomes clearer. In these ranges of utilization and blow fraction, the cooling capacity increases because the higher transfer rate associated with higher flow rates dominates over the loss of regenerator effectiveness.

Fig. 15
figure 15

Influence of utilization on the cooling capacity of the AMR system for various blow and magnetization fractions, with high magnetic field of 1.3 T

The above results can be evaluated from another point of view with Fig. 16, where the coefficient of performance is plotted as contour levels. This type of map is useful because, since \({B}_{\mathrm {min}}\) and \(\tau\) are fixed, each point in this graph completely characterizes a magnetic ramp profile, and each subplot with fixed \(\Phi\) and \(F_{\mathrm {B}}\) characterizes the fluid flow profile. As expected, the performance increases for the higher values both \({B}_{\mathrm {max}}\) and \(F_{\mathrm {M}}\), where the magnetic ramp profile tends to the instantaneous magnetic profile with a large amplitude. Confirming the previous trends, the results are less sensitive to the magnetization fraction when \(F_{\mathrm {M}} \ge F_{\mathrm {B}}\).

Fig. 16
figure 16

Influence of utilization and blow fraction on the coefficient of performance of the AMR system for varying high magnetic field and magnetization fraction

3.2.2 Geometric analysis of the regenerators using the magnetic ramp profile

All previous results assumed a fixed regenerator geometry, with the goal of identifying the optimal fluid and magnetic profile parameters. It became clear that the magnetization fraction should be as large as possible, but that raises some challenges in realizing abrupt changes in the magnetic field. The value of \(F_{\mathrm {M}} = {70} {\%}\) is then chosen as a compromise, with a corresponding \(F_{\mathrm {B}} = F_{\mathrm {M}}\). The mean value of the utilization factor of \(\Phi = 0.4\) is also chosen as reference in the next results.

Figure 17 shows the cooling capacity, coefficient of performance and second-law efficiency for varying magnetic field and regenerator height. As expected, larger regenerators can produce the desired performance with lower magnetic fields. It can also be seen that this configuration for an AMR system can achieve values of \(\eta _{\mathrm {2nd}}\) compatible with conventional vapor compression systems [42, 43], although these numerical results do not include mechanical losses.

Fig. 17
figure 17

Performance of the AMR with varying regenerator height and high magnetic field, with fixed \(F_{\mathrm {M}} = F_{\mathrm {B}} = {70}{\%}\) and \(\Phi = 0.4\)

4 Conclusions

To the authors’ knowledge, this is the first study where magnetic and fluid flow profiles for an AMR model are mathematically modeled and the model parameters are changed in an integrated and systematic way. The instantaneous (square wave), rectified cosine and ramp magnetic profiles were implemented in an AMR model, together with an instantaneous fluid flow profile, and the profile parameters were varied simultaneously with the regenerator geometric parameters. These waveforms can be found in existing MR devices published in the literature. A valve model was also incorporated into a more realistic computation of the coefficient of performance.

When comparing the instantaneous and the rectified cosine magnetic profiles, the cooling capacity associated with the former can be almost 200 % higher than with the latter, for the same utilization and average high magnetic field and considering optimal blow fractions. The rectified cosine profile suffers from high values of the low magnetic field, and a reduction of the blow fraction up to the minimum tested value of 60 % is not enough to overcome the loss in cooling capacity resulting from this effect.

An analysis of power contributions showed that the cost of the higher cooling capacity for the instantaneous profile is a higher valve power associated with the longer blow duration, dominating the other contributions. However, the coefficient of performance is still higher for the square wave. Hence, even though sinusoidal waveforms can be obtained with more compact systems, step-like variations of high amplitude of the magnetic field are preferred if performance is more critical.

The ramp magnetic profile is a feasible approximation for the instantaneous profile without abrupt changes in the magnetic field plateaus. For an AMR device operating with this profile and the instantaneous fluid flow profile, both cooling capacity and coefficient of performance are maximized if the blow duration is equal to the period of constant magnetic field; if this exact synchronization is not possible, making the magnetization plateau wider than the flow plateau results in a smaller reduction of the performance metrics than in the case where the magnetization plateau is narrower.

With this strategy and using average values of utilization, it is possible to achieve second-law efficiency levels compatible with those of vapor compression systems. Hence, the ramp magnetic profile is identified as a suitable target profile in the design of magnetic circuits for AMR devices.