Skip to main content

set of scripts for calculating linear and nonlinear optical properties of organic crystals

Project description

The aim of the program is to calculate linear (refractive indices) and nonlinear (\(\chi^2\) for second harmonic generation) optical properties of organic crystals.

Installation

Make sure you have installed:
  • gfortran

  • python 3.6

  • open babel

Installation:
  • pip install chi1chi2

  • for the fortran programs a Makefile is provided with the repository: make command builds the programs in the build/ directory

Description

The whole program constitutes a set of scripts that need to be executed in order.

There are four main steps:

  1. Input preparation (optionally - geometry optimization)

  2. Optical properties of molecular sub-units calculations

  3. Calculations of bulk properties

  4. Analysis of the results

The purpose of this file is to lead the user through all these steps.

Step 1 - Input preparation

  1. from Cif (easy path)

    use chi.from_cif to get geometry for further optimization with e.g. crystal09/14/..

  2. from fractional coordinates

    use chi.from_fra script (see: examples/mna_cif.fra, examples/mna_cif2.fra to see the convention)

    (remember to adjust the

  3. manually

    see examples for the convention

Step 1a after geometry optimization

  1. use chi.from_crystal script to adjust the coordinates and charges after crystal geometry optimization

  2. run chi.input_preparator script to get input files for:

    • charge_generator program (example usage: charge_generator < chg1.inp)

    • Lorentz tensor with lorentz program (example usage: lorentz < lorentz.inp > L.dat)

Step 2 - property calculation

Use sets of charges, geometries and follow your favorite property calculation procedure. Additional shell scripts could be provided in later releases.

Step 3 - core calculations

Use script chi.main to get the \(\chi^1\) and \(\chi^2\) tensor components in the so called ab’c* reference frame.

v 0.1.1: Q-LFT calculations enabled!

Step 4 - result analysis

This step will be provided in future releases.

  • Refractive indices and optical indicatrix analysis (0.2.0)

  • Magnitude of the \(\chi^2\) tensor components in the direction of the optical indicatrix (0.2.0)

  • Phase matching diagrams (in future plans)

Examples

See the examples/examples.pdf to follow the steps used in the integration tests. The files used for the tests are located in the tests/integration directory:

  • input as a starting point

  • expected as a reference

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

chi1chi2-0.1.1.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

chi1chi2-0.1.1-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

Details for the file chi1chi2-0.1.1.tar.gz.

File metadata

  • Download URL: chi1chi2-0.1.1.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for chi1chi2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bb387ba821048bacad2f788b0dec40e07d3de9e9e2d7a8a397b37efa9db3a727
MD5 5c84d27c430f57159466e00fa1cf82d3
BLAKE2b-256 d0453390a4b5312c9dee1230e4b92e47f6f7ec4dd3566460db82283728c8b67c

See more details on using hashes here.

File details

Details for the file chi1chi2-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chi1chi2-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for chi1chi2-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bc78ca9548e676c7ee114b240fec791f12be8bfbc5a40452a1a6a017f0e25af
MD5 aff45b2e9cd6b71a173503bf6a7b2fa9
BLAKE2b-256 f5292253ca0c3aedf8c5d204ccf910604c89ecc4188c79554249e40906ef2a83

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