This is part of the isdb module |
Scales the value of an another action, being a Collective Variable or a Bias.
The rescaling factor is determined by a parameter defined on a logarithmic grid of dimension NBIN in the range from 1 to MAX_RESCALE. The current value of the rescaling parameter is stored and shared across other actions using a SELECTOR. A Monte Carlo procedure is used to update the value of the rescaling factor every MC_STRIDE steps of molecular dynamics. Well-tempered metadynamics, defined by the parameters W0 and BIASFACTOR, is used to enhance the sampling in the space of the rescaling factor. The well-tempered metadynamics bias potential is written to the file BFILE every BSTRIDE steps and read when restarting the simulation using the directive RESTART.
In this example we use RESCALE to implement a simulated-tempering like approach. The total potential energy of the system is scaled by a parameter defined on a logarithmic grid of 5 bins in the range from 1 to 1.5. A well-tempered metadynamics bias potential is used to ensure diffusion in the space of the rescaling parameter.
ene: ENERGY SELECTORNAME=GAMMAcompulsory keyword name of the SELECTORVALUE=0 res: RESCALE ...compulsory keyword set (initial) value of the SELECTORARG=enecompulsory keyword the labels of the scalars on which the bias will actTEMP=300compulsory keyword temperatureSELECTOR=GAMMAcompulsory keyword name of the SELECTOR used for rescalingMAX_RESCALE=1.5compulsory keyword maximum values for rescalingNBIN=5compulsory keyword number of bins for gamma gridW0=1000could not find this keywordBIASFACTOR=100.0compulsory keyword bias factorBSTRIDE=2000compulsory keyword stride for writing biasBFILE=bias.dat ... PRINTcompulsory keyword file name for biasFILE=COLVARthe name of the file on which to output these quantitiesARG=*compulsory keyword the labels of the values that you would like to print to the fileSTRIDE=100compulsory keyword ( default=1 ) the frequency with which the quantities of interest should be output
In this second example, we add to the simulated-tempering approach introduced above one Parallel Bias metadynamics simulation (see PBMETAD) for each value of the rescaling parameter. At each moment of the simulation, only one of the PBMETAD actions is activated, based on the current value of the associated SELECTOR. The PBMETAD bias potentials are not scaled, but just used in the calculation of the Metropolis acceptance probability when proposing a move in the rescaling parameter.
ene: ENERGY d: DISTANCEATOMS=1,2 SELECTORthe pair of atom that we are calculating the distance between.NAME=GAMMAcompulsory keyword name of the SELECTORVALUE=0 pbmetad0: PBMETADcompulsory keyword set (initial) value of the SELECTORARG=dcompulsory keyword the labels of the scalars on which the bias will actSELECTOR=GAMMAadd forces and do update based on the value of SELECTORSELECTOR_ID=0value of SELECTORSIGMA=0.1compulsory keyword the widths of the Gaussian hillsPACE=500compulsory keyword the frequency for hill addition, one for all biasesHEIGHT=1the height of the Gaussian hills, one for all biases.BIASFACTOR=8use well tempered metadynamics with this bias factor, one for all biases.FILE=HILLS.0 pbmetad1: PBMETADfiles in which the lists of added hills are stored, default names are assigned using arguments if FILE is not foundARG=dcompulsory keyword the labels of the scalars on which the bias will actSELECTOR=GAMMAadd forces and do update based on the value of SELECTORSELECTOR_ID=1value of SELECTORSIGMA=0.1compulsory keyword the widths of the Gaussian hillsPACE=500compulsory keyword the frequency for hill addition, one for all biasesHEIGHT=1the height of the Gaussian hills, one for all biases.BIASFACTOR=8use well tempered metadynamics with this bias factor, one for all biases.FILE=HILLS.1 pbmetad2: PBMETADfiles in which the lists of added hills are stored, default names are assigned using arguments if FILE is not foundARG=dcompulsory keyword the labels of the scalars on which the bias will actSELECTOR=GAMMAadd forces and do update based on the value of SELECTORSELECTOR_ID=2value of SELECTORSIGMA=0.1compulsory keyword the widths of the Gaussian hillsPACE=500compulsory keyword the frequency for hill addition, one for all biasesHEIGHT=1the height of the Gaussian hills, one for all biases.BIASFACTOR=8use well tempered metadynamics with this bias factor, one for all biases.FILE=HILLS.2 pbmetad3: PBMETADfiles in which the lists of added hills are stored, default names are assigned using arguments if FILE is not foundARG=dcompulsory keyword the labels of the scalars on which the bias will actSELECTOR=GAMMAadd forces and do update based on the value of SELECTORSELECTOR_ID=3value of SELECTORSIGMA=0.1compulsory keyword the widths of the Gaussian hillsPACE=500compulsory keyword the frequency for hill addition, one for all biasesHEIGHT=1the height of the Gaussian hills, one for all biases.BIASFACTOR=8use well tempered metadynamics with this bias factor, one for all biases.FILE=HILLS.3 pbmetad4: PBMETADfiles in which the lists of added hills are stored, default names are assigned using arguments if FILE is not foundARG=dcompulsory keyword the labels of the scalars on which the bias will actSELECTOR=GAMMAadd forces and do update based on the value of SELECTORSELECTOR_ID=4value of SELECTORSIGMA=0.1compulsory keyword the widths of the Gaussian hillsPACE=500compulsory keyword the frequency for hill addition, one for all biasesHEIGHT=1the height of the Gaussian hills, one for all biases.BIASFACTOR=8use well tempered metadynamics with this bias factor, one for all biases.FILE=HILLS.4 res: RESCALE ...files in which the lists of added hills are stored, default names are assigned using arguments if FILE is not foundTEMP=300compulsory keyword temperatureARG=ene,pbmetad0.bias,pbmetad1.bias,pbmetad2.bias,pbmetad3.bias,pbmetad4.biascompulsory keyword the labels of the scalars on which the bias will actSELECTOR=GAMMAcompulsory keyword name of the SELECTOR used for rescalingMAX_RESCALE=1.5compulsory keyword maximum values for rescalingNOT_RESCALED=5these last N arguments will not be scaledNBIN=5compulsory keyword number of bins for gamma gridW0=1000could not find this keywordBIASFACTOR=100.0compulsory keyword bias factorBSTRIDE=2000compulsory keyword stride for writing biasBFILE=bias.dat ... PRINTcompulsory keyword file name for biasFILE=COLVARthe name of the file on which to output these quantitiesARG=*compulsory keyword the labels of the values that you would like to print to the fileSTRIDE=100compulsory keyword ( default=1 ) the frequency with which the quantities of interest should be output
By default this Action calculates the following quantities. These quantities can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the quantity required from the list below.
Quantity | Description |
bias | the instantaneous value of the bias potential |
igamma | gamma parameter |
accgamma | MC acceptance for gamma |
wtbias | well-tempered bias |
ARG | the labels of the scalars on which the bias will act |
TEMP | temperature |
SELECTOR | name of the SELECTOR used for rescaling |
MAX_RESCALE | maximum values for rescaling |
NBIN | number of bins for gamma grid |
W0 | initial bias height |
BIASFACTOR | bias factor |
BSTRIDE | stride for writing bias |
BFILE | file name for bias |
NUMERICAL_DERIVATIVES | ( default=off ) calculate the derivatives for these quantities numerically |
NOT_SHARED | list of arguments (from 1 to N) not summed across replicas |
NOT_RESCALED | these last N arguments will not be scaled |
MC_STEPS | number of MC steps |
MC_STRIDE | MC stride |
PACE | Pace for adding bias, in MC stride unit |