Dynamical structure factors and correlation functions from molecular dynamics trajectories
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. By analyzing these functions one can access the dynamics of a system without resorting to perturbative approaches. Moreover by combining in particular the structure factor with the cross sections (or form factors) of, e.g., neutrons, X-rays or electrons, one can 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.
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 papers:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dynasor-2.3.tar.gz.
File metadata
- Download URL: dynasor-2.3.tar.gz
- Upload date:
- Size: 150.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e582e0f6260b3d63d1428167eddfeb3518d51a42679abef64beac7927c06db
|
|
| MD5 |
2ba431fcf7233eb50087be540bcc2134
|
|
| BLAKE2b-256 |
3205d19d3baea53c894b01c58543176fc1a6074ca5cd6001f77b3985586cf311
|
File details
Details for the file dynasor-2.3-py3-none-any.whl.
File metadata
- Download URL: dynasor-2.3-py3-none-any.whl
- Upload date:
- Size: 143.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d8a09c885b07b2798ad7225cae763d953eb6f042f898c7f87af31d0fe9d01ea
|
|
| MD5 |
55f877a8f3ce071d8e1fd2cb131079d4
|
|
| BLAKE2b-256 |
37bd0df6fbd9eaf8278f8218528111fbf64f11ad605aeab9a01e430dd3301417
|