Skip to content

A Julia package to read a XYZ trajectory from Lammps

License

AGPL-3.0, MIT licenses found

Licenses found

AGPL-3.0
LICENSE
MIT
original_MIT_license
Notifications You must be signed in to change notification settings

laagegroup/XYZ_parser_jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNU AGPL v3.0 License VERSION

Table of Contents
  1. XYZ.jl
  2. Getting Started
  3. Usage
  4. License and acknowledgments

XYZ.jl

A Julia package for reading XYZ trajectory files.

It currently supports XYZ files with a constant number of atoms.

(back to top)

Getting Started

Prerequisites

This package is a Julia parser for XYZ files. It works with Julia 1.5 or above.

It requires the DCD package. You should install the DCD parser first!

Installation (with set-up ssh keys)

Adding private packages to Julia requires a password-less access (see the manual in this organization for setup)

pkg> add git@github.com:laagegroup/XYZ_parser_jl.git

Installation (with https, RECOMMENDED)

This package can be directly added via https by running the following command from the Julia interface:

pkg> add https://github.com/laagegroup/XYZ_parser_jl.git

(back to top)

Usage

This package can be used in the Julia REPL or within a Julia script. Here is an example of the main features:

using XYZ

xyz = load_xyz("foo.xyz")

na = natoms(xyz)  # Get the number of atoms.
nf = nframes(xyz) # Get the number of frames.
atoms = atomnames(xyz) # Get the list of atom names.

for frame in xyz  # Iterate over each frame.
  r = positions(frame)  # Get an array of all current positions with dimensions (3, na).

  # Work on the current frame.
end

(back to top)

License and acknowledgments

This package is a modification of the DCD parser in this organization: https://github.com/laagegroup/DCD_parser_jl.git (The original development is due to Michael von Domaros, see https://github.com/mvondomaros/DCD.jl.git and the MIT license original_MIT_license).

Modifications are distributed under the GNU Affero General Public License v3.0. See LICENSE for more information.

(back to top)

About

A Julia package to read a XYZ trajectory from Lammps

Topics

Resources

License

AGPL-3.0, MIT licenses found

Licenses found

AGPL-3.0
LICENSE
MIT
original_MIT_license

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages