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

Uploaded Source

Built Distribution

rcwa_tlv-0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rcwa_tlv-0.0.1.tar.gz
  • Upload date:
  • Size: 9.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.1.tar.gz
Algorithm Hash digest
SHA256 939bcd03ae4826bdf846f1ae9c998ab40c8a80d1713121d58b75adb409662d82
MD5 ea4e3657d2b7a2f58aff8f1f2dfa364d
BLAKE2b-256 19870c0c277fd4ebafa19da367e1a92dcdc2104ad44b07f3bf6c7c0b354ecf22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rcwa_tlv-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8177c249b0c78f64c09e7d31bb6bba7509e5577c6e24b909a620498fbbeb7a
MD5 839c40e78e4e1e3f320db3c4e06a8b08
BLAKE2b-256 458e6346d43339d6f550c78b2448f67690d331e13fb470a14ef5f1be68e3aca3

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