Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Kurečka
Plumed AlphaFold
Commits
d835b049
There was an error fetching the commit references. Please try again later.
Commit
d835b049
authored
9 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Plain Diff
Merge branch 'v2.1' into v2.2
parents
2e07fda7
9af59d0d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
user-doc/tutorials/moving.txt
+67
-2
67 additions, 2 deletions
user-doc/tutorials/moving.txt
with
68 additions
and
3 deletions
.travis.yml
+
1
−
1
View file @
d835b049
...
...
@@ -81,7 +81,7 @@ script:
-
if test "$PLUMED_CXX" ; then make -C regtest $OPT ; fi
-
if test "$MAKEDOC" == yes ; then make -C regtest copytodoc ; fi
-
if test "$MAKEDOC" == yes ; then make doc >/dev/null ; fi
-
if test "$
MAKEDOC" == yes
; then make -C regtest checkfail ; fi
-
if test "$
PLUMED_CXX"
; then make -C regtest checkfail ; fi
# CPPCHECK:
# this is required so as to have all the include files inplace:
...
...
This diff is collapsed.
Click to expand it.
user-doc/tutorials/moving.txt
+
67
−
2
View file @
d835b049
...
...
@@ -11,7 +11,8 @@ executed in the order they are found in the input file.
Because of this, you must e.g. first compute a collective variable and then print it
later. More information can be found in the Section about \ref Syntax.
Another very important change is in the way groups are used, discussed below.
Other important changes are in the way groups and units are used,
as discussed below.
Finally, many features appear under a different name in the new version.
\section moving-Syntax New syntax
...
...
@@ -92,11 +93,75 @@ PRINT STRIDE=100 FILE=COLVAR ARG=d,r.*
Notice that virtual atoms are very powerful tools in PLUMED 2. Actually, they can be used
in any collective variable where normal atoms can be used, just by calling them by name.
In this example you can also appreciate the advantage of calling collective variables
This allows to straightforwardly define variables such as coordination between centers
of mass, which would have required an ad hoc implementation in PLUMED 1.
In the example above you can also appreciate the advantage of calling collective variables
by name. It is obvious here that \ref RESTRAINT is acting on distance `d`, whereas in PLUMED 1
one had to keep track of the number of the collective variables. This was easy for a single collective variable,
but could become cumbersome for complex input files.
\section moving-Names Names in output files
Another advantage of having names is that when PLUMED produces an output file
it can insert explicit names in the file.
Consider for example this PLUMED 1 input
\verbatim
DISTANCE LIST 1 2
ANGLE LIST 3 4 5
PRINT W_STRIDE 100
\endverbatim
The first line of the COLVAR file was then
\verbatim
#! FIELDS time cv1 cv2
\endverbatim
The equivalent input file in PLUMED 2 is
\verbatim
d: DISTANCE ATOMS=1,2
a: ANGLE ATOMS=3,4,5
PRINT ARG=d,a FILE=COLVAR STRIDE=100
\endverbatim
The first line of the COLVAR file now is
\verbatim
#! FIELDS time d a
\endverbatim
This makes it easy to remember what's the meaning of each column of the COLVAR file
without the need to always go back to the PLUMED input to check in which order
the variables were declared.
\section moving-Units Units
In PLUMED 1 the input file of PLUMED was expected to be written using the same units
of the MD code. This choice was made to allow users to adopt the same units they
were used to. However, we realized later that this choice was not allowing the
PLUMED input files to be ported between different MD code. Let's say
that one was using this keyword with GROMACS (kj/mol - nm)
\verbatim
UMBRELLA CV 1 KAPPA 200 AT 1.0
\endverbatim
Let's assume the variable CV 1 was a distance.
The same keyword in NAMD (kcal/mol - A) should have been converted to
\verbatim
UMBRELLA CV 1 KAPPA .4780 AT 10.0
\endverbatim
The conversion of `AT` is straightforward (1nm=10A), but the conversion on
`KAPPA` is more error prone. This is because `KAPPA` is measured in units
of energy divided by distance squared. Notice that a different factor should
have been used if the CV was an angle.
Learning from this, we designed PLUMED 2 in a way that units in the PLUMED input
are independent of the MD code. Technically, this is achieved by doing the conversion
when coordinates and forces are passed back and forth. In this way, the same
PLUMED input could be used with GROMACS and NAMD.
We decided to use as standard units in PLUMED kj/mol, nm, and ps. Perhaps
this is because most of the developers are using GROMACS, which also
adopts these units.
However, we still allow
the personalization of units by means of the \ref UNITS keyword.
Since this keyword is included directly in the PLUMED input file,
even when using personalized units the input files remains perfectly
portable across different MD engines.
\section moving-Directives Directives
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment