Shortcut: MULTICOLVARDENS
| Module | gridtools |
|---|---|
| Description | Usage |
| Evaluate the average value of a multicolvar on a grid. | |
| output value | type |
| the average value of the order parameters at each point on the grid | grid |
Deprecated
This action has been deprecated and is no longer supported. Use KDE instead.
Details and examples
Evaluate the average value of a multicolvar on a grid.
As you can see if you expand the inputs below, you can achieve what this shortcut action does by using KDE and ACCUMULATE. This new syntax provides you with much greater control over what is being calculated and is also easier to understand. If you are using this shortcut we strongly encourage you to change to using this new syntax.
This shortcut allows one to construct a phase field representation for a symmetry function from an atomistic description. If each atom has an associated order parameter, then a smooth phase field function can be computed using:
where is the position of atom , the sums run over all the atoms input and is a Gaussian function. This action calculates the above function on a grid, which can then be used in the input to further actions.
Examples
The following example shows perhaps the simplest way that a phase field can be computed. The following input computes the density of atoms at each point on the grid and outputs this quantity to a file. In other words this input instructs plumed to calculate
dens: DISTANCESCalculate the distances between multiple piars of atoms This action is a shortcut. More details ATOMSthe pairs of atoms that you would like to calculate the angles for=1-100 ORIGINcalculate the distance of all the atoms specified using the ATOMS keyword from this point=1 COMPONENTS calculate the x, y and z components of the distance separately and store them as label kde: KDECreate a histogram from the input scalar/vector/matrix using KDE This action has hidden defaults. More details ARGthe label for the value that should be used to construct the histogram=dens.x,dens.y,dens.z GRID_BINthe number of bins for the grid=100,100,100 BANDWIDTHthe bandwidths for kernel density esimtation=0.05,0.05,0.05 grid: ACCUMULATESum the elements of this value over the course of the trajectory This action has hidden defaults. More details ARGthe label of the argument that is being added to on each timestep=kde STRIDE the frequency with which the data should be collected and added to the quantity being averaged=10 DUMPGRIDOutput the function on the grid to a file with the PLUMED grid format. More details ARGthe label for the grid that you would like to output=grid STRIDE the frequency with which the grid should be output to the file=500 FILE the file on which to write the grid=density
In the above example density is added to the grid on every step. The DUMPGRID instruction thus tells PLUMED to output the average density at each point on the grid every 500 steps of simulation.
Understanding the commands in the input above provides a window into understand how MULTICOLVARDENS works. This second example computes an order parameter (in this case FCCUBIC) and constructs a phase field model for this order parameter using the equation above.
fcc: FCCUBICMeasure how similar the environment around atoms is to that found in a FCC structure. This action is a shortcut and it has hidden defaults. More details SPECIESthe list of atoms for which the symmetry function is being calculated and the atoms that can be in the environments=1-5184 SWITCHthe switching function that it used in the construction of the contact matrix. Options for this keyword are explained in the documentation for LESS_THAN.={CUBIC D_0=1.2 D_MAX=1.5} ALPHA The alpha parameter of the angular function that is used for FCCUBIC=27 dens: MULTICOLVARDENSEvaluate the average value of a multicolvar on a grid. This action is a shortcut. More details DATAthe multicolvar which you would like to calculate the density profile for=fcc ORIGINwe will use the position of this atom as the origin=1 DIRthe direction in which to calculate the density profile=xyz NBINSthe number of bins to use in each direction (alternative to GRID_NBIN)=14,14,28 BANDWIDTHthe bandwidths for kernel density esimtation=1.0,1.0,1.0 STRIDE the frequency with which to accumulate the densities=1 CLEAR the frequency with which to clear the density=1 DUMPCUBEOutput a three dimensional grid using the Gaussian cube file format. More details ARGthe label for the grid that you would like to output=dens STRIDE the frequency with which the grid should be output to the file=1 FILE the file on which to write the grid=dens.cube
In this example the phase field model is computed and output to a file on every step of the simulation. Furthermore, because the CLEAR=1 keyword is set on the MULTICOLVARDENS line each Gaussian cube file output is a phase field model for a particular trajectory frame. The average value accumulated thus far is cleared at the start of every single timestep and there is no averaging over trajectory frames in this case.
If you expand the shortcuts in the input above you can see that the average phase field is calculated using CUSTOM commands. We hope that this makes it easy to understand the meaning of the phase field that is computed.
Full list of keywords
The following table describes the keywords and options that can be used with this action
| Keyword | Type | Default | Description |
|---|---|---|---|
| STRIDE | compulsory | 1 | the frequency with which to accumulate the densities |
| CLEAR | compulsory | 0 | the frequency with which to clear the density |
| ORIGIN | compulsory | none | we will use the position of this atom as the origin |
| DIR | compulsory | none | the direction in which to calculate the density profile |
| KERNEL | compulsory | GAUSSIAN | the kernel function you are using |
| BANDWIDTH | optional | not used | the bandwidths for kernel density esimtation |
| NBINS | optional | not used | the number of bins to use in each direction (alternative to GRID_NBIN) |
| GRID_MIN | optional | not used | the lower bounds for the grid (default boxlengths) |
| GRID_MAX | optional | not used | the upper bounds for the grid (default boxlengths) |
| DATA | optional | not used | the multicolvar which you would like to calculate the density profile for |
| ATOMS | optional | not used | if you are calculating a atomic density you use this keyword to specify the atoms that are involved |
| UNORMALIZED | optional | false | do not divide by the density |
| NORMALIZATION | optional | not used | set true/false to determine how to the data is normalised |