Skip to contents

Counts the primitive rings of the hydrogen-bond network (Franzblau's shortest-path rings).

Usage

primitive_rings(
  frame,
  cutoff = 3.5,
  type = 0L,
  graph = "mutual",
  max_depth = 6L
)

# S3 method for class 'dseams_frame'
primitive_rings(
  frame,
  cutoff = 3.5,
  type = 0L,
  graph = "mutual",
  max_depth = 6L
)

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

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

Arguments

frame

A dseams_frame.

cutoff

Neighbour cutoff in angstrom.

type

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

graph

"mutual" or "cutoff".

max_depth

Largest ring retained.

x

A dseams_rings data frame.

...

Ignored.

object

A dseams_rings data frame.

Value

A data.frame with columns size and n, one row per ring size that occurs. print() and summary() print that table and return the data frame, invisibly.

References

Franzblau, D. S. (1991). Computation of ring statistics for network models of solids. Physical Review B 44, 4925. doi:10.1103/PhysRevB.44.4925

Examples

frame <- read_frame(dseams_example("ice1h.lammpstrj"), type = -1L)
primitive_rings(frame, graph = "cutoff", max_depth = 6L)
#>   size   n
#> 1    6 256