Functions for running MOPAC calculations and parsing results.
|
|
_make_scratch_dir(tmpdir,
basename)
Make a separate directory for the job to enable easy cleanup. |
|
|
|
|
_open_file(basename,
suffix)
Open a file with a unique name based on basename and suffix in the
form "basename-<index>.suffix", where
"<index>" is an integer that is incremented until the
file can be created. |
|
|
|
|
_run_locally(inputfile,
method=None,
structure=None)
Run a MOPAC calculation in the local directory. |
|
|
|
|
is_mopac_file(filename)
Determine if the file provided is a MOPAC input file or not. |
|
|
|
|
get_mopac_jobname(pathname)
Get the MOPAC jobname that will be used. |
|
|
|
|
run(inputfile,
jobname=None,
tmpdir='',
save_output_file=False,
scratch_cleanup='remove')
Run a MOPAC job from an existing MOPAC input file in a scratch
directory and clean up afterwards. |
|
|
|
|
_cleanup_external(inputfile,
start_dir)
If the input file has a relative path specification for an EXTERNAL
file, rewrite it to the local dir, then copy the original file to the
current directory. |
|
|
|
|
_run_cleanup(results,
start_dir,
scr_dir,
jobname,
save_output_file,
scratch_cleanup)
Cleanup from a subdirectory run. |
|
|
|
|
calculate(structure,
jobname=None,
method='RM1',
minimize=True,
kwdict=None,
keywords='',
tmpdir='',
input_file=False,
save_output_file=False,
scratch_cleanup='remove')
Run a MOPAC calculation without explicitly setting up a
MopacCalculation object. |
|
|
|
|
get_error_text()
Get the error text set during the main MOPAC calculation. |
|
|
|
|
_logger = log.get_logger("schrodinger.application.mopac")
|
|
|
_method_keywords = ['AM1', 'MNDO', 'MNDOD', 'PM3', 'RM1']
|
|
|
_methods = set(['AM1', 'MNDO', 'MNDOD', 'PM3', 'RM1'])
|
|
|
_external_re = re.compile(r'(?i)EXTERNAL *= *(\S+)')
|
|
|
AM1 = 'AM1'
|
|
|
MNDO = 'MNDO'
|
|
|
MNDOd = 'MNDOD'
|
|
|
PM3 = 'PM3'
|
|
|
REMOVE = 'remove'
|
|
|
RM1 = 'RM1'
|
|
|
SAVE = 'save'
|
|
|
ZIP = 'zip'
|
|
|
__package__ = 'schrodinger.application.mopac'
|