-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More fixes to resolve problems with inputs in nest
-> Changed label for list of q6 values to <shortcut_label> rather than <shortcut_label>_anorm. This is clearer -> Implemented UWALLS shortcut. It just calls UPPER_WALLS. -> Made ARG compulsory keyword for CLUSTER_PROPERTIES. -> Creating GROUP of atoms in Distances and LOCAL_Q? so folks can use the label of the action to refer to the atom involved a la multicolvar Also fixed a few things that I didn't implement correctly in the last commit
- Loading branch information
Gareth Aneurin Tribello
authored and
Gareth Aneurin Tribello
committed
Mar 24, 2024
1 parent
aa29076
commit 3baf976
Showing
17 changed files
with
110 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
c1: COORDINATIONNUMBER SPECIESA=1,2 SPECIESB=1-200 SWITCH={RATIONAL R_0=1.0} | ||
q6: Q6 SPECIESA=1,2 SPECIESB=1-200 SWITCH={RATIONAL R_0=1.0} | ||
h: HISTOGRAM ARG=c1,q6_anorm GRID_BIN=200,200 GRID_MIN=0,0 GRID_MAX=10,2 BANDWIDTH=0.1,0.1 | ||
h: HISTOGRAM ARG=c1,q6 GRID_BIN=200,200 GRID_MIN=0,0 GRID_MAX=10,2 BANDWIDTH=0.1,0.1 | ||
DUMPGRID ARG=h STRIDE=20 FILE=density FMT=%8.4f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#! FIELDS time c2_moment-2 c2_moment-3 c2_lessthan-1 c2_lessthan-2 | ||
0.000000 0.0383 -0.0032 0.0005 0.0019 | ||
0.005000 0.0427 -0.0041 0.0006 0.0023 | ||
0.010000 0.0585 -0.0020 0.0008 0.0029 | ||
0.015000 0.0778 0.0037 0.0011 0.0040 | ||
0.020000 0.0707 0.0027 0.0014 0.0052 | ||
#! FIELDS time c2_lessthan-1 c2_lessthan-2 c2_moment-2 c2_moment-3 | ||
0.000000 0.0005 0.0019 0.0383 -0.0032 | ||
0.005000 0.0006 0.0023 0.0427 -0.0041 | ||
0.010000 0.0008 0.0029 0.0585 -0.0020 | ||
0.015000 0.0011 0.0040 0.0778 0.0037 | ||
0.020000 0.0014 0.0052 0.0707 0.0027 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
Copyright (c) 2011-2018 The plumed team | ||
(see the PEOPLE file at the root of the distribution for a list of names) | ||
See http://www.plumed.org for more information. | ||
This file is part of plumed, version 2. | ||
plumed is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
plumed is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with plumed. If not, see <http://www.gnu.org/licenses/>. | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ | ||
#include "core/ActionShortcut.h" | ||
#include "core/ActionRegister.h" | ||
#include "MultiColvarShortcuts.h" | ||
|
||
//+PLUMEDOC MCOLVAR UWALLS | ||
/* | ||
Add lower walls to a vector of quantities | ||
Depracated action: use UPPER_WALLS | ||
\par Examples | ||
*/ | ||
//+ENDPLUMEDOC | ||
|
||
namespace PLMD { | ||
namespace multicolvar { | ||
|
||
class UWalls : public ActionShortcut { | ||
public: | ||
static void registerKeywords(Keywords& keys); | ||
explicit UWalls(const ActionOptions&); | ||
}; | ||
|
||
PLUMED_REGISTER_ACTION(UWalls,"UWALLS") | ||
|
||
void UWalls::registerKeywords(Keywords& keys) { | ||
ActionShortcut::registerKeywords( keys ); | ||
keys.add("compulsory","DATA","the values you want to restrain"); | ||
keys.add("compulsory","AT","the radius of the sphere"); | ||
keys.add("compulsory","KAPPA","the force constant for the wall. The k_i in the expression for a wall."); | ||
keys.add("compulsory","OFFSET","0.0","the offset for the start of the wall. The o_i in the expression for a wall."); | ||
keys.add("compulsory","EXP","2.0","the powers for the walls. The e_i in the expression for a wall."); | ||
keys.add("compulsory","EPS","1.0","the values for s_i in the expression for a wall"); | ||
keys.add("atoms","CATOMS","all the angles between the bonds that radiate out from these central atom are computed"); | ||
keys.add("atoms","GROUP","a list of angls between pairs of bonds connecting one of the atoms specified using the CATOM command and two of the atoms specified here are computed"); | ||
keys.add("compulsory","SWITCH","the switching function specifies that only those bonds that have a length that is less than a certain threshold are considered"); | ||
keys.addOutputComponent("bias","default","the instantaneous value of the bias potential"); | ||
keys.addOutputComponent("force2","default","the instantaneous value of the squared force due to this bias potential"); | ||
keys.needsAction("UPPER_WALLS"); | ||
} | ||
|
||
UWalls::UWalls(const ActionOptions& ao): | ||
Action(ao), | ||
ActionShortcut(ao) | ||
{ | ||
std::string data; parse("DATA",data); | ||
readInputLine( getShortcutLabel() + ": UPPER_WALLS ARG=" + data + " " + convertInputLineToString() ); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3baf976
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found broken examples in automatic/ANGLES.tmp
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/CAVITY.tmp
Found broken examples in automatic/CLUSTER_DIAMETER.tmp
Found broken examples in automatic/CLUSTER_DISTRIBUTION.tmp
Found broken examples in automatic/CLUSTER_PROPERTIES.tmp
Found broken examples in automatic/CONSTANT.tmp
Found broken examples in automatic/CONTACT_MATRIX.tmp
Found broken examples in automatic/COORDINATIONNUMBER.tmp
Found broken examples in automatic/DFSCLUSTERING.tmp
Found broken examples in automatic/DISTANCE_FROM_CONTOUR.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FIND_CONTOUR.tmp
Found broken examples in automatic/FIND_CONTOUR_SURFACE.tmp
Found broken examples in automatic/FIND_SPHERICAL_CONTOUR.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/GPROPERTYMAP.tmp
Found broken examples in automatic/HBOND_MATRIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/INCYLINDER.tmp
Found broken examples in automatic/INENVELOPE.tmp
Found broken examples in automatic/INTERPOLATE_GRID.tmp
Found broken examples in automatic/LOCAL_AVERAGE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/MULTICOLVARDENS.tmp
Found broken examples in automatic/OUTPUT_CLUSTER.tmp
Found broken examples in automatic/PAMM.tmp
Found broken examples in automatic/PCAVARS.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in automatic/PYCVINTERFACE.tmp
Found broken examples in automatic/PYTHONFUNCTION.tmp
Found broken examples in automatic/Q3.tmp
Found broken examples in automatic/Q4.tmp
Found broken examples in automatic/Q6.tmp
Found broken examples in automatic/QUATERNION.tmp
Found broken examples in automatic/SPRINT.tmp
Found broken examples in automatic/TETRAHEDRALPORE.tmp
Found broken examples in automatic/TORSIONS.tmp
Found broken examples in automatic/WHAM_WEIGHTS.tmp
Found broken examples in CollectiveVariablesPP.md
Found broken examples in MiscelaneousPP.md