Skip to main content

POCAL

POCAL (Python Optical Coating Analysis Library) allows to easily design optical coatings both as single layer and as multilayer stack, monitoring a wide variety of optical properties and, moreover, giving the possibility to automatically refine the multilayer design to achieve the desired optical goals. The library is completely open source, and it can be easily coupled to several Python-based ray tracers or libraries to work on more complex simulations. The results have been extensively tested and are comparable with the ones obtained using commercial software.

Downloading POCAL

Downloading the library is very easy using pip :

pip install pocal

Supporting files can be downloaded from: https://github.com/tommasofontanot/pocal/tree/main/resources

The folder with the resources needs to be made the current working directory.

import os
os.chdir(resources folder)

Cite POCAL

If you use the library, please cite the paper published in Optics Continuum: Fontanot, T., Bhaumik, U., Kishore, R. and Meuret, Y., 2023. POCAL: a Python-based library to perform optical coating analysis and design. Optics Continuum, 2(4), pp.810-824. DOI: https://doi.org/10.1364/OPTCON.484972

Using the library

The library can be called as follows:

import pocal
import os
os.chdir('resources folder')
#upload the prescription file(here 3layers.txt), angle of incidence, minimum wavelength, maximum wavelength, wavelength resolution, 
#reference wavelength, optical thickness and type of refinement
test = pocal.pocal(r'3layers.txt',40,200,1500,1,600,False,None)

Defining the Prescription file

The prescription file represents the stacking of the materials. An example is shown below:

+----Immersing Medium----+-Glass----------+

+----Layer3----------------+-TiO2-------------50 nm+

+----Layer2----------------+-SiO2-------------60 nm+

+----Layer1----------------+-TiO2-------------70 nm+

+----Substrate-------------+-Glass------------+

To simulate the proposed design, the prescription text file must be written as follows:

image

Python tutorial

An in-depth tutorial to use the library can be found here: POCAL Tutorial

License

License: MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pocal-2.449.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pocal-2.449-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pocal-2.449.tar.gz.

File metadata

  • Download URL: pocal-2.449.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for pocal-2.449.tar.gz
Algorithm Hash digest
SHA256 b7c74698051f229786706f5b6f605a660f5dcce71d01b488337d0a3859f22117
MD5 ce2e6113718c39e9dd47ae2756a0922a
BLAKE2b-256 b4cf7f0fa937adbc4364223a34705ee7c125d407a2eff545b0cb0c2b67bd926e

See more details on using hashes here.

File details

Details for the file pocal-2.449-py3-none-any.whl.

File metadata

  • Download URL: pocal-2.449-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for pocal-2.449-py3-none-any.whl
Algorithm Hash digest
SHA256 4869473f7f3433c1e10e377a499e766719b56a695111d1004b650f6f843e467d
MD5 a8c44fed17067060ece8440b217d9d15
BLAKE2b-256 7ba01d5c43401f359794cf014c7e266ccfa9dae1be9b8131295e2f5385037fe0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.449 This release

2 files

2.236

1 file

2.0

1 file

1.732

1 file

1.414

2 files

0.83

1 file

0.79

1 file

0.73

1 file

0.61

1 file

0.6

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page