Monte Carlo
This page collects the Monte Carlo examples: a rigid-cluster sampling of a water-benzene-water cluster at 12 temperatures, and a parallel-tempering run on a water dimer.
Rigid-cluster MC — water-benzene-water
What is done. Monte Carlo (MONTECARLO MAX=10, SEED=3141592) on a cluster of three molecules, WAT, BZZ, WAT (water-benzene-water), with MCTEMP NTEMP=12 LINEAR TEMPMIN=30 TEMPMAX=300, i.e. 12 replicas at linearly spaced temperatures; the molecules move as rigid bodies through their center-of-mass coordinates and orientation (QUATERNION NMOL=3, with MOLECULES NMOL=3).
The input. The basis line below stands for the path to the Slater-Koster parameter folder, given on the line following PARAM. The MOLECULES file in the running directory holds the per-type geometries of the cluster (WAT and BZZ).
TITLE
DFTB SCC
PARAM PTYPE=BIO
basis
MONTECARLO MAX=10 SEED=3141592
MCTEMP NTEMP=12 LINEAR TEMPMIN=30 TEMPMAX=300
QUATERNION NMOL=3
1 1.0 0.0 0.0 1.0 0.0000000 0.0000000 0.0000000
2 0.0 -3.0 0.0 0.7 0.7000000 0.0000000 0.0000000
3 1.0 -3.0 -4.0 1.0 0.0000000 0.0000000 0.0000000
MOLECULES NMOL=3
1 WAT
2 BZZ
3 WAT
What is obtained. deMon.out lists the 12 linear temperatures, from 30.00 to 300.00 K, and prints, for each of the 10 MC steps, the DFTB energy at every temperature. No explicit running average is printed in the output; the run ends with the minimal kept structure, whose DFTB total energy is -20.70635774 Hartree (electronic energy -21.25166860 Hartree).
Parallel-tempering MC — water dimer
What is done. Monte Carlo (MONTECARLO MAX=150) on the water dimer with parallel tempering: MCTEMP NTEMP=12 GEOM TEMPMIN=30 TEMPMAX=300 defines 12 replicas on a geometric temperature ladder, MCTEMP-SWAP=AE allows exchanges between all temperatures (attempted with probability 0.1 per swap step, MCTEMP-SPERCENT=0.1), and the displacement steps are rescaled every 10 steps (RESCALE=10).
The input. The basis line below stands for the path to the Slater-Koster parameter folder, given on the line following PARAM.
TITLE
DFTB SCC
PARAM PTYPE=BIO
basis
MONTECARLO MAX=150 SEED=3141592
MCTEMP NTEMP=12 GEOM TEMPMIN=30 TEMPMAX=300 RESCALE=10 SWAP=AE SMOD=10 SPERCENT=0.1 SDBG OUT=10 SOUT=1
GEOMETRY
O 1.2478000 -0.5185000 3.4049000
H 1.5946000 -1.4204000 3.3886000
H 0.9008000 -0.3341000 2.5062000
O 3.2478000 -0.4185000 3.4049000
H 3.5946000 -1.5204000 3.3886000
H 2.9008000 -0.3341000 2.6062000
What is obtained. deMon.out prints the 12 geometric temperatures - 30.00, 36.99, 45.60, 56.21, 69.30, 85.44, 105.34, 129.86, 160.10, 197.38, 243.34, 300.00 K - the exchange scheme "All-exchanges parallel tempering" and a swap probability of 0.10 %. At the final step (150) the per-temperature energies run from -8.09810873 (30.00 K) to -8.13308321 (300.00 K), and the minimal kept structure has a DFTB total energy of -8.13308321 Hartree. debug_swap.dat holds 150 records, one per step, each listing the 12 replica temperatures; the order 30.00 to 300.00 K is unchanged in every record, i.e. no replica exchange is recorded over the run.