{"id":968,"date":"2018-11-22T16:31:05","date_gmt":"2018-11-22T16:31:05","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=968"},"modified":"2026-03-25T16:36:13","modified_gmt":"2026-03-25T16:36:13","slug":"chemshell","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/chemshell\/","title":{"rendered":"ChemShell"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>ChemShell is a computational chemistry environment for standard quantum chemical or force field calculations, including hybrid QM\/MM calculations. ChemShell includes interfaces to various QM and MM codes, and is designed to deal with the communication and data handling, whilst energy evaluations are undertaken by external codes.<\/p>\n<p>Version 25.0.3 (Python) is the recommended version and has been compiled on the CSF using GCC and OpenMPI and includes links to ORCA and DL_POLY.<\/p>\n<p>Version 3.7.1 (tcl) has been compiled on the CSF using Intel compilers v17.0.7 and OpenMPI v3.1.1 and has been left available for legacy purposes.<\/p>\n<h2>Restrictions on use<\/h2>\n<h3>Python version<\/h3>\n<p>Version 25.0.3 and later are subject to GNU GPL v3 and are available to all CSF users to use without restriction.<\/p>\n<p>Please refer to documentation for <a href=\"\/csf3\/software\/applications\/orca\/\">ORCA<\/a> and <a href=\"\/csf3\/software\/applications\/dl_poly\/\">DL_POLY<\/a> for further information and license restrictions.<\/p>\n<h3>TCL version<\/h3>\n<p>Version 3.7.1 is available for all CSF users to use. Users need to be in the &#8216;chemshell&#8217; group.<\/p>\n<p>Whilst the software is free for academic usage there are limitations within the licence agreement which must be strictly adhered to by users. The licence covers use on the CSF only. <\/p>\n<p>A full copy of the licence can be found in:<\/p>\n<ul>\n<li><code>\/opt\/apps\/apps\/intel-17.0\/chemshell\/3.7.1\/chemshell_licence.pdf<\/code>.<\/li>\n<\/ul>\n<p><strong>Important points to note are:<\/strong><\/p>\n<ul>\n<li>All parts of Clause 2.1, in particular:<\/li>\n<ul>\n<li>The software is only available to Staff and Students of the University of Manchester. Visiting scientists\/students who are collaborating with a member of Staff and who have been given an official University of Manchester IT username may use the software.\n<p>Users are reminded that they must not share their password with anyone, or allow anyone else to utilise their account.<\/li>\n<li>The software may only be used for academic purposes as defined in clause 1.1. No commercial work or commercially funded work permitted.<\/li>\n<li>Derived Work &#8211; Users must not modify, enhance or improve the software without consultation with the University Intellectual Property Team. Any derived works must be shared with appropriately cite CCLRC.<\/li>\n<li>The software is for use on the CSF only.<\/li>\n<\/ul>\n<li>Clause 4.2: the acknowledgements for the use of the software are set out in this clause and must be used for all employee and student publications.<\/li>\n<\/ul>\n<p>All users who wish to use the software must request access by <a href=\"\/csf3\/overview\/help\/\">contacting us<\/a>.<\/p>\n<h2>Running ChemShell Python<\/h2>\n<p>The <a href=\"https:\/\/chemshell.org\/static_files\/py-chemshell\/manual\/build\/html\/index.html\">Official ChemShell documentation<\/a> provides much more than the basic information below.<\/p>\n<p>To load the module:<\/p>\n<pre>\r\nmodule load apps\/gcc\/chemshell\/py-25.0.3-orca-dlpoly\r\n<\/pre>\n<p>Help:<\/p>\n<pre>\r\nchemsh -h\r\n<\/pre>\n<p>Example Slurm script:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore\r\n#SBATCH -n 2   ## 2 cores, change this for real use\r\n#SBATCH -t 5   ## 5 minutes max, change this for real use \r\n\r\nmodule purge\r\nmodule load apps\/gcc\/chemshell\/py-25.0.3-orca-dlpoly\r\n\r\n## copy a very short example from tutorial to the present working directory\r\ncp $CHEMSH_DOCS\/tutorial\/samples\/single_point\/water.xyz .\r\ncp $CHEMSH_DOCS\/tutorial\/samples\/single_point\/hf_water.orca.py .\r\n\r\n## run example\r\nchemsh -np $NTASKS hf_water.orca.py > hf_water.orca.log\r\n<\/pre>\n<h2>Running ChemShell 3.7.1 (TCL)<\/h2>\n<p>This is provided for legacy information, the Python version of ChemShell is recommended.<\/p>\n<p>To load the module:<\/p>\n<pre>\r\nmodule load apps\/intel-17.0\/chemshell\/3.7.1\r\n<\/pre>\n<p>ChemShell is normally invoked using the <code>chemsh<\/code> script. By convention input files are suffixed <code>.chm<\/code>, although as is typical for Unix\/Linux applications, the suffix has no significance. Running <code>chemsh<\/code> without an input file will launch an interactive session. Parallel execution can be started using<\/p>\n<pre>\r\nchemsh -p $NTASKS input.chm\r\n<\/pre>\n<p>or alternatively by launching the executable with mpirun: <\/p>\n<pre>\r\nmpirun -np $NTASKS chemsh.x input.chm\r\n<\/pre>\n<h2>Serial batch job submission<\/h2>\n<p>The following Slurm script can be used to submit a single core Chemshell job with input data file test.chm:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p serial\r\n#SBATCH -t 4-0\r\n\r\n\r\nmodule purge\r\nmodule load apps\/intel-17.0\/chemshell\/3.7.1\r\n\r\nchemsh test.chm\r\n<\/pre>\n<h2>Parallel batch job submission<\/h2>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore\r\n#SBATCH -n numcores   ## change this\r\n#SBATCH -t 4-0 \r\n\r\nmodule purge\r\nmodule load apps\/intel-17.0\/chemshell\/3.7.1\r\n\r\nchemsh -p $NTASKS prepare.chm\r\n<\/pre>\n<h2>Serial ChemShell calling Parallel QM\/MM Applications<\/h2>\n<p>A ChemShell script will often use other tools to complete its calculation. For example <a href=\"\/csf3\/software\/applications\/turbomole\/\">TurboMole<\/a> and\/or <a href=\"\/csf3\/software\/applications\/charmm\/\">Charmm<\/a> can be started from within your ChemShell script. These tools can often run in parallel. <\/p>\n<p>On the CSF we have found that starting ChemShell in parallel and then trying to run other parallel tools from ChemShell can cause the ChemShell job to crash. The solution is to run ChemShell serially and let it run the other tools in parallel. There are two ways to do this as explained below.<\/p>\n<h3>Writing your own jobscript<\/h3>\n<p>To prevent Chemshell from crashing it should be run serially and then let the other tools (e.g., TurboMole or CHARMM) run in parallel. Hence we still require a PE in the jobscript to specify the number of cores that will be used by the parallel tools. ChemShell can, however, still be run without any MPI commands.<\/p>\n<p>Note that you <em>must<\/em> also load the modulefile for the additional tools ChemShell will use. For example, if calling TurboMole from your ChemShell script you must ensure that you load the required TurboMole modulefile, otherwise ChemShell will not be able to find the additional tools.<\/p>\n<p>The following jobscript sets up a ChemShell job which uses TurboMole to do some processing. TurboMole will run in parallel, but only a single ChemShell process will run. The jobscript is:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore\r\n#SBATCH -n 4  \r\n#SBATCH -t 4-0 \r\n\r\nmodule purge\r\nmodule load apps\/intel-17.0\/chemshell\/3.7.1\r\n\r\n# PARNODES is used by Turbomole - set it to the number above using $NTASKS\r\nexport PARNODES=$NTASKS\r\n\r\n# Run ChemShell serially (without any mpirun)\r\nchemsh myinput.chm >& myoutput.log\r\n<\/pre>\n<h2>Further info<\/h2>\n<p>Further information can be found on the <a href=\"https:\/\/www.chemshell.org\">ChemShell web page<\/a> including the Chemshell Manual, tutorials and details of the <em>chemsh-users<\/em> email list which can be used to post queries to seek help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview ChemShell is a computational chemistry environment for standard quantum chemical or force field calculations, including hybrid QM\/MM calculations. ChemShell includes interfaces to various QM and MM codes, and is designed to deal with the communication and data handling, whilst energy evaluations are undertaken by external codes. Version 25.0.3 (Python) is the recommended version and has been compiled on the CSF using GCC and OpenMPI and includes links to ORCA and DL_POLY. Version 3.7.1 (tcl).. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/chemshell\/\">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-968","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/968","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=968"}],"version-history":[{"count":20,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/968\/revisions"}],"predecessor-version":[{"id":12187,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/968\/revisions\/12187"}],"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=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}