read.hills3d.Rd
`read.hills3d` reads a HILLS file generated by Plumed and returns a hillsfile3d object. User can specify whether some collective variables are periodic.
HILLS file from Plumed.
logical vector specifying periodicity of collective variables.
periodicity of CV1.
periodicity of CV2.
periodicity of CV3.
time in the first column of the HILLS file will be ignored.
hillsfile object.
l1<-"1 -1.587 -2.969 3.013 0.3 0.3 0.3 1.111 10"
l2<-"2 -1.067 2.745 2.944 0.3 0.3 0.3 1.109 10"
l3<-"3 -1.376 2.697 3.049 0.3 0.3 0.3 1.080 10"
l4<-"4 -1.663 2.922 -3.065 0.3 0.3 0.3 1.072 10"
fourhills<-c(l1,l2,l3,l4)
tf <- tempfile()
writeLines(fourhills, tf)
read.hills3d(tf, per=c(TRUE,TRUE))
#> 3D HILLS file read
#> 3D hills file /tmp/RtmpwILtDF/file2d7c7abb8694 with 4 lines