schrodinger.application.mopac.mopac_launchers module

This module contains the class for launching MOPAC jobs

class schrodinger.application.mopac.mopac_launchers.MopacLauncherMain(energy_only=False)

Bases: object

This is the API for executing the backend of the currently supported version of MOPAC as an external binary.

MOPAC_EXEC = 'MOPAC2016.exe'
__init__(energy_only=False)
Parameters

energy_only (bool) – parse only energies from the MOPAC jobs.

property default_method
property valid_methods
property method_synonyms
property extra_keywords
property results
write_mop_file(cts, mopfile, method='RM1', geopt=True, keywords='', plotMO=None, gridres=None, gridext=None)

Write a new .mop MOPAC input file based on a list of Structure objects and input keywords and settings to be applied to all structures.

Parameters
  • cts (list of schrodinger.structure.Structure) – Structures to use in writing the file.

  • mopfile (str) – name of .mop file to write (eg - infile.mop)

  • method (str) – The semi-empirical method to use for the calculation.

  • geopt (bool) – If True, find the minimum energy geometry.

  • keywords (str) – Space-separated keywords to use in MOPAC input file.

  • plotMO (int) – Plot <n> MOs around the HOMO/LUMO gap.

  • gridres (float) – Grid resolution for plots.

  • gridext (float) – Grid size beyond the nuclei.

run(mopfile, structs=())

Run a MOPAC calculation in the local directory with a .mop input file. If optional list of Structure instances is given, then parse the output files for data with which to populate the structure properties.

Support for multiple structures in the input file is provided. It is important that the number of jobs in the input file matches the number of structures in the “structures” argument, as structure properties will be updated assuming a 1:1 mapping.

Parameters
  • mopfile (str) – name of .mop input file (eg - infile.mop)

  • structs (list) – list of Structure objects

Returns

list(job status)