calculate¶
-
chemopt.interface.molcas.calculate(molecule, hamiltonian, basis, molcas_exe=None, el_calc_input=None, sym_group=None, charge=0, forces=False, title='', multiplicity=1, start_orb=None, num_procs=None, mem_per_proc=None)[source]¶ Calculate the energy of a molecule using Molcas.
Parameters: - el_calc_input (str) – Specify the input filename for electronic calculations. If it is None, the filename of the calling python script is used (With the suffix
.inpinstead of.py). The output will beos.path.splitext(inputfile)[0] + '.inp'. - molecule (chemcoord.Cartesian or chemcoord.Zmat or str) – If it is a string, it has to be a valid xyz-file.
- hamiltonian (str) –
The hamiltonian to use for calculating the electronic energy. The allowed values are {‘B3LYP’, ‘RASSCF’, ‘SCF’, ‘CCSD’, ‘CCSD(T)’, ‘MP2’, ‘CASPT2’}.
But ‘CCSD’ and ‘CCSD(T)’ are not yet implemented.
- basis (str) – The basis set to use for calculating the electronic energy.
- molcas_exe (str) – Specify the command to invoke molcas. The default is ‘molcas’.
- charge (int) – The overall charge of the molecule. The default is 0.
- forces (bool) – Specify if energy gradients should be calculated. The default is False.
- title (str) – The title to be printed in input and output.
- multiplicity (int) – The spin multiplicity. The default is 1.
- start_orb (str) – Path to an orbital file, if starting orbitals should be used.
- num_procs (int) – The number of processes to spawn.
- mem_per_proc (str) – Memory per process. This is a string with a number and a unit like ‘800 MB’. SI and binary prefixes are supported. Uses the datasize library for parsing.
Returns: A dictionary with at least the keys
'structure'and'energy'which contains the energy in Hartree. If forces were calculated, the key'gradient'contains the gradient in Hartree / Angstrom.Return type: - el_calc_input (str) – Specify the input filename for electronic calculations. If it is None, the filename of the calling python script is used (With the suffix