openEMS
Python Interface Installation
openEMS
openEMS is a free and open electromagnetic field solver using the FDTD method. Matlab or Octave and Python are used as an easy and flexible scripting interface. See more
Installation
Windows
Download the latest windows build with the “msvc” label
Extract the files of the downloaded zip folder in a folder, let us extract it to:
C:\openEMS
Module requirements
Some python modules are required to run openEMS simulations and tutorials: numpy, h5py, matplotlib and cython:
pip install numpy h5py matplotlib cython
Install pre-build modules
For some python versions, pre-build wheel files can be found in the python sub-directory. E.g. for python 3.14 (using pip):
cd C:\openEMS\python
pip install csxcad-0.6.3-cp314-cp314-win_amd64.whl
pip install openems-0.0.36-cp314-cp314-win_amd64.whl
Setup
Python needs to find the dependent libraries (dll’s) during module import. To allow this, it is necessary to set an environment variable (permantently, terminal restart my be necessary):
setx OPENEMS_INSTALL_PATH C:\openEMS