Introduction

Escalating climate and energy issues make it urgent to develop new cooling technologies with eco-friendliness and high efficiency. The electrocaloric (EC) effect, which elicits a reversible isothermal entropy change (ΔS) or adiabatic temperature change (ΔT) through the easy application and removal of an electric field (E), presents a promising solution1,2,3,4,5,6. The EC effect essentially derives from the polarization change of the polar system3. Among various dielectrics, the polarization of perovskite-type ferroelectric ceramics is readily changed; that is, two polar states can be converted by a relatively low E. Therefore, ferroelectric ceramics are widely investigated for EC refrigeration.

In ferroelectric ceramics, the polarization changes as the phase structure changes, e.g., ferroelectric–ferroelectric (FF) or ferroelectric–paraelectric (FP) phase transition7. The FP transition, where the crystallographic structure transforms most, possesses the largest polarization change, leading to a large ΔT. However, the FP transition of normal ferroelectrics always happens at the temperature (i.e., Curie temperature TC) that is much higher than room temperature (RT), and the obtained ΔT is accompanied by a narrow temperature span, which limits their application (case 1 in Fig. 1). To meet the RT cooling requirement, the long-standing approach focused on chemical substitution8,9,10,11,12,13,14.

Fig. 1: Schematic illustration of EC property engineering in ferroelectric ceramics.
figure 1

a–c Multiscale engineering strategy employed in this work, including (a) local scale, (b) mesoscopic scale, and (c) macroscopic scale, respectively. d Typical EC engineering strategies and their corresponding EC performances. The arrows in (a) refer to ferroelectric spontaneous polarization PS on a local scale, where Sn doping induces atomic-scale heterogeneity and disrupts the long-range order of polarization. The arrows in (b) refer to mesoscopic average polarization P. The length of arrows represents the magnitude of polarization, while the colored arrows indicate polarization from various phases. Despite the heterogeneity on the local scale, the traditional doping in individual composition causes relatively uniform polarization intensity on the mesoscopic scale, as seen in cases 1 and 2. In contrast, our strategy in case 3 designs to maintain significant polarization differences on the mesoscopic scale. The cubes inserted in (c) refer to ceramics with different doping concentrations. The light color represents the low doping, and the dark color represents the high doping. The solid and dashed lines in (d) describe the evolution of temperature-dependent polarization (P) and the consequent ΔT variation. RT, LT, and HT refer to room temperature, below and above room temperature, respectively.

As one of the most typical lead-free ferroelectric materials, EC effect in BaTiO3 (BTO)-based ferroelectric ceramics has been extensively studied, and it is noteworthy that B(Ti4+)-site substitution plays a crucial role, due to its effective engineering on phase transition behavior7,15. For B-site substitution, the most utilized cations are valence-stable Zr4+10,12,16, Hf4+8, and Sn4+9,17,18,19, which show similar ionic radii and the same valence as Ti4+. Among them, Sn exhibits the most significant modulation on local heterogeneity and electrical properties20,21,22, and the Ba(Ti1-xSnx)O3 (BTSx) system has hence received extensive attention. Via precisely regulating the critical Sn content (x = 0.105), a high value of ∆T ~ 0.61 K@20 kV cm1 was reported by Luo17, followed by Zhang et al.18 further modified the diffuse phase transition and turned BTSx into relaxor ferroelectrics (x = 0.12) to expand EC response. The diffusion behavior can effectively widen the temperature span, however, the high doping concentration in the Ti-site severely impairs the ferro-activity23. Therefore, despite a broadened phase transition temperature range, in reality, BTO-based ceramics exhibit relatively weak inherent polarization when they transition into a relaxor state, thereby compromising the EC performance (case 2 in Fig. 1). Many researchers imposed high driving fields to induce large ΔT, but the high E is normally accompanied by a low EC strength (ΔTE), i.e., reduced EC efficiency. Therefore, a better strategy toward superior EC performance is needed.

In principle, a system with both large and flexible polarization change (Figs. S1 and S2) can yield a sizable ΔT by a relatively low E. Such a characteristic means the necessary polarization gradients (Fig. S1) in the system. Herein, we design a multiscale engineering to realize the polarization gradients, as depicted in case 3 in Fig. 1. Primarily, Sn was chosen for an atom-scale engineering [Fig. 1a, Figs. S3 and S4]. As for the BTSx system, the polarization can be directly determined by the concentration of Sn doping. In the low-Sn composition of BTS0.03, large and robust polarization is present due to the stable ferroelectric phases around RT. While in high-Sn composition of BTS0.12, polarization reduces in strength, but it becomes much flexible due to the flattened energy profile of multiphase coexistence (Figs. S5 and S6). Therefore, mesoscopic polarization state differs between BTSx compositions (Fig. 1b). To achieve the desired EC properties, i.e., large ΔT by a low driving E, we further design the system with three-dimensionally connected macroscopic chemical heterogeneity. As noted in case 3 in Fig. 1c, the macroscopic chemical heterogeneity gathers multiple FF and FP phase transitions around the RT region. In such a system, various polarization states that come from different BTSx compositions coexist on the mesoscopic scale, boosting the polar entropy at zero field. Additionally, the three-dimensional (3D) connection forms interim regions that bridge different polarization states and introduce interfacial energy. This interfacial energy would compete with the bulk energy of the matrix, thereby lowering the Landau energy barrier between different phases (Fig. S2)24,25. Therefore, the large and flexible polarization change can be offered synchronously, favoring large ΔT with low driving field (Fig. 1d).

Results

Ceramic materials design

To experimentally realize the proposed three-dimension-connected chemical heterogeneity, we synthesized the ceramics via a “granule-mixing” method26. The schematic can be seen in Fig. S7. Firstly, BTSx (x = 0.03, 0.06, 0.09, 0.12) individual powders were prepared by the conventional solid-state reaction method (see “Methods” section). Then, four post-calcinated powders were separately granulated by adding polyvinyl alcohol (PVA) solution (Step 1). The granulation is a necessary process for the designed multiscale heterogeneity. To possibly control the subsequent sintering diffusion at the same level, the obtained granules were further sieved to filter the uniform granules, and a moderate size of 400 μm was picked up (Step 2, Fig. S8). The 400 μm granules of four individual compositions were well mixed together with the mass percentage of 1:1:1:1 and pressed into disks to fabricate a ceramic sample (Step 3). The nominal formula of the mixture is 25 wt%(BTS0.03 + BTS0.06 + BTS0.09 + BTS0.12), and we abbreviated it as BTS-M.

Electrocaloric performance

The EC effect essentially relates to the reversibility of polarization upon the application and removal of E. Thus, a high maximum polarization (Pmax) and a low remanent polarization (Pr) are expected to obtain a large reversible polarization change (ΔP, ΔP = Pmax − Pr). Figs. S9S12 demonstrate the temperature-dependent bipolar and unipolar hysteresis (PE) loops. The temperature-dependent Pmax changes differently under different waveforms (i.e., consistent decrease with bipolar wave while phase transition-associated increase with unipolar wave, Fig. S13), but ΔP shares a similar tendency and values, which reflects the real reversible polarization. In contrast to BTS0.03, BTS0.06, and BTS0.09 with sharp phase transitions, BTS0.12 and BTS-M maintain the relatively stable ΔP within the tested temperature range, implying the broad EC temperature span.

The EC performance of BTS-M and four individual samples was then directly assessed by a modified heat flux sensor, and the detailed information about the measurement was provided in Figs. S1416 and Table S2. We first tested the EC responses at RT with the continuously changed E, where the exothermic and endothermic peaks both increase with the rising fields, and the temperature-dependent variation was subsequently measured under 40 kV cm1 (Figs. S1720, Table S3). To verify the reproducibility of EC performance, we collected the EC signals of BTS-M from three cycles of heating and cooling processes (Figs. S21 and S22, Table S4). Within 25–60 °C, multiple FF and FP transitions from individual compositions were gathered due to the mixed BTSx granules. The integration of multiple phase transitions not only boosts the polar entropy of the system, which helps to produce a large ΔT, but also widens the EC temperature window of BTS-M. As seen in Fig. 2a–e, BTS0.03, BTS0.06, and BTS0.09 show sharp phase transitions, the tendency of which is similar to their ΔP variation. Although BTS0.12 and BTS-M are close in ΔP value, BTS-M actually shows higher ΔT values than BTS0.12 in direct measurement. Such a difference can be explained based on polarization dynamics (Fig. S13). From Fig. 2e, ΔT of BTS-M shows an arch-like variation within 20–60 °C, and the maximum value reaches ~1.55 K at 40 °C. The substantial ΔT of more than 1.2 K is maintained within 30–50 °C. Such performance is also better than the average of four individual responses (Fig. 2f). Especially around 35 °C and 40 °C, where the superimposed number of phase transitions reaches the maximum (Fig. S5e), ΔT increased by 34% and 26%, respectively. The enhancement in ΔT value just verified the effectiveness of our designed heterogeneity on engineering EC performance, that is, boosting the polar entropy of the sample. For practical applications, ΔTE is also a worthy parameter that impacts the efficiency of the final prototype, so achieving both a large ΔT and a high ΔTE is desired. In Fig. 2g, h, we reviewed the EC performance of representative ferroelectric ceramics. Encouragingly, within the field range of lower than 100 kV cm1, BTS-M shows a relatively large ΔT while a high ΔTE at 40 °C. Such superior EC performance indicates the successful implementation of a multiscale engineering strategy in the BTS-M system.

Fig. 2: EC performance of BTS-M.
figure 2

a–e Direct EC results of individual and BTS-M samples measured under 40 kV·cm1 electric field. f Comparison of EC performance between BTS-M and the average of individual samples. g The comparison of EC performance between the reported materials and BTS-M based on Table S1. The region marked by the dashed box is enlarged in (h).

Macroscopic heterogeneity

The superior EC performance fundamentally associates with the designed chemical heterogeneity. Therefore, the phase structure of BTS-M and individual samples was characterized (Figs. S23 and S24). The enlarged X-ray diffraction (XRD) patterns of BTS-M reveal abnormal peak splitting, which is attributed to diffraction of regions with different lattice parameters27. This finding confirms the existence of heterogeneity in BTS-M. Fig. 3a shows the surface morphology of BTS-M over the largest possible area. The sample features notably irregular grains and a few pinholes around the Sn-poor regions (the formation of pinholes was discussed in Fig. S25, and the variation of grain size was analyzed in Fig. S26). The EDS images show extensive inhomogeneity of Sn throughout the BTS-M, independently of grain size or location within grains, which corroborates the abnormally split peaks in XRD results. Fig. 3b contrasts the EDS spectra collected from Sn-poor and Sn-rich regions, where Sn is distinctly deficient in the Sn-poor region (Figs. S27 and S28). The detected atomic percentages of Sn in Sn-poor and Sn-rich regions are 0.69% and 2.5%, respectively (Fig. 3c). The measured deviation in Sn content (271%) fluctuates around the theoretical difference between BTS0.03 and BTS0.12 (300%), demonstrating the interdiffusion of Sn (Fig. S29). In theory, the doped Sn has formed stable solid solutions with the BaTiO3 matrix after calcination (1200 °C) (Fig. S30). Whereas, the mixing of BTSx granules brings additional chemical gradients in the system and drives Sn diffusion upon sintering (1380 °C). We observed the uneven Sn distribution from two-dimensional images, but it is conceivable that the Sn diffusion practically happens in three dimensions, leading to the formation of three-dimensionally connected chemical heterogeneity in BTS-M.

Fig. 3: Macroscale chemical heterogeneity of BTS-M.
figure 3

a Scanning electron microscopy (SEM) and energy dispersive spectroscopy (EDS) images. b EDS spectra and c atomic percentages of the Sn-poor (blue-box) and Sn-rich (red-box) regions. Spatial maps of d Raman shifts and e full widths at half maximum (FWHM). f Doman switching voltage of switching spectroscopy piezo-response force microscopy (SS–PFM) measurements.

The large-scale inhomogeneity implies the conceivable chemical fluctuations inside one single grain. Raman spectroscopy, a powerful technique for detecting the local structure and symmetry, is further performed on a single grain to study the local chemical heterogeneity of BTS-M. Figure S31 shows the Raman spectra of BTS0.03 and BTS-M. The Raman images of BTS-M in Fig. 3d, e were derived from the features of the peaks at 300 and 500 cm−1. The spatial variations in Raman signals are statistically significant. For comparison, the similar spatial signal images of BTS0.03 composition were depicted in Fig. S32. The highly variable peak positions and full widths at half maximum (FWHM) of BTS-M demonstrate the strong chemical fluctuation within a single grain28, which is absent in individual sample BTS0.03, and totally differs from the fluctuations in previously reported intergranular composites29,30 or layered composites (2–2 type interactions)31,32,33. To further investigate the local interactions, the switching spectroscopy piezo-response force microscopy (SS–PFM) of BTS0.03 and BST-M was measured (Fig. S33). The SS–PFM curves of both samples display rectangular-shaped hysteresis loops with near-180° phase contrast, implying adequate polarization switching in both samples. However, BTS-M exhibits more violent fluctuations in the imprint ΔV [determined as (|V + C | + |V − C | ), where V + C and V − C denote the positive and negative coercive biases, respectively] than BTS0.03 (Fig. 3f and Figs. S34S36), confirming the chemical fluctuation on the grain level34,35. The Raman and PFM measurements were performed on several grains for certainty (Figs. S37S40).

So far, the extensive chemical inhomogeneity, which exists both beyond and inside grains, has been verified in BTS-M. Such three-dimensionally connected heterogeneity and sintering interdiffusion facilitate the formation of abundant interim regions, alleviating the chemical divergence between different BTSx units. Meanwhile, the observed heterogeneity reveals that the primary body of BTSx units is still well-reserved in BTS-M. The coexistence of different BTSx compositions assembles various polarization states, boosting the polar entropy at zero field. By affording polarization strength within the continuous phase transition temperatures, they also contribute to the widened EC temperature window of BTS-M.

Local structural characteristics

To better understand the underlying mesoscopic mechanisms contributing to the excellent EC properties, the local chemistry and microstructural details of BTS-M were explored using atomic-resolved transmission electron microscopy (TEM). Figure 4a–c shows the dark field TEM images of BTS-M. Multifarious domains featuring symbolic stripes and nanosized or mottled structures were observed, where the striped submicron domains are interwoven with nanodomains in the sample. The domain size and pattern vary sharply in different regions, which may involve the local fluctuation of Sn36. In Fig. 4d–g, Figs. S41 and S42, EDS mappings illustrate the inhomogeneity of Sn in local areas, suggesting that chemical heterogeneity exists throughout the sample in multiple scales, that is, from microns to nanometers. For local characterization, the element fluctuations around interim regions were investigated through line scanning, and line profiles confirm the gradient variations of Sn and Ti elements (Fig. S43).

Fig. 4: Nano- and local-scale chemical heterogeneity of BTS-M.
figure 4

a–c Dark field TEM images showing complex domain configurations. d–g EDS elemental mappings in a single grain. h Schematics of the ABO3 unit cell and its projection along the [110] zone axis. i Cation-displacement vector map derived from the high-angle annular dark field (HAADF) lattice image. The white dashed circle in (f) marks the Sn-poor and Sn-rich regions.

Figure S44 shows the electron diffraction pattern of BTS-M along the [110] zone axis. No superlattice diffraction is detectable, indicating no occurrence of octahedral tilts. The symmetries of the three phases [rhombohedral (R), orthorhombic (O), and tetragonal (T)] of BaTiO3 can be differentiated through their lattice distortions, which can be considered as elongations of their parent cubic unit cells along one edge ([001]) of the T phase, along a face diagonal ([110]) of the O phase, and along a body diagonal ([111]) of the R phase. The spontaneous polarization (PS) directions are shown in Fig. 4h. Atomic-scale high-angle annular dark field (HAADF) image (Fig. 4i) indicates a nanoscale inhomogeneous state of polar vectors involving R, O, and T phases. It should be noted that the observed R, O, or T phase actually consists of multiple compositions in BTS-M rather than one. Therefore, the actual polarization magnitude appears as a graded distribution in each phase. Meanwhile, benefited by the sintering interdiffusion, there are a large number of intermediate transition regions. These regions introduce interfacial energy (which includes electrostatic, elastic, and gradient energy), and this energy would compete with the bulk energy of the matrix, thereby lowering the Landau energy barrier between different phases and finally optimizing the EC performance of BTS-M.

Discussion

Multiscale structural studies of BTS-M disclose a micron–nano heterogeneity stemming from the designed chemical inhomogeneity, which is distinct from the individual compositions37 and is considered crucial for the EC performance of BTS-M (Fig. S45). Next, we performed in situ heating experiments with phase-field simulations to investigate the influence of chemical inhomogeneity in response to external fields.

As shown in Fig. 5a, the in situ TEM results reveal a rather stable domain configuration with wedge- and stripe-shaped domains during the heating experiments. The EDS analysis of the same area shows a varying distribution of Sn (Fig. S46), suggesting the local chemical heterogeneity, which can afford polarization change within a wide temperature range and favor desired EC stability. To further clarify the functionality of chemical heterogeneity in the entire system, the evolutions of domain structures of BTS-M were simulated (Fig. 5b). In the virgin state with no applied E, BTS-M exhibits multi-symmetries involving ferroelectric R, O, and T phases, consistent with the microstructural observation in Fig. 4i. In addition, domains of various sizes are dispersed in BTS-M, indicating the differential polarization (strength and direction) that comes from the different BTSx compositions. Such a disordered state boosts the polar entropy of the system at zero field. When applying an E, domains respond instantly due to the 3D connection of chemical heterogeneity, which facilitates polarization rotation in the heterogeneous matrix. For EC effect, the adiabatic depolarization after removing E is more cared, where the entropy of the system transfers from thermal entropy to dipole entropy and the materials cool down3. In Fig. 5b, most domains of BTS-M can switch back when E is removed, suggesting the good recoverability of dipoles. Therefore, the large and flexible polarization change is offered synchronously in BTS-M, ultimately contributing to the superior EC performance.

Fig. 5: Temperature- and E-dependent domain evolutions.
figure 5

a In situ heating TEM observations. b domain structures simulated at different temperatures under different electric fields. The chromatic colors denote different ferroelectric phases with various spontaneous polarization directions.

In summary, we proposed a multiscale engineering strategy to optimize the EC performance of ferroelectric ceramics. A large ΔT of 1.5 K and a high ΔTE of 0.375 K mm kV1 are synchronously achieved under 40 kV cm1, while the substantial ΔT of more than 1.2 K is maintained within 30–50 °C. The outstanding EC performance originates from the designed multiscale heterogeneity, implemented by facilely mixing the equal-mass individual granules. We demonstrated that the three-dimensionally connected chemical heterogeneity boosts the polar entropy of the system. Additionally, the formed interim regions bridge different polarization states and introduce interfacial energy. This interfacial energy competes with the bulk energy of the matrix, thereby lowering the Landau energy barrier between different phases, finally availing the large ΔT and high ΔTE under the low E. Our work provides a universal paradigm for designing other high-performance EC materials.

Methods

Sample preparation

BTSx (x = 0.03, 0.06, 0.09, 0.12) individual powders were prepared by the conventional solid-state reaction method. The raw materials of barium carbonate (BaCO3, 99.95%), titanium dioxide (TiO2, 99.99%), and stannic oxide (SnO2, 99.95%) were purchased from the Aladdin Biochemical Technology Co., Ltd (Shanghai, China) and weighed according to the stoichiometric ratio of individual composition, then subject to ball milling with ethanol as the medium. A 250 mL nylon jar was used for milling, along with zirconia grinding balls in diameters of 10 mm (×50) and 5 mm (×200). The ball-to-material mass ratio was controlled as ~10:1. The milling was operated at a rotation speed of 180 rpm for 24 h. The milled mixtures were dried and separately calcined at 1200 °C for 3 h. The four calcined powders were first granulated by adding polyvinyl alcohol (PVA) solution. Then, the granules were sieved to obtain 400 μm granules. The 400 μm granules of four individual compositions were well mixed together with the mass percentage of 1:1:1:1 and pressed into disks with 10 mm in diameter and 0.86 mm in thickness under a uniaxial pressure of 300 MPa for 5 min to fabricate BTS-M. Finally, all green samples were sintered in air at 1380 °C for 3 h.

Structural measurements

The crystal structural information was obtained on a bulk X-ray diffractometer (Bruker D8 Advanced XRD, Bruker AXS Inc., Madison, WI, USA) with Cu Kα radiation (λ = 1.5406 nm). The surface morphologies and element distributions in the samples were characterized using field-emission scanning electron microscopy (FE–SEM, JSM-7500: JEOL Ltd., Tokyo, Japan). Raman measurements were performed using a Raman spectrometer (Horiba iHR550, Japan) with a 532-nm excitation source. For FE–SEM and Raman measurements, the polished samples were thermally etched at 1280 °C for 10 min. The CP measurements were performed using a differential scanning calorimeter (Discovery DSC 25, TA Instruments, New Castle, DE, USA) at a heating rate of 3 °C/min. The relative density was measured by the Archimedes method and repeated for three samples.

TEM measurements

For TEM observation, specimens were prepared from the bulk materials by mechanical thinning and Ar+ ion milling in a Gatan PIPS II polishing system. The domain morphologies, EDS mappings, and atomic-scale imaging were examined on a field-emission TEM (JEM-F200, JEOL, Japan). The HAADF images were acquired on a spherical aberration-corrected scanning TEM (Hitachi HF5000). The convergence semi-angle was 20 mrad, the probe size was set to UHR mode, and the ensemble semi-angle was 60–320 mrad. The atomic positions were fitted in MATLAB code38,39. In situ heating TEM experiments were performed using a SmartSet Hot Stage controller (Gatan Model 901) with a heating rate of 10 °C/min.

PFM measurements

Prior to PFM measurements, the samples were first polished and then subjected to thermal etching at 1280 °C for 10 min to make the grain boundaries visible. Subsequently, the local piezoelectric response was evaluated using the SS–PFM mode of a commercial atomic force microscope (MFP-3D, Asylum Research, USA) with a high-voltage module equipped.

Electrical property measurements

Prior to electrical measurements, the as-sintered samples were coated with silver paste and then heated at 600 °C for 10 min to form electrodes on both sides. The εrT curves of both unpoled and poled samples were measured in the frequency range of 0.1–100 kHz using a dielectric spectroscopy test system (TZDM-200–300, Harbin Julang Technology Co., Ltd, Harbin, China). To prepare the poled samples, the unpoled samples with electrodes were poled at room temperature by applying a DC electric field of 30 kV cm1 for 10 min in a silicone oil bath. The P–E loops were acquired at the frequency of 1 Hz using an alternating-current triangular-bias electric field ranging from 5 to 30 kV cm1 by a ferroelectric tester (aixACCT TF Analyzer 2000, Germany).

Direct EC property measurements

For direct EC measurements, the gold electrode with a diameter of 2.5 mm was sputtered on one side of the sample, and on the other side, the gold electrode fully covers the sample. The overlap area was 2.5 mm in diameter. Therefore, the active electrode area of the sample is 4.91 mm2, and the corresponding volume denotes the active part of the sample. The temperature change was recorded by an in situ calibrated calorimeter equipped with a typical heat flux sensor (RdF P/N 27134-3, Siemens, Germany). The unipolar pulse with a period of 35 s was applied by a synthesized function generator (Stanford Research Systems DS345). The rise and fall times of the pulse are 0.1 s. The measurement was repeated for 3 cycles for a single sample.

Density functional theory (DFT) calculation

DFT calculations were conducted with the Perdew, Burke, and Ernzerhof for solid (PBESol) exchange-correlation based on the generalized gradient approximation (GGA), which is implemented in the framework of Vienna ab initio Computational Simulation Package (VASP). The electron-ion interactions were described using the projector augmented wave (PAW), with plane-wave cutoffs set to 520 eV. The Ba 5s5p6s, Ti 3s3p3d4s, O 2s2p, and Sn 4d5s5p states were treated as valence electrons. A BTO structure with P4mm space group was used to generate a 2 × 2 × 2 supercell for Sn-doped BTO (BaTi0.875Sn0.125O3) model with 40 atoms. All the models were created using 7 × 7 × 7 Monkhorst-Pack k-point meshes. For electronic self-consistent iterations, the convergence conditions were set at 105 eV, and the atomic coordinates were tuned until the Hellmann-Feynman forces were less than 0.01 eV/Å. VASPKIT, a pre-and post-processing tool for the VASP code, was utilized to prepare the necessary input files for the simulations.

Phase-field simulations

The influences of chemical heterogeneity on the evolution of the domain structure were explored through phase-field modeling. The domain structures were characterized by the spatial distributions of spontaneous polarization P (P1, P2, P3). The temporal evolutions of the polarizations were tracked using the time-dependent Ginzburg–Landau equation. In addition, the displacement field u and electric displacement field D were determined by solving the stress/electric equilibrium equations40

$$\frac{\partial {P}_{i}}{\partial t}{=}-L\frac{{\delta }F}{{\delta }{P}_{j}}+{E}_{i}^{{thermal}}$$
(1)
$$\frac{\partial }{\partial {x}_{j}}({{{{\rm{\sigma }}}}}_{{{{\rm{ij}}}}}(r,{t})){=}0$$
(2)
$$\nabla \cdot D{=}{{\rho }}_{f}$$
(3)

where L is a kinetic coefficient related to the domain-wall mobility, F is the total free energy of the system, \(\frac{{\delta }F}{{\delta }{P}_{j}}\) is the thermodynamic driving force of polarization evolution, \({{\sigma }}_{{ij}}\) is the stress tensor, \({{\rho }}_{f}\) is the free-charge density, and r and t denote the spatial coordinates and time, respectively.

The total free energy of a bulk system can be defined as:

$$F ={F}_{{bulk}}\left(P\right){+}{F}_{{grad}}\left(P\right){+}{F}_{{elastic}}\left(P\right)+{F}_{{elec}}\left(P,{E}\right)\\ = {\int }_{\!\!\!\!V}\left({f}_{{bulk}}+{f}_{{grad}}+{f}_{{elastic}}+{f}_{{elec}}\right){dV}$$
(4)

where \({F}_{{bulk}}\left(P\right)\) is the bulk free energy, \({F}_{{grad}}\left(P\right)\) is the domain-wall energy, \({F}_{{elastic}}\left(P\right)\) is the elastic energy, and \({F}_{{elec}}\left(P,E\right)\) is the electrostatic energy. Here, E is the applied static electric field. The terms fbulk, fgrad, felastic, and felec are the corresponding energy densities.

The bulk free-energy density is expanded as a sixth-order polynomial:

$${f}_{{bulk}}= \, {\alpha }1\left({P}_{1}^{2}+{P}_{2}^{2}+{P}_{3}^{2}\right)+{\alpha }11\left({P}_{1}^{4}+{P}_{2}^{4}+{P}_{3}^{4}\right)+{{\alpha }}_{12}\left({P}_{1}^{2}{P}_{2}^{2}+{P}_{2}^{2}{P}_{3}^{2}+{P}_{1}^{2}{P}_{3}^{2}\right) \\ +{\alpha }111\left({P}_{1}^{6}+{P}_{2}^{6}+{P}_{3}^{6}\right)+{\alpha }112\left[{P}_{1}^{4}\left({P}_{2}^{2}+{P}_{3}^{2}\right)+{P}_{2}^{4}\left({P}_{1}^{2}+{P}_{3}^{2}\right)+{P}_{3}^{4}\left({P}_{1}^{2}+{P}_{2}^{2}\right)\right] \\ +{\alpha }123{P}_{1}^{2}{P}_{2}^{2}{P}_{3}^{2}$$
(5)

where αi, αij, αijk are the Landau parameters.

The elastic energy density is determined as

$${f}_{{elas}}=\frac{1}{2}{c}_{{ijkl}}({{\varepsilon }}_{{ij}}-{{\varepsilon }}_{{ij}}^{0})({{\varepsilon }}_{{kl}}-{{\varepsilon }}_{{kl}}^{0})$$
(6)

where cijkl is the elastic stiffness tensor, \({\varepsilon }\)ij is the total strain, and \({\varepsilon }_{{ij}}^{0}\) is the eigenstrain, calculated as \({\varepsilon }_{{ij}}^{0}\) = QijklPkPl, with Qijkl being the electrostrictive coefficient.

The gradient energy density is obtained as

$${f}_{{grad}}=\frac{1}{2}G_{{ijkl}}P_{{i,j}}P_{{k,l}}$$
(7)

where Gijkl is the gradient coefficient.

The electrostatic energy is expressed as

$${f}_{{elec}}{=}-{P}_{i}\left(r\right){E}_{i}\left(r\right)-\frac{1}{2}{{\varepsilon }}_{0}{{\kappa }}_{{ij}}^{b}\left(r\right){E}_{i}(r){E}_{j}(r)$$
(8)

where \({{\kappa }}_{{ij}}^{{\mbox{b}}}\left(r\right)\) is the background dielectric constant tensor, \({{\varepsilon }}_{0}\) is the vacuum permittivity, \({E}_{{\mbox{i}}}\) is the electric field component, and \({P}_{{\mbox{i}}}\) is the polarization component41,42,43.

The simulation scale was 256dx × 256dz, where dx and dz are the grid scales (both equal to 4 nm). The equations were solved using the Fourier method. The detailed parameters of the BaTiO3-xBaSnO3 system were selected from refs. 22,31,44 and are listed below:

$${T}_{{{{\rm{C}}}}}\,= -271.7\times 1.143x+75.0\\ {\alpha }_{1}\,= (T-T_{C})\times 4.124\times {10}^{5}{C}^{-2}{m}^{2}N\\ {\alpha }_{11} \,= -|1-5.833\times 1.143x-0.3|\times 4\times {10}^{8}{C}^{-4}{m}^{6}N\\ {\alpha }_{12}= {10}^{8}[-8.0|1-5.833\times 1.143x-0.3|-5.833\times 1.143x+0.7\\ +0.01(T-40.0)]{C}^{-4}{m}^{6}N\\ {\alpha }_{111}= 12.94\times {10}^{8}{C}^{-6}{m}^{10}N\\ {\alpha }_{112}= [12.94\times 3.0\times {10}^{8}-(1-5.833\times 1.143x-0.3)\times {10}^{8}]{C}^{-6}{m}^{10}N\\ {\alpha }_{123}= [12.94\times 6.0\times {10}^{8}+(1-5.833\times 1.143x-0.3)\times 4.0\times {10}^{8}]{C}^{-6}{m}^{10}N\\ {Q}_{11}= 0.11{m}^{4}{C}^{-2},{Q}_{12}=-0.045{m}^{4}{C}^{-2},{Q}_{44}=0.029{m}^{4}{C}^{-2}\\ {s}_{11}= 9.07\times {10}^{-12}{m}^{2}{N}^{-1},{s}_{12}=-3.186\times {10}^{-12}{m}^{2}{N}^{-1},{s}_{44}=8.197\\ \times {10}^{-12}{m}^{2}{N}^{-1} $$

The gradient energy coefficients were chosen as G11/G110 = 1.0, G12/G110 = 0.0, G44/G110 = 0.5, where G110 = 7.04 × 1011C2m4N. When x = 0, the potential function can produce R, O, and T phase transition structures. As x increases, the ferroelectric transition becomes a pure R phase.