2019-02-07 22:49:12 +01:00
|
|
|
#! /bin/bash
|
2020-10-12 13:06:41 +02:00
|
|
|
|
|
|
|
function help() {
|
|
|
|
cat << EOF
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
./qcaml-tools/quack_input -b <string> [-c <int>] [-f] [-h] [-m <int>]
|
|
|
|
[-r <int>] -x <string> [--]
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
|
|
|
|
|
|
|
|
Options:
|
2019-02-07 22:49:12 +01:00
|
|
|
|
2020-10-12 13:06:41 +02:00
|
|
|
-b --basis=<string> Name of the file containing the basis set
|
|
|
|
-c --charge=<int> Total charge of the molecule. Specify negative
|
|
|
|
charges with 'm' instead of the minus sign,
|
|
|
|
for example m1 instead of -1. Default is
|
|
|
|
0
|
|
|
|
-f --frozen-core Freeze core MOs. Default is false
|
|
|
|
-h --help Prints the help message.
|
|
|
|
-m --multiplicity=<int> Spin multiplicity (2S+1). Default is singlet
|
|
|
|
-r --rydberg=<int> Number of Rydberg electrons. Default is 0
|
|
|
|
-x --xyz=<string> Name of the file containing the nuclear
|
|
|
|
coordinates in xyz format
|
|
|
|
|
|
|
|
Description:
|
|
|
|
|
|
|
|
Prepares the input data for QuAcK.
|
|
|
|
Writes \$QUACK_DIR/input/basis and \$QUACK_DIR/input/molecule.
|
|
|
|
If \$QUACK_DIR is not set, \$QUACK_DIR is replaces by the current
|
|
|
|
directory.
|
|
|
|
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
$(basename $0) [-h|--help]
|
|
|
|
|
|
|
|
Options:
|
|
|
|
|
|
|
|
-h --help Prints the help message
|
|
|
|
|
|
|
|
EOF
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2019-02-07 22:49:12 +01:00
|
|
|
set -e
|
|
|
|
|
2020-10-12 13:06:41 +02:00
|
|
|
if [ $# -ne 2 ] || [ $# -ne 4 ]
|
2019-02-07 22:49:12 +01:00
|
|
|
then
|
2020-10-12 13:06:41 +02:00
|
|
|
echo "You need at least two arguments [Molecule] [Basis] [Charge] [Multiplicity]"
|
2019-02-07 22:49:12 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $# = 2 ]
|
|
|
|
then
|
2020-10-12 13:06:41 +02:00
|
|
|
./qcaml-tools/quack_integrals -x mol/${1}.xyz -b basis/${2}
|
|
|
|
./qcaml-tools/quack_input -x mol/${1}.xyz -b basis/${2}
|
2019-03-19 10:13:18 +01:00
|
|
|
./bin/QuAcK
|
2019-02-07 22:49:12 +01:00
|
|
|
fi
|
|
|
|
|
2020-10-12 13:06:41 +02:00
|
|
|
if [ $# = 4 ]
|
|
|
|
then
|
|
|
|
./qcaml-tools/quack_integrals -x mol/${1}.xyz -b basis/${2}
|
|
|
|
./qcaml-tools/quack_input -x mol/${1}.xyz -b basis/${2} -c ${3} -m ${4}
|
|
|
|
./bin/QuAcK
|
|
|
|
fi
|
|
|
|
|
|
|
|
|