Virtual experiments in computational magnetism with mag2exp

Samuel J R Holt1,2, Martin Lang1,2, James C Loudon3

  • 1Max Planck Institute for the Structure and Dynamics of Matter, Hamburg, Germany.

Npj Computational Materials
|July 4, 2025
PubMed
Abstract

Related Concept Videos

Magnetism01:30

Magnetism

Magnets are commonly found in everyday objects, such as toys, hangers, elevators, doorbells, and computer devices. Experimentation on these magnets shows that all magnets have two poles: one is labeled north (N) and the other south (S). Magnetic poles repel if they are alike and attract if unlike. Moreover, both poles of a magnet attract unmagnetized pieces of iron.
An individual magnetic pole cannot be isolated. No matter how small, every piece of a magnet contains a north pole and a south...
6.7K
Magnetic Vector Potential01:15

Magnetic Vector Potential

In electrostatics, the electric field can be written as the negative gradient of the potential. In magnetostatics, the zero divergence of the magnetic field ensures that the magnetic field can be expressed as the curl of a vector potential. This potential is known as the magnetic vector potential.
Consider an ideal solenoid with n turns per unit length and radius R. If I is the current through the solenoid, the magnetic field inside the solenoid is expressed as the product of vacuum...
801
Magnetostatic Boundary Conditions01:28

Magnetostatic Boundary Conditions

An electric field suffers a discontinuity at a surface charge. Similarly, a magnetic field is discontinuous at a surface current. The perpendicular component of a magnetic field is continuous across the interface of two magnetic mediums. In contrast, its parallel component, perpendicular to the current, is discontinuous by the amount equal to the product of the vacuum permeability and the surface current. Like the scalar potential in electrostatics, the vector potential is also continuous...
1.1K
Magnetic Susceptibility and Permeability01:31

Magnetic Susceptibility and Permeability

In linear magnetic materials, like paramagnets and diamagnets, magnetization is proportional to the magnetic field intensity. The constant of proportionality, a dimensionless number, is called magnetic susceptibility. The value of the susceptibility depends on the type of material.
When diamagnetic materials are placed under an external magnetic field, the moments opposite to the field are induced. Hence, the susceptibility for diamagnets has a minimal negative value of 10-5–10-6. Since...
1.4K
Paramagnetism01:30

Paramagnetism

Paramagnets are materials with unpaired electrons that possess a finite magnetic moment. In the absence of a magnetic field, these moments are randomly oriented, and thus the net moment is zero. Under an external field, a torque acting on the moments tends to align them along the field's direction. However, the random thermal motion of electrons produces a torque opposite to the external field and tries to disorient the moments. These two competing effects align only a few moments along the...
2.6K
Potential Due to a Magnetized Object01:24

Potential Due to a Magnetized Object

Magnetic dipoles in magnetic materials are aligned when placed under an external magnetic field. For paramagnets and ferromagnets, dipole alignment occurs in the direction of the magnetic field. However, the dipoles align opposite to the field in the case of diamagnets. This state of magnetic polarization due to the external field is called magnetization. Magnetization is defined as the dipole moment per unit volume. It plays a similar role to polarization in electrostatics.
The vector...
359