Skip to main content

A python based framework for dynamic diffraction calculations of crystals.

Project description

Dynamic Diffraction Module

pypi python

A repository meant for (python based) functions on the dynamic diffraction theory. It is closely related to the Matlab written https://gitlab.desy.de/patrick.rauer/MatlabDiffractionStuff. The structure, however, is based on the Dynamic Diffraction submodule of the pXCP framework.

Features

Currently, the scope of the package is rather rudimentary. It includes:

  • computing the (modified) Bragg energy for any given plane H for a specific micro- and macroscopic crystal orientation
  • computing the (approximative) energy width for any given plane H for a specific micro- and macroscopic crystal orientation in the two beam approximation
  • Selecting the number of reflecting planes in the vicinity of a given photon energy + crystal orientation configuration
  • computing reflectivity/transmissivity vs energy for a specified crystal plane H0 can be computed in the two beam approximation
  • Rocking curve scans in the two beam approximation
  • diffraction at strained crystals (however, only symmetric close to backscattering for the moment)
  • Impulse reponse in time-domain

However, further functionality is to follow soon:

  • n-beam diffraction
  • asymmetric, 3D diffraction at strained crystals
  • ...

External packages

  • numpy (required)
  • xraylib (prospectively optional,currently required)
  • matplotlib
  • pandas

Usage

There is no documentation for the API yet. However, you can find some tutorial *.ipynb scripts in the playgrounds folder on gitlab.

LICENSE

  • Free software: GNU GENERAL PUBLIC LICENSE Version 3

Credits

This package was created with Cookiecutter and the waynerv/cookiecutter-pypackage project template.

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

dynamic_diffraction_module-0.1.4.post2.tar.gz (67.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file dynamic_diffraction_module-0.1.4.post2.tar.gz.

File metadata

File hashes

Hashes for dynamic_diffraction_module-0.1.4.post2.tar.gz
Algorithm Hash digest
SHA256 246cd1630a1e159aa3408e2861abefe1419a98aff629f3e92c3ee99f380a7dea
MD5 9e7eb0760a6dfb84aaaa87c7b1a0a166
BLAKE2b-256 469ddf4112fa944b7e8ced00e2bb725c6f68da46fd48525349b6d8ac53f75994

See more details on using hashes here.

File details

Details for the file dynamic_diffraction_module-0.1.4.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for dynamic_diffraction_module-0.1.4.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 97844dd8c3d7a2f65324aee0186289c209aa637473b59cd767ba897f54410123
MD5 110c7f8f922914616a0b62c2544cf747
BLAKE2b-256 6afff8fe5cf40512207a9614cf1c3c6fa33358fe32eb91b026628e2ebe35df1c

See more details on using hashes here.

Supported by

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