This repository contains code for calculating various material properties using data obtained from molecular dynamics simulations (LAMMPS). Currently, the following calculations are supported:
This option allows you to visualize the string configuration using OVITO software. Strings are accessed by connecting mobile atoms i and j if:
num_atoms
: Total number of atoms in the systemnum_frame
: Total number of stepsnum_types
: Number of types of atoms in the systemdim
: The dimension you computeddt
: The time stepgap
:gap * dt
is the t in the equation abovesteps_read
: The folder that you save for the STRINGS at time interval tinitial_read
: The folder that you save for the STRINGS at a specific initial timetime_index
: The time steps you would like to plot the strings
STRINGS
: Includes information about the stringsconf.dump_all
: Includes atom positions and velocities
The Van Hove self-correlation function quantifies the probability of finding an ion within a volume element dr, centered at r and time t, given that the ion was at the origin at time t=0. The formula is given by:
num_atoms
: Total number of atoms in the systemnum_frame
: Total number of stepsnum_types
: Number of types of atoms in the systemdim
: The dimension you computeddt
: The time steprDel
: The value of drrCutoff
: The cut-off distancetime_series
: The array that includes the different time intervals you would like to compute ( G_s )gap
: For one run, the start of computing ( G_s ) is delayed by gap steps (different initial time)ave_num
: The number of ( G_s ) calculations you are averaging
conf.dump_all
: Includes atom positions and velocities
This option calculates the Velocity AutoCorrelation Function (VACF) and the Phonon Density of States (PDOS) for the material.
-
VACF (Velocity AutoCorrelation Function): VACF provides information about particle motion and diffusion. It is defined as:
$$C(t) = \frac{1}{N} \sum_{i=1}^{N} \vec{v}_i(t) \cdot \vec{v}_i(0)$$ Where$\vec{v}_i(t)$ is the velocity of particle i at time t, and N is the total number of particles. -
PDOS (Phonon Density of States): PDOS gives insights into the material's vibrational modes. It is calculated using Fourier transform techniques and provides the distribution of vibrational frequencies in the material.
num_atoms
: Total number of atoms in the systemnum_frame
: Total number of stepsnum_types
: Number of types of atoms in the systemdim
: The dimension you computeddt
: The time stepmax_omega
: The largest frequency to compute PDOSd_omega
: The frequency stepNc
: The correlation time for VACFcompute_type
: The array that specifies which atom type you are going to compute the VACF and PDOS for. Ifcompute_type
equalsnum_types + 1
, then compute VACF for all the atoms.
conf.dump_all
: Includes atom positions and velocities
This option calculates the imtermediate scattering function and dynamics structure factors for materials
Additional material properties are currently under development and will be added to the repository soon.
Stay tuned for updates and improvements!