create_jaxmd

jaxrens.backends.jaxmd.create_jaxmd(potential, periodic, tersoff_params=None, tersoff_params_file=None, eam_params_file=None)[source]

Create a jax-md backend.

Parameters:
  • potential (str) – "tersoff" or "eam".

  • periodic (bool) – Whether to build the displacement function over periodic_general (True; supports dynamic cell via new_box= kwarg) or free (False).

  • tersoff_params (str | None) – Inline parameter-set name (currently "si"). Mutually exclusive with tersoff_params_file.

  • tersoff_params_file (str | None) – Path to a LAMMPS-format Tersoff parameter file. Only single-element files are supported (jax-md’s all-pairs Tersoff is single-species).

  • eam_params_file (str | None) – Path to a LAMMPS DYNAMO setfl EAM file. Required for potential="eam".

Returns:

JaxMDBackend instance.

Return type:

JaxMDBackend