ocal package¶
Subpackages¶
- ocal.utils package
- Submodules
- ocal.utils.cif_reader module
- ocal.utils.cube_reader module
- ocal.utils.gaus_log_reader module
- ocal.utils.gjf_maker module
GjfMakerGjfMaker.parent_dirGjfMaker.ELEMENT_PROPGjfMaker.ELEMENTS_NUMGjfMaker.add_link()GjfMaker.add_root()GjfMaker.create_chk_file()GjfMaker.create_rwf_file()GjfMaker.export_gjf()GjfMaker.opt()GjfMaker.output_detail()GjfMaker.reset_variable()GjfMaker.set_charge_spin()GjfMaker.set_coordinates()GjfMaker.set_function()GjfMaker.set_resource()GjfMaker.set_symbols()GjfMaker.set_title()
- ocal.utils.structure_reader module
- Module contents
Submodules¶
ocal.ocal module¶
ocal: single-molecule orbital tail fraction (OTF) calculator.
Assumes a neutral closed-shell molecule (charge/spin fixed to 0 1).
Input charge/spin information in structure files is ignored.
Gaussian functional/basis is fixed to B3LYP/6-31G(d,p) for comparability
with previous OTF results; only Ocal._create_gjf(method=...) may override.
- ocal.ocal.main()[source]¶
Run the ocal CLI: compute OTF for one molecule from a structure, fchk, or cube.
- Return type:
None
- ocal.ocal.parse_args()[source]¶
Parse command-line arguments.
- Returns:
The parser (for
parser.error) and parsed arguments.- Return type:
- class ocal.ocal.Ocal(file, cpu=4, mem=10)[source]¶
Bases:
objectCalculate orbital tail fraction (OTF) for a single molecule.
Charge and spin multiplicity are fixed to
0 1(neutral singlet). Structure-file inputs always run Opt=Tight at B3LYP/6-31G(d,p).- static check_normal_termination(log_file)[source]¶
Check whether a Gaussian log ended with normal termination.
- run_gaussian(gau_com='g16')[source]¶
Run Gaussian on the generated gjf.
The subprocess runs with
cwdset to the work directory and a relative gjf filename so Windows Gaussian does not concatenate an absolute path onto the current directory.- Parameters:
gau_com (str) – Gaussian executable name (default
g16). Stored on the instance asgau_comfor future CLI extension (e.g. g09).- Raises:
RuntimeError – If the subprocess fails, no
.log/.outis found, or the log does not show normal termination.- Return type:
None
- create_fchk()[source]¶
Convert the checkpoint file to a formatted checkpoint via formchk.
- Raises:
RuntimeError – If formchk fails.
- Return type:
None
- create_cube()[source]¶
Generate NHOMO/HOMO/LUMO/NLUMO cube files with cubegen.
MO indices are derived from the number of alpha electrons
nain the fchk: NHOMO=na-1, HOMO=na, LUMO=na+1, NLUMO=na+2.- Raises:
RuntimeError – If cubegen fails for any orbital.
- Return type:
None
Module contents¶
ocal: program for the calculation of orbital tail fraction (OTF).