Skip to main content

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

base_example.py

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


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.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

rcwa_tlv-0.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file rcwa_tlv-0.0.2.tar.gz.

File metadata

  • Download URL: rcwa_tlv-0.0.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for rcwa_tlv-0.0.2.tar.gz
Algorithm Hash digest
SHA256 72e295a27c1164ec933608d47fb98581b865479b9ac3cb33f755a824eaf6df01
MD5 b37ef1411a6f80e11f827f8c94e726a7
BLAKE2b-256 1bf2523a9682c8b612f4bfb12b6b7460439a16f63304432210f28fa8cf921de5

See more details on using hashes here.

File details

Details for the file rcwa_tlv-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rcwa_tlv-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for rcwa_tlv-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 117ad8d1d198dc61a45496ba8aaa79bf905acd3f61135bfd6654f4b1df6b0e0d
MD5 028fa48fec550cbe796b9cc65897e9b5
BLAKE2b-256 1d80736a5f9818198105583d525486ee5a163fd21ebc0011f9f44c590a3e1803

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page