-
Scalable physical source-to-field inference with hypernetworks
Authors:
Berian James,
Stefan Pollok,
Ignacio Peis,
Jes Frellsen,
Rasmus Bjørk
Abstract:
We present a generative model that amortises computation for the field around e.g. gravitational or magnetic sources. Exact numerical calculation has either computational complexity $\mathcal{O}(M\times{}N)$ in the number of sources and field evaluation points, or requires a fixed evaluation grid to exploit fast Fourier transforms. Using an architecture where a hypernetwork produces an implicit re…
▽ More
We present a generative model that amortises computation for the field around e.g. gravitational or magnetic sources. Exact numerical calculation has either computational complexity $\mathcal{O}(M\times{}N)$ in the number of sources and field evaluation points, or requires a fixed evaluation grid to exploit fast Fourier transforms. Using an architecture where a hypernetwork produces an implicit representation of the field around a source collection, our model instead performs as $\mathcal{O}(M + N)$, achieves accuracy of $\sim\!4\%-6\%$, and allows evaluation at arbitrary locations for arbitrary numbers of sources, greatly increasing the speed of e.g. physics simulations. We also examine a model relating to the physical properties of the output field and develop two-dimensional examples to demonstrate its application. The code for these models and experiments is available at https://github.com/cmt-dtu-energy/hypermagnetics.
△ Less
Submitted 7 May, 2024;
originally announced May 2024.
-
Magnetic Field Prediction Using Generative Adversarial Networks
Authors:
Stefan Pollok,
Nataniel Olden-Jørgensen,
Peter Stanley Jørgensen,
Rasmus Bjørk
Abstract:
Plenty of scientific and real-world applications are built on magnetic fields and their characteristics. To retrieve the valuable magnetic field information in high resolution, extensive field measurements are required, which are either time-consuming to conduct or even not feasible due to physical constraints. To alleviate this problem, we predict magnetic field values at a random point in space…
▽ More
Plenty of scientific and real-world applications are built on magnetic fields and their characteristics. To retrieve the valuable magnetic field information in high resolution, extensive field measurements are required, which are either time-consuming to conduct or even not feasible due to physical constraints. To alleviate this problem, we predict magnetic field values at a random point in space from a few point measurements by using a generative adversarial network (GAN) structure. The deep learning (DL) architecture consists of two neural networks: a generator, which predicts missing field values of a given magnetic field, and a critic, which is trained to calculate the statistical distance between real and generated magnetic field distributions. By minimizing this statistical distance, a reconstruction loss as well as physical losses, our trained generator has learned to predict the missing field values with a median reconstruction test error of 5.14%, when a single coherent region of field points is missing, and 5.86%, when only a few point measurements in space are available and the field measurements around are predicted. We verify the results on an experimentally validated field.
△ Less
Submitted 14 March, 2022;
originally announced March 2022.
-
The magnetic field from a homogeneously magnetized cylindrical tile
Authors:
K. K. Nielsen,
R. Bjørk
Abstract:
The magnetic field of a homogeneously magnetized cylindrical tile geometry, i.e. an angular section of a finite hollow cylinder, is found. The field is expressed as the product between a tensor field describing the geometrical part of the problem and a column vector holding the magnetization of the tile. Outside the tile, the tensor is identical to the demagnetization tensor. We find that four com…
▽ More
The magnetic field of a homogeneously magnetized cylindrical tile geometry, i.e. an angular section of a finite hollow cylinder, is found. The field is expressed as the product between a tensor field describing the geometrical part of the problem and a column vector holding the magnetization of the tile. Outside the tile, the tensor is identical to the demagnetization tensor. We find that four components of the tensor, $N_{xy},N_{xz},N_{yz}$ and $N_{zy}$, can be expressed fully analytically, while the five remaining components, $N_{xx},N_{yx},N_{yy},N_{zx}$ and $N_{zz}$, contain integrals that have to be evaluated numerically. When evaluated numerically the tensor is symmetric. A comparison between the found solution, implemented in the open source magnetic framework MagTense, and a finite element calculation of the magnetic flux density of a cylindrical tile shows excellent agreement.
△ Less
Submitted 15 April, 2020;
originally announced April 2020.
-
The stray- and demagnetizing field from a homogeneously magnetized tetrahedron
Authors:
Kaspar K. Nielsen,
Andrea R. Insinga,
Rasmus Bjørk
Abstract:
The stray- and demagnetization tensor field for a homogeneously magnetized tetrahedron is found analytically. The tetrahedron is a special case of four triangular faces with constant magnetization-charge surface density, for which we also determine the tensor field. The tensor field is implemented in the open source micromagnetic and magnetostatic simulation framework MagTense and compared with th…
▽ More
The stray- and demagnetization tensor field for a homogeneously magnetized tetrahedron is found analytically. The tetrahedron is a special case of four triangular faces with constant magnetization-charge surface density, for which we also determine the tensor field. The tensor field is implemented in the open source micromagnetic and magnetostatic simulation framework MagTense and compared with the obtained magnetic field from an FEM solution, showing excellent agreement. This result is important for modeling magnetostatics in general and for micromagnetism in particular as the demagnetizing field of an arbitrary body discretized using conventional meshing techniques is significantly simplified with this approach.
△ Less
Submitted 15 April, 2020;
originally announced April 2020.