Tutorials#
Below (and in the examples
folder on gitlab) you can find serveral tutorials and examples that demonstate how to use dynasor.
In setting up these examples, suitable parameters were chosen for the MD simulations that provide physically sound (albeit not necessarily highly converged) results. In practice, it is strongly recommended to carefully test the effect of e.g., system size, sampling time, spacing of snapshots, possibly interatomic potential/force field, and dynasor averaging parameters.
The basics#
To begin with, there are two tutorials that deal with dynamics of liquid and solid aluminum, respectively. Here you can learn the basics, such as setting up a trajectory, setting up the q-points to sample (along a path in the solid case and spherically averaged in the liquid case), running a dynasor calculation, understanding the contents of a dynasor-sample, and some basic visualization of the results.
Advanced applications#
These tutorials cover some more advanced topics, such as splitting structure factors by species, some convergence considerations, and spectral energy density calculations.
In the tutorial on ordered and disordered NiAl you can learn how to handle multi-component systems by computing full and partial dynamic structure factors and current correlation for ordered and disordered NiAl.
In the static structure tutorial you can learn how to compute the partial static structure factors for the different components of a halide perovskite and study the convergence of the results with system size and trajectory length.
The tutorial on the spectral energy density (SED) demonstrates how the latter can be calculated from a molecular dynamics simulation. Afterwards the SED, which captures the full anharmonicity, is compared to a phonopy dispersion, which is based on harmonic lattice dynamics.
Post-processing#
In these tutorials you can learn about ways to post-process the dynasor results, for example weighting of structure factors with form factors to compare with different scattering experiments, or extracting phonon frequencies and lifetimes by peak fitting using the damped harmonic oscillator model.
Other topics#
It can be useful to analyze the dynamics of the atoms in terms of normal modes.
The normal modes behaves roughly as independent harmonic oscillators for most materials.
It is thus possible to reason about these degrees of freedom as each having a single frequency and lifetime.
Even for very anharmonic materials normal modes can serve as a intuitive basis for further analysis.
In the mode projection tutorial the basic functionality of dynasor.ModeProjector
is demonstrated.
The ACF and FFTs tutorial provides some general insights into auto-correlation functions, Fourier transforms, and numerical tools for decreasing noise.
It is crucial to analyze convergence of the results, which is illustrated for the case of the convergence with respect to simulation time in this tutorial.