Skip to content

Commit

Permalink
Environment similarity collective variable (plumed#562)
Browse files Browse the repository at this point in the history
* First commit

* Input ref environments from PDB files and clean up

* Fixed errors in compilation

* Encapsulated parsinf of ref envs in function

* Fixed problem with maxDistance function

* Add regtests - derivatives missing

* Add regtest for derivatives

* Update citation

* Add regtest for DIAMOND option

* Documentation of EnvironmentSimilarity

* Add link to Environment Finder

* Update docs and fix virial

* Remove old file

* Fix namespace issue; fix LGTM alert
  • Loading branch information
PabloPiaggi authored Apr 7, 2020
1 parent dc2d534 commit aa0b0a7
Show file tree
Hide file tree
Showing 54 changed files with 3,785 additions and 10 deletions.
2 changes: 2 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-bcc/COLVAR.reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! FIELDS time es.mean es.morethan
0.000000 1.001178 249.939835
1 change: 1 addition & 0 deletions regtest/crystallization/rt-env-sim/rt-bcc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../../scripts/test.make
253 changes: 253 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-bcc/bcc.pdb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-bcc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type=driver
plumed_modules=crystallization
# this is to test a different name
arg="--plumed plumed.dat --mf_pdb bcc.pdb"
14 changes: 14 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-bcc/plumed.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# vim:ft=plumed

ENVIRONMENTSIMILARITY ...
SPECIES=1-250
SIGMA=0.065
LATTICE_CONSTANTS=0.4234
CRYSTAL_STRUCTURE=BCC
LABEL=es
MEAN
MORE_THAN={RATIONAL R_0=0.5 NN=12 MM=24}
... ENVIRONMENTSIMILARITY

PRINT ARG=es.mean,es.morethan FILE=COLVAR STRIDE=1

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! FIELDS time es.mean es.morethan
0.000000 0.319486 24.000529
290 changes: 290 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-1env/IceIh.pdb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-1env/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../../scripts/test.make
4 changes: 4 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-1env/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type=driver
plumed_modules=crystallization
# this is to test a different name
arg="--plumed plumed.dat --mf_pdb IceIh.pdb"
4 changes: 4 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-1env/env1.pdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ATOM 1 O MOL 1 -2.239 -1.296 -0.917 1.00 0.00 O
ATOM 2 O MOL 1 0.000 0.000 2.751 1.00 0.00 O
ATOM 3 O MOL 1 0.000 2.594 -0.917 1.00 0.00 O
ATOM 4 O MOL 1 2.246 -1.296 -0.917 1.00 0.00 O
14 changes: 14 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-1env/plumed.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# vim:ft=plumed

ENVIRONMENTSIMILARITY ...
SPECIES=1-288:3
SIGMA=0.05
CRYSTAL_STRUCTURE=CUSTOM
REFERENCE=env1.pdb
LABEL=es
MEAN
MORE_THAN={RATIONAL R_0=0.5 NN=12 MM=24}
... ENVIRONMENTSIMILARITY

PRINT ARG=es.mean,es.morethan FILE=COLVAR STRIDE=1

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! FIELDS time es.mean es.morethan
0.000000 0.999991 95.976566
290 changes: 290 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-multienv/IceIh.pdb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../../scripts/test.make
4 changes: 4 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-multienv/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type=driver
plumed_modules=crystallization
# this is to test a different name
arg="--plumed plumed.dat --mf_pdb IceIh.pdb"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ATOM 1 O MOL 1 -2.239 -1.296 -0.917 1.00 0.00 O
ATOM 2 O MOL 1 0.000 0.000 2.751 1.00 0.00 O
ATOM 3 O MOL 1 0.000 2.594 -0.917 1.00 0.00 O
ATOM 4 O MOL 1 2.246 -1.296 -0.917 1.00 0.00 O
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ATOM 1 O MOL 1 -2.239 1.297 -0.917 1.00 0.00 O
ATOM 2 O MOL 1 0.000 -2.594 -0.917 1.00 0.00 O
ATOM 3 O MOL 1 0.000 0.000 2.751 1.00 0.00 O
ATOM 4 O MOL 1 2.246 1.297 -0.917 1.00 0.00 O
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ATOM 1 O MOL 1 -2.246 1.296 0.917 1.00 0.00 O
ATOM 2 O MOL 1 0.000 -2.594 0.917 1.00 0.00 O
ATOM 3 O MOL 1 0.000 0.000 -2.751 1.00 0.00 O
ATOM 4 O MOL 1 2.246 1.296 0.917 1.00 0.00 O
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ATOM 1 O MOL 1 -2.246 -1.297 0.917 1.00 0.00 O
ATOM 2 O MOL 1 0.000 0.000 -2.751 1.00 0.00 O
ATOM 3 O MOL 1 0.000 2.594 0.917 1.00 0.00 O
ATOM 4 O MOL 1 2.246 -1.297 0.917 1.00 0.00 O
17 changes: 17 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-custom-multienv/plumed.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# vim:ft=plumed

ENVIRONMENTSIMILARITY ...
SPECIES=1-288:3
SIGMA=0.05
CRYSTAL_STRUCTURE=CUSTOM
REFERENCE_1=env1.pdb
REFERENCE_2=env2.pdb
REFERENCE_3=env3.pdb
REFERENCE_4=env4.pdb
LABEL=es
MEAN
MORE_THAN={RATIONAL R_0=0.5 NN=12 MM=24}
... ENVIRONMENTSIMILARITY

PRINT ARG=es.mean,es.morethan FILE=COLVAR STRIDE=1

291 changes: 291 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-deriv-multienv/IceIh.pdb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../../scripts/test.make
4 changes: 4 additions & 0 deletions regtest/crystallization/rt-env-sim/rt-deriv-multienv/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type=driver
plumed_modules=crystallization
# this is to test a different name
arg="--plumed plumed.dat --mf_pdb IceIh.pdb"
Loading

0 comments on commit aa0b0a7

Please sign in to comment.