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

Clone this repository or download the files. While in the EMerge path containing the src/emerge folder, install the module using:

pip install .

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

pip install ".[pypardiso]"

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 is significantly slower on larger problems.

Required libraries

To run this FEM library you need the following libraries

  • numpy
  • scipy
  • pypardiso
  • gmsh
  • loguru
  • numba
  • matplotlib (for the matplotlib base display)
  • pyvista (for the PyVista base display)
  • numba-progress
  • 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.4.8.tar.gz (268.9 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.4.8-py3-none-any.whl (214.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for emerge-0.4.8.tar.gz
Algorithm Hash digest
SHA256 29135023424d6d152728b61152f9288fb688f0bd53a5a0f16025f638fa3e632c
MD5 2efd9cb3caadc5a8baf02c3e2731c15d
BLAKE2b-256 23cd38f07d7b1222483da0a800801d5e8d7138b9939a51c4dcbc784d2babc256

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emerge-0.4.8-py3-none-any.whl
  • Upload date:
  • Size: 214.7 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.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec57226c68aa9c4b557823d6b4f540e4fc2c9efc52e4aa022163128adc0f74a
MD5 517ff354c23e74441759a291fc3a334d
BLAKE2b-256 85991c934db7a4ca51adad956e299a83a05b50a09d37d6168797601ef13df6f8

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