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

However, further functionality is to follow soon:

  • n-beam diffraction
  • 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.0.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

dynamic_diffraction_module-0.1.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dynamic_diffraction_module-0.1.0.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.17.0-1034-oem

File hashes

Hashes for dynamic_diffraction_module-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a312f297c075abe8590bd38ab08928c218c82f031296d62db5d19f6a981b092
MD5 6dd4a29bcd419d1b571a79e4f01e15b5
BLAKE2b-256 6e34d0118a5e194c5d8cf596cedf651c4f4d942339fa1b9036030fccc829311a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dynamic_diffraction_module-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deaf808394421944e18734a33f2021e24382b8223ecc01bc1aa01d8af68d5cfe
MD5 782e4ade5efd18f72ad7d8b230b0e90f
BLAKE2b-256 9c329c88557273d3a38907f3f2b668df144082e1ad041c5f9431a90f006b3b18

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