Define the problem
Generated or imported support meshes, analytic or imported target fields, and optional suppression regions.
The software
A graphical workbench for interactive design. A Python library for reproducible studies.
Build a project in the Qt/VTK workbench. Edit geometry, targets and processing settings, then inspect the stream function, winding and field results.
Saved projects retain editable inputs. Start with File → Load template to choose a gradient or shim design.
Workbench guide ↗Use the same numerical engine from scripts and the class-based API. Define physical parameters explicitly and keep settings with your study.
from coilgen import CylinderCoilDesign
design = CylinderCoilDesign(
target_bz_expression="y",
target_scale=0.01, # 10 mT/m
radius_m=0.12,
length_m=0.30,
target_region_radius_m=0.045,
contour_levels=16,
)
result = design.run()Geometry in meters; magnetic fields in tesla. This is a starter configuration, separate from the saved gallery designs.
Capabilities
Generated or imported support meshes, analytic or imported target fields, and optional suppression regions.
Stream-function optimization, resistance regularization and optional fixed-error constrained objectives.
Contour extraction and smoothing, intrinsic topology, loop connections, return routing and conductor profiles.
Sheet, contour and conductor-centerline field comparisons; spacing, bend and clearance diagnostics; resistance and inductance estimates.
Download & installation
Download the ZIP or clone with Git, then follow the matching installation steps below.
Package metadata: 0.1.0.
No tagged release is published.
Workbench and Python API.
Git is optional for ZIP users.
Windows / Python 3.12
Linux / Python 3.10
18 Oct 2026 · commit 80f0361 ↗
A project-wide CoilGen2 license is not yet declared.
Read the licensing information ↓
pyproject.toml.Open a terminal in the folder where you want the checkout. These commands clone the repository, enter Coilgen2, install the workbench and launch it.
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[gui,plot]"
python -m coilgen.guipython -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[gui,plot]"
python -m coilgen.guigit clone https://github.com/Philipp-MR/Coilgen2.git
cd Coilgen2
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[gui,plot]"
python -m coilgen.guigit clone https://github.com/Philipp-MR/Coilgen2.git
cd Coilgen2
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[gui,plot]"
python -m coilgen.guiFor a script-only workflow, use python -m pip install -e ".[research,plot]". The validation record describes a specific audited revision; the current main branch may differ. Record your commit with research results. Full installation guide ↗
Documentation
Use the guides to understand units, target definitions, solver choices and how to interpret field and manufacturing diagnostics.
CoilGen2 currently has no project-wide license declaration. The repository’s legacy reference materials include GPLv3 license text. Refer to the repository’s file-level notices and contact Philipp for clarification of the applicable terms.