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:
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 cmake swig suite-sparse #MacOS
sudo apt-get install libsuitesparse-dev #Linux
Then on MacOS do:
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="-I/opt/homebrew/include"
export LDFLAGS="-L/opt/homebrew/lib"
Finally:
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 which can be downloaded from the official website:
https://www.emerge-software.com/resources
Compatibility
As far as I know, the library should work on all systems. PARDISO 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)
- cloudpickle
- mkl (x86 devices only)
Optional:
- scikit-umfpack
- cudss
- ezdxf
Resources / Manual
You can find the latest versions of the manual on: https://www.emerge-software.com/resources/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emerge-1.0.2.tar.gz.
File metadata
- Download URL: emerge-1.0.2.tar.gz
- Upload date:
- Size: 340.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed552f5bb584592a9638a8468096dbd67d49ce2baeb6408d2548b96755215b2e
|
|
| MD5 |
d4a16831910b990ff8c806a9450e77af
|
|
| BLAKE2b-256 |
924a6e097e68d1214ba3f321f85299d332151b88edf41417692ecdadd878efa2
|
File details
Details for the file emerge-1.0.2-py3-none-any.whl.
File metadata
- Download URL: emerge-1.0.2-py3-none-any.whl
- Upload date:
- Size: 280.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08dbf3f41a012b42b356c6edd2e4bc2fa544aaa58971d24711329adfd1d4871e
|
|
| MD5 |
584f00c049438aca0f10af4dbf7ad0c8
|
|
| BLAKE2b-256 |
38eabd529179ea5c5b3794d7ac07301d1308652f167dda3dfb83f5f0a766ecda
|