OneSimulation docs Website Free books Plans on Gumroad

Docs › Examples › Magnetostatics

Magnetostatics · 3D magnetostatics

From coil current to a three-dimensional magnetic field.

Calculate magnetic vector-potential fields from coil currents, with gauge choices and magnetic boundary conditions.

Magnetic vector potentialCoil currentsCoulomb gaugeMagnetic boundary conditions
Magnetic field around a homogenized coil, with a native finite-element section through the centre
Magnetic field around a homogenized coil, with a native finite-element section through the centre

How it was computed

Resolution and numerical checks

The centre-field change from 35,807 to 77,302 tetrahedra is 0.0725%; the full vector-field comparison at 81 × 81 common sample points still differs by 14.9236% in relative L2 norm. Mesh independence is not established.

Colours show native piecewise-constant field values. Streamlines use display interpolation, and copper rings illustrate the homogenized source. The finite outer boundary uses magnetic isolation.

Build it yourself

The guide has a first case and worked recipes for this module, and the reference lists every public class and function.