github.com/benvial/pytheas ↗
Python Electromagnetic Analysis and Simulation with the Finite Element Method
Open this visualization on its own page →
Contributors
1
Lines of Code
4,102
From
2018-06-22
To
2020-05-26
About benvial/pytheas
Pytheas is a Python package for electromagnetic simulation using the finite element method. It wraps two open-source tools: Gmsh for geometry creation and mesh generation, and GetDP for solving the underlying partial differential equations. The software enables users to create, execute, and analyze electrodynamic simulations through a Python interface.
The package includes a comprehensive set of built-in models covering periodic media in both 2D and 3D with diffraction efficiency calculations, scattering analysis, Bloch mode analysis of metamaterials, and treatment of open geometries using perfectly matched layers. It also provides tools for defining arbitrary permittivity distributions, quasi-normal mode analysis, two-scale convergence homogenization, topology optimization in 2D, and includes a built-in refractive index database.
The project maintains high code quality standards with continuous integration testing, code coverage tracking, and code style enforcement using black formatting. It is distributed under the MIT license and targets researchers and engineers working on electromagnetic analysis and photonic design problems.