OneSimulation docs Website Free books Plans on Gumroad

Docs › Examples › Downloadable notebooks › The 3D field of a solenoid

Electromagnetics · 3D

The 3D field of a solenoid

A homogenized ring coil carrying 1 A over 10 turns; the magnetic field solved with edge elements.

3D FEMNédélec elementsCoulomb gauge

Run locally with OneSimulation. The example downloads are free. Running them requires an activated runtime. OneSimulation 1.0 · CPython 3.13 on macOS (Apple Silicon), Ubuntu 22.04 (x86-64), and Windows x64. Installation and activation · View pilot plans. Scope of the reference checks.

A magnetostatic field computed with OneSimulation.
A magnetostatic field computed with OneSimulation. Run the notebook to produce its own figures.

What it computes

OneSimulation models the coil current as an azimuthal volume current density on a meshed winding region and solves the magnetostatic curl–curl equation with first-order Nédélec elements under a Coulomb gauge. The resolved current region, the ampere-turns NI = 10 A, the discrete gauge condition, B = μH and a second solve at double the current (which must give double the field in the linear model) are checked as consistency tests.

What it checks

Ampere-turns, Coulomb gauge, B = μH and linearity.