Skip to main content

pairs_within_pbc

Function pairs_within_pbc 

Source
pub fn pairs_within_pbc(
    xyz: &[[f64; 3]],
    cell: &Cell,
    query: &PbcQuery<'_>,
) -> Result<Vec<Pair>, Error>
Expand description

Cutoff pairs with a periodicity mask.

query.periodic[k] false keeps axis k out of the image sum. A fully periodic mask is crate::pairs_within. Any open axis uses occupied Cartesian bins and no periodic padding. cell supplies the periodic lattice. It is not read when every axis is open.