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)

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.3.tar.gz (61.1 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.3-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dynamic_diffraction_module-0.1.3.tar.gz
  • Upload date:
  • Size: 61.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.14.0-37-generic

File hashes

Hashes for dynamic_diffraction_module-0.1.3.tar.gz
Algorithm Hash digest
SHA256 03878001e35b33f46c2ab1db9a0308d958f668c643e4e99e5598cfd3f23f524a
MD5 0537b7fb75e87c1c680d24c97a4825ef
BLAKE2b-256 cf81e0c4c74feb3c77b347c0f3f04a6644fff2ced04583aa6bd4d5088e892780

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dynamic_diffraction_module-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7922ce82d856aa803071385625caed6ee3ab64652c08700a415448eadd1bea37
MD5 6f90075d4b01cbe35c491165c189f0b0
BLAKE2b-256 385961d00d3b8c231fa95c06673c47094ad4a23df0d7429a7a773cfb2b9b2e19

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