Skip to contents

Counts bonds between oxygen_type and hydrogen_type. In exampleTraj.lammpstrj oxygen is type 2 and hydrogen is type 1. The ice Ih cell has no hydrogen.

Usage

seams_hbonds(
  sys,
  cutoff = 3.5,
  oxygen_type = 1L,
  hydrogen_type = 2L,
  dist = 2.42,
  angle = 30
)

Arguments

sys

A dseams_system.

cutoff

Heavy-atom cutoff in angstrom.

oxygen_type, hydrogen_type

Species numbers.

dist

Acceptor-H distance in angstrom.

angle

O-O-H angle in degrees.

Value

An integer.

Examples

sys <- seams_system_new()
seams_system_read(sys, dseams_example("exampleTraj.lammpstrj"), type = -1L)
#> [1] 750
seams_hbonds(sys, oxygen_type = 2L, hydrogen_type = 1L)
#> [1] 460