Skip to main content

LinkedInCover

GitHub License GitHub Release PyPI - Downloads DOI

Introduction

EMerge is a python based FEM EM library for the time harmonic helmholtz formulation. It is thus best suited for Electromagnetic wave phenomenon. You can use it to simulate:

  • RF Filters
  • Signal propagation through PCBs
  • Antennas
  • Optycal systems
  • Arrays and periodic structures
  • Much more!

It is designed to be as easy to use and compatible as possible. It runs on all operating systems and on all hardware.

EMerge is designed to have your entire simulation start and finish in the same Python script (or more if you want). You require no awkward configuration files, JSON's, external software to do modelling etc. It allows you to do everything in Python:

  • Geometry Creation/description |
  • Material assignment |
  • Meshing + mesh settings and adaptive mesh refinement |
  • Boundary condition setup |
  • Solving |
  • Post processing and visualization |

If you have questions, suggestions, bug reports or just want to hang out, feel free to join the discord!

Discord Invitation


How to install

You can now install the basic version of emerge from PyPi!

pip install emerge

Direct solvers

EMerge solves all systems with direct solvers only. Some are faster than others. Depending on the operating system and hardware you have, some might work better and/or are easier to install than others. EMerge picks a solver automatically; em.solvers.available() lists the solvers installed on your system and model.set_solver(em.solvers.Sparta) selects one yourself.

SPARTA is the open source sparse direct solver made for EMerge, and its recommended solver. It is the fastest CPU solver for EMerge, and it can also run on the GPU: Apple silicon (Metal) and AMD (Vulkan).

SPARTA is installed with EMerge on macOS, Windows (x86-64) and Linux (x86-64 and ARM64). On other platforms it is skipped and EMerge uses its other solvers. Once installed, EMerge uses SPARTA on the CPU for every sweep (before 3.0.8 PARDISO was preferred where available). To run SPARTA on the GPU, set:

model.set_device("GPU")     # or "HYBRID" for a combined GPU + CPU factorization

If you run into a problem with SPARTA, EMerge works without it:

  • set the environment variable EMERGE_DISABLE_SPARTA=1 to run EMerge as if SPARTA were not installed, or
  • remove it with pip uninstall sparta-solver.

Please report the problem at the SPARTA issues.

CORVID (less memory)

CORVID is the iterative solver of EMerge. It needs far less memory than a direct solve: it factors only the first-order (Whitney) part of the system, about a fifth of the unknowns, and solves the full second-order system iteratively on top of it. Use it when a model does not fit in memory with a direct solver, or to run larger models on the same machine. Install it with:

pip install emerge[corvid]

and select it for a model:

model.set_solver(em.solvers.Corvid)

A direct solver is usually faster on models that fit in memory. CORVID's own documentation is at github.com/FennisRobert/Corvid.

Threads

Set the number of CPU threads with:

em.set_threads(4)

This applies to EMerge's compiled kernels (assembly, interpolation, far fields) and is the default thread count of the solvers that support one (SPARTA, PARDISO). A run method can override it for the solver, for example model.mw.run_sweep(nthreads=4).

Settings that native libraries read when they load (the Accelerate, RSLab and MUMPS threads) must be set before importing EMerge. The emerge_config module, installed with EMerge, does that:

from emerge_config import config
config.set_acc_threads(4)   # Apple Accelerate
import emerge as em

Other solvers

MacOS (ARM)

Without SPARTA, EMerge uses the Apple Accelerate sparse solver. From 3.0 onwards it is installed automatically with EMerge on macOS (the precompiled emerge-aasds package on PyPI), so no extra installation is needed.

The Accelerate solver does not take a thread count from em.set_threads(). EMerge limits it to a single thread for frequency distributed sweeps. To allow more threads, use the emerge_config module before importing EMerge:

from emerge_config import config
config.set_acc_threads(4)   # before importing emerge
import emerge as em
Windows (x86)

Windows has easy access to the lightning fast PARDISO solver out of the box, no installation needed.

GPU based CuDSS solver

If you have a new NVidia card you can try the first test implementation of the cuDSS solver. The dependencies can be installed through:

pip install emerge[cudss]

To use the GPU, set:

model.set_device("GPU")
Legacy solvers

UMFPACK is still supported but is slow compared to the solvers above, so it is only used when none of them is available. If you want it anyway, it installs through conda forge:

conda install conda-forge::scikit-umfpack

Install GMSH Version 5.0.0 MacOS

pip install https://gmsh.info/python-packages-dev/gmsh/gmsh-5.0.0.dev1-py2.py3-none-macosx_12_0_arm64.whl --force-reinstall

Dependencies

EMerge ships compiled Rust kernels (the emr module, source in emr/). PyPI wheels include them; installing from source (pip install /path/to/EMerge or pip install git+https://github.com/FennisRobert/EMerge.git) compiles them automatically and requires a Rust toolchain (https://rustup.rs).

pip install emerge installs the required libraries automatically; you don't need to install them yourself. The optional extras are only installed when you ask for them.

Installed automatically Optional extras
  • numpy
  • scipy
  • gmsh
  • loguru
  • matplotlib (for the matplotlib base display)
  • pyvista (for the PyVista base display)
  • joblib
  • msgpack, msgpack-numpy
  • psutil
  • emsutil
  • mkl (x86 devices only)
  • emerge-aasds (macOS only, the Apple Accelerate solver)

Installed with pip install emerge[<extra>]:

  • corvid: the CORVID iterative solver (less memory, see CORVID)
  • cudss: the NVIDIA cuDSS GPU solver
  • dxf: ezdxf
  • cad: emcad and pygerber (Gerber and ODB++)
  • spyder: trame-pyvista, nest_asyncio2, ipywidgets
  • umfpack: scikit-umfpack (legacy)

Installed separately:

  • SPARTA (recommended, see SPARTA)

PCB and CAD readers

You can read Gerber and ODB++ files using the optional emcad dependency which I also maintain. To get all the dependencies its easiest to do:

pip install emerge[cad]

Resources / Manual

You can find the latest versions of the manual on: https://www.emerge-software.com/resources/

Metadata

Release files for emerge 3.0.10

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

Source distribution (sdist)

Source distribution for emerge 3.0.10
File Size Uploaded Provenance Actions
emerge-3.0.10.tar.gz 924.4 kB With provenance Details for emerge-3.0.10.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for emerge 3.0.10
File Actions
emerge-3.0.10-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for emerge-3.0.10-cp310-abi3-win_amd64.whl
emerge-3.0.10-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for emerge-3.0.10-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
emerge-3.0.10-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for emerge-3.0.10-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
emerge-3.0.10-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 Details for emerge-3.0.10-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 9.8 MB

Release files / emerge-3.0.10.tar.gz

Download URL emerge-3.0.10.tar.gz
Size 924.4 kB
Tags Source
SHA-256 checksum
How to use checksums
07e2d3e3ed8f84512bfb5d904188f9d9d09a5bb61bc2a6921a35953cdd2e1e8e
BLAKE2b-256 checksum
How to use checksums
d223c57e21167c04b4d8675d0e9090ab19a5167107327f5e424b3086418c8d2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / emerge-3.0.10-cp310-abi3-win_amd64.whl

Download URL emerge-3.0.10-cp310-abi3-win_amd64.whl
Size 2.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
15d688a1f95290d9844f9d4adac8d5c54ce7df839360d104ad91f22a4d4aa4c6
BLAKE2b-256 checksum
How to use checksums
6845b5e88604ee7f422f32a3ba3d6ac6cae347ed025a1e33380aae3d8cc5d09e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / emerge-3.0.10-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL emerge-3.0.10-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9047ab2bb73515d45b742e783a774e6a53a6a140bb071d588e5d5ba49186e9e2
BLAKE2b-256 checksum
How to use checksums
20298565599b8abd94154b9f40aad8b002dc9c899e74dac2af270efc7b33bde6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / emerge-3.0.10-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL emerge-3.0.10-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.9 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7216c535247df7d58eb99df7fe6997ee0111e8f76a8b42fdefb34761adb9c873
BLAKE2b-256 checksum
How to use checksums
2e3c97131d2c47b8a7837b6f52d9f48e40aafcaf100fe1160a924486959cb219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / emerge-3.0.10-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL emerge-3.0.10-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
761942a09ed86cde714a36ffd7805100aacf4a1d3651b156ebe1985f71d9aacd
BLAKE2b-256 checksum
How to use checksums
06a9d4b1c32b37f4bef80015a13e978858a64b23f5bbd34355c85d8d49eb2de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for emerge 3.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for emerge-3.0.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.10 This release

5 release files Full provenance

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