<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sagacioushours.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3AMod%3AHunt_Research_Group%2Fcp2k_how</id>
	<title>Talk:Mod:Hunt Research Group/cp2k how - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sagacioushours.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3AMod%3AHunt_Research_Group%2Fcp2k_how"/>
	<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k_how&amp;action=history"/>
	<updated>2026-05-13T16:12:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k_how&amp;diff=2414&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;1. Website: http://manual.cp2k.org/trunk/  2. Lecture notes: http://www.cecam.org/workshop-4-529.html  3. Basis/Potential Files (can be downloaded together with the CP2K packa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k_how&amp;diff=2414&amp;oldid=prev"/>
		<updated>2020-11-25T21:03:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;1. Website: http://manual.cp2k.org/trunk/  2. Lecture notes: http://www.cecam.org/workshop-4-529.html  3. Basis/Potential Files (can be downloaded together with the CP2K packa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;1. Website:&lt;br /&gt;
http://manual.cp2k.org/trunk/&lt;br /&gt;
&lt;br /&gt;
2. Lecture notes:&lt;br /&gt;
http://www.cecam.org/workshop-4-529.html&lt;br /&gt;
&lt;br /&gt;
3. Basis/Potential Files (can be downloaded together with the CP2K package):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASIS_SET&lt;br /&gt;
BASIS_MOLOPT&lt;br /&gt;
POTENTIAL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. runscript is cp2k:&lt;br /&gt;
:runcp2k&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#PBS -l walltime=120:00:00&lt;br /&gt;
#PBS -lselect=1:ncpus=8:mem=8000MB&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -q pqph&lt;br /&gt;
&lt;br /&gt;
# make sure you manage your cpus and memory &lt;br /&gt;
# above are PBS directives&lt;br /&gt;
# -l lines specify resource requirements. &lt;br /&gt;
# walltime, mem and ncpus should be considered manadatory.&lt;br /&gt;
# -j oe merges stdout and stderr&lt;br /&gt;
&lt;br /&gt;
# submit jobs to the que with this script using the following command:&lt;br /&gt;
# qsub -N jobname -v in=name runcp2k&lt;br /&gt;
&lt;br /&gt;
# load modules&lt;br /&gt;
#&lt;br /&gt;
module load intel-suite mpi cp2k/2.3&lt;br /&gt;
&lt;br /&gt;
# run cp2k&lt;br /&gt;
#&lt;br /&gt;
# set the name of the basis set file, and of the pseudopotential file in the cp2k input.&lt;br /&gt;
# Or else copy those files in the working directory.&lt;br /&gt;
# variable PBS_O_WORKDIR=directory from which the job was sumbited.&lt;br /&gt;
# variable TMPDIR=directory in which job is run&lt;br /&gt;
echo workdir $PBS_0_WORKDIR&lt;br /&gt;
echo tmpdir $TMPDIR&lt;br /&gt;
&lt;br /&gt;
# mpiexec {PATH_TO_CP2K_EXECUTABLE}/cp2k.popt file.inp&lt;br /&gt;
# {PATH_TO_CP2K_EXECUTABLE} is the directory where the parallel executable of cp2k is&lt;br /&gt;
# file.inp is an input file defined in variable in&lt;br /&gt;
&lt;br /&gt;
mpiexec cp2k.popt $PBS_O_WORKDIR/${in}.inp &amp;gt;$PBS_O_WORKDIR/${in}.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
# check for a checkpoint file&lt;br /&gt;
#&lt;br /&gt;
   test -r $TMPDIR/*restart*&lt;br /&gt;
   if [ $? -eq 0 ]&lt;br /&gt;
   then&lt;br /&gt;
     cp -f $TMPDIR/*restart* $PBS_O_WORKDIR/&lt;br /&gt;
   else&lt;br /&gt;
     echo &amp;quot;no restart file&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
   test -r $TMPDIR/*pos*&lt;br /&gt;
   if [ $? -eq 0 ]&lt;br /&gt;
   then&lt;br /&gt;
     cp -f $TMPDIR/*pos* $PBS_O_WORKDIR/&lt;br /&gt;
   else&lt;br /&gt;
     echo &amp;quot;no pos file&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
&lt;br /&gt;
# exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Example input files&lt;br /&gt;
: Example of input file for [bmim]Cl: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;amp;GLOBAL  --&amp;gt; Section that contains general information about the simulation and parameters for the whole program.&lt;br /&gt;
  PROJECT          bmimcl  --&amp;gt; Name of the project, used to determine the name of the files generated by the program.&lt;br /&gt;
  PRINT_LEVEL  MEDIUM  --&amp;gt; How much output is written out.&lt;br /&gt;
  RUN_TYPE        MD  --&amp;gt; Type of run that to perform (e.g. MD, GeoOpt, MC).&lt;br /&gt;
&amp;amp;END  --&amp;gt; End of section.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;FORCE_EVAL  --&amp;gt; Parameters used to calculate energy and forces and to describe the system.&lt;br /&gt;
  METHOD  Quickstep  --&amp;gt; Method used to compute forces. (Quickstep is for electronic structure methods, e.g. DFT).&lt;br /&gt;
  &amp;amp;DFT  --&amp;gt; Parameters for DFT.&lt;br /&gt;
    BASIS_SET_FILE_NAME  /work/lge/cp2ktest/BASIS_MOLOPT  --&amp;gt; Path of basis set file.&lt;br /&gt;
    POTENTIAL_FILE_NAME  /work/lge/cp2ktest/POTENTIAL  --&amp;gt; Path of pseudopotential file.&lt;br /&gt;
    &amp;amp;XC  --&amp;gt; Parameters to calculate the xc (exchange-correlation) potential.&lt;br /&gt;
      &amp;amp;XC_FUNCTIONAL  BLYP  --&amp;gt; The xc functional to be used.&lt;br /&gt;
      &amp;amp;END XC_FUNCTIONAL&lt;br /&gt;
      &amp;amp;XC_GRID  --&amp;gt; xc parameters used when calculating the xc on the grid.&lt;br /&gt;
        XC_DERIV  NN10_SMOOTH  --&amp;gt; Method used to compute the derivatives.&lt;br /&gt;
        XC_SMOOTH_RHO  NN10 --&amp;gt; Density smoothing used for the xc calculation.&lt;br /&gt;
      &amp;amp;END XC_GRID&lt;br /&gt;
      &amp;amp;vdW_POTENTIAL  --&amp;gt; Section for all additional dispersion corrections to the xc functionals.&lt;br /&gt;
        DISPERSION_FUNCTIONAL  PAIR_POTENTIAL  --&amp;gt; (or POTENTIAL_TYPE, specifies the type of dispersion functional or potential to use).&lt;br /&gt;
        &amp;amp;PAIR_POTENTIAL  --&amp;gt; Info on the pair potential used to calculate dispersion.&lt;br /&gt;
          TYPE  DFTD3  --&amp;gt; Type of potential.&lt;br /&gt;
          REFERENCE_FUNCTIONAL  BLYP --&amp;gt; Use parameters for this specific density functional&lt;br /&gt;
        &amp;amp;END PAIR_POTENTIAL      &lt;br /&gt;
      &amp;amp;END vdW_POTENTIAL&lt;br /&gt;
    &amp;amp;END XC&lt;br /&gt;
    &amp;amp;MGRID  --&amp;gt; Multigrid information&lt;br /&gt;
      CUTOFF  280  --&amp;gt; Cutoff of the finest grid level in Ry.&lt;br /&gt;
      NGRIDS  5  --&amp;gt; Number of multigrids.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;SCF  --&amp;gt; Parameters for the SCF run.&lt;br /&gt;
      SCF_GUESS  ATOMIC  --&amp;gt; Initial guess for the wavefunction (ATOMIC generates an atomic density using the atomic code).&lt;br /&gt;
      MAX_SCF  300  --&amp;gt; Maximum number of SCF iterations for one optimisation.&lt;br /&gt;
      &amp;amp;OT  --&amp;gt; Various options for the orbtial transformation (OT) method. &lt;br /&gt;
        PRECONDITIONER FULL_SINGLE_INVERSE  --&amp;gt; Type of preconditioner to be used with all minimisation schemes (FULL_SINGLE_INVERSE based on H-eS cholesky inversion).&lt;br /&gt;
        MINIMIZER DIIS  --&amp;gt; Minimiser to be used with the OT method (e.g. CG, SD).&lt;br /&gt;
      &amp;amp;END OT&lt;br /&gt;
    &amp;amp;END SCF&lt;br /&gt;
&lt;br /&gt;
    &amp;amp;PRINT --&amp;gt; turn off printing of the Mulliken charges&lt;br /&gt;
      &amp;amp;MULLIKEN SILENT&lt;br /&gt;
      &amp;amp;END&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
  &amp;amp;END SECTION DFT&lt;br /&gt;
  &amp;amp;SUBSYS  --&amp;gt; Defines a subsystem: coordinates, topology, molecules and cell.&lt;br /&gt;
    &amp;amp;CELL  --&amp;gt; Input parameters needed to set up the cell.&lt;br /&gt;
      ABC 19.522 19.522 19.522  --&amp;gt; Specifies the lengths of the cell vectors A, B and C in Angstroms. &lt;br /&gt;
    &amp;amp;END CELL&lt;br /&gt;
    &amp;amp;KIND H  --&amp;gt; Description of H atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q1  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;KIND C  --&amp;gt; Description of C atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q4  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;KIND N  --&amp;gt; Description of N atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q5  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;KIND CL  --&amp;gt; Description of Cl atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q7  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;COORD  --&amp;gt; Coordinates of the atoms in xyz format, in Angstroms (by default).&lt;br /&gt;
.....&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
  &amp;amp;END SUBSYS&lt;br /&gt;
&amp;amp;END FORCE_EVAL&lt;br /&gt;
&amp;amp;MOTION  --&amp;gt; Defines tools connected with motion of the nuclei.&lt;br /&gt;
  &amp;amp;MD  --&amp;gt; Parameters to perform an MD run.&lt;br /&gt;
    ENSEMBLE  NVT  --&amp;gt; Ensemble to be used.&lt;br /&gt;
    STEPS  2000  --&amp;gt; Number of MD steps&lt;br /&gt;
    TIMESTEP  0.5  --&amp;gt; Length of integration step in fs.&lt;br /&gt;
    &amp;amp;THERMOSTAT  --&amp;gt; Specify the thermostat and related parameters.&lt;br /&gt;
      TYPE  NOSE  --&amp;gt; Thermostat to be used (NOSE is for the Nose-Hoover thermostat).&lt;br /&gt;
      &amp;amp;NOSE  --&amp;gt; Parameters of the Nose-Hoover thermostat chain.&lt;br /&gt;
        TIMECON  100  --&amp;gt; Time constant of the thermostat chain in fs.&lt;br /&gt;
      &amp;amp;END NOSE&lt;br /&gt;
    &amp;amp;END THERMOSTAT&lt;br /&gt;
    TEMPERATURE  353  --&amp;gt; Temperature in K used to initialise the velocities with init and pos restart, and in the NPT/NVT simulations.&lt;br /&gt;
  &amp;amp;END MD&lt;br /&gt;
&amp;amp;END MOTION  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Example of input file for Cu water (Cu(II)+64H2O): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;amp;GLOBAL  --&amp;gt; Section that contains general information about the simulation and parameters for the whole program.&lt;br /&gt;
  PROJECT          cuwater  --&amp;gt; Name of the project, used to determine the name of the files generated by the program.&lt;br /&gt;
  PRINT_LEVEL  MEDIUM  --&amp;gt; How much output is written out.&lt;br /&gt;
  RUN_TYPE        MD  --&amp;gt; Type of run that to perform (e.g. MD, GeoOpt, MC).&lt;br /&gt;
&amp;amp;END  --&amp;gt; End of section.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;FORCE_EVAL  --&amp;gt; Parameters used to calculate energy and forces and to describe the system.&lt;br /&gt;
  METHOD  Quickstep  --&amp;gt; Method used to compute forces. (Quickstep is for electronic structure methods, e.g. DFT).&lt;br /&gt;
  &amp;amp;DFT  --&amp;gt; Parameters for DFT.&lt;br /&gt;
    BASIS_SET_FILE_NAME  /work/lge/cp2kcuwater/BASIS_MOLOPT  --&amp;gt; Path of basis set file.&lt;br /&gt;
    POTENTIAL_FILE_NAME  /work/lge/cp2kcuwater/POTENTIAL  --&amp;gt; Path of pseudopotential file.&lt;br /&gt;
    LSD  --&amp;gt; or UKS, requests a spin-polarised calculation using alpha and beta orbtials, i.e. no spin restriction is applied.&lt;br /&gt;
    CHARGE  2  --&amp;gt; Total charge of the system&lt;br /&gt;
    MULTIPLICITY  2  --&amp;gt; Two times the total spin plus one.&lt;br /&gt;
    &amp;amp;PRINT  --&amp;gt; Printing options.&lt;br /&gt;
      &amp;amp;LOCALIZATION  --&amp;gt; Printing options related to the Wannier centers and properties computed with Wannier centers. &lt;br /&gt;
        &amp;amp;WANNIER_CENTERS  --&amp;gt; Controls the printing of the wannier functions.&lt;br /&gt;
          IONS+CENTERS  --&amp;gt; Prints out the wannier centers together with the particles. &lt;br /&gt;
        &amp;amp;END&lt;br /&gt;
      &amp;amp;END&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;MGRID  --&amp;gt; Multigrid information&lt;br /&gt;
      CUTOFF  280  --&amp;gt; Cutoff of the finest grid level in Ry.&lt;br /&gt;
    &amp;amp;END MGRID&lt;br /&gt;
    &amp;amp;QS  --&amp;gt; Parameters needed to set up the Quickstep framework&lt;br /&gt;
      EXTRAPOLATION  PS  --&amp;gt; Extrapolation strategy for the wavefunction during e.g. MD (PS is higher order extrapolation of the density matrix times the overlap matrix).&lt;br /&gt;
      EXTRAPOLATION_ORDER  2  --&amp;gt; Order for the PS or ASPC extrapolation. &lt;br /&gt;
    &amp;amp;END QS&lt;br /&gt;
    &amp;amp;SCF  --&amp;gt; Parameters for the SCF run.&lt;br /&gt;
      CHOLESKY  OFF  --&amp;gt; If the cholesky method should be used for computing the inverse of S, and in this case calling which Lapack routines (OFF means do not use cholesky).&lt;br /&gt;
      SCF_GUESS  ATOMIC  --&amp;gt; Initial guess for the wavefunction (ATOMIC generates an atomic density using the atomic code).&lt;br /&gt;
      EPS_SCF  3.0E-6  --&amp;gt; Target accuracy for the scf convergence.&lt;br /&gt;
      MAX_SCF  20  --&amp;gt; Maximum number of SCF iterations for one optimisation.&lt;br /&gt;
      &amp;amp;OUTER_SCF  --&amp;gt; Parameters controlling the outer SCF loop.&lt;br /&gt;
        EPS_SCF  3.0E-6  --&amp;gt; Target gradient (not accuracy?) of the outer SCF variables. Notice that the EPS_SCF of the inner loop also determines the value that can be reached in the outer loop, typically EPS_SCF of the outer loop must be smaller than the EPS_SCF of the inner loop.&lt;br /&gt;
        MAX_SCF  20  --&amp;gt; The maximum number of outer loops.&lt;br /&gt;
      &amp;amp;END&lt;br /&gt;
      &amp;amp;OT  --&amp;gt; Various options for the orbtial transformation (OT) method. &lt;br /&gt;
        MINIMIZER DIIS  --&amp;gt; Minimiser to be used with the OT method (e.g. CG, SD).&lt;br /&gt;
        PRECONDITIONER FULL_ALL --&amp;gt; Type of preconditioner to be used with all minimisation schemes (FULL_ALL is the most effective state selective preconditioner based on diagonalisation, requires the ENERGY_GAP parameters to be an underestimate of the HOMO-LUMO gap).&lt;br /&gt;
        ENERGY_GAP  0.01  --&amp;gt; Should be an estimate for the HOMO-LUMO energy gap in a.u. and is used in preconditioning. &lt;br /&gt;
      &amp;amp;END OT&lt;br /&gt;
    &amp;amp;END SCF&lt;br /&gt;
    &amp;amp;XC  --&amp;gt; Parameters to calculate the xc (exchange-correlation) potential.&lt;br /&gt;
      &amp;amp;XC_FUNCTIONAL  BLYP  --&amp;gt; The xc functional to be used.&lt;br /&gt;
      &amp;amp;END XC_FUNCTIONAL&lt;br /&gt;
    &amp;amp;END XC&lt;br /&gt;
  &amp;amp;END DFT&lt;br /&gt;
  &amp;amp;SUBSYS  --&amp;gt; Defines a subsystem: coordinates, topology, molecules and cell.&lt;br /&gt;
    &amp;amp;CELL  --&amp;gt; Input parameters needed to set up the cell.&lt;br /&gt;
      ABC 12.535 12.535 12.535  --&amp;gt; Specifies the lengths of the cell vectors A, B and C in Angstroms. &lt;br /&gt;
    &amp;amp;END CELL&lt;br /&gt;
    &amp;amp;KIND H  --&amp;gt; Description of H atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q1  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;KIND O  --&amp;gt; Description of O atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q6  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;KIND Cu  --&amp;gt; Description of Cu atoms.&lt;br /&gt;
      BASIS_SET  DZVP-MOLOPT-SR-GTH  --&amp;gt; Primary Gaussian basis set.&lt;br /&gt;
      POTENTIAL  GTH-BLYP-q11  --&amp;gt; Name of pseudopotential.&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
    &amp;amp;COORD  --&amp;gt; Coordinates of the atoms in xyz format, in Angstroms (by default).&lt;br /&gt;
.....&lt;br /&gt;
    &amp;amp;END&lt;br /&gt;
  &amp;amp;END SUBSYS&lt;br /&gt;
&amp;amp;END FORCE_EVAL&lt;br /&gt;
&amp;amp;MOTION  --&amp;gt; Defines tools connected with motion of the nuclei.&lt;br /&gt;
  &amp;amp;MD  --&amp;gt; Parameters to perform an MD run.&lt;br /&gt;
    ENSEMBLE  NVT  --&amp;gt; Ensemble to be used.&lt;br /&gt;
    STEPS  2000  --&amp;gt; Number of MD steps&lt;br /&gt;
    TIMESTEP  0.5  --&amp;gt; Length of integration step in fs.&lt;br /&gt;
    &amp;amp;THERMOSTAT  --&amp;gt; Specify the thermostat and related parameters.&lt;br /&gt;
      TYPE  NOSE  --&amp;gt; Thermostat to be used (NOSE is for the Nose-Hoover thermostat).&lt;br /&gt;
      &amp;amp;NOSE  --&amp;gt; Parameters of the Nose-Hoover thermostat chain.&lt;br /&gt;
        TIMECON  100  --&amp;gt; Time constant of the thermostat chain in fs.&lt;br /&gt;
      &amp;amp;END NOSE&lt;br /&gt;
    &amp;amp;END THERMOSTAT&lt;br /&gt;
    TEMPERATURE  298  --&amp;gt; Temperature in K used to initialise the velocities with init and pos restart, and in the NPT/NVT simulations.&lt;br /&gt;
  &amp;amp;END MD&lt;br /&gt;
&amp;amp;END MOTION&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>