Skip to contents

spec names each LAMMPS type. The ice Ih cell is one species, so the pair count is zero.

Usage

seams_contact_pairs(sys, spec)

Arguments

sys

A dseams_system.

spec

Site-table text such as "1=cationHead".

Value

An integer vector c(n_pairs, n_cation, n_anion), class dseams_contacts.

Examples

sys <- seams_system_new()
seams_system_read(sys, dseams_example("ice1h.lammpstrj"))
#> [1] 128
seams_contact_pairs(sys, "1=cationHead")
#>  n_pairs n_cation  n_anion 
#>        0      128        0 
#> attr(,"class")
#> [1] "dseams_contacts" "integer"