Skip to content

Commit 708d8d5

Browse files
committed
Added and run test for reflection for namd
1 parent 92a8d2a commit 708d8d5

File tree

10 files changed

+337
-235
lines changed

10 files changed

+337
-235
lines changed

namd/tests/library/000_distance-grid_metadynamics-reflection/AutoDiff/test.colvars.out

Lines changed: 101 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
colvars: ----------------------------------------------------------------------
22
colvars: Please cite Fiorin et al, Mol Phys 2013:
3-
colvars: https://dx.doi.org/10.1080/00268976.2013.813594
4-
colvars: in any publication based on this calculation.
5-
colvars: SMP parallelism is enabled; if needed, use "smp off" to override this.
3+
colvars: https://doi.org/10.1080/00268976.2013.813594
4+
colvars: as well as all other papers listed below for individual features used.
5+
colvars: SMP parallelism is enabled (num threads = 4).
66
colvars: This version was built with the C++11 standard or higher.
7+
colvars: Redefining the Tcl "cv" command to the new script interface.
8+
colvars: The restart output state file will be "test.tmp.colvars.state".
9+
colvars: The final output state file will be "test.colvars.state".
710
colvars: ----------------------------------------------------------------------
811
colvars: Reading new configuration from file "test.in":
912
colvars: # units = "" [default]
@@ -42,54 +45,55 @@ colvars: # colvarsTrajFrequency = 1
4245
colvars: # colvarsRestartFrequency = 10
4346
colvars: # scriptedColvarForces = off [default]
4447
colvars: # scriptingAfterBiases = off [default]
48+
colvars: # sourceTclFile = "" [default]
4549
colvars: ----------------------------------------------------------------------
4650
colvars: Initializing a new collective variable.
4751
colvars: # name = "one"
4852
colvars: Initializing a new "distance" component.
53+
colvars: # name = "" [default]
54+
colvars: # componentCoeff = 1 [default]
55+
colvars: # componentExp = 1 [default]
56+
colvars: # period = 0 [default]
57+
colvars: # wrapAround = 0 [default]
58+
colvars: # forceNoPBC = off [default]
59+
colvars: # scalable = on [default]
60+
colvars: Initializing atom group "group1".
4961
colvars: # name = "" [default]
50-
colvars: # componentCoeff = 1 [default]
51-
colvars: # componentExp = 1 [default]
52-
colvars: # period = 0 [default]
53-
colvars: # wrapAround = 0 [default]
54-
colvars: # forceNoPBC = off [default]
55-
colvars: # scalable = on [default]
56-
colvars: Initializing atom group "group1".
57-
colvars: # name = "" [default]
58-
colvars: # centerReference = off [default]
59-
colvars: # rotateReference = off [default]
60-
colvars: # atomsOfGroup = "" [default]
61-
colvars: # indexGroup = "group1"
62-
colvars: # psfSegID = [default]
63-
colvars: # atomsFile = "" [default]
64-
colvars: # dummyAtom = ( 0 , 0 , 0 ) [default]
65-
colvars: # enableForces = on [default]
66-
colvars: # enableFitGradients = on [default]
67-
colvars: Enabling scalable calculation for group "group1".
68-
colvars: # printAtomIDs = off [default]
69-
colvars: Atom group "group1" defined with 4 atoms requested: total mass = 54.028, total charge = -0.72.
70-
colvars: Initializing atom group "group2".
71-
colvars: # name = "" [default]
72-
colvars: # centerReference = off [default]
73-
colvars: # rotateReference = off [default]
74-
colvars: # atomsOfGroup = "" [default]
75-
colvars: # indexGroup = "group2"
76-
colvars: # psfSegID = [default]
77-
colvars: # atomsFile = "" [default]
78-
colvars: # dummyAtom = ( 0 , 0 , 0 ) [default]
79-
colvars: # enableForces = on [default]
80-
colvars: # enableFitGradients = on [default]
81-
colvars: Enabling scalable calculation for group "group2".
82-
colvars: # printAtomIDs = off [default]
83-
colvars: Atom group "group2" defined with 4 atoms requested: total mass = 54.028, total charge = -0.4.
84-
colvars: # oneSiteSystemForce = off [default]
85-
colvars: # oneSiteTotalForce = off [default]
62+
colvars: # centerToOrigin = off [default]
63+
colvars: # centerToReference = off [default]
64+
colvars: # rotateToReference = off [default]
65+
colvars: # atomsOfGroup = "" [default]
66+
colvars: # indexGroup = "group1"
67+
colvars: # psfSegID = [default]
68+
colvars: # atomsFile = "" [default]
69+
colvars: # dummyAtom = ( 0 , 0 , 0 ) [default]
70+
colvars: # enableFitGradients = on [default]
71+
colvars: Enabling scalable calculation for group "group1".
72+
colvars: # printAtomIDs = off [default]
73+
colvars: Atom group "group1" defined with 4 atoms requested: total mass = 54.028, total charge = -0.72.
74+
colvars: Initializing atom group "group2".
75+
colvars: # name = "" [default]
76+
colvars: # centerToOrigin = off [default]
77+
colvars: # centerToReference = off [default]
78+
colvars: # rotateToReference = off [default]
79+
colvars: # atomsOfGroup = "" [default]
80+
colvars: # indexGroup = "group2"
81+
colvars: # psfSegID = [default]
82+
colvars: # atomsFile = "" [default]
83+
colvars: # dummyAtom = ( 0 , 0 , 0 ) [default]
84+
colvars: # enableFitGradients = on [default]
85+
colvars: Enabling scalable calculation for group "group2".
86+
colvars: # printAtomIDs = off [default]
87+
colvars: Atom group "group2" defined with 4 atoms requested: total mass = 54.028, total charge = -0.4.
88+
colvars: # oneSiteSystemForce = off [default]
89+
colvars: # oneSiteTotalForce = off [default]
8690
colvars: All components initialized.
8791
colvars: # timeStepFactor = 1 [default]
8892
colvars: # width = 0.5
89-
colvars: # lowerBoundary = 0 [default]
90-
colvars: # upperBoundary = 10
91-
colvars: # hardLowerBoundary = on [default]
92-
colvars: # hardUpperBoundary = off [default]
93+
colvars: # lowerBoundary = 3.2
94+
colvars: # upperBoundary = 10.2
95+
colvars: # hardLowerBoundary = on
96+
colvars: # hardUpperBoundary = on
9397
colvars: # expandBoundaries = off [default]
9498
colvars: # extendedLagrangian = off [default]
9599
colvars: # outputValue = on [default]
@@ -102,6 +106,25 @@ colvars: # corrFunc = off [default]
102106
colvars: ----------------------------------------------------------------------
103107
colvars: Collective variables initialized, 1 in total.
104108
colvars: ----------------------------------------------------------------------
109+
colvars: Initializing a new "harmonicwalls" instance.
110+
colvars: # name = "wall_one"
111+
colvars: # colvars = { one }
112+
colvars: # stepZeroData = off [default]
113+
colvars: # outputEnergy = off [default]
114+
colvars: # outputFreq = 10 [default]
115+
colvars: # timeStepFactor = 1 [default]
116+
colvars: # writeTISamples = off [default]
117+
colvars: # writeTIPMF = off [default]
118+
colvars: # forceConstant = 1
119+
colvars: # decoupling = off [default]
120+
colvars: # targetForceConstant = -1 [default]
121+
colvars: # lowerWalls = { 3.2 }
122+
colvars: # upperWalls = { 10.2 }
123+
colvars: # lowerWallConstant = 1 [default]
124+
colvars: # upperWallConstant = 1 [default]
125+
colvars: The lower wall force constant for colvar "one" will be rescaled to 4 according to the specified width (0.5).
126+
colvars: The upper wall force constant for colvar "one" will be rescaled to 4 according to the specified width (0.5).
127+
colvars: ----------------------------------------------------------------------
105128
colvars: Initializing a new "metadynamics" instance.
106129
colvars: # name = "metadynamics1" [default]
107130
colvars: # colvars = { one }
@@ -127,28 +150,55 @@ colvars: # keepFreeEnergyFiles = off [default]
127150
colvars: # writeHillsTrajectory = off [default]
128151
colvars: # wellTempered = off [default]
129152
colvars: # biasTemperature = -1 [default]
153+
colvars: # useHillsReflection = on
154+
colvars: # reflectionRange = 6 [default]
155+
colvars: Reflection range is 6.
156+
colvars: # reflectionLowLimitUseCVs = [default]
157+
colvars: Using all non-periodic variables for lower limits of reflection
158+
colvars: # reflectionUpLimitUseCVs = [default]
159+
colvars: Using all non-periodic variables for upper limits of reflection
160+
colvars: # reflectionLowLimit = { 3.2 } [default]
161+
colvars: Reflection condition is applied on a lower limit for CV 0.
162+
colvars: Reflection condition lower limit for this CV is 3.2.
163+
colvars: # reflectionUpLimit = { 10.2 } [default]
164+
colvars: Reflection condition is applied on an upper limit for CV 0.
165+
colvars: Reflection condition upper limit for this CV is 10.2.
130166
colvars: # ebMeta = off [default]
131167
colvars: ----------------------------------------------------------------------
132-
colvars: Collective variables biases initialized, 1 in total.
168+
colvars: Collective variables biases initialized, 2 in total.
133169
colvars: ----------------------------------------------------------------------
134170
colvars: Collective variables module (re)initialized.
135171
colvars: ----------------------------------------------------------------------
136172
colvars: Updating NAMD interface:
137173
colvars: updating atomic data (0 atoms).
138174
colvars: updating group data (2 scalable groups, 8 atoms in total).
139-
colvars: Re-initialized atom group for variable "one":0/0. 4 atoms: total mass = 54.028, total charge = -0.72.
140-
colvars: Re-initialized atom group for variable "one":0/1. 4 atoms: total mass = 54.028, total charge = -0.4.
141-
colvars: The restart output state file will be "test.tmp.colvars.state".
142-
colvars: The final output state file will be "test.colvars.state".
143-
colvars: Opening trajectory file "test.colvars.traj".
144-
colvars: Redefining the Tcl "cv" command to the new script interface.
175+
colvars: updating grid object data (0 grid objects in total).
176+
colvars:
177+
colvars: SUMMARY OF COLVARS FEATURES USED SO FAR AND THEIR CITATIONS:
178+
colvars:
179+
colvars: - Colvars module:
180+
colvars: - Colvars-NAMD interface:
181+
colvars: - Metadynamics colvar bias implementation:
182+
colvars: - Optimal rotation via flexible fitting:
183+
colvars: - distance colvar component:
184+
colvars: - harmonicWalls colvar bias implementation:
185+
colvars: Fiorin2013 https://doi.org/10.1080/00268976.2013.813594
186+
colvars:
187+
colvars: - NAMD engine:
188+
colvars: - Scalable center-of-mass computation (NAMD):
189+
colvars: Phillips2020 https://doi.org/10.1063/5.0014475
190+
colvars:
191+
colvars: updating target temperature (T = 0 K).
145192
colvars: Updating NAMD interface:
146193
colvars: updating atomic data (0 atoms).
147194
colvars: updating group data (2 scalable groups, 8 atoms in total).
195+
colvars: updating grid object data (0 grid objects in total).
196+
colvars: updating target temperature (T = 0 K).
197+
colvars: Current simulation parameters: initial step = 0, integration timestep = 1
198+
colvars: Updating atomic parameters (masses, charges, etc).
148199
colvars: Re-initialized atom group for variable "one":0/0. 4 atoms: total mass = 54.028, total charge = -0.72.
149200
colvars: Re-initialized atom group for variable "one":0/1. 4 atoms: total mass = 54.028, total charge = -0.4.
150201
colvars: The restart output state file will be "test.tmp.colvars.state".
151-
colvars: The final output state file will be "test.colvars.state".
152202
colvars: Synchronizing (emptying the buffer of) trajectory file "test.colvars.traj".
153203
colvars: Synchronizing (emptying the buffer of) trajectory file "test.colvars.traj".
154204
colvars: Saving collective variables state to "test.tmp.colvars.state".

namd/tests/library/000_distance-grid_metadynamics-reflection/AutoDiff/test.colvars.state.stripped

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,45 @@ configuration {
55

66
colvar {
77
name one
8-
x 3.21688278597333e+00
8+
x 3.2168853380692
9+
}
10+
11+
restraint {
12+
configuration {
13+
step 20
14+
name wall_one
15+
}
916
}
1017

1118
metadynamics {
1219
configuration {
13-
step 20
14-
name metadynamics1
20+
step 20
21+
name metadynamics1
1522
}
16-
hills_energy
23+
24+
hills_energy
1725
grid_parameters {
1826
n_colvars 1
19-
lower_boundaries 0.00000000000000e+00
20-
upper_boundaries 1.00000000000000e+01
21-
widths 5.00000000000000e-01
22-
sizes 20
27+
lower_boundaries 3.2
28+
upper_boundaries 10.2
29+
widths 0.5
30+
sizes 14
2331
}
24-
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
25-
3.46920492770083e-08 1.70721010112539e-05 6.58298335288197e-04
26-
1.98901157291202e-03 4.70902104436801e-04 8.73580076380761e-06
32+
2.90793197471122e-03 2.29589040998682e-04 1.43098718458920e-06
2733
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
2834
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
2935
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
3036
0.00000000000000e+00 0.00000000000000e+00
31-
hills_energy_gradients
37+
38+
hills_energy_gradients
3239
grid_parameters {
3340
n_colvars 1
34-
lower_boundaries 0.00000000000000e+00
35-
upper_boundaries 1.00000000000000e+01
36-
widths 5.00000000000000e-01
37-
sizes 20
41+
lower_boundaries 3.2
42+
upper_boundaries 10.2
43+
widths 0.5
44+
sizes 14
3845
}
39-
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
40-
5.18433073974142e-07 1.68175610579987e-04 3.13214890940428e-03
41-
-6.66334787942696e-04 -2.55603942784152e-03 -9.19086519769792e-05
46+
-7.38291182480299e-03 -1.74872845262777e-03 -1.81663860935017e-05
4247
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
4348
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
4449
0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# step one fa_one
2-
0 3.20554673468334e+00 0.00000000000000e+00
3-
1 3.20437148316546e+00 0.00000000000000e+00
4-
2 3.20384028589204e+00 0.00000000000000e+00
5-
3 3.20396721187433e+00 0.00000000000000e+00
6-
4 3.20472817287036e+00 0.00000000000000e+00
7-
5 3.20606308066645e+00 0.00000000000000e+00
8-
6 3.20787989003051e+00 0.00000000000000e+00
9-
7 3.21005997943917e+00 0.00000000000000e+00
10-
8 3.21246460655188e+00 0.00000000000000e+00
11-
9 3.21494247388772e+00 0.00000000000000e+00
12-
10 3.21733851236362e+00 3.30884583259955e-04
13-
11 3.21950367891521e+00 3.30884583259955e-04
14-
12 3.22130501376020e+00 3.30884583259955e-04
15-
13 3.22263482513293e+00 3.30884583259955e-04
16-
14 3.22341774651982e+00 3.30884583259955e-04
17-
15 3.22361481079113e+00 3.30884583259955e-04
18-
16 3.22322427751010e+00 3.30884583259955e-04
19-
17 3.22227956023865e+00 3.30884583259955e-04
20-
18 3.22084496840419e+00 3.30884583259955e-04
21-
19 3.21901000786075e+00 3.30884583259955e-04
22-
20 3.21688278597333e+00 6.66334787942696e-04
1+
# step one fa_one
2+
0 3.20554673468334e+00 0.00000000000000e+00
3+
1 3.20437148316484e+00 0.00000000000000e+00
4+
2 3.20384028588952e+00 0.00000000000000e+00
5+
3 3.20396721186862e+00 0.00000000000000e+00
6+
4 3.20472817286016e+00 0.00000000000000e+00
7+
5 3.20606308065050e+00 0.00000000000000e+00
8+
6 3.20787989000757e+00 0.00000000000000e+00
9+
7 3.21005997940810e+00 0.00000000000000e+00
10+
8 3.21246460651160e+00 0.00000000000000e+00
11+
9 3.21494247383722e+00 0.00000000000000e+00
12+
10 3.21733851230199e+00 3.69111079117202e-03
13+
11 3.21950373044117e+00 3.69111079117202e-03
14+
12 3.22130516783262e+00 3.69111079117202e-03
15+
13 3.22263513141286e+00 3.69111079117202e-03
16+
14 3.22341825276891e+00 3.69111079117202e-03
17+
15 3.22361556235479e+00 3.69111079117202e-03
18+
16 3.22322531690825e+00 3.69111079117202e-03
19+
17 3.22228092687886e+00 3.69111079117202e-03
20+
18 3.22084669842434e+00 3.69111079117202e-03
21+
19 3.21901213410055e+00 3.69111079117202e-03
22+
20 3.21688533806922e+00 7.38291182480299e-03
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
# 1
2-
# 0.00000000000000e+00 5.00000000000000e-01 20 0
2+
# 3.20000000000000e+00 5.00000000000000e-01 14 0
33

4-
2.50000000000000e-01 1.98901157291202e-03
5-
7.50000000000000e-01 1.98901157291202e-03
6-
1.25000000000000e+00 1.98901157291202e-03
7-
1.75000000000000e+00 1.98897688086274e-03
8-
2.25000000000000e+00 1.97193947190077e-03
9-
2.75000000000000e+00 1.33071323762382e-03
10-
3.25000000000000e+00 -0.00000000000000e+00
11-
3.75000000000000e+00 1.51810946847522e-03
12-
4.25000000000000e+00 1.98027577214821e-03
13-
4.75000000000000e+00 1.98901157291202e-03
14-
5.25000000000000e+00 1.98901157291202e-03
15-
5.75000000000000e+00 1.98901157291202e-03
16-
6.25000000000000e+00 1.98901157291202e-03
17-
6.75000000000000e+00 1.98901157291202e-03
18-
7.25000000000000e+00 1.98901157291202e-03
19-
7.75000000000000e+00 1.98901157291202e-03
20-
8.25000000000000e+00 1.98901157291202e-03
21-
8.75000000000000e+00 1.98901157291202e-03
22-
9.25000000000000e+00 1.98901157291202e-03
23-
9.75000000000000e+00 1.98901157291202e-03
4+
3.45000000000000e+00 -0.00000000000000e+00
5+
3.95000000000000e+00 2.67834293371254e-03
6+
4.45000000000000e+00 2.90650098752663e-03
7+
4.95000000000000e+00 2.90793197471122e-03
8+
5.45000000000000e+00 2.90793197471122e-03
9+
5.95000000000000e+00 2.90793197471122e-03
10+
6.45000000000000e+00 2.90793197471122e-03
11+
6.95000000000000e+00 2.90793197471122e-03
12+
7.45000000000000e+00 2.90793197471122e-03
13+
7.95000000000000e+00 2.90793197471122e-03
14+
8.45000000000000e+00 2.90793197471122e-03
15+
8.95000000000000e+00 2.90793197471122e-03
16+
9.45000000000000e+00 2.90793197471122e-03
17+
9.95000000000000e+00 2.90793197471122e-03

0 commit comments

Comments
 (0)