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

If you want to install the library with PyPardiso on Intel machines, you can install the optional dependency with EMerge using:

pip install emerge[pypardiso]

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

pip install emerge[scikit-umfpack]

On linux and MacOS with intel or AMD chips you can also include both:

pip install emerge[scikit-umfpack, pypardiso]

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.frequency_domain(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

Optional:

  • pypardiso
  • scikit-umfpack

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.

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.5.1.tar.gz (293.2 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.5.1-py3-none-any.whl (235.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for emerge-0.5.1.tar.gz
Algorithm Hash digest
SHA256 dc3e244d1b7d13a708f266076c4ca37d2d852e6001beeb35634e727787e54fd7
MD5 642ea8130b8191331a6157837bd77d7d
BLAKE2b-256 095bdace510edde809bb3e2c93dab4c61ff7a147d4086609e42aafa857508328

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emerge-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 235.6 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a088c5d7edeade7a7560ba9ef94ce01f9b5b24d7ca060c394b7a8ef5354c621
MD5 cfb2c8ab70818500c4aa85ba7d3fee6f
BLAKE2b-256 8ec726391b1f2bdcb9095415c2503c011ad4fcfe0c71f8a8985372445b68bf6e

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