This is a simple repository to get use to JAX.
JAX-MD provide an efficient Molecular Dynamics (MD) simulation solution using JAX.
Lennard-Jones potential is used as inter-atomic potential:
The velocity Verlet integrator is used to propagate the system along the time.
To install JAX-MD use inside the cloned repository:
pip install -e .
After the installation, to run a molecular dynamics simulation one can use:
jaxdyn param_file.yaml
With param_file.yaml
being a .yaml
file to read the simulation parameters from.
JAX-MD uses .yaml
file as input. This file contains the parameters used during the simulation. These parameters are:
-
xyz_file
: Path to the.xyz
file containing the system. -
key
: Key random generator, used ifxyz_file
is not given to initialize the system's position as random. -
num_particules
: Number of particules in the randomly initialized system. -
box_size
: Size of the simulation box. -
dt
: Time step. -
n_step
: Number of time step, ie length of the simulation. -
epsilon
:$\epsilon$ parameter in the Lennard-Jones potential. -
sigma
:$\sigma$ parameter in the Lennard-Jones potential. -
display_energy
: Display energies of the system as a function of the time. -
display_animation
: Display a 2D projection of the simulation. -
printing_step
: Print the system energy every nth step. -
writing_step
: Write the system coordinates into a trajectory file every nth step. -
center
: Center the molecule in the PBC box