Skip to contents

graph = "cutoff" (the default) bonds every pair closer than cutoff, as seams chill-plus, pydseamslib, and the Julia package do by default. graph = "mutual" keeps the mutual four nearest neighbours inside cutoff + 1.5.

Usage

chill_plus(frame, cutoff = 3.5, type = 0L, graph = "cutoff", rule = "chill+")

# S3 method for class 'dseams_frame'
chill_plus(frame, cutoff = 3.5, type = 0L, graph = "cutoff", rule = "chill+")

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

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

Arguments

frame

A dseams_frame.

cutoff

Neighbour cutoff in angstrom. For the mutual graph this is only the cell-size hint (cutoff + 1.5).

type

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

graph

"cutoff" or "mutual".

rule

"chill+" or "ovito-chill+". A YAML or Lua snippet with a rule field is accepted.

x

A dseams_ice data frame.

...

Ignored.

object

A dseams_ice data frame.

Value

A data.frame with columns atom, type, label, name. The counts attribute is the nine-label histogram. print() and summary() return that data frame, invisibly.

Details

rule = "chill+" is the published rule: the cutoff shell must hold exactly four neighbours, q3 is averaged over the four nearest, and the Table 1 interfacial-neighbour test is on. rule = "ovito-chill+" averages q3 over the whole shell and skips that test.

name is one of nine labels. cubic is cubic ice and hexagonal is hexagonal ice. interfacial is ice-like but not cubic or hexagonal. clathrate is clathrate and interClathrate is interfacial clathrate. water is liquid or amorphous. unclassified matched none of those. reCubic and reHex are cubic and hexagonal ice reclassified with the q6 order parameter.

print() counts the names. It does not print the rows. summary() prints the same counts. Both return the data frame, invisibly.

Ice Ih (dseams_example("ice1h.lammpstrj"), every atom) is 128 hexagonal waters and 256 primitive six-rings.

References

Nguyen, A. H. and Molinero, V. (2015). Identification of clathrate hydrates, hexagonal ice, cubic ice, and liquid water in simulations: the CHILL+ algorithm. The Journal of Physical Chemistry B 119, 9369-9376. doi:10.1021/jp510289t

Examples

frame <- read_frame(dseams_example("ice1h.lammpstrj"), type = -1L)
ice <- chill_plus(frame)
table(ice$name)
#> 
#> hexagonal 
#>       128 
ice
#> CHILL+ labels, 128 atoms
#> 
#> hexagonal 
#>       128