Introduction

Chirality geometrically refers to the left-handed (LH) and right-handed (RH) phenomena1, which allows materials with chiral properties to be widely used, such as polarization optics2,3, sensors4, and stereochemistry5. Recently, nanoscale textures in ferroelectric materials have also been demonstrated to exhibit chirality6. Chiral topological defects, such as magnetic skyrmions7,8, polar vortices, and polar skyrmions9,10,11, have been reported, and these phenomena have attracted tremendous interest in material science and condensed matter physics12,13. Moreover, the relative insensitivity of these small-sized textures to external disturbances host the ability for their use in highly robust next-generation information storage devices14,15. This, in turn, has increased interest in the controlled manipulation of vortex chirality in ferroelectric materials.

Here, BiFeO3 (BFO) serves as one of the most prototypical ferroelectric materials16. It is shown that its inherent rhombohedral (R) structure determines the eight polarization orientations along the pseudo-cubic <111> directions, and the adjacent orientations also determine the diversity of its domain walls (DWs), including 180°, 109°, and 71° DWs17. Previously, the chirality at DWs has been speculated due to the depolarization field and stress/strain inhomogeneity18,19. In the experiment, DW chirality has been proved in triclinic ferroelectric crystals20. Then, chiral 71° and 109° DWs appear in BFO films owing to the different polarization rotation ways at DW, which is confirmed by using the reciprocal and real-space characterization techniques21.

Theoretical works have reported that curled electric field (E) controls vortex chirality by switching toroid moment to form a new vortex in ferroelectric nanoparticles22,23, and the interaction of polarization and strain promotes vortex formation. However, with the local radial E stimulation, ferroelectric vortex pairs were created or annihilated in films by selecting the appropriate polarization location24,25,26, and characteristic shaped or graded composition27,28,29. In addition, the mechanical field was proven to control vortex morphology29,30,31. As for the interface strain, it also promotes polarization rotation to form a pair of opposite vortices32. Among them, the influence of flexoelectricity on polarization switching and DW formation has been extensively explored18,33,34. These results indicate that vortex evolution is sensitive to flexoelectricity35,36,37, and the flexoelectric coupling coefficients can be quantified by phase-field methods, where the vortex morphology is reflected38.

Based on the phase-field simulation, this work focuses on the formation mechanism and controllable manipulation of chiral vortices in a single domain and bi-domain in BFO thin films under local surface charge or electric field. The simulation results demonstrate that the bi-domain arrangements determine the in-plane vorticity. The chirality is related to the initial bi-domain arrangements. Importantly, the chirality is reversibly switched by applying alternating surface charge or electric field. The vortex chirality remains unchanged after removing the external field. This study advances our understanding of vortex domain evolution and chirality manipulation in ferroelectric thin films.

Results and discussion

The emergent chirality in the vortex

The schematics of four types of chirality defined according to the out-of-plane polarity and in-plane vorticity of the polarization vectors (P)39,40,41 are shown in Fig. 1. The out-of-plane polarity points downward, that is, Pz < 0 (marked as a black cross), which is defined as OP = −1. When the out-of-plane polarity is upward, that is, Pz > 0 (marked as double black circles), then is defined as OP = +1. In addition, counterclockwise vorticity is CCW = −1 and clockwise vorticity is CW= +1, and the black arrows indicate the projection of the polarization in the x-y plane. The chirality is then defined as the product of the polarity and the vorticity. Accordingly, LH chirality is defined as LH = 1, which includes a CCW (−1) vorticity with downward (−1) polarity, and a CW (+1) vorticity with upward (+1) polarity, as shown in Fig. 1a, d, respectively. Similarly, RH chirality is defined as RH = −1, which includes a CW (+1) vorticity with downward polarity (−1), and a CCW (−1) vorticity with upward polarity (+1), as shown in Fig. 1b, c, respectively. Figure 1e is a schematic of the eight polarization variants in R BFO. According to the symmetry, there are four upward (R1+, R2+, R3+, and R4+) and four downward (R1−, R2−, R3−, and R4−) polarization variants, respectively.

Fig. 1: Schematics of the four types of ferroelectric vortices with LH (+1) and RH (−1) chirality.
figure 1

LH vortex based on either a −1 vorticity and −1 polarity or d +1 vorticity and +1 polarity; RH vortex based on either b +1 vorticity and −1 polarity or c −1 vorticity and +1 polarity. The black arrows denote the in-plane polarization direction, and the cross and dot denote the downward or upward out-of-plane polarization direction, respectively. e The eight polarization variants along with the <111> BFO crystal orientation.

The vortex chirality in the single domain

First, we apply positive/negative surface charge on the top surface of the 10 nm BFO thin film with an initial single domain, and the vortex can be generated as shown in Fig. 2a, b. The results of the other four initial single domains (R1−, R2−, R3−, and R4−) are shown in Supplementary Fig. 1. Figure 2c shows that nine positive surface charge regions are applied on BFO thin film with an initial R1+ domain. Interestingly, the vortex chirality is random with the initial single domain due to the degenerate energy state of polarization. Then, it should be noticed that the downward polarization switching appears in the local region with applied surface charge, whereas the domains with upward Pz appear around the vortex. Here, the applied local positive surface charge is equivalent to a downward built-in electric field. The positive surface charge favors the negative polarization bound charge, and the in-plane domains with outward center-divergent polarization directions are formed13,25. In addition, the out-of-plane polarization points downward due to the negative built-in electric field. Then, topological domains form with polarization orientations along with the \([\bar{1}\bar{1}\bar{1}]\), [\(1\bar{1}\bar{1}\)], [\(11\bar{1}\)], and [\(\bar{1}1\bar{1}\)]. In domain evolution, the four-quadrant topological domain with the straight DWs in a high-energy state evolves into the vortex with curved DWs.

Fig. 2: Chiral polar vortices induced by applying a local square-shaped positive surface charge.
figure 2

a The vortex domain patterns in four initial upward single domains (R1+, R2+, R3+, and R4+, respectively). b The projection of the polarization vector. c Nine vortices are induced by applying nine charge regions on large-scale BFO thin film with an initial R1+ domain. The polarization vector distribution of RH vortex in d and LH vortex in e. f The final domain percentages in a vortex indued in four initial domains. Yellow, gray, steel-blue, and steel-green regions represent domains with polarization along with R1−(\([\bar{1}\bar{1}\bar{1}])\), R2−([\(1\bar{1}\bar{1}\)]), R3− ([\(11\bar{1}\)]), and R4− ([\(\bar{1}1\bar{1}\)]) directions, respectively.

Although we cannot controllably manipulate the vortex chirality in a single domain, the discrepancy in polarization switching of different initial domains can promote us to recognize the formation mechanism of vortex domains. The percentages of four negative R domains induced in the single domain are shown in Fig. 2f. The results show that the percentage of R domains formed by 71° polarization switching (e.g., R1+ → R3−) is larger than that formed by 109° (e.g., R1+ →R2−, R4−) and 180° (e.g., R1+ →R1−) switching. Here, the height of the energy barrier determines the difficulty of the path of polarization switching42.

Then, we further explore the influence of surface charge density (σsurf) on the domain evolution, as shown in Fig. 3. The domain structures under applied different positive σsurf are shown in Fig. 3a, and the corresponding energy densities evolution is shown in Fig. 3c. R1+ single variants are initial states and the R domains with downward out-of-plane polarization (Pz < 0) are induced by applying positive charges. When the σsurf is 0.08 Cm−2, R3− domain is dominant. As the σsurf continues to increase, the R1− domain region gradually increases. When the σsurf is 0.8 Cm−2, a vortex with evenly distributed 4 R domains forms, as shown in Fig. 3a. The square-shaped local positive surface charge region is applied on the top surface, and the downward domain switching occurs in the charged region. Then, the surrounding domains (Pz > 0) are formed to minimize the stray electric field. The polarization switching mechanism affects the R domain ratio in a single vortex, and 71° ferroelastic switching is the easiest. The surface charge densities determine the domain switching path, which in turn affects the vortex domain morphology. At the same time, the vortex core moves toward the center of the film with the \({\sigma }_{\rm{surf}}^{\ast }\) increases, as shown in Fig. 3b.

Fig. 3: The domain evolution with different positive surface charge densities (σsurf).
figure 3

a Domain evolution with different \({\sigma }_{\rm{surf}}\). \({\sigma }_{\rm{surf}}^{\ast }\) is normalized value (\({\sigma }_{\rm{surf}}={\sigma }_{\rm{surf}}^{\ast }\times 0.16\,{\rm{C}}/{{\rm{m}}}^{2}\)). b The trajectory of the vortex core movement. c The energy density distribution vs positive surface charge density.

The corresponding energy density (f) evolution is shown in Fig. 3c, where the decrease in felectric is due to the contribution of the built-in electric field caused by the increase in surface charge. The expression of fLandau (Eq. 3) is closely related to polarization, where an increase in surface charge induces more polarization switching and leads to the increase of DW density, thereby increasing the Landau energy. When 71° DW converges to form a vortex, the vortex core exhibits continuous polarization rotation. To minimize the free energy and electrostatic energy of the system, the domain configurations transform to a curved DW in a metastable state, as shown in Supplementary Fig. 2.

The vortex chirality manipulation in bi-domain

The DW is the key to breaking the radial symmetry of the external field, which is conducive to the formation of more interesting topological vortex patterns24,43. A bi-domain arrangements with initial R3+|R3− polarization states are separated by 180° DW oriented along the y axis, and LH chiral vortex with CCW rotation can be obtained in Fig. 4a, as indicated by the polarization vector plot. Then, by reversing the initial bi-domain arrangement from R3+|R3− to R3−|R3+, an RH vortex with CW rotation is induced as shown in Fig. 4b. We also consider bi-domain arrangements with initial R3+|R2− states separated by a 109° DW oriented along the y axis, as shown in Fig. 4c, and the reversed domain arrangement with initial R2−|R3+ states is shown in Fig. 4d. The LH chiral vortex domain with CCW rotation can be obtained, and the polarization projection in the x–y plane is shown in vector plots, respectively. The polarization orientation of the initial bi-domain determines vortex chirality. In other words, the polarization components along the DW in the bi-domain are opposite, which have the opposite vortex chirality, and vice versa. Through reversing the domain arrangements, the vortex chirality is reversed. More information about 180°, 109°, and 71° DWs with the bi-domain combination are summarized in Supplementary Figs. 35, respectively. The results of 180° DW indicate that opposite vortex chirality can be obtained by swapping the initial bi-domain arrangement. The results of 109° and 71° DW demonstrate that deterministic switchable vortex chirality can be obtained by converting the initial bi-domain arrangement into specific bi-domain combinations.

Fig. 4: The manipulation of vortex chirality by bi-domain arrangements.
figure 4

The bi-domain arrangements are separated by 180° and 109° DWs oriented along the y axis: a Initial R3+|R3− polarization arrangement and LH chiral vortex. b Initial R3−|R3+ polarization arrangement and RH chiral vortex. c Initial R3+|R2− polarization arrangement and LH chiral vortex. d Initial R2−|R3+ polarization arrangement and LH vortex. The bi-domain arrangements are separated by 180° and 109° DWs oriented along the x axis. e Initial R3+/R3− polarization arrangement and RH vortex. f Initial R3−/R3+ polarization arrangement and LH vortex. g Initial R3+/R2− polarization arrangement and RH vortex. h Initial R2−/R3+ polarization arrangement and LH vortex.

Here, the inherent DW chirality makes contributions to the charge-induced vortex chirality. In R3+|R3−, the polarization components (Py) in two adjacent domains have opposite directions and show CCW vorticity seen from the right to the left so that the charge-induced vortex is CCW. In R3−|R3+, Py shows CW vorticity so that the charge induces a CW vortex. The two Py are in the same direction in Fig. 4b, d, so the two vortices have similar rotation directions. However, the charged 109° DW (R3+|R2−) are mechanically incompatible, but the final states of these DWs are stable in the modeling due to enough screening charges in short-circuit electrostatic boundary conditions. To understand the effect of mechanical compatibility of initial DW on vortex chirality, the charge-induced chiral vortices are obtained in neutral and mechanical permissible 109° DWs (R1+ |R2− and R3−|R4+)44,45, respectively, as shown in Supplementary Fig. 6. In R1+|R2− and R3−|R4+, the opposite vortex chirality is obtained after exchanging the bi-domain arrangements owing to the opposite Py in adjacent domains. The inherent Py rotation direction determines the vortex chirality, these results further confirm the above discussions.

To study the influence of DW orientation on the vortex chirality, we switch the DW orientation along the x axis, as shown in Fig. 4e–h. Opposite chirality is obtained by reversing the bi-domain arrangement from R3+/R3− to R3−/R3+, respectively, as shown in Fig. 4e, f. Similarly, reversing the initial R3+/R2− to R2−/R3+, RH and LH vortices are obtained, respectively, as shown in Fig. 4g, h. Similarly, a pair of controllable chiral vortex domains, including polarity and vorticity type, can also be successfully achieved in the initial tri-domain combination, as shown in Supplementary Fig. 7.

The chirality formation is closely related to the initial bi-domain arrangements, the detailed evolution is shown in Supplementary Fig. 8. As we know, four R domains positions are fixed due to the crystal orientation in R-BFO films46,47. In R3+|R3—bi-domains [Supplementary Fig. 8a], at left-panel, R1− domain is larger than R4−, by 71° and 109° switching. On the right panel, positive \({\sigma }_{\rm{surf}}\) determines the larger R3− domain. Then, the straight four R domains gradually evolve into an LH vortex. However, an RH vortex is shown in R3−|R3+ bi-domains [Supplementary Fig. 8b], at left-panel, the switched largest domain area is R3−. On the right panel, the largest switched domain area is R1− through 71° switching. To minimize the system energy, the small R domains merge into the same large domains to form a chiral vortex. Therefore, the initial bi-domain arrangement determines the largest R domain position, which in turn determines the final vorticity. The charge-induced vortex chirality is closely related to the initial bi-domain.

Although the successful application of surface charge-induced polarization switching in the electrochemistry48,49, the common path to achieve domain switching is the electric field or the electric bias in the experiments25,46,50. Therefore, the local radial electric fields created by applying square-shaped surface potential are studied on the bi-domain BFO films with 180° DWs, the surface potential distributions are shown in Supplementary Fig. 9. The results are consistent with the case of surface charge, a specific vortex chirality can be obtained by applying a local external electric field in the ordered initial bi-domain.

The strain distribution in the chiral vortex

In ferroelectric materials, there is an electrostrictive coupling effect between ferroelectric polarization and intrinsic strain (\({\varepsilon }_{ij}^{0}\)). Therefore, the elastic strain (\({e}_{ij}\)) distribution can reflect the ferroelectric polarization distribution to a certain extent (Seen in Eq. (7)). We calculate elastic strain (\({e}_{ij}\)) in chiral vortex induced by initial R3+|R3−, R3−|R3+, R3+|R2− and R2−|R3+ bi-domain, respectively. Figure 5e–h shows elastic strain distributions along the corresponding red dashed line of Fig. 5a–d, respectively. For all the strain distributions, the axial strains \({e}_{11}\), \({e}_{22}\), and \({e}_{33}\) change significantly near the vortex core, \({e}_{11}\) and \({e}_{22}\) are tensile strains and \({e}_{33}\) is compressive. By comparing Fig. 5e, f, the shear strains \({e}_{23}\) and \({e}_{13}\) show different evolution behavior. Therefore, we plot the shear strain (\({e}_{23}\) and \({e}_{13}\)) distribution along the 2D x-y plane in Fig. 5i–l. The \({e}_{23}\,\) and \({e}_{13}\) have maximum and minimum values with the opposite signs on both sides of the core, and we add the arrows to indicate the direction of \({e}_{23}\) and \({e}_{13}\). In Fig. 5i, j, both \({e}_{23}\,\) and \({e}_{13}\) all have opposite directions, so the vortices show CCW rotation and CW rotation, respectively. Similarly, in Fig. 5k, l, \({e}_{23}\) and \({e}_{13}\) have the same direction on both sides of the core, so the vortices are all CCW rotation. The shear strains (\({e}_{23}\) and \({e}_{13}\)) have closely related to the vortex vorticity in the core.

Fig. 5: The elastic strain (e11, e22, e33, e23, e13, e12) distribution in the vortex domain.
figure 5

ad The vortex structure and the enlarged core polarization vector map are viewed in x–y cross-section. ef The strain distribution in chiral vortex along the red dashed line in ad, respectively. il The distribution of shear strain (\({e}_{23}\), \({e}_{13}\)) in the chiral vortex, respectively. The arrows indicate the shear strain direction.

The external field manipulation of vortex chirality

To explore the influence of the flexoelectric effect, the bi-domain combinations of R3+|R3− of 180° DW are selected as the initial states, as shown in Supplementary Fig. 10. The vortex chirality remains LH by considering the flexoelectric effect. Then, the strain gradient of the in-plane elastic strain (\({e}_{11}\), \({e}_{22}\)) and out-of-plane elastic strain (\({e}_{33}\)) along the z axis slightly increase due to the flexoelectric coupling coefficients. Here, the flexoelectric effect contributes to the morphology of the vortex domain but does not change the chirality of the ferroelectric vortex.

To further achieve chirality switching, we demonstrate the reversible control of vortex chirality by alternating external fields. The schematics of alternate application of \({\sigma }_{\rm{surf}}\) and E are shown in Fig. 6a, b, respectively. The reversible chirality of the vortex domain can be obtained by applying \(\pm {\sigma }_{\rm{surf}}\) and ±E, as shown in Fig. 6c, d, respectively. These results demonstrate that the out-of-plane polarity changes with the sign of the external field in the vortex, while the vorticity is unchanged. Here, the width of the charge region (Wc) is 80 nm in Fig. 6, The stray electric field induces the outer domain with opposite Pz direction. The adjacent inner and outer domains are 71° out-of-plane polarization orientation, which decreases the large out-of-plane depolarization field to protect the inner vortex domain stability. Then, to study the vortex stability, the topological chiral vortices are relaxed after we remove the surface charge. The morphology of the vortex domain shrinks slightly, while the chirality of the vortex remains stable, the surrounding domains remain stable and the 71° out-of-plane orientation relationship is still in the inner vortex domain and surrounding outer domains, as shown in Supplementary Fig. 11. To understand the effect of the surface charge region size on the stability of the chiral vortex, we apply two widths of the charge region (Wc = 40 nm, 60 nm) on the 180° DWs, as shown in Supplementary Fig. 12. When we remove the surface charge, the chiral vortex in a small charge region is unstable and the vortex merges with the surrounding domains and becomes a striped domain. Here, the outer large domains make the inner small vortex merge and disappear. Therefore, the vortex stability is closely related to the large charge region size in BFO films.

Fig. 6: Reversible control of vortex chirality via alternating external stimuli.
figure 6

a Schematic of surface charge application. b Schematic of electric field application. c Reversible vortex chirality evolution under the stimuli presented in (a). d Reversible vortex chirality evolution under the stimuli presented in (b). The * is a normalized value, E* = E × 0.192 MV/cm.

In short, the ferroelectric vortices can be induced in initial single and bi-domain regions under local surface charge and electric field stimulation. In a single domain, the initial domains determine the percentage and morphology of the vortex domain, the vortex formation requires sufficient surface charge density. As the charge density increases, the vortex core moves to the center. Our results show that vortex chirality is controllably manipulated by selecting the initial bi-domain arrangement with typical DWs. The inherent DW chirality determines the charge-induced vortex chirality. In other words, if the initial bi-domain polarization component’s direction along the DW are opposite, the opposite vortex chirality can be obtained. The sign of the external field determines the vortex polarity, thus successfully regulating chirality. After we remove the external field, the vortices are stable only in the region with previously applied large enough charge density. These results provide a basis for understanding the chirality manipulation and vortex evolution in ferroelectric thin films.

Methods

In the phase-field simulation, the ferroelectric polarization evolutions are described by the time-dependent Ginzburg–Landau equation51,52,53:

$$\frac{\partial {P}_{i}({\boldsymbol{r}},t)}{\partial t}=-L\frac{\delta F}{\delta {P}_{i}({\boldsymbol{r}},t)},\,(i=1,\,2,\,3)$$
(1)

where Pi is the component of the polarization along with the [1 0 0] (x axis; i = 1), [0 1 0] (y axis; i = 2), and [0 0 1] (z axis; i = 3) crystal orientations in Cartesian coordinates, r and t are the spatial position vector and the simulation time, respectively, L is related to DW mobility, and ftotal is the total free energy density in the thin film, which is determined by the Landau free energy density (fLandau), gradient energy density (fgradient), electrostatic energy density (felectric), and elastic energy density (felastic), and flexoelectric energy density (fflexo):

$${f}_{\rm{total}}={f}_{\rm{Landau}}+{f}_{\rm{gradient}}+{f}_{\rm{electric}}+{f}_{\rm{elastic}}+{f}_{\rm{flexo}}$$
(2)

We define \({f}_{\rm{Landau}}\) as the following sixth-order polynomial,

$$\begin{array}{ll}{f}_{\rm{Landau}}&={a}_{1}\left({P}_{1}^{2}+{P}_{2}^{2}+{P}_{3}^{2}\right)+{a}_{11}({P}_{1}^{4}+{P}_{2}^{4}+{P}_{3}^{4})+{a}_{12}\left({P}_{1}^{2}{P}_{2}^{2}+{P}_{2}^{2}{P}_{3}^{2}+{P}_{1}^{2}{P}_{3}^{2}\right)\\ &\quad\,\,\,+\,{a}_{111}\left({P}_{1}^{6}+{P}_{2}^{6}+{P}_{3}^{6}\right)+{a}_{112}\left[{P}_{1}^{2}\left({P}_{2}^{2}+{P}_{3}^{2}\right)+{P}_{2}^{2}\left({P}_{3}^{2}+{P}_{1}^{2}\right)\right.\\ &\quad\,\,\,\left.+\,{P}_{3}^{2}\left({P}_{1}^{2}+{P}_{2}^{2}\right)\right]+{a}_{123}{P}_{1}^{2}{P}_{2}^{2}{P}_{3}^{2}\end{array}$$
(3)

where \({a}_{1}\), \({a}_{11}\), \({a}_{12}\), \({a}_{111}\), \(\,{a}_{112}\), and \(\,{a}_{123}\) are the dielectric stiffness and high order stiffness coefficients54. According to the Curie–Wiess law, \({a}_{1}\) depends on the temperature, and it can be defined as a1 = (TT0)/(2ε0C0), where T is temperature, T0 is the Curie temperature, the vacuum dielectric constant is ε0 = 8.85 × 10−12 Fm−1, and C0 is the Curie constant.

We define \({f}_{\rm{gradient}}\) in terms of polarization gradients as follows:

$${f}_{\rm{gradient}}=\frac{1}{2}{G}_{ijkl}{{\boldsymbol{P}}}_{i,j}{{\boldsymbol{P}}}_{k,l},\,(i,j,k,l=1,\,2,\,3)$$
(4)

where \({G}_{ijkl}\) is the gradient energy coefficient tensor. Here, Gijkl can be simplified as \({G}_{11}\), \({G}_{12}\), \({G}_{44}\), and \({G}_{44}^{,}\) to obtain the following: \({f}_{\rm{gradient}}=\frac{1}{2}{G}_{11}({P}_{1,1}^{2}+{P}_{2,2}^{2}+{P}_{3,3}^{2})+{G}_{12}({P}_{1,1}{P}_{2,2}+\,{P}_{3,3}{P}_{2,2}+{P}_{3,3}{P}_{1,1})+\frac{1}{2}{G}_{44}[{({P}_{1,2}+{P}_{2,1})}^{2}\,+{({P}_{2,3}+{P}_{3,2})}^{2}+{({P}_{1,3}+{P}_{3,1})}^{2}]+\frac{1}{2}{G}_{44}^{,}[{({P}_{1,2}-{P}_{2,1})}^{2}\,+{({P}_{2,3}-{P}_{3,2})}^{2}\,+\,{({P}_{1,3}-{P}_{3,1})}^{2}]\).

The flexoelectric energy density \({f}_{\rm{flexo}}\) can be expressed as

$${f}_{\rm{flexo}}=\frac{\,{f}_{ijkl}}{2}\left({e}_{ij}\frac{\partial {P}_{k}}{\partial {x}_{l}}-{P}_{k}\frac{{e}_{ij}}{\partial {x}_{l}}\right),\,\left(i,j,k,l=1,\,2,\,3\right)$$
(5)

where \({f}_{ijkl}\) represents flexoelectric coupling coefficients and \({e}_{ij}\) is elastic strain. For cubic symmetry, \({f}_{ijkl}\) can be simplified as \({f}_{11}\), \({f}_{22}\), \({f}_{44}\) in Voigt’s notation. Here, the flexoelectric coupling coefficients are set as: f11 = 2.5 V, f22 = 2.5 V, f44 = 0.05 V, based on reasonable estimation55. Then, the driving force from the flexoelectric effect (\({E}_{i}^{flexo}\)) can be calculated as follows:

$$\begin{array}{c}\frac{\delta {f}_{flexo}}{\delta {P}_{1}}=-{f}_{11}\frac{\partial {e}_{11}}{\partial {x}_{1}}-{f}_{12}\left(\frac{\partial {e}_{22}}{\partial {x}_{1}}+\frac{\partial {e}_{33}}{\partial {x}_{1}}\right)-{f}_{44}\left(\frac{\partial {e}_{13}}{\partial {x}_{3}}+\frac{\partial {e}_{12}}{\partial {x}_{2}}\right)=-{E}_{1}^{flexo}\\ \frac{\delta {f}_{flexo}}{\delta {P}_{2}}=-{f}_{11}\frac{\partial {e}_{22}}{\partial {x}_{2}}-{f}_{12}\left(\frac{\partial {e}_{33}}{\partial {x}_{2}}+\frac{\partial {e}_{11}}{\partial {x}_{2}}\right)-{f}_{44}\left(\frac{\partial {e}_{12}}{\partial {x}_{1}}+\frac{\partial {e}_{23}}{\partial {x}_{3}}\right)=-{E}_{2}^{flexo}\\ \frac{\delta {f}_{flexo}}{\delta {P}_{3}}=-{f}_{11}\frac{\partial {e}_{33}}{\partial {x}_{3}}-{f}_{12}\left(\frac{\partial {e}_{11}}{\partial {x}_{3}}+\frac{\partial {e}_{22}}{\partial {x}_{3}}\right)-{f}_{44}\left(\frac{\partial {e}_{23}}{\partial {x}_{2}}+\frac{\partial {e}_{13}}{\partial {x}_{1}}\right)=-{E}_{3}^{flexo}\end{array}$$
(6)

The elastic energy density \({f}_{\rm{elastic}}\) can be written as

$${f}_{\rm{elastic}}=\frac{1}{2}{c}_{ijkl}{e}_{ij}{e}_{kl}=\frac{1}{2}{c}_{ijkl}({\varepsilon }_{ij}-{\varepsilon }_{ij}^{0})({\varepsilon }_{kl}-{\varepsilon }_{kl}^{0}),\,(i,\,j,\,k,\,l=1,\,2,\,3)$$
(7)

where \({c}_{ijkl}\), \(\,{e}_{ij}\), \({\varepsilon }_{ij}\), and \({\varepsilon }_{ij}^{0}\) is the elastic stiffness tensor, elastic strain, total strain, and eigenstrain of BFO films, respectively. The eigenstrain is \({\varepsilon }_{ij}^{0}={Q}_{ijkl}{P}_{k}{P}_{l}\), \({Q}_{ijkl}\) is an electrostrictive coefficient tensor and can be marked as \({Q}_{11}\), \({Q}_{22}\), and \({Q}_{44}\) due to the symmetry. Here, there are three elastic constants of \({c}_{11}\), \({c}_{12}\), and \({c}_{44}\) in Voigt’s notation for a cubic symmetry.

The top surface of films is stress-free and the bottom is constrained by the substrate. In the bottom surface of the film, the equal biaxial misfit strain is considered along the x and y directions. The elastic stress is \({\sigma }_{ij}={c}_{ijkl}{e}_{ij}={c}_{ijkl}({\varepsilon }_{ij}-{\varepsilon }_{ij}^{0})\), and the mechanical equilibrium equation is \({\sigma }_{ij,j}=\frac{\partial {\sigma }_{ij}}{\partial {x}_{j}}=0\,(i,j=1-3)\). Here, on the top surface of the film \({\sigma }_{i3}{|}_{x3=nf}=0\).

The electrostatic energy density \({f}_{\rm{electric}}\) can be written as

$${f}_{\rm{electric}}=-{P}_{i}{E}_{i}-\frac{1}{2}{\varepsilon }_{0}\,{k}_{ij}{E}_{i}{E}_{j}$$
(8)

where ε0 is the vacuum dielectric constant, and \({k}_{ij}\) represents the background dielectric constants56, and here the isotropic \({k}_{ij}\) is taken as \({k}_{11}={k}_{22}={k}_{33}=45\), which is consistent with the adopted value of the previous references57. Electrostatic energy comes from two contributions, one comes from spontaneous polarization, and the other comes from energy storage in vacuum space. The contributions of polarization come from the ionic displacements and background dielectric constants. \({E}_{i}=-{\nabla }_{i}\varphi =-\frac{\partial \varphi }{\partial {x}_{i}}\) is an electrostatic field, \(\varphi\) is electric potential. The short-circuit boundary conditions are applied to solve the electrostatic equilibrium equation, which avoids the depolarization effect and bound charge screening effect. Then, the surface charge density (\({\sigma }_{surf}\)) is applied on the top surface of thin films and the free charge density has the following boundary condition: \({\rho }_{|z=nf}={\sigma }_{\rm{surf}}\), and \(\rho =0\) in the thin film. Assuming that the \({\sigma }_{\rm{surf}}\) is that the charge occupies each grid point, \({\sigma }_{\rm{surf}}={\sigma }_{\rm{surf}}^{\ast }\,\times \,{\rm{electrons}}/{S}_{{\rm{grid}}\_{\rm{area}}}\), one grid size is Sgrid_area = 1.0 × 10−18 m2 and one electron is equal to 1.6 × 10−19 C.

Accordingly, the electrostatic potential \(\varphi\)(r) at the thin film surface can be solved by electrostatic equilibrium (Poisson) equation58,

$$\Delta \varphi {|}_{z=nf}=\frac{\nabla \cdot {P}_{i}-{\rho }_{|z=nf}}{{\varepsilon }_{0}{k}_{ii}}(i=1,\,2,\,3)$$
(9)

where nf is the thickness of the thin film. The details of boundary conditions can be seen in ref. 33.

In the simulations, the three-dimensional sizes of the simulated systems are 64∆x × 64∆x × 16∆x for a single domain, where ∆x = 1 nm, and 128∆x × 128∆x × 16∆x for bi-domains, and 240∆x × 240∆x × 16∆x for tri-domain. In addition, the thickness of BFO film is 10 nm (nf = 10∆x), and the material coefficients of BFO are listed in Table 1.

Table 1 The material coefficients of BiFeO3 are used in phase-field simulations.