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
How it was computed
- 77,302 tetrahedra · 105,963 potential and gauge unknowns
- 10-turn, 1 A homogenized winding · 205.167 µT axial centre field · Nédélec finite elements
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.