dynasor
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 an MD simulation, i.e., a file containing snapshots of the particle coordinates and optionally velocities that correspond to consecutive, equally spaced points in simulation time.
dynasor provides both a Python interface and a command-line interface. The following snippet illustrates how one can calculate dynamic structure factors using the former.
from dynasor import Trajectory, compute_dynamic_structure_factors
from dynasor.qpoints import get_spherical_qpoints
traj = Trajectory('dump.xyz', trajectory_format='extxyz')
q_points = get_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_npz('test.npz')
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:
Metadata
Release files for dynasor 2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dynasor-2.5.tar.gz | 210.1 kB | Without provenance | Details for dynasor-2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dynasor-2.5-py3-none-any.whl | Python 3 | none | any | Details for dynasor-2.5-py3-none-any.whl |
Total release size: 378.8 kB
Release files / dynasor-2.5.tar.gz
| Download URL | dynasor-2.5.tar.gz |
|---|---|
| Size | 210.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c538a91107e64be4a1b71f39c9cd65ba0dd79ea3d44d39214a072b0b9864592d
|
|
BLAKE2b-256 checksum How to use checksums |
7e51172dd21c364e90da17ed432484d01f62646ed8d0d91704e18125226993dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / dynasor-2.5-py3-none-any.whl
| Download URL | dynasor-2.5-py3-none-any.whl |
|---|---|
| Size | 168.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1d62f56b2c68d1e46d92de08cb2607e42e922ed40c8b53676397de9b34945ab
|
|
BLAKE2b-256 checksum How to use checksums |
0592264398524163b9a8404e42347130b9ecef0865f1ea5448f8bb0bc5cab9de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for dynasor 2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.