Tools for diffraction simulation of s3dxrd type experiments.
Project description
Welcome to the xrd_simulator
A package for simulating X-ray Diffraction from polycrystals.
xrd_simulator defines polycrystals as a mesh of tetrahedral single crystals and simulates diffraction as collected by a 2D discretized detector array while the sample is rocked around an arbitrary rotation axis.
xrd_simulator was originally developed with the hope to answer questions about measurement optimization in scanning x-ray diffraction experiments. However, xrd_simulator can simulate a wide range of experimental diffraction setups. The essential idea is that the sample and beam topology can be arbitrarily specified, and their interaction simulated as the sample is rocked. This means that standard “non-powder” experiments such as scanning-3dxrd and full-field 3dxrd (or HEDM if you like) can be simulated as well as more advanced measurement sequences such as helical scans for instance. It is also possible to simulate powder like scenarios using orientation density functions as input.
Installation
Anaconda installation
The preferred way to install the xrd_simulator package is via anaconda:
conda install -c conda-forge -c axiomel xrd_simulator
This is meant work across OS-systems and requires no prerequisites except, of course, that of Anaconda itself.
Pip Installation
Pip installation is possible, however, external dependencies of pygalmesh must the be preinstalled on your system. Installation of these will be OS dependent and documentation can be found elsewhere.:
pip install xrd-simulator
Source installation
Naturally one may also install from the sources:
git clone https://github.com/AxelHenningsson/xrd_simulator.git cd xrd_simulator python setup.py install
This will then again require the pygalmesh dependencies to be resolved beforehand.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for xrd_simulator-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7408cdb70a2c7acd8256b078619f1b0d4fe4b5094b1b5b07b67aed4e39de810a |
|
MD5 | fe4b6fa2ac21a010e6a4d879758ede0f |
|
BLAKE2b-256 | eda453d425e808e5b3bee1bfac9ed4e6f8a3ffe38fcf6f9a3df09d1c432f0447 |