Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1 KB

File metadata and controls

52 lines (33 loc) · 1 KB

TORCWA

TORCWA (torch + rcwa) is a PyTorch implementation of rigorous coupled-wave analysis (RCWA)

Table of Contents

Key Features

  • GPU-accelerated simulation
  • Supporting automatic differentiation for optimization
  • Units: Lorentz-Heaviside units
    • Speed of light: 1
    • Permittivity and permeability of vacuum: both 1
  • Notation: exp(-jωt)

Getting Started

Prerequisites

Ensure you have the following installed:

  • Python 3.7 or higher
  • Required libraries (listed in requirements.txt)

Installation

Clone the repository:

git clone https://github.com/Alexin-CH/TORCWA.git
cd TORCWA

Install the required dependencies:

make

Usage

Main script is located in the src directory.

Compute time vs number of orders

To evaluate the compute time as a function of the number of orders, run src/eval_orders.py.

eval_orders