Related Experiment Video
Updated: Sep 18, 2025

Finite Element Modelling of a Cellular Electric Microenvironment
Published on: May 18, 2021
NeuralMag: an open-source nodal finite-difference code for inverse micromagnetics
C Abert1, F Bruckner1, A Voronov1,2
1Faculty of Physics, University of Vienna, Vienna, Austria.
Abstract:
We present NeuralMag, a flexible and high-performance open-source Python library for micromagnetic simulations. NeuralMag leverages modern machine learning frameworks, such as PyTorch and JAX, to perform efficient tensor operations on various parallel hardware, including CPUs, GPUs, and TPUs. The library implements a novel nodal finite-difference discretization scheme that provides improved accuracy over traditional finite-difference methods without increasing computational complexity. NeuralMag is particularly well-suited for solving inverse problems, especially those with time-dependent objectives, thanks to its automatic differentiation capabilities. Performance benchmarks show that NeuralMag is competitive with state-of-the-art simulation codes while offering enhanced flexibility through its Python interface and integration with high-level computational backends.
Related Concept Videos
Nodal Analysis with Voltage Sources
Consider a circuit that contains four resistors and two voltage sources, as shown in Figure 1. One of these voltage sources is connected between a...
Nodal Analysis
Consider, for instance, a simple circuit composed of three nodes and three resistors, as shown in...
Magnetostatic Boundary Conditions
Poisson's And Laplace's Equation
Differential Form of Maxwell's Equations
Node Analysis for AC Circuits
To unravel the complexities of this system, nodal analysis is employed, a powerful technique founded on Kirchhoff's current law (KCL), which remains valid for phasors. AC circuits can effectively be...

