From bd92e4d5a083442e5295648647485b692db641ca Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Wed, 28 Feb 2024 11:38:57 -0500 Subject: [PATCH] add qchem project --- .../projects/QCHEM/.ondemand/manifest.yml | 5 ++ .../QCHEM/.ondemand/scripts/7c4d6ilx/form.yml | 55 +++++++++++++++++++ .../apps/dashboard/projects/QCHEM/qchem.sh | 31 +++++++++++ .../apps/dashboard/projects/QCHEM/sample.inp | 34 ++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/manifest.yml create mode 100644 ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/scripts/7c4d6ilx/form.yml create mode 100644 ondemand.osc.edu/apps/dashboard/projects/QCHEM/qchem.sh create mode 100644 ondemand.osc.edu/apps/dashboard/projects/QCHEM/sample.inp diff --git a/ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/manifest.yml b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/manifest.yml new file mode 100644 index 00000000..57d17b9a --- /dev/null +++ b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/manifest.yml @@ -0,0 +1,5 @@ +--- +id: rndy3vti +name: QChem template +description: 'This is an example project using QChem software.' +icon: fas://vial diff --git a/ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/scripts/7c4d6ilx/form.yml b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/scripts/7c4d6ilx/form.yml new file mode 100644 index 00000000..0ef5a2db --- /dev/null +++ b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/.ondemand/scripts/7c4d6ilx/form.yml @@ -0,0 +1,55 @@ +--- +title: Simple QChem job +created_at: 1709137595 +form: +- auto_accounts +- auto_scripts +- auto_batch_clusters +attributes: + auto_accounts: + options: + - - PZS1118 + - PZS1118 + - data-option-for-cluster-cardinal: false + - - PZS0715 + - PZS0715 + - data-option-for-cluster-cardinal: false + - - PZS0714 + - PZS0714 + - {} + - - PZS1117 + - PZS1117 + - data-option-for-cluster-ascend: false + data-option-for-cluster-cardinal: false + - - PAS1604 + - PAS1604 + - data-option-for-cluster-ascend: false + data-option-for-cluster-cardinal: false + value: PZS0715 + label: Account + help: '' + required: false + auto_scripts: + options: + - - qchem.sh + - "/users/PZS0714/johrstrom/ondemand/data/sys/dashboard/projects/rndy3vti/qchem.sh" + directory: "/users/PZS0714/johrstrom/ondemand/data/sys/dashboard/projects/rndy3vti" + value: "/users/PZS0714/johrstrom/ondemand/data/sys/dashboard/projects/rndy3vti/qchem.sh" + label: Script + help: '' + required: false + auto_batch_clusters: + options: + - ascend + - cardinal + - owens + - pitzer + value: owens + exclude_options: + - pitzer + - cardinal + - ascend + fixed: true + label: Cluster + help: '' + required: false diff --git a/ondemand.osc.edu/apps/dashboard/projects/QCHEM/qchem.sh b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/qchem.sh new file mode 100644 index 00000000..efb81820 --- /dev/null +++ b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/qchem.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# +# This is a sample script for running a basic Q-Chem job. +# The only thing you need to modify is 'sample' here +# +export INPUTFILENAME="sample" + +# +# replace 'sample' with the actual name of your input file. +# +module load intel +module load mvapich2 +module load qchem + +# copy input file to $TMPDIR +cp $INPUTFILENAME.inp $TMPDIR +cd $TMPDIR + +# QChem guide at +# http://www.q-chem.com/qchem-website/manual/qchem43_manual/sect-running.html +# +# Not all calculation types can be run in parallel with MPI. +# +# Temporary hack to get multinode jobs running - it is not yet +# known whether multinode qchem requires a global filesystem. +# setenv QCLOCALSCR $TMPDIR +# export QCSCRATCH=$TMPDIR + +qchem -np $SLURM_NTASKS $INPUTFILENAME.inp +ls -al diff --git a/ondemand.osc.edu/apps/dashboard/projects/QCHEM/sample.inp b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/sample.inp new file mode 100644 index 00000000..7a7f2ba4 --- /dev/null +++ b/ondemand.osc.edu/apps/dashboard/projects/QCHEM/sample.inp @@ -0,0 +1,34 @@ +$comment +ethene +$end + +$molecule +0 1 + C -2.3620772 0.9207308 0.2821606 + C -1.0130626 0.5278664 -0.2865418 + H -2.6220345 1.9481860 -0.0474867 + H -3.1392310 0.2143160 -0.0767561 + H -0.7529560 -0.4993875 0.0434971 + H -0.2358785 1.2345592 0.0718086 +$end + +$rem + BASIS = 6-31G* + EXCHANGE = HF + GUI = 2 + JOB_TYPE = Optimization + PURECART = 2222 +$end + +@@@ + +$molecule +read +$end + +$rem +basis 6-31G* +exchange hf +molden_format true +print_orbitals true +$end