LightFlow
LightFlow: An intuitive, user-friendly framework for optics and photonics simulations, designed for educational and research applications, featuring GPU-accelerated performance and a modular design.
Install / Use
/learn @UNC-optics/LightFlowREADME
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.
Features
- 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
Installation
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.
Google Colab installation:
To install LightFlow on a google colab machine simply run the following command:
!pip install git+https://github.com/UNC-optics/LightFlow.git
Local installation:
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 .
Getting Started
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.
Documentation
Coming soon.
Examples
Contributing
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.
License
LightFlow is released under the MIT License. See the LICENSE file for more details.
Related Skills
openpencil
2.0kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
HappyColorBlend
HappyColorBlendVibe Project Guidelines Project Overview HappyColorBlendVibe is a Figma plugin for color palette generation with advanced tint/shade blending capabilities. It allows designers to
Flyaro-waffle-app
Waffle Delight - Full Stack MERN Application Rules & Documentation Project Overview A comprehensive waffle delivery application built with MERN stack featuring premium UI/UX, admin management, a
ui-ux-pro-max-skill
57.0kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
