Skip to contents

Read one frame into a system.

Usage

seams_system_read(sys, path, frame = 1L, type = -1L)

Arguments

sys

A dseams_system.

path

Trajectory path.

frame

1-based frame index.

type

Species filter. Negative keeps every atom.

Value

The atom count. sys is updated in place. On failure the previous frame is kept and the call stops with the engine's message.

Examples

sys <- seams_system_new()
seams_system_read(sys, dseams_example("ice1h.lammpstrj"))
#> [1] 128