Skip to contents

Hexagonal-cage and double-diamond membership

Usage

cages(frame, cutoff = 3.5, type = 0L, k = 4L, graph = "seeded")

# S3 method for class 'dseams_frame'
cages(frame, cutoff = 3.5, type = 0L, k = 4L, graph = "seeded")

# S3 method for class 'dseams_cages'
print(x, ...)

# S3 method for class 'dseams_cages'
summary(object, ...)

Arguments

frame

A dseams_frame.

cutoff

Neighbour cutoff in angstrom.

type

LAMMPS type. 0 uses the first atom's type.

k

Neighbours kept by the k-nearest graphs.

graph

"seeded", "mutual", "cutoff", or "knn-union".

x

A dseams_cages data frame.

...

Ignored.

object

A dseams_cages data frame.

Value

A data.frame with columns atom, cage, name. print() reports n_ih, n_ic, n_both, and n_water. summary() counts name. Both return the data frame, invisibly. Attributes n_ih, n_ic, n_both, n_water are disjoint and match seams cages (hexagonal only, cubic only, both, water). Per-atom cage is 0 water, 1 hexagonal, 2 cubic, 3 both.

Examples

frame <- read_frame(dseams_example("ice1h.lammpstrj"), type = -1L)
found <- cages(frame)
attr(found, "n_ih")
#> [1] 128