ADF: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


<!--T:2-->
<!--T:2-->
Compute Canada users have access to these applications:
Compute Canada users have access to these packages:
*[https://www.scm.com/product/adf/ ADF], to do first-principles electronic structure calculations;
*[https://www.scm.com/product/adf/ ADF], to do first-principles electronic structure calculations;
*[https://www.scm.com/product/band_periodicdft/ BAND], to study periodic systems (solids, surfaces, slabs, and polymers) and reactions on surfaces.
*[https://www.scm.com/product/band_periodicdft/ BAND], to study periodic systems (solids, surfaces, slabs, and polymers) and reactions on surfaces.




==Running ADF on Graham== <!--T:3-->
==Running ADF and BAND on Graham== <!--T:3-->
ADF and BAND are installed only on [[Graham]] due to license restrictions. Versions 2016.106 and 2017.207 are currently available through the [[Utiliser des modules/en|modules]] system. You can load them with one of:
The ADF and BAND packages are installed only on [[Graham]] due to license restrictions; versions 2016.106 and 2017.207 are currently available. [[Utiliser des modules/en|Load the module]] of your choice with the <code>module load</code> command, as such:


  <!--T:4-->
  <!--T:4-->
[name@server $] module load adf/2016.106
  [name@server $] module load adf/2017.207
  [name@server $] module load adf/2017.207


Line 25: Line 24:


====Single ADF or BAND run==== <!--T:7-->
====Single ADF or BAND run==== <!--T:7-->
This mysub.sh script is for a whole-node job; the last line calls ADF directly.
This mysub.sh script is for a whole-node job; the last two lines load version 2017.207 and call ADF directly.
</translate>
</translate>
{{File
{{File

Revision as of 15:58, 13 December 2017

Other languages:

Introduction

The ADF (Amsterdam Density Functional) Modeling Suite offers powerful computational chemistry tools for many research areas such as homogeneous and heterogeneous catalysis, inorganic chemistry, heavy element chemistry, various types of spectroscopy, and biochemistry.

Compute Canada users have access to these packages:

  • ADF, to do first-principles electronic structure calculations;
  • BAND, to study periodic systems (solids, surfaces, slabs, and polymers) and reactions on surfaces.


Running ADF and BAND on Graham

The ADF and BAND packages are installed only on Graham due to license restrictions; versions 2016.106 and 2017.207 are currently available. Load the module of your choice with the module load command, as such:

 [name@server $] module load adf/2017.207

Job Submission

Graham uses the Slurm scheduler; for details about submitting jobs, see Running jobs.

Single ADF or BAND run

This mysub.sh script is for a whole-node job; the last two lines load version 2017.207 and call ADF directly.

File : mysub.sh

#!/bin/bash
#SBATCH --nodes=1 --ntasks-per-node=32  # 1 node with 32 cpus, you can modify it
#SBATCH --mem=0                         # request all memory on node
#SBATCH --time=00-03:00                 # time (DD-HH:MM)

module load adf/2017.207
ADF adf_test.inp


This is the input file used in the script:

File : adf_test.inp

Title WATER Geometry Optimization with Delocalized Coordinates

 Atoms
    O             0.000000     0.000000     0.000000
    H             0.000000    -0.689440    -0.578509
    H             0.000000     0.689440    -0.578509
 End

 Basis
 Type TZP
 Core Small
 End

 Geometry
  Optim Deloc
  Converge 0.0000001
 End

 End Input


Multiple ADF or BAND runs within one input file

Multiple calculations can be combined into a single job by creating a script such as this:

File : GO_H2O.run

#!/bin/bash
if test -z "$SCM_TESTOUTPUT" ; then SCM_TESTOUTPUT=GO_H2O.out; fi

$ADFBIN/adf << eor > $SCM_TESTOUTPUT
Title WATER Geometry Optimization with Delocalized Coordinates

Atoms
   O             0.000000     0.000000     0.000000
   H             0.000000    -0.689440    -0.578509
   H             0.000000     0.689440    -0.578509
End

Basis
Type TZP
Core Small
End

Geometry
 Optim Deloc
 Converge 0.0000001
End

End Input
eor

rm TAPE21 logfile
$ADFBIN/adf << eor >> $SCM_TESTOUTPUT
Title WATER Geometry Optimization in Cartesians with new optimizer

Atoms
    O             0.000000     0.000000     0.000000
    H             0.000000    -0.689440    -0.578509
    H             0.000000     0.689440    -0.578509
End

Basis
 Type TZP
 Core Small
End

Geometry
  Optim Cartesian
  Branch New
  Converge 0.0000001
End

End Input
eor

rm TAPE21 logfile
$ADFBIN/adf << eor >> $SCM_TESTOUTPUT
Title WATER Geometry Optimization with Internal Coordinates

Atoms    Z-Matrix
 1. O   0 0 0
 2. H   1 0 0   rOH
 3. H   1 2 0   rOH  theta
End

Basis
 Type TZP
 Core Small
End

GeoVar
 rOH=0.9
 theta=100
End
Geometry
  Converge 0.0000001
End

End Input
eor

rm TAPE21 logfile
$ADFBIN/adf << eor >> $SCM_TESTOUTPUT
Title WATER   optimization with (partial) specification of Hessian

Atoms    Z-Matrix
 1. O   0 0 0
 2. H   1 0 0   rOH
 3. H   1 2 0   rOH  theta
End

GeoVar
 rOH=0.9
 theta=100
End
HessDiag  rad=1.0  ang=0.1

Fragments
 H   t21.H
 O   t21.O
End

Geometry
  Converge 0.0000001
End

End Input
eor

rm TAPE21 logfile
$ADFBIN/adf << eor >> $SCM_TESTOUTPUT
Title WATER Geometry Optimization in Cartesians

Geometry
  Optim Cartesian
  Converge 0.0000001
End

Define
 rOH=0.9
 theta=100
End

Atoms    Z-Matrix
 1. O   0 0 0
 2. H   1 0 0   rOH
 3. H   1 2 0   rOH theta
End

Fragments
 H   t21.H
 O   t21.O
End

End Input
eor

mv TAPE21 H2O.t21


The following script is identical to the one used for a single run (mysub.sh), except that the last line calls the GO_H2O.run script, instead of ADF.

File : GO_H2O.sh

#!/bin/bash
#SBATCH --nodes=1 --ntasks-per-node=32  # 1 node with 32 cpus, you can modify it
#SBATCH --mem=0                         # request all memory on node
#SBATCH --time=00-03:00                 # time (DD-HH:MM)

module load adf/2017.207
./GO_H2O.run                            # run the shell script


Examples

Example input/output for ADF can be found on Graham under

/home/jemmyhu/tests/test_ADF/2017.207/test_adf/

The same procedure applies to BAND jobs, see band_test.inp and band_test.sh examples under

/home/jemmyhu/tests/test_ADF/2017.207/test_band