Skip to main content

diamond8

Function diamond8 

Source
pub fn diamond8() -> (Vec<f64>, f64)
Expand description

Eight-atom cubic diamond used by the crate examples.

The lattice constant is 2.75 * 4 / sqrt(3) angstroms. The returned edge is one cubic cell of that crystal.

let (xyz, edge) = seams::diamond8();
assert_eq!(xyz.len(), 24);
assert!(edge > 3.0);