Skip to main content

An open source EM FEM simulator in Python

Project description

Introduction

Hello everybody. Thanks for showing interest in this repository.

Feel free to download your version of EMerge and start playing around with it! If you have suggestions/changes/questions either use the Github issue system or join the Discord using the following link:

https://discord.gg/7PF4WcS6uA

How to install

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

pip install emerge

On MacOS and Linux you can install it with the very fast UMFPACK through scikit-umfpack

brew install swig suite-sparse #MacOS
sudo apt-get install libsuitesparse-dev #Linux
pip install emerge[umfpack]

Experimental

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]

The scikit-umfpack solver can be installed on Windows as well from binaries with conda. This is a bit more complicated and is described in the installation guide.

Compatibility

As far as I know, the library should work on all systems. PyPARDISO is not supported on ARM but the current SuperLU and UMFPACK solvers work on ARM as well. Both SuperLU and UMFPACK can run on multi-processing implementations as long as you do entry-point protection:

import emerge as em

def main():
    # setup simulation

    model.mw.run_sweep(True, ..., multi_processing=True)

if __name__ == "__main__":
    main()

Otherwise, the parallel solver will default to SuperLU which can be slower on larger problems with a very densely connected/compact matrix.

Required libraries

To run this FEM library you need the following libraries

  • numpy
  • scipy
  • gmsh
  • loguru
  • numba
  • matplotlib (for the matplotlib base display)
  • pyvista (for the PyVista base display)
  • numba-progress
  • mkl (x86 devices only)

Optional:

  • scikit-umfpack
  • cudss

NOTICE

First time runs will be very slow because Numba needs to generate local C-compiled functions of the assembler and other mathematical functions. These compilations are chached so this should only take time once.

Third Party License Notice

“This package depends on Intel® Math Kernel Library (MKL), which is licensed separately under the Intel Simplified Software License (October 2022). Installing with pip will fetch the MKL wheel and prompt you to accept that licence.”

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emerge-0.6.6.tar.gz (346.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emerge-0.6.6-py3-none-any.whl (256.0 kB view details)

Uploaded Python 3

File details

Details for the file emerge-0.6.6.tar.gz.

File metadata

  • Download URL: emerge-0.6.6.tar.gz
  • Upload date:
  • Size: 346.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for emerge-0.6.6.tar.gz
Algorithm Hash digest
SHA256 ef3737b278085387765e0e45d75917d4a2f20e56cdf65d6eccf7ea581c5c7321
MD5 e99a1196d20905970a55d8dceba3e934
BLAKE2b-256 272b791735ec55a923decab5ee9dd29ef8453103952a1e7564928fc08cda8f1d

See more details on using hashes here.

File details

Details for the file emerge-0.6.6-py3-none-any.whl.

File metadata

  • Download URL: emerge-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 256.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for emerge-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f58674cd8bd6ae0b594b9818641b88deb2ec1aa5676a112796557a04109bd29a
MD5 d2f0ab7dcefb7168fe5c04c28ffd4e5b
BLAKE2b-256 af1c5c38ffc1916b1e1dc7756fb6037b1a85bb64b9f58683022af943930c63f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page