Skip to contents

Shell symmetry label for every atom

Usage

symmetry(frame, shell_rmsd = 0.12)

# S3 method for class 'dseams_frame'
symmetry(frame, shell_rmsd = 0.12)

Arguments

frame

A dseams_frame.

shell_rmsd

Largest RMSD, in the units of the file, at which a neighbour shell still matches the ideal ice template.

Value

An integer vector, one code per atom: 0 ice Ih, 1 ice Ic, 2 stacking-disordered, -1 otherwise.

Examples

frame <- read_frame(dseams_example("ice1h.lammpstrj"), type = -1L)
table(symmetry(frame))
#> 
#>   0 
#> 128