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

Uploaded Source

Built Distribution

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

dynamic_diffraction_module-0.1.6-py3-none-any.whl (67.0 kB view details)

Uploaded Python 3

File details

Details for the file dynamic_diffraction_module-0.1.6.tar.gz.

File metadata

  • Download URL: dynamic_diffraction_module-0.1.6.tar.gz
  • Upload date:
  • Size: 67.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-22-generic

File hashes

Hashes for dynamic_diffraction_module-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e529a72f8121e36bbee3415b8f748c073c3faf7e0847fa3e49f508c618d78d7e
MD5 347412cbbe575e193d6fbaa0cdb55dc4
BLAKE2b-256 c3b3b7c70f76f188eba2b9d07122e6e39dc6c14f422087d1656ec1f6b41260e8

See more details on using hashes here.

File details

Details for the file dynamic_diffraction_module-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for dynamic_diffraction_module-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bb234a5ad4dcde3d651c32f6b5a4d56038102a1c871bd5c12839d25aef90edb1
MD5 8457ed9ddc7a658e9846e38af568c788
BLAKE2b-256 526d1a719a70e54313447102677933847f190f878be2f756481d0b1a9e7104b6

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