README
1NOTE: routines in qmd_main are from the old routines called via nwmd.
2Not used in current qmd module
3
4== QMD TODO items ==
5
6* Applying constraints (Rattle, Shake)
7* Simulated annealing
8* CPMD style dynamics
9* Metadynamics
10
11=== rough flow-chart ==
12r: coordinates
13g: forces
14v:
15m:
16
17qmd_init
18*qmd_ext_init
19qmd_coords_vel(r,v,m)
20
21qmd_gradient(g) -> * qmd_ext_gradient(r,g)
22
23do istep_nucl =
24
25 qmd_nucl_vel(m,v,g) ! v update at dt/2
26
27 qmd_nucl_post(m,r,v) ! r update at dt
28
29 qmd_gradient(g)
30
31 qmd_nucl_vel(m,v,g) ! v update at dt/2
32
33enddo
34
35PLUMED Interface
36=========
37F=-gradient . Need to invert sign
38
39
40
41
README_plumed.md
1# Notes on NWChem-Plumed interface
2
3Used Plumed version 2.6
4
5## Plumed Installation
6
7https://www.plumed.org/doc-v2.6/user-doc/html/_installation.html
8
9* 32bit integer BLAS/LAPACK (e.g. MKL,OpenBLAS) are required both in NWChem and Plumed.
10In order to get Plumed to link the correct Blas/Lapack libraries, the variales LDFLAGS and LIBS must be supplied to
11autconf.
12* No need of MPI for now. It is better to disable the MPI option with --disable-mpi
13Example on EMSL Tahoma
14```
15FC=ifort LDFLAGS=-L$MKLROOT/lib/intel64 LIBS="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" ./configure --prefix=/home/edo/tahoma/apps/plumed262.intel20u2 --disable-mpi
16make
17make install
18```
19
20## Compilation of the NWChem Interface
21
22* modify `PATH` to point to the location of the plumed command (e.g. `/home/edo/tahoma/apps/plumed262.intel20u2/bin` in the
23example above) and `LD_LIBRARY_PATH` to point to the location of the plumed libraries (e.g. `/home/edo/tahoma/apps/plumed262.intel20u2/lib` in the
24example above)
25* set the env. variable `USE_PLUMED=y`
26* include the qmd module in `NWCHEM_MODULES`
27* use BLASOPT and LAPACK_LIB compatible with the definitions used to compile Plumed.
28In the example above
29```
30BLASOPT="-L$MKLROOT/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm"
31LAPACK_LIB=$BLASOPT
32BLAS_SIZE=4
33```
34
35## Files of the NWChem-Plumed interface
36
37* input and output files reside in `permanent_dir`
38* the Plumed input file can be either suffix.`plumed.dat` our just `plumed.dat`
39* the Plumed output file will be name suffix.`plumed.out` (and its content will be copied to stdout, too)
40
41## NWChem input options
42
43* the keyword `ext_forces` must be added to the `qmd` input section. `ext_forces` can take an additional optional argument.
44Choices are `plumed` (Plumed interface is used) or `none`.
45Example:
46```
47....
48qmd
49 ext_forces
50end
51task dft qmd
52```
53