Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/odarbelaeze/vegas-lattice-rs
Lattice generator library and tool in rust.
https://github.com/odarbelaeze/vegas-lattice-rs
lattice material-science physics rust vegas-lattice-rs
Last synced: about 2 months ago
JSON representation
Lattice generator library and tool in rust.
- Host: GitHub
- URL: https://github.com/odarbelaeze/vegas-lattice-rs
- Owner: odarbelaeze
- License: mit
- Created: 2017-05-05T02:54:28.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T13:01:06.000Z (10 months ago)
- Last Synced: 2024-04-14T06:14:20.352Z (9 months ago)
- Topics: lattice, material-science, physics, rust, vegas-lattice-rs
- Language: Rust
- Homepage: https://crates.io/crates/vegas-lattice
- Size: 143 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# vegas-lattice-rs
![Crates.io](https://img.shields.io/crates/v/vegas-lattice.svg)
![Build Status](https://github.com/odarbelaeze/vegas-lattice-rs/actions/workflows/rust.yml/badge.svg?branch=main)
[![Documentation](https://docs.rs/vegas-lattice/badge.svg)](https://docs.rs/vegas-lattice)
[![DOI](https://zenodo.org/badge/90330925.svg)](https://zenodo.org/badge/latestdoi/90330925)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.```bash
alias vl=vegas-lattice
```Now, lets write a basic example,
```bash
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.[crates.io]: https://crates.io/
[rust]: https://www.rust-lang.org/en-US/
[releases]: https://github.com/odarbelaeze/vegas-lattice-rs/releases