{"id":2300,"date":"2019-02-22T11:51:24","date_gmt":"2019-02-22T11:51:24","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2300"},"modified":"2019-03-14T19:42:58","modified_gmt":"2019-03-14T19:42:58","slug":"nwchem","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/nwchem\/","title":{"rendered":"NWChem"},"content":{"rendered":"<table class=\"hint\">\n<tr>\n<td><em>If you are a windows user &#8211; please ensure you create your jobscript ON THE CSF directly using <a href=\"\/csf3\/software\/tools\/gedit\/\">gedit<\/a>. This will prevent your job going into error (Eqw). Text files created on windows have hidden characters that linux cannot read. For further information please see the <a href=\"\/csf3\/getting-started\/using-from-windows\/\">guide to using the system from windows<\/a>, in particular the section about <a href=\"\/csf3\/getting-started\/using-from-windows\/#textfiles\">text &amp; batch submission script files<\/a><\/em>.\n<\/td>\n<\/tr>\n<\/table>\n<h2>Overview<\/h2>\n<p>NWChem is a suite of highly scalable tools for atomistic computational chemistry, offering a wide range of quantum, classical and combined approximations. Molecular electronic structure calculations using <em>ab initio<\/em>, DFT and higher order methods utilise Gaussian orbitals, while plane wave + pseudopotential methods are available for periodic calculations. Most of these methods can also be used in conjunction with the QM\/MM and MD modules.<\/p>\n<h2>Set up procedure<\/h2>\n<p>NWChem can be accessed by loading the module file as follows:<\/p>\n<pre>\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n<\/pre>\n<p>This will also automatically load the appropriate MPI modulefile into your environment and set some environment variables where NWChem will look for basis set libraries, etc.<\/p>\n<h2>Running the application<\/h2>\n<p>Please do not run NWChem on the login nodes. Jobs should instead be submitted to the compute nodes via the batch system, SGE. Some example jobs are given below.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Two NWChem executables are available: <code>nwchem<\/code> for MPI jobs and <code>nwchem.serial<\/code> for serial jobs. An example jobscript for a serial job is shown below:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd               # Application will run from current working directory\r\n#$ -N h2o             # Name given to batch job (optional)\r\n\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n\r\nnwchem.serial h2o.nw  # Use the serial nwchem executable\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub scriptname<\/pre>\n<h3>Single node parallel batch job submission (2-32 cores)<\/h3>\n<p>An example jobscript for a single node MPI job is given below. In this example, stdout and stderr are also redirected to a single file, which is often useful. SGE will still create stdout and stderr files, but these will now be empty:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd               # Application will run from current working directory\r\n#$ -N uo2_sodft       # Name given to batch job (optional)\r\n#$ -pe smp.pe 32      # Request 32 cores using SMP parallel environment\r\n\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n\r\nmpirun -np $NSLOTS nwchem uo2.nw > uo2.nwo 2>&1  # Use MPI version, redirect stdout\/err to file\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub scriptname<\/pre>\n<h3>Multi-node parallel batch job submission (48-120 cores in multiples of 24)<\/h3>\n<p>The following jobscript requests 120 cores (five 24 core nodes with Infiniband network):<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd                  # Application will run from current working directory\r\n#$ -N p2ta_eomccsd       # Name given to batch job (optional)\r\n#$ -pe mpi-24-ib.pe 120  # Request 120 cores using IB parallel environment\r\n\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n\r\nmpirun -np $NSLOTS nwchem p2ta.nw > p2ta.nwo 2>&1\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub scriptname<\/pre>\n<div class=\"hidden\">\n<h3>Memory management<\/h3>\n<p>For many (typically smaller) jobs the default memory allocation set by NWChem is sufficient. However, memory intensive jobs will often fail at some point during their runtime with seemingly obscure errors, such as &#8220;ARMCI DASSERT fail&#8221;.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you are a windows user &#8211; please ensure you create your jobscript ON THE CSF directly using gedit. This will prevent your job going into error (Eqw). Text files created on windows have hidden characters that linux cannot read. For further information please see the guide to using the system from windows, in particular the section about text &amp; batch submission script files. Overview NWChem is a suite of highly scalable tools for atomistic.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/nwchem\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2300","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2300"}],"version-history":[{"count":10,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2300\/revisions"}],"predecessor-version":[{"id":2624,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2300\/revisions\/2624"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=2300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}