Introduction

The analysis of the properties of solitons is a cornerstone in current research regarding technological applications based on the control of magnetic quasiparticles1,2,3,4,5. The main feature that allows the use of solitonic magnetic patterns as information carriers resides in their strong stability ensured by topological protection6. Therefore, the focus of applied research is on describing the fundamental properties of topological textures and their current-driven motion. Up to recent years, the interest was centered in studying solitons lying in quasi-2D-systems, such as skyrmions7, skyrmioniums8, biskyrmions9, and bimerons10,11,12,13. Nevertheless, recent advances in producing and characterizing nano and microstructures with a plethora of shapes and sizes14,15,16,17 renewed the interest in describing the properties of three-dimensional (3D) magnetic profiles18,19,20,21,22,23,24,25,26,27. Among the 3D magnetic quasiparticles with topological protection, we can highlight the Bloch point (BP)28,29, which is a structure that presents a singular point at its center, where ferromagnetic order is destroyed30,31,32. The defining property of a BP is that in a closed surface around its center, the direction of the magnetization field covers the whole solid angle an integer number of times. Theoretical and experimental works showed that these magnetic singularities appear in magnetic nanodots with perpendicular magnetic anisotropy24, in ferromagnets during the process of vortex core reversal33,34,35, the reversal of skyrmions in confined helimagnetic structures36, in a bilayer of nanodots of FeGe with different chiralities37, in modulated nanowires with intrinsic Dzialoshinskii-Moriya interaction38, and in cylindrical magnetic nanowires as the center of a vortex domain wall39,40,41.

To properly use BPs in technological applications based on their stabilization and motion, it is crucial to analyze the fundamental properties of these structures. Therefore, several interesting phenomena regarding the BPs behavior have been reported. For instance, the analysis of the magnetization resonant modes in modulated nanowires evidenced that the magnetic response to an external magnetic field can establish a strategy for detecting BPs in such systems42. Also, from analyzing the scattering of magnons by BPs, Elías et al.43 showed that this system is described by the same solutions of the system electron × magnetic monopole. Therefore, the non-trivial topological structure of the Bloch point manifests in the propagation of spin waves, endowing them with a gauge potential that yields the emergence of spin wave vortices44,45 as a result of such a scattering. Another exciting property regarding the analogy between BPs and phenomena belonging to other physical contexts is the spontaneous emission of spin waves when a BP domain wall displaces in a cylindrical nanowire. In this case, when the DW velocity is above a threshold value, one can observe a Cherenkov-type DW breakdown phenomenon originating from an interaction between the spontaneously emitting SW and the BP domain wall46.

Because the structure of a BP depends on the boundary conditions, an interesting problem, from the fundamental point of view, is the analysis of the BP properties as a function of the geometrical parameters of a magnetic system where it is confined. Therefore, due to the BP symmetry, the sphere is a natural geometry where these topological structures can appear as a metastable static configuration. Although a formal solution describing the radial BP represents the maximum energy state, hedgehog BPs appear as intermediate metastable states in spherical nanoparticles before the appearance of the more stable twisted BPs47. In this regard, if the complete magnetostatic interaction is considered for determining the BP profile, the twist angle of a BP hosted in a sphere is approximately \(105^\circ\)48. This swirling effect originated from the magnetostatic energy leads to a non-zero 3D topological charge, which does not occur for radial BPs49.

Based on the above described, this work analyzes the fundamental properties of a magnetic sphere hosting a BP magnetization pattern. Through analytical calculations, we determine the magnetic field generated outside the sphere as a function of the BP helicity. We show that the magnetic field generated by a BP hosted in the sphere resembles that of a quadrupole. The strength of the quadrupolar field is modulated by a factor that depends on the material magnetic parameters, the polarity, and the helicity of the BP. These results allow us to analyze the interaction between two nanospheres having a BP as the magnetic state. In this case, we obtain the BP interaction as a function of the relative orientation between their polarities and the BP-to-BP distance. We conclude that the strength of the BP interaction depends on the rotation angle of one BP related to the other. Additionally, the relative orientation between the BP polarities also determines the character of the magnetostatic interaction, which can be attractive or repulsive. These results reveal the complex behavior of the BP interaction, whose discussions should be beyond topological charge-mediated interaction.

Magnetic field of a BP

This section presents the analysis of the magnetostatic field generated by nanospheres whose dimensions allow the nucleation and stabilization of a BP singularity as a metastable configuration. The performed calculations are obtained in the framework of the micromagnetism approach, where the magnetization, \({\textbf{M}}\), can be considered as a continuous function depending on the position inside the magnetic body. The considered system consists of a magnetic sphere with radius R made of a material having saturation magnetization \(M_s\). The normalized magnetization field can be written in spherical polar coordinates as \({\textbf{M}}({\textbf{r}})/M_s \equiv {{\textbf{m}}}=\left( \sin \Theta ({\textbf{r}})\cos \Phi ({{\textbf{r}}}),\sin \Theta ({{\textbf{r}}})\sin \Phi ({\textbf{r}}),\cos \Theta ({{\textbf{r}}})\right)\). Under this framework, the magnetic profile of a BP configuration can be modeled with the ansatz47

$$\begin{aligned} \Theta (\theta ) = p\theta + \pi (1-p)/2 \end{aligned}$$
(1)
$$\begin{aligned} \Phi (\phi ) = q\phi +\gamma , \end{aligned}$$
(2)

where \(\theta\) and \(\phi\) are the standard polar and azimuthal angles describing the spherical coordinates, \(p=\pm 1\) stands for the BP polarization, \(q \in {\mathbb {Z}}\) corresponds to the winding number, and \(\gamma\) is the helicity. Although \(\gamma\) has slight variations along the radial position inside the sphere49, we consider it a fixed value in the sphere volume. Thus, in this parametrization, the (2D) topological Pontryagin invariant is \(Q = (4\pi)^{-1}\int_{S}\sin \Theta d\Theta d\Phi = pq\). It is worth noticing that this work focuses on determining the properties of topological magnetic textures with \(q=1\) (BP). The properties of their \(q=-1\) counterparts (Anti BP) will be considered in future works. To better describe the magnetic textures determined from Eqs. (1, 2), we present some types of BPs with different helicities and polarities in Fig. 1. One can notice that while p determines the direction in which the magnetic moments in the poles of the sphere point, \(\gamma\) determines the direction of the magnetic vector field in the sphere equator. The analysis of Fig. 1 evidences that, as expected, the magnetization vector field of a BP obeys the hairy ball theorem50, which states that any continuous tangent vector field on the sphere must have a vanishing point.

Figure 1
figure 1

Magnetization vector field of BP singularities confined in a nanosphere for different values of p and \(\gamma\).

One of the main objectives of the present work is determining the magnetostatic field \({\textbf{H}}_d\), generated by a BP nucleated in a ferromagnetic nanosphere in the whole space. Indeed, although the calculation of \({\textbf{H}}_d^{\text {in}}\) inside the sphere has already been performed47,48, the magnetic field, \({\textbf{H}}_d^{\text {out}}\), generated by the BP in the region outside the sphere has not been addressed in detail. Determining the specific profile of \({\textbf{H}}_d^{\text {out}}\) is important to better understand the fundamental physics behind BP structures and to analyze the magnetostatic interaction between two nanospheres nucleating BPs as metastable states.

In the absence of current densities, the micromagnetism approach allows us to obtain the magnetic field as \({\textbf{H}}_d=-\nabla U_d\), where \(U_d\) is the magnetostatic potential, whose formal solution is51

$$\begin{aligned} U_d({\textbf{r}}) = -\frac{1}{4\pi } \int _{V'} \frac{\nabla \cdot {\textbf{M}}({\textbf{r}}')}{|{\textbf{r}}-\textbf{r}'|}dV'+\frac{1}{4\pi } \int _{ S'} \frac{{\textbf{M}}({\textbf{r}}')\cdot {\textbf{n}}'}{|{\textbf{r}}-{\textbf{r}}'|}dS', \end{aligned}$$
(3)

where \({\textbf{n}}\) is the unitary vector normal to the surface, the first and second integrals in the above equation are evaluated along the sphere volume (V) and external surface area (S), respectively. The magnetostatic potential given in Eq. (3) can be fully calculated by expanding the Green’s function \(G({\textbf{r}},{\textbf{r}}') = \vert {\textbf{r}}-{\textbf{r}}'\vert ^{-1}\) into the spherical harmonic basis (see details in the Supplementary Material). Therefore, after some algebra, we obtain the magnetostatic potential generated by an isolated BP confined in a nanometric sphere, given by

$$\begin{aligned} U_d^{\text {in}}({\textbf{r}})= \frac{M_s}{24}\Big (9pr -8pR+15r\cos \gamma -16R\cos \gamma +3r\cos 2\theta (p-\cos \gamma )\Big )\,, \end{aligned}$$
(4)

and

$$\begin{aligned} U_d^{\text {out}}({\textbf{r}})= M_s\frac{R^4}{12 r^3}(p-\cos \gamma )(3\cos ^2\theta -1)\,, \end{aligned}$$
(5)

where the superscripts in and out are associated with the magnetostatic potential inside and outside the sphere, respectively. In this context, from the definition of the magnetostatic field, we have that

$$\begin{aligned} {\textbf{H}}_d({\textbf{r}})= {\left\{ \begin{array}{ll} {\textbf{H}}_d^{\text {in}}({\textbf{r}})=-\nabla U_d^{\text {in}}({\textbf{r}}) &{} \text {for } r\le R \\ {\textbf{H}}_d^{\text {out}}({\textbf{r}})=-\nabla U_d^{\text {out}}(\textbf{r}) &{} \text {for } r> R \,. \end{array}\right. } \end{aligned}$$
(6)

The substitution of Eqs. (4) and (5) in Eq. (6) yields the magnetostatic field inside and outside of a sphere hosting a BP, respectively, given by

$$\begin{aligned} {\textbf{H}}_d^{\text {in}}(\textbf{r})=-\frac{M_s}{8}\Big [\left( 3p+5\cos \gamma +(p-\cos \gamma )\cos 2\theta \right) {\hat{r}}+2\left( (-p+\cos \gamma )\sin 2\theta \right) {\hat{\theta }} \end{aligned}$$
(7)

and

$$\begin{aligned} {\textbf{H}}_d^{\text {out}}(\textbf{r})=M_s\frac{R^4}{48r^4}(p-\cos \gamma ) \left[ \left( \frac{1+3\cos 2\theta }{2}\right) {{\hat{r}}} +\sin 2\theta \,{\hat{\theta }} \right] \,. \end{aligned}$$
(8)

One can notice that the value of \(\gamma\) plays different roles in the magnetic field inside and outside the sphere. That is, in the region \(r>R\), \(\gamma\) contributes to a global factor to the magnetostatic field, which vanishes when the BP is spherically symmetric (\(\gamma =0\) or \(\pi\) for \(p=1\) or \(p=-1\), respectively). In such a case, the dipolar term does not contribute to stabilizing hedgehog-like BPs. Consequently, this kind of BP can only be stabilized in the absence of dipolar energy and under certain specific conditions52,53. On the other hand, because \(\gamma\) does not contribute to a global factor in the magnetostatic field inside the sphere, even spherically symmetric BPs generate a dipolar field inside the nanoparticle. Indeed, a hedgehog BP pointing radially outside (\(p=1\) and \(\gamma =0\)) generates a constant magnetostatic field pointing radially inside the sphere. This magnetostatic field yields the magnetic moments to deviate from the radial direction and adopts a quasi-tangential configuration in the nanosphere equator47,48.

Figure 2
figure 2

(Normalized) External quadrupolar field produced by a BP hosted in a nanosphere. Here we have used \(p = +1\) and \(\gamma = \pi /2\).

The vector field of the magnetostatic field outside the sphere is depicted in Fig. 2, for \(p=1\) and \(\gamma =\pi /2\). From Eq. (8), it is possible to notice that there are two explicit behaviors of \(H_d\) when \(\gamma\) varies: (i) if \(p=+1\) , the field strength increases with \(\gamma\), and (ii) if \(p = -1\), the field strength decreases when \(\gamma\) increases. This result is very interesting since quadrupole magnetic fields can be used, for instance, for trapping atoms in radio-frequency dressing experimental settings54, designing magnetic tweezers to exert forces on magnetic particles55, and changing the properties of ferrofluid flow and heat transfer56. The quadrupolar fields are generally obtained by two ferromagnetic bars parallel to each other, with the north pole of one next to the south of the other. The same field profile can be generated by two properly spaced coils with currents in opposite directions. Another interesting configuration of magnetic elements to obtain a quadrupolar field is considering four pole tips, with two opposing magnetic north poles and two opposing magnetic south poles. At the micro and nanoscale size, this last configuration can be observed in square spin ice systems57,58,59, and magnetic tweezers55.

Interaction between two magnetic spheres hosting Bloch point

Once we have established the particular shape of the magnetostatic field generated by a Bloch Point confined in a nanosphere, we can explore how two BP’s interact through the magnetostatic potential. Let us consider the interaction between two BP’s hosted in spherical nanoparticles with the same radii \(R_1=R_2=R\), separated by a distance d. We also consider that the magnetic spheres are not subject to any other force than that produced by the interaction between the magnetization field of one of them and the magnetic field produced by the other. Under these assumptions, the total magnetostatic energy \(E_{m}\) of the system is given by

$$\begin{aligned} E_{m}=-\frac{\mu _0}{2}\int {\textbf{M}}\cdot {\textbf{H}}, \end{aligned}$$
(9)

where \({\textbf{M}}({\textbf{r}})={\textbf{M}}_1({\textbf{r}})+\textbf{M}_2({\textbf{r}})\) and \({\textbf{H}}\) is the magnetic field produced by the magnetic spheres. The situation can become very complex if the magnetic field is strong enough to modify the structure of the BPs. In this case, finding a new equilibrium BPs configuration would be necessary to minimize the system’s energy. Due to this difficulty and the fact that the BP structure is mainly dominated by its self-dipolar field, we assume that the BPs structure does not change.This assumption can be justified by considering hard ferromagnetic materials so that weak external fields cannot modify their configuration. Indeed, the exchange energy of a BP confined in a nanosphere of radius R scales as \(\approx A R\)48, being A the stiffness constant. Similarly, the interaction energy obtained below (see Eq. 13) scales as \(\approx \mu _0 M_s^2 (R^6/d^3)\), where d corresponds to the separation distance and \(M_s\) to the saturation magnetization of the nanosphere. By using the parameters of Co nanoparticles (\(M_s\sim 10^6\) A/m), the sphere radius \(R\sim\) 1 nm, and setting the separation distance extremely small (spheres nearly touching) as \(d\sim 2R+0.1\) nm, we get that the exchange energy is two orders of magnitude larger than the interacting one, demonstrating thus the approach of rigid magnetization. In this approximation, Eq. (9) can be simplified to

$$\begin{aligned} E_{\text {int12}}=-\frac{\mu _0}{2}\int _{V_1}{\textbf{M}}_1\cdot \textbf{H}_2 \, dV_1-\frac{\mu _0}{2}\int _{V_2} {\textbf{M}}_2\cdot {\textbf{H}}_1\, dV_2, \end{aligned}$$
(10)

where the subindices 1 and 2 relate with the two BPs nucleated, respectively, in the blue and red spheres represented in Fig. 3.

From the reciprocity theorem51, we can state that both terms in the right-hand of the previous equation are equal. Therefore, we can rewrite Eq. (10) as

$$\begin{aligned} E_{\text {int}}=-\mu _0\int _{V_2}{\textbf{M}}_2\cdot {\textbf{H}}_1 dV_2. \end{aligned}$$
(11)

In the above equation, we consider that the BP stabilized in the sphere denoted by 1 generates a magnetostatic field \({\textbf{H}}_1\) in the region where the BP\(_2\), which has magnetization field \({\textbf{M}}_2\), is located in. Using \(\nabla \cdot (U_{\text {d}} {\textbf{M}})={\textbf{M}}\cdot \nabla U_{\text {d}}+ U_{\text {d}}\nabla \cdot {\textbf{M}}\), Eq. (11) reads

$$\begin{aligned}&E_{\text {int}} =\mu _0\int _{V_2}(U_{\text {d1}}\nabla \cdot {\textbf{M}}_2- \nabla \cdot (U_{\text {d1}} {\textbf{M}}_2)) dV_2 \end{aligned}$$
(12)
$$\begin{aligned}&=\mu _0\int _{V_2}U_{\text {d1}}\left( \nabla \cdot {\textbf{M}}_2\right) dV_2- \mu _0\int _{S_2}\left( U_{\text {d1}} {\textbf{M}}_2\right) \cdot \hat{{\textbf{n}}}_2dS_2. \end{aligned}$$
(13)
Figure 3
figure 3

Schematic representation of the idealized interaction between two nanospheres with a BP as a metastable state. In (a), we assume that the blue BP (sphere 1), localized in the frame O, generates a magnetostatic field that allows the interaction with the red BP (sphere 2), localized in the frame \(O'\). The vector \(\textbf{d}\) represents the separation between O and \(O'\), forming an angle \(\alpha\) with the Y-axis. The BP in \(O'\) is allowed to perform rigid rotations in response to the interaction energy, which is represented in (b) for a rotation of \(\xi\) about the axis X, and (c) a rotation of \(\psi\) about the axis Y.

It is worth noticing that Eq. (13) is integrated out in the frame where the BP\(_2\) is located. Therefore, we need to express the potential \(U_{\text {d1}}\), generated by the BP\(_1\), from the frame of the sphere 2 (see Fig. 3). We have then determined a relationship between the two reference systems by assuming that, in the most general scenario, the two reference frames, O and \(O'\), are located in the center of the spheres 1 and 2, respectively. Additionally, we consider that the BPs axis coincides with the Z and \(Z'\)-axis in each case. The reference frames are separated by a vector \({\textbf{d}}\), pointing from O to \(O'\), as depicted in Fig. 3. Also, sphere 2 (\(O'\)) is free to perform rigid rotations in response to interacting with the other BP. In this context, after some mathematical manipulations and considerations (see Supplementary Material for further details), we obtain the potential \(U_{\text {d1}}\) in the frame \(O'\), given by

$$\begin{aligned} U_{\text {d1}} = \frac{c_1}{|{\mathcal {R}}{\textbf{r}}_2+ \textbf{d}|^3}\Bigg [\frac{3}{|{\mathcal {R}}{\textbf{r}}_2+ \textbf{d}\vert ^2}\Big (d_z+r_2 \cos \theta _2 \cos \xi \cos \psi +r_2 \sin \theta _2 (\sin \xi \cos \psi \sin \phi _2 -\sin \psi \cos \phi _2 )\Big )^2-1\Bigg ]\end{aligned}$$
(14)

where \(c_1 = M_{s1}(p_1-\cos \gamma _1)R_1^4/12\) and we introduced the rotation matrix \({\mathcal {R}}(\xi ,\psi )\), with the rotation angles \(\xi\) and \(\psi\), corresponding to two sucessive rotations around X and Y, respectively, as depicted inf Fig. 3b,c (see details in Supplementary Material). Note that since the BPs we consider are axisymmetric, only two rotation angles are needed to explore rigid rotations.

A general result for the integrals presented in Eq. (13) becomes quite complicated. However, we can obtain interesting results by exploring some particular cases of interaction. Thus, we consider that the BP\(_1\) (which generates the magnetostatic field) is characterized by \(\gamma _1 = \arccos \left( -p_1/4\right)\) (we recall the fact that \(\gamma = 0\) produces null interaction energy) and fix its polarity \(p_1\) pointing in the \(Z\)-axis direction. Similarly, for the BP\(_2\), we adopt \(\gamma _2=\arccos \left( -p_2/4\right)\) and consider that \(p_2=\pm 1\). It is worth noting that because we assume that the interaction between the BPs does not change their helicities significantly, we use the \(\gamma\) value for a BP free of external interactions48. Finally, we fix the position of BP\(_1\) and vary the position of BP\(_2\) along the plane yz. In this way, we explore three representative cases for the interaction between the BPs as a function of \({\textbf{d}}=(0,d\cos \alpha ,d\sin \alpha )\), where \(\alpha\) is the angle between \({\textbf{d}}\) and the axis-Y (see Fig. 3). Finally, we restrict our analysis to cases where the BPs interaction is appreciable, i. e., the separation between them is \(\vert {\textbf{d}}\vert = R_1+R_2+\epsilon\), being \(\epsilon\) a small and positive parameter. The main idea is to describe how the magnetization field of the BP\(_2\) changes in the presence of the magnetostatic potential \(U_{\text {d1}}\). Therefore, we explore possible rigid rotations of the BP structure, which can be interpreted as variations of the direction to which the BP\(_2\) magnetic moments in the sphere poles (\(Z'\)-axis) point. Thus, from determining the interaction energy as a function of the rotation angles \(\psi\) and \(\xi\), we obtain the respective rotation angle minimizes the energy or, equivalently, the direction to which \(Z'\)-axis points in order to minimize the system’s energy. From now on, we numerically solve Eq. (13) to determine the system’s energy. In the obtained results, we adopt arbitrary unities, that is, \(R=1\), \(\mu _0=1\), \(M_s=1\), \(\epsilon =0.1\). Therefore, all the presented numerical results give us the qualitative behavior of the analyzed system.

Case 1: \({\textbf{d}}=(0,d,0)\)

Figure 4
figure 4

Magnetostatic energy between two BPs interacting along the Y-axis, defined by \(\alpha =0^{\circ }\). (a) Corresponds to the case \(p_2 = +1\), and (b) to \(p_2 = -1\).

Figure 5
figure 5

The final state of the BP\(_2\) magnetization configuration for the different rotation angles that minimize the magnetostatic energy in the case \(\alpha =0^{\circ }\). Figures (a) and (b) correspond respectively to the polarities \(p_2=1\) and \(p_2=-1\). For comparison, the BP\(_1\) profile is included in Figure (c), in blue color.

Firstly, we consider the interaction between two nanospheres hosting BPs lying in the plane YZ, along the Y-axis direction, that is, \(\alpha = 0^{\circ }\). The obtained results are depicted in Fig. 4, where we present the magnetostatic energy (in arbitrary unities) as a function of the rotation angles \(\psi\) and \(\xi\) that determine the final direction to which the \(Z'\)-axis points. Figure 4a,b depict the magnetostatic energy when the BP\(_2\) has a polarity \(p_2=+1\) and \(p_2= -1\), respectively. An opposite behavior can be observed from the analysis of the obtained results. From Fig. 4a, we can see that the minimum energy is degenerated in four pairs of rotation angles \(\{\psi ,\xi \}\), namely \(\left\{ (0,0),(\pi ,0),(0,\pi ),(\pi ,\pi )\right\}\). In this case, we can state that the BPs tend to align the magnetic moments in the sphere poles in the same direction (\({\hat{Z}}'=\pm {\hat{Z}}\)). Additionally, the minimum energy is independent of the helicity orientation (clockwise or anticlockwise). Indeed, Fig. 5a presents the magnetization field from each pair \(\{\psi ,\xi \}\) related to the minimum energy configuration. Its analysis reveals that, for \(p_2 = +1\), the four degenerated states are reduced to only two since a rotation in \(\xi =\pi\) essentially changes the sign of \(\gamma\). Finally, when the BPs axis are oriented perpendicular to each other (\(\xi =\pi /2\)), we obtain the maximum energy values, which establishes an energy barrier between the distinct magnetic ground states for the considered system. In contrast, when \(p_2=-1\), we obtain an opposite behavior. That is, the system minimizes its energy for \(\xi =\pi /2\), whatever the rotation angle \(\psi\), and the maximum values for the magnetostatic energy degenerate in the four pairs of rotation angles which minimize the energy in the case \(p=+1\). The magnetization profile of the BP\(_2\) in the minimum energy configuration is depicted in Fig. 5b. In Fig. 5c, we present the magnetization profile of BP\(_1\) just for comparison with the final magnetic states of the BP\(_2\).

Case 2: \({\textbf{d}}=(0,d,d)\)

Figure 6
figure 6

Magnetostatic energy of a system composed by two BPs interacting along an axis defined by \(\alpha =45^{\circ }\) as a function of the rotation angles \(\psi\) and \(\xi\). (a) Corresponds to the case \(p_2 = +1\) and (b) to \(p_2=-1\).

Figure 7
figure 7

Final configuration of the BP\(_2\) for the different rotation angles that minimize the interaction energy in the case \(\alpha =45^{\circ }\). (a) and (b) Correspond respectively to the cases where \(p_2=1\) and \(p_2=-1\). For comparison, the configuration of BP\(_1\) was included in (c).

We continue our analysis on the magnetostatic interaction between two BPs hosted in nanospheres by considering that they lie in the YZ-plane, and their relative position forms an angle \(\alpha = 45^{\circ }\). Our results evidence the same qualitative behavior as compared with the case of \(\alpha =0^{\circ }\). That is, there are certain rotation angles where the minimum energy is reached, depending on the BP polarity and the specific orientations between the axes Z and \(Z'\). Nevertheless, due to the rotational symmetry of the BPs, the configuration that minimizes the energy when \(\alpha =45^{\circ }\) is infinitely degenerated, as evidenced from the results presented in Fig. 6, which shows the magnetostatic energy as a function of the rotation angles \(\psi\) and \(\xi\). For each rotation \(\xi\), around X-axis, there is an associated rotation \(\psi\), around Y-axis, that leads the BPs to assume the minimum energy configuration. Indeed, the analysis of Fig. 6a reveals that for \(p_2=+1\), there are infinite pairs of angles \(\{\psi ,\xi \}\) that minimize the energy. For instance, the minimum energy configuration of the BP\(_2\) for the case \(\psi =0\) is shown in Fig. 7a. In this case, only one rotation around the X-axis (\(\xi =\pi /2\)) is allowed since any other value of \(\xi\) would yield higher energy. Additionally, two pairs of rotation angles produce the configuration with maximum energy, e.g., \((\psi ,\xi )\sim (0,0)\) and \((\psi ,\xi )\sim (\pi ,\pi )\), which are separated by the energy valley formed by the infinitely degenerated minimum energy states. If the BP\(_2\) polarity is \(p_2=-1\), one observes a similar behavior as the case where \(p_2=1\) and \(\alpha =0\). Indeed, because the inversion of the polarity leads to the opposite behavior in the magnetostatic interaction between the BPs, two pairs of rotation angles minimize the energy, as evidenced by the results presented in Fig. 6b. In this case, the pairs \((\psi ,\xi )\sim (0,0)\) and \((\psi ,\xi )\sim (\pi ,\pi )\) represent the configuration with minimum energy, which are separated by the energy barrier for the infinite number of pairs \((\psi ,\xi )\). Nevertheless, it is worth noticing that although the points \((\psi ,\xi )\sim (\pi ,0)\) and \((\psi ,\xi )\sim (0,\pi )\) do not correspond to the minimum energy configuration, they can also be considered metastable states due to the pronounced energy barrier at the lines \(\xi \sim \pi /2\). The possible configurations of BP\(_2\) having minimum energy or metastable states are presented in Fig. 7b. For comparison, the magnetization configuration of the BP\(_1\) (which generates the magnetostatic field) is included in Fig. 7c.

Case 3: \({\textbf{d}}=(0,0,d)\)

Figure 8
figure 8

Magnetostatic energy of a system composed by two BPs interacting along an axis defined by \(\alpha =90^{\circ }\) as a function of the rotation angles \(\psi\) and \(\xi\).

Figure 9
figure 9

Final configuration of the BP\(_2\) for the different rotation angles that minimize the interaction energy in the case \(\alpha =90^{\circ }\). (a) and (b) Correspond respectively to the cases where \(p_2=1\) and \(p_2=-1\). For comparison, the configuration of BP\(_1\) was included in (c).

Finally, we consider the interaction between two BPs lying in the plane YZ, with their relative position forming the angle \(\alpha = 90^{\circ }\). Under this assumption, the BP\(_2\) is located at the Z-axis, just above the BP\(_1\). We analyze the behavior of the magnetostatic energy as a function of possible BP\(_2\) rotations around the axis X and Y. The obtained results are presented in Fig 8a, from which one can notice that, for \(p_2=+1\), the configuration having minimum energy is precisely the same as the case \(\alpha =0^{\circ }\). That is, the minimum energy is degenerated in four pairs of rotation angles \(\{\psi ,\xi \}\), which can be reduced to only two rotations because the minimum energy is independent of the helicity orientation, as represented in Fig. 9a where can be noticed that \(\xi =\pi\) essentially changes the sign of \(\gamma\). These minimum energy states, corresponding to the case \(p_2 = +1\), are separated by an energy barrier whose maximum values are associated with an infinite number of possible rotations given by \((\psi ,\pi /2)\) and \((\pi /2,\xi )\), as depicted in Fig. 8a. A similar, but opposite behavior is found for the case \(p_2 = -1\) depicted in Fig. 8b. In this case, the minimum energy states are degenerated since there are infinity pair \((\psi ,\xi )\) corresponding to the lowest energy state, i.e., if \(\psi =\pi /2\), the energy is independent of the rotation angle \(\xi\). The same behavior is valid if we fix \(\xi =\pi /2\) and change the values of \(\psi\). Two examples of the BP\(_2\) configuration (\((0,\pi /2)\) and \((\pi /2,0)\)) producing the minimuum energy state for the case \(p_2=-1\) are presented in Fig. 9b. For reference, the magnetization configuration of the BP\(_1\) generating the magnetostatic field is included in Fig. 9c.

Magnetostatic energy as a function of the distance

Figure 10
figure 10

Magnetostatic energy as a function of the BP distance. (a) Presents the results for \(\alpha =0^{\circ }\) and \(p_2=+1\), while (b) depicts the case \(\alpha =90^{\circ }\) and \(p_2=-1\). In both cases, open symbols correspond to the energy when the BPs are oriented to reach the maximum energy state, while filled symbols correspond to the energy when the BPs are oriented to reach the minimum energy configuration. (c) Depicts the behavior of the energy as a function of \(\xi\) for a fix \(\psi =0\) in the case \(\alpha =0^{\circ }\) with \(p_2=+1\). (d) Shows the corresponding energy as a function of \(\xi\) for \(\psi =0\) in the case \(\alpha =90^{\circ }\) and \(p_2=-1\).

The above-analyzed cases present the same qualitative behavior regarding the magnetostatic interaction as a function of the rotations of BP\(_2\) concerning BP\(_1\). From this perspective, we study the nature of these interactions if they are attractive or repulsive. We have then determined the magnetostatic energy of the system composed of the two BPs as a function of the distance between them. To clarify the role of the relative orientation between the BPs on the interaction, we present the results for the magnetostatic energy when the BPs are oriented to reach the minimum and maximum energy state for the cases \(\alpha =0^{\circ }\) with \(p_2=+1\) (Fig. 10a), and \(\alpha =90^{\circ }\) with \(p_2=-1\) (Fig. 10b). Although we present only these two particular cases, the same qualitative behavior is observed in all analyzed cases under the respective combinations of \(\alpha\) and \(p_2=\pm 1\), yielding maximum and minimum energy configurations. Our results show that the magnetic configurations presenting minimum and maximum energies have attractive and repulsive natures, respectively. Indeed, the analysis of Fig. 10a,b reveal that the energy increases with the nanospheres’ distance when the relative orientation of the BPs leads to the minimum energy configuration, evidencing an attractive interaction. On the other hand, a decrease in the magnetostatic energy is observed when the BPs are oriented at an angle defining the maximum energy configuration, revealing, in this case, the repulsive nature of the BPs interaction.

Because the relative rotation between the BPs changes the nature of the interaction from attractive to repulsive, there should be a set of specific rotation angles for which the BPs do not interact. To corroborate this statement, we calculate the magnetostatic energy numerically as a function of \(\xi\) for a fixed \(\psi\) and distance between the nanospheres. The obtained results are depicted in Fig. 10c,d respectively for \(\alpha =0^{\circ }\) and \(\alpha =90^{\circ }\), where we fix \(\psi =0^{\circ }\). In specific, for the case \(\alpha =0^{\circ }\) with \(p_2 = +1\) the system becomes noninteracting when \(\xi \sim 41^{\circ }\) or \(\xi \sim 138^{\circ }\). Similarly, in the case \(\alpha = 90^{\circ }\) with \(p_2=-1\), the BPs do not interact when \(\xi \sim 54^{\circ }\) or \(\xi \sim 125^{\circ }\). As expected, the qualitative behavior for both cases is similar, but the specific angles for which the interaction vanishes depend on \(\alpha\).

Discussion and conclusions

The knowledge of the magnetostatic field generated by magnetic nanoparticles is an important issue to consider when analyzing the interaction between magnetic particles. In this work, we analyzed the magnetic field of nanospheres hosting a BP as a metastable state. Our results evidenced the quadrupolar nature of the magnetostatic field generated by a BP. The strength of this field depends on the BP helicity, vanishing for a hedgehog BP pattern. This result is interesting from both perspectives, fundamental and applied physics. Indeed, the magnetic system considered in our work overcomes the necessity of using two or more magnetic elements to generate a quadrupole magnetic field, which can give a new breath for technological propositions regarding quadrupole magnetic fields54,55,56.

The magnetostatic interaction between two nanospheres with a BP metastable state is also determined. Our results evidenced that the interaction between BPs depends on the relative position of one BP regarding the other. Additionally, the relative orientation between the BP axis determines the strength of the magnetostatic energy. Depending on the BPs polarities, there are relative orientations of the BPs magnetic moments for which the energy is minimized. Nevertheless, the energy minima are separated by relative rotation angles for which the energy is a maximum. In this context, although the interaction between planar vortices (2D counterparts of BPs) can be analyzed from the perspective of their topological charges60, we can conclude that the interaction between BPs should consider arguments beyond the approximation of topological charge-mediated interaction. Indeed, BPs with the same topological charge (\(p_1=p_2=+1\)) can interact with attractive or repulsive potential, depending on the relative rotation angle between them. The same behavior is valid for BPs with opposite topological charges (\(p_1=-p_2\)). Finally, because the nature of the interaction can change from attractive to repulsive, we showed that there are relative orientations between the BPs for which they do not interact. These results provide evidence that nanospheres with BPs as magnetic states should present an exciting interaction dynamic, highly depending on the initial conditions. Although the results presented in this work concern the magnetostatic interaction of BPs, they give some insights in possible ways to understand the complex behavior of three-dimensional topological textures. Finally, an important prediction of our theory relies on the fact that thermal fluctuations typically cause the maximum energy state to decay into the minimum one. Therefore, in such a case, the interaction becomes attractive, and according to our calculations, the attraction between BPs should be more likely expected in real experiments. In addition, it can be noticed that the (radial) field force, which is proportional to (minus) the derivative of the magnetostatic energy in Fig. 10a,b has a positive sign for the maximum energy case and the opposite for the minimum energy case, in concordance with the attractive and positive interactions discussed above