gyptis

Computational Photonics in Python

Build complex geometries and numerical models easily with the versatility provided by the Python ecosystem.
mesh

Constructive solid geometry and high quality meshing with the most popular open-source mesh generator Gmsh.

fenics

Solve Maxwell's equations with the powerful Finite element library FeniCS.

Features

  • Scattering models in 2D and 3D with computation of cross sections and LDOS
  • Grating models in 2D and 3D with computation of diffraction efficiencies and absorption
  • Modal anaysis for non dspersive materials
  • Two scale convergence homogenization of metamaterials in 2D and 3D
  • Band diagrams of photonic crystals in 2D
  • Parallelization using MPI with domain decompostion
  • Parametric studies with embarassingly parallel loops
  • Spectrum sampler utility
  • Automatic differentiation for inverse design

Install gyptis

conda

conda install gyptis -c conda-forge

pypi

pip install gyptis

docker

curl -s https://gyptis.gitlab.io/get | bash
gyptis run

from source

git clone https://gitlab.com/gyptis/gyptis.git
cd gyptis && pip install -e .