Dynamical structure factors and correlation
Project description
dynasor is a tool for calculating total and partial dynamic structure factors as well as related correlation functions from molecular dynamics (MD) simulations. Analysis of these functions enables one to access the dynamics of a system without resorting to perturbative approaches. By combining in particular the structure factor with the cross sections (or form factors) of, e.g., neutrons, X-rays or electrons, it is even possible to directly predict experimental spectra.
The main input consists of a trajectory from a MD simulation, i.e., a file containing snapshots of the particle coordinates, and optionally velocities that correspond to consecutively and equally spaced points in (simulation) time. dynasor provides both python and a command line interface. The following snippet illustrates how one can calculate dynamic structure factors using the former:
.. code-block:: python
traj = Trajectory(‘dump.xyz’, trajectory_format=’extxyz’) q_points = generate_spherical_qpoints(traj.cell, q_max=20) sample = compute_dynamic_structure_factors(traj, q_points=q_points, dt=5, window_size=100) sample.write_to_npy(‘test.npy’)
dynasor can be installed via pip or conda. Please consult the installation section of the user guide for details.
The full documentation can be found in the user guide. For questions and help please use the dynasor discussion forum on matsci.org. dynasor and its development are hosted on gitlab.
When using dynasor in your research please cite the following paper:
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
File details
Details for the file dynasor-2.0.tar.gz
.
File metadata
- Download URL: dynasor-2.0.tar.gz
- Upload date:
- Size: 38.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a19059a161b720fcc1d9ed5882a2b1724d9deefb5533acb8e964e3d0982d0b93 |
|
MD5 | 9a6092094a08ac0dae011c5f70363ce0 |
|
BLAKE2b-256 | 74c6a7ea07e0768e86a48d98a5853ee03692d74215b06a0e60621fa32206b694 |