#lattice #material #graph #crystall

bin+lib vegas-lattice

CLI and library to work with lattices

12 releases (breaking)

0.9.0 Sep 19, 2024
0.7.1 Sep 4, 2024
0.5.1 Feb 24, 2024
0.4.0 Apr 3, 2019
0.1.0 Sep 12, 2017

#94 in Science

Download history 258/week @ 2024-08-24 249/week @ 2024-08-31 156/week @ 2024-09-07 198/week @ 2024-09-14 82/week @ 2024-09-21 71/week @ 2024-09-28 5/week @ 2024-10-05

660 downloads per month
Used in vegas

Custom license

67KB
1K SLoC

vegas-lattice-rs

Crates.io Build Status Documentation DOI

A little tool to build lattices and samples out of patterns written in rust.

Installation

vegas-lattice-rs can be used as a standalone executable in order to build yourself some lattices and otherwise it can be used as a rust crate (library). If you have cargo installed in your system, you can grab the executable from crates.io using:

cargo install vegas-lattice

after runing that you will have an executable vegas-lattice in your system that will run as expected.

If you intent to use it as a library just add the the following line to your Cargo.toml:

vegas-lattice = "*"

Pin it at will when you're done, since this is an actively developed package.

Usage

I'd recommend to alias vegas-lattice to something shorter, since the pipelines can get really complex real quick.

alias vl=vegas-lattice

Now, lets write a basic example,

vl bcc \
    | vl expand --along-x 10 --along-y 10 --along-z 5 \
    | vl alloy A Fe+ 50 Fe 50 \
    | vl alloy B Fe+ 50 Fe 50 \
    | vl into xyz

This command will create a 10x10x5 bcc lattice, and will turn half the iron sites into iron + and after that it will transform the lattice into an xyz file representation.

Notice that you can pipe the output of one command to the next one using the standard io.

Dependencies

~8MB
~118K SLoC