Skip to main content

Build Status codecov PyPI PyPI - License

armmwave

Code that calculates transmittace and reflectance of materials at millimeter wavelengths.

This software was developed to aid in development of anti-reflection coatings for millimeter-wave optics---specifically, for optics used in Cosmic Microwave Background (CMB) experiments. CMB experiments have begun to adopt high-refractive index materials for their lenses. While there are many perks to this optical design, there are also a few drawbacks. One of these is reflection.
High-refractive index materials---such as aluminum oxide and silicon, both of which are used in CMB experiments---reflect a significant fraction of the light that fall on them. To reduce that fraction we create anti-reflection coatings to cover the lenses.

One way to make a coating that operates over a wide range of frequencies (wavelengths) is to stack layers of different dielectric materials. Working out the transmittance and reflectance of a multilayer dielectric structure is a problem that can be handled using the characteristic matrix method. Enter armmwave.

Please note: This code is under active development. While it has been verified against experimental spectroscopic data (~25 to 500 GHz; examples will be uploaded soon), make sure you understand the intricacies of your specific data or model.

Examples

armmwave provides a means to set up and evaluate models of multilayer dielectric media. To do this, create one or more Layer's (with associated refractive index and thickness---and an optional loss term), create a Source layer and Terminator layer (which are required for bookkeeping), and a Model. By default, reflectance and transmittance is calculated between 500 MHz and 500 GHz, but you can change this if you want. Here's an example model of a sheet of ceramic material (in this case aluminum oxide) in a vacuum:

import armmwave.layer as awl
import armmwave.model as awm

# First create a list of layers (dielectrics) in the order
# they should be evaluated
layers = [awl.Source(),
          awl.Layer(rind=3.1, thick=2e-3), # thickness in meters
          awl.Terminator()]
# Now create the model framework, feed it the layers, and run!
model = awm.Model()
model.set_up(layers)
results = model.run()

model.run() returns a dictionary with three keys: frequency, transmittance, and reflectance.

Contribution guidelines

This code is under active development. If you have an idea for a feature or use case, please open an issue ticket. Let's talk! If you have an idea and you've already written the code---that's great! Create a pull request and we can go from there.

Bugs

Let's face it: there are probably bugs. If you find one, please open an issue ticket. Include a description of the issue and, if possible, a minimal working example. I appreciate your patience (and your help).

TODO

  • Figure out how to make TravisCI make wheels for me
  • Better docs
  • Examples

Metadata

Release files for armmwave 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for armmwave 0.1.0
File Size Uploaded Provenance Actions
armmwave-0.1.0.tar.gz 17.0 kB Without provenance Details for armmwave-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for armmwave 0.1.0
File Interpreter ABI Platform Actions
armmwave-0.1.0-py3.7.egg Legacy Egg format - - Details for armmwave-0.1.0-py3.7.egg

Total release size: 40.4 kB

Release files / armmwave-0.1.0.tar.gz

Download URL armmwave-0.1.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0ba143e04dd3f51193711fc15e162d924428553792494052328b60c762cef973
BLAKE2b-256 checksum
How to use checksums
f3faa0feeb24ba4618d6024e7f7ed5dc9f8d519fc2184b3fbffefd610c3c931d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Release files / armmwave-0.1.0-py3.7.egg

Download URL armmwave-0.1.0-py3.7.egg
Size 23.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
c4380bc6448c81bfc88f6b87139a34fe43c5fe15577eb259a1428f43cdc8adb7
BLAKE2b-256 checksum
How to use checksums
c30135b70e853a6725656591c0268203f3a7fa263f2b27f567f80cb5d9f71a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Security for armmwave 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page