pub struct Steinhardt {
pub local: Vec<f64>,
pub average: Option<Vec<f64>>,
}Expand description
Local Steinhardt parameter, and the average when it was requested.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let q6 = system.steinhardt(&seams::SteinhardtOptions { average: true, ..Default::default() })?;
assert_eq!(q6.local.len(), 8);
assert_eq!(q6.average.as_ref().map(Vec::len), Some(8));Fields§
§local: Vec<f64>One local q_l per atom. Dimensionless.
average: Option<Vec<f64>>Neighbour mean of q_lm. None when the average was not requested.
Trait Implementations§
Source§impl Clone for Steinhardt
impl Clone for Steinhardt
Source§impl Debug for Steinhardt
impl Debug for Steinhardt
Source§impl PartialEq for Steinhardt
impl PartialEq for Steinhardt
impl StructuralPartialEq for Steinhardt
Auto Trait Implementations§
impl Freeze for Steinhardt
impl RefUnwindSafe for Steinhardt
impl Send for Steinhardt
impl Sync for Steinhardt
impl Unpin for Steinhardt
impl UnsafeUnpin for Steinhardt
impl UnwindSafe for Steinhardt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more