Skip to main content

magcoilcalc - Axisymmetric circular current loops (coils) magnetic field calculator

Introduction

Highly uniform magnetic field with minimal lateral field gradient is required for the generation and preservation of the spin-polarized state of 3He and 129Xe gasses and other noble gas species with non-zero nuclear spin. magcoilcalc is designed to be useful in the design, simulation and optimization of magnet systems used to generate an uniform magnetic field intended to support such systems.

Installation

pip install magcoilcalc. Requires Python >= 3.4, numpy and matplotlib.

Limitations

Before you get your hopes up, magcoilcalc is only for circular axisymmetric current loops with no support for non-unity relative permeability. This geometry is versatile and useful, but this package won't get you very far for problems other than building spin-polarizer magnets. For proper 2D EM FEM software check FEMM out. magcoilcalc is useful for quickly mapping out a large parameter space, or for getting a quick answer typing on one hand while holding that magnet wire mid-winding with the other.

Support for infinitely thin cylindrical current sheets are also being worked on. You can spawn one with magcoilcalc.CurrentSheet with the usual parameters, but these are not vectorized so can be slow on a large mesh.

Mu-metal shielding

magcoilcalc in incapable of dealing with non-unity relative permeability. Simulate mu-metal shields in FEMM upon your finished design in magcoilcalc.

Usage

Users are encouraged to refer to cookbook examples for usage examples with line-by-line comments.

Found a bug?

The author still discovers yet another misconception in his understanding of elementary electromagnetism once in a while. If you find something not quite right, you are probably right - open an issue or drop me an email!

Release files for magcoilcalc 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magcoilcalc 0.7.3
File Size Uploaded
magcoilcalc-0.7.3.tar.gz 15.2 kB Details

Release files / magcoilcalc-0.7.3.tar.gz

Download URL magcoilcalc-0.7.3.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
472b7635a8f9c4287304f691505c3ad469bebe626c92a1567bf73e0c163b2c16
BLAKE2b-256 checksum
How to use checksums
7899b2ae18a5351ebdaebf1470d6d420e8882ed7759f2be6a966c3be4e2620b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.7.3 This release

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page