RCWA solver for photonic devices
Project description
RCWA (Rigorous Coupled Wave Analysis)
Installation
Regular user:
pip install rcwa_tlv
Developer:
- clone repository:
git clone https://github.com/Victthor/rcwa_tlv.git
- install locally:
pip install -e .
Usage
import numpy as np
from rcwa_tlv import RCWA, Device, Source
from rcwa_tlv.devices.shapes import add_circle
n_height = 400
n_width = 400
period = 900
nm2pixels = n_width / period
# reflexion region
er1 = 1.5 ** 2
ur1 = 1.0
# transmission region
er2 = 1.0
ur2 = 1.0
layer = {
'er': 1.0 * np.ones((n_height, n_width)),
'length_z': 21,
}
layers = [layer]
add_circle(layers[0]['er'], (n_height // 2, n_width // 2), 300 * nm2pixels, er1)
device = Device(layers, period_x=period, period_y=period, er1=1.445 ** 2, ur1=1.0, er2=1.0, ur2=1.0, p=11, q=11)
source = Source(0.0, 0.0, 700, 1., 0.)
rcwa = RCWA(device, source, gamma=0.7, apply_nv=False, dtype=np.float32)
result = rcwa()
References:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rcwa_tlv-0.0.3.tar.gz
(10.8 kB
view details)
Built Distribution
rcwa_tlv-0.0.3-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file rcwa_tlv-0.0.3.tar.gz
.
File metadata
- Download URL: rcwa_tlv-0.0.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74a965c1b6bdb9774af29ad8878a596b8eae6cbb0178ea4aa98f444b63cb66d |
|
MD5 | 7673079688c510ff103ebf37fed5a1c4 |
|
BLAKE2b-256 | f1599142b087e54e541c6dded7ea111ca12bb97d988d31a62e29c7ce279497c8 |
File details
Details for the file rcwa_tlv-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: rcwa_tlv-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8306b854253ceabbf66013c93f5d198994a29dcac60539f54195b75c3bffab5 |
|
MD5 | e834267af93d7c315f785fc0d51bdb50 |
|
BLAKE2b-256 | f8f2f080744711c52358d9761abdb6afced4a52d70e69e3668b308f1d84ae332 |