Numerical simulation of knotted solutions for Maxwell equations
Abstract
In this work, we use the finite differences in time domain (FDTD) numerical method to compute and assess the validity of Hopf solutions, or hopfions, for the electromagnetic field equations. In these solutions, field lines form closed loops characterized by different knot topologies which are preserved during their time evolution. Hopfions have been studied extensively in the past from an analytical perspective but never, to the best of our knowledge, from a numerical approach. The implementation and validation of this technique eases the study of more complex cases of this phenomena; e.g. how these fields could interact with materials (e.g. anisotropic or non-linear), their coupling with other physical systems (e.g. plasmas), and also opens the path on their artificial generation by different means (e.g. antenna arrays or lasers).
I Introduction
Hopfions are a family of localized solutions for the electromagnetic field Maxwell equations in which field lines are closed, forming knotted topologies which are preserved when evolved in time Irvine and Bouwmeester (2008); Lechtenfeld and Zhilin (2018); Cameron (2018). Beyond their intrinsic mathematical interest, these solutions may also contribute to several branches of Physics. Some authors have proposed that they play a key role in the phenomena known as ball lightning Rañada and Trueba (1996); Rañada et al. (2000) or as exotic quantum mechanical solutions that describe the electron at a fundamental level, predicting some of its properties Lee et al. (2018); Rañada and Trueba (1998); Rañada (1992).
In the past, hopfions have been studied exclusively from an analytical perspective Irvine and Bouwmeester (2008); Irvine (2010); Kedia et al. (2013); Rañada (1989); Kawaguchi et al. (2008). However, to the best of our knowledge, they have never been simulated numerically. These simulations can be of interest for several reasons. First, because hopfions are demonstrated to exist, not only from purely analytical arguments, but from the direct numerical resolution of the elemental Maxwell’s curl equations. Additionally, a validated numerical approach opens many possibilities to study more complicated variants of this phenomena, e.g. the study of their interactions with anisotropic or non-linear materials, with other hopfions Arrayás and Trueba (2017), their coupling with other physical equations, or the possibility of generating them by means of antenna arrays or lasers; a technique which was proposed as a way for their physical realization but has not been accomplished yet Irvine and Bouwmeester (2008).
The accuracy assessment of hopfion numerical solutions is a necessary step to address certain physical problems which are not feasible analytically. To this end, in this work we use the finite-difference time-domain (FDTD) method Yee (1966); Taflove and Hagness (2005), a proven and robust method which is ubiquitous in computational electrodynamics, and which is possibly the optimal approach given the spatial and time scales involved. The input of the method is an initial known analytical hopfion solution and the obtained numerical evolution results are then compared with the expected analytical solution. Different metrics are proposed as tools to asses the validity of this approach.
This work is organized as follows: first, in Sec. II we give a theoretical background, focusing on the construction of hopfions and their helicity conservation property. Second, we briefly describe the FDTD method. Next, in Sec. III we describe the propagation of the hopfion based on the numerical simulations as well as the conservation of the helicity as a benchmark. In this context, we also introduce a metric to quantify the error in the propagation. Finally, in Sec. IV we summarize the main conclusion of this study along with possible extensions and applications.
II Background
II.1 Theory
Hopfions were proposed in 1989 by Rañada Rañada (1989). In that work, he formulated a particular solution for Maxwell’s equation in which all field lines are closed and form a torus which deforms over time while, at the same time, preserves its topology. This result was then extended and categorized as part of a family of solutions characterized by an arbitrary number of mathematical knots, i. e., embeddings of a circle in a 3-dimensional Euclidean space Irvine and Bouwmeester (2008); Kawaguchi et al. (2008). In this regard, Ra ñada’s torus has a circumferential core which within this family of solutions corresponds to the knot known as the unknot. However, with the exception of Rañada’s hopfion, these generalized hopfion topologies did not preserve over time. It was not until 2013 when Kedia et al. [Kedia et al., 2013] brought to light an analytical construction which allows to formulate a whole family of topology preserving knotted solutions for Maxwell’s equations.
It is widely accepted that light knots must be null fields as a necessary condition to preserve knot topology Kedia et al. (2013); Besieris and Shaarawi (2009). The properties of the null fields are
-
1.
Electric and magnetic fields are perpendicular at every point:
-
2.
They have the same magnitude: .
Assuming this hypothesis, we may apply the Bateman’s method to build null fields, and hence, hopfion solutions. First, we define the Riemann-Silberstein vector ,
(1) |
where and represent the magnetic and electric field, respectively. Note that we use the electromagnetic natural units in which the vacuum electric permittivity, magnetic permeability, and speed of light (, and , respectively) are equal to one.
Bateman’s method proves that every Riemann-Silberstein vector corresponding to a null field can be written as,
(2) |
where and can be any complex function as long as they meet the following condition:
(3) |
Kedia et al. Kedia et al. (2013) found these specific expressions for and :
(4) |
(5) |
where and must be positive coprime integers which lead us to different kinds of knots. Note that the expressions (4) and (5) have been obtained assuming an arbitrary distance () and time () units which set the hopfion scale.
The knotness of a hopfion can be characterized by its magnetic and electrical helicity, and respectively Irvine and Bouwmeester (2008); Arrayás et al. (2017), defined as
(6) |
where , and represents the domain. Note that as the helicity is a measurable quantity, it must be gauge independent.
Let us prove that the magnetic helicity is invariant under gauge transformations, i.e., the magnetic helicity for , noted as ), is equal to . We compute using Eq. (6)
(7) |
where we have used that and imposed that the magnetic field vanishes in the boundary of , i.e. . Using a similar procedure we obtain that the helicity of the electric field is also preserved.
Now, we prove that and do not change in time for null fields. The time derivative of the magnetic helicity
(8) | |||||
then, we use that David J. Griffiths (1999),
(9) |
and we set and . Thus, Eq. (8) reads as
(10) | |||||
where we have used that the null fields fulfilled that and vanishes in the boundary . Using a similar procedure we can prove that the electric helicity is constant over time.
II.2 The Finite-Differences in Time Domain method
The Yee FDTD scheme Yee (1966) numerically solves Maxwell curl equations by replacing the space and time derivatives by finite differences. Any unknown field component can be advanced a time step using the ones at adjacent space positions. To obtain an optimized algorithm, fields are arranged strategically on the center of the edges and faces of a cubic cell of size ; a configuration known as Yee’s cell Yee (1966). For instance, to evolve the component a time step we obtain the following formula in free-space,
(11) |
where are integer numbers identifying each cell and time step at a time step ; barred indices indicate the addition of a half-step, e.g. , and .
In order to compute a simulation, Maxwell’s equations have to be propagated in a finite box endowed with boundary conditions. As our aim is to simulate a hopfion which is supposed to be isolated in an infinite space, we must set reflection-less boundary conditions which absorb all the energy exiting the domain. The most widely used method in FDTD for this purpose is the perfectly matched layer (PML), which is reported to perform with less than -80 dB of attenuation for reflections, independently of the angle of incidence of impinging waves Gedney (1996).
III Results and validation
In this section, we study the time propagation of the numerical hopfion solutions, cross-validated with analytical results. The time-domain nature of the FDTD method allows us to visualize different snapshots of the time evolution. The initial time step is set to , the computational domain is a cubic box of , being the spatial step and a temporal step of . All the results shown in this work were obtained using an Intel(R) Core(TM) i7-4710MQ personal computer with 16 GB of RAM. We focus our discussion on two types of hopfions obtained by setting and in expressions (4) and (5).

III.1 Hopfion’s dynamics
First, we analyze the hopfion {1,1}, also known as Rañada’s torus or the unknot. In Fig. 1 and 2 we show the analytical and numerically computed electric and magnetic field lines, respectively, at three different times. Let us remark that the torus shape-like of field lines are similar for the electric and magnetic field. Furthermore, the computational results reproduce very accurately the analytical ones, being indistinguishable in the scale of the figure.


On the other hand, in Fig. 4 and 5 we show the analytical and computed hopfion {2,3} solution for the electric and magnetic fields as a function of time. As in the previous case, it topology structure, i. e., the trefoil knot, is preserved during the time propagation. However, we see that the field lines of simulated hopfion at are closer than in the theoretical simulation, i. e., this simulation tends to stick the field lines. This error occurs because of the complexity of hopfion {2,3}, whose structure is more tangled than hopfion {1,1}. However, this error can be suppressed by using a more dense computational grid. Even though, this error is not remarkable, as we will discuss in more detail in Sec. III.2.
In figures 3 and 6 show Poynting vector field lines for hopfion {1,1} and {2,3}, respectively. Interestingly, in both cases we can appreciate that they correspond to the unknot, even for hopfion {2,3}, whose electric and magnetic field correspond to the trefoil knot. Moreover, for both hopfions we may note that the torus defined by the Poynting vector field moves from bottom to top of the axis without deformation while the electromagnetic energy moves from top to bottom. The main difference we appreciate is the energy distribution. If we now compare the simulated and theoretical results we may see that they are virtually identical, even considering that interpolations of the simulation results were necessary to obtain these field lines.



At first glance, the knotness is conserved during the numerical propagation, as in the theoretical solution. In order to quantify the conservation of knotness, we now investigate the helicity, which is related to the topology of the solution, since it only takes a non-zero value if the topology of the magnetic (electric) field lines are not trivial Rañada (1992). In particular we analyze the time propagation of the magnetic helicity, , without loss of generality, since the results are equivalent for . To do so, we define the normalized derivative of as
(12) |
As we have proven in Eq. (10), the helicity associated to the magnetic and electric field is a conserved quantity in a hopfion, thus, we expect that during the propagation.
In order to validate our method, we plot as a function of time in Fig. 7. Note that we compute for an inset with a side of centered in the computational domain. For both cases we find that at is slightly different from zero and continues oscillating before converging to zero exponentially. This behaviour at initial times is associated to modes unsupported by FDTD, caused by the discretization of the analytical hopfion used as initial condition.

However, these modes do not play a role in long term dynamics as FDTD makes converge to zero after a few oscillations. This process takes around , which is a short interval compared to the temporal scale associated with the size of the simulation box.
III.2 Error propagation
In this section, we use the following metric to assess the numerical error of our methodology
(13) |
where corresponds to a field, to a point in the grid and to the th time step.
In Figs. 8 and 9, we show on the plane for the -component of for the hopfions and , respectively. Note that we represent the error only for one vector component in order to avoid any numerical artifact which could be caused by the interpolation necessary due to the staggered nature of the FDTD algorithm. This metric evaluates the relative error with respect to the theoretical value of each component at every point, which allows us to obtain the percentage error. This is expected to be higher where the theoretical value is zero. In these points, the most tiny differences can cause the relative error to go up to infinity. For visualization purposes, we have chosen to show the numerical error for a component in which the theoretical value is never zero, this being at plane . The figures correspond to an inset of from a computational domain of .
First of all, we realize that the error for hopfion {1,1} is smaller than for hopfion {2,3} which can be attributed to the numerical dispersion due to the higher spatial and temporal variations of the latter solution. We observe that the error propagates in every direction, being negligible at since it corresponds to the first iteration. After that, the error increases, spreading around the center of the grid, as we see for instance on Fig. 8(b). At the error is less that for hopfion {2,3} and even lower for hopfion {1,1}, with a maximum value of .
The numerical dispersion error has no impact on the helicity, a basic property of hopfions, which demonstrates the suitability of the FDTD to propagate this type of solutions. Specifically, the FDTD preserves the component by construction, being an ideal method to simulate null fields, as it is the case.


IV Conclusions and outlook
We have demonstrated that FDTD is a viable alternative to simulate different kinds of light knots. Specifically, taking hopfion {1,1} as a benchmark, we have shown that the FDTD is an efficient and accurate method to propagate this solution of Maxwell’s equation. Using the same grid we have reproduced accurately the dynamics of a more tangled hopfion, in particular hopfion {2,3}, which shows that FDTD is suitable to simulate this kind of structures. Besides, we have shown that the helicity variation converges to zero in a short time, which is a proof that the topology is preserved during the propagation. Furthermore, it is important to note that FDTD method would allow for improved results, if necessary, by using a finer discretization.
This work opens new lines of investigation, since it paves the way to investigate the hopfions beyond the analytical expressions (4) and (5), which are too complex to solve analytically in many physical systems. For example, the FDTD will allow to investigate their generation and confinement as well as the interaction of hopfions among them or with other structures such as metal, meta-materials or plasma, among many others. Moreover, the numerical simulations can be used to design experimental setups to produce hopfions in the laboratory. This kind of experiments are of great interest, since they may measure the ball lightning, which has been hypothesized to be hopfions or hopfions linked to plasma.
Acknowledgements.
J.J.O acknowledges the funding from the project FULMATEN-CM (Ref: Y2018/NMT-5028) funded by the Programme of R&D Activities of Comunidad de Madrid (Spain) and the Social European Fund.References
- Irvine and Bouwmeester (2008) William T. M. Irvine and Dirk Bouwmeester, “Linked and knotted beams of light,” Nature Physics 4, 716–720 (2008).
- Lechtenfeld and Zhilin (2018) Olaf Lechtenfeld and Gleb Zhilin, “A new construction of rational electromagnetic knots,” Phys. Lett. Sect. A Gen. At. Solid State Phys. 382, 1528–1533 (2018).
- Cameron (2018) Robert P Cameron, “Monochromatic knots and other unusual electromagnetic disturbances: light localised in 3D,” J. Phys. Commun. 2, 15024 (2018).
- Rañada and Trueba (1996) Antonio F Rañada and José L Trueba, “Ball lightning an electromagnetic knot?” Nature 383, 32 (1996).
- Rañada et al. (2000) Antonio F Rañada, Mario Soler, and José L Trueba, “Ball lightning as a force-free magnetic knot,” Phys. Rev. E 62, 7181–7190 (2000).
- Lee et al. (2018) Wonjae Lee, Andrei H Gheorghe, Konstantin Tiurev, Tuomas Ollikainen, Mikko Möttönen, and David S Hall, “Synthetic electromagnetic knot in a three-dimensional skyrmion,” Sci. Adv. 4 (2018), 10.1126/sciadv.aao3820.
- Rañada and Trueba (1998) Antonio F Rañada and José L Trueba, “A topological mechanism of discretization for the electric charge,” Phys. Lett. B 422, 196–200 (1998).
- Rañada (1992) A F Rañada, “Topological electromagnetism,” J. Phys. A. Math. Gen. 25, 1621–1641 (1992).
- Irvine (2010) William TM Irvine, “Linked and knotted beams of light, conservation of helicity and the flow of null electromagnetic fields,” Journal of Physics A: Mathematical and Theoretical 43, 385203 (2010).
- Kedia et al. (2013) Hridesh Kedia, Iwo Bialynicki-Birula, Daniel Peralta-Salas, and William T. M. Irvine, “Tying knots in light fields,” Phys. Rev. Lett. 111, 150404 (2013).
- Rañada (1989) Antonio F. Rañada, “A topological theory of the electromagnetic field,” Letters in Mathematical Physics 18, 97–106 (1989).
- Kawaguchi et al. (2008) Yuki Kawaguchi, Muneto Nitta, and Masahito Ueda, “Knots in a spinor bose-einstein condensate,” Phys. Rev. Lett. 100, 180403 (2008).
- Arrayás and Trueba (2017) M Arrayás and J L Trueba, “Collision of two hopfions,” J. Phys. A Math. Theor. 50, 085203 (2017).
- Yee (1966) Kane Yee, “Numerical solution of initial boundary value problems involving Maxwell’s equations in isotropic media,” IEEE Transactions on Antennas and Propagation 14, 302–307 (1966).
- Taflove and Hagness (2005) Allen Taflove and Susan C. Hagness, Computational Electrodynamics The Finite-Differences Time Domain Method (Artech House, 2005).
- Besieris and Shaarawi (2009) Ioannis M Besieris and Amr M Shaarawi, “Hopf-Rañada linked and knotted light beam solution viewed as a null electromagnetic field,” Opt. Lett. 34, 3887–3889 (2009).
- Arrayás et al. (2017) M Arrayás, D Bouwmeester, and J L Trueba, “Knots in electromagnetism,” Phys. Rep. 667, 1–61 (2017).
- David J. Griffiths (1999) Reed College David J. Griffiths, Introduction to Electrodynamics (Prentice Hall, 1999).
- Gedney (1996) Stephen D Gedney, “An anisotropic perfectly matched layer-absorbing medium for the truncation of FDTD lattices,” IEEE Transactions on Antennas and Propagation 44, 1630–1639 (1996).