LightFlow is an open-source framework for optics and photonics simulations, focused on providing a user-friendly and modular platform for both education and research. It aims to simplify the process of implementing and experimenting with computational methods in wave optics, offering a standardized and expandable framework for optical components and systems.
- Modular and easy-to-understand framework for optical components and systems
- GPU acceleration for high-speed simulations
- Python-based, integrating with popular libraries such as TensorFlow and Keras
- Suitable for educational and research purposes in the fields of optics and photonics
This package is mainly intented for use on google colab, therefore the requirements and dependencies of the package are limited to the packages that are not available in google colab. However, if you successully install the Tensorflow with GPU support on your local machine this package will work properly.
To install LightFlow on a google colab machine simply run the following command:
!pip install git+https://github.com/UNC-optics/LightFlow.git
First need to install your NVIDIA drivers and Tensorflow. It is highly recommended to install tensorflow with GPU support for better speed. The steps for the installation can be roughly described as follows:
- Install NVIDIA drivers
- Install Anaconda
- Create a new environment for lightflow:
conda create --name lf python=3.9 matplotlib
- Install tensorflow with CUDA and CUDNN support
- Install LightFlow:
If you only want to use the package's current functionality and don't want to make changes to the code, you can follow these instructions:
pip install git+https://github.com/UNC-optics/LightFlow.git
If you hope to make changes to the base code you first need to clone the repository to your PC. Make sure you first move to a directory you want your package to be installed from, then clone the package:
git clone https://github.com/UNC-optics/LightFlow.git
next, move to the directory of the package:
cd LightFlow
Now install the package:
pip install -e .
We highly encourage you to get started with the tutorials and the examples provided in the examples
folder. Currently the examples are focused on fundamentals of optics and CGH applications.
Coming soon.
We welcome contributions from the community. If you have ideas, bug reports, or improvements, feel free to open an issue or submit a pull request.
LightFlow is released under the MIT License. See the LICENSE file for more details.