A class for specifying Jaguar input.
This is a thin wrapper to the mmjag library and carries very little
internal information.
|
|
__init__(self,
input=None,
name=None,
handle=None,
structure=None,
genkeys=None,
reload=None,
run_kwargs=None)
There are three main ways to create a JaguarInput instance:
from a Jaguar input file 'input', an mmjag handle 'handle', or a
Structure instance 'structure'. |
|
|
|
|
__del__(self)
Delete the mmjag handle and clean up the mmlibs. |
|
|
|
|
__copy__(self)
Create a copy of the JaguarInput object, setting name to
<jobname>_copy. |
|
|
|
|
launch(self,
*args,
**kwargs)
Save the file and launch a job. |
|
|
|
|
run(self,
**kwargs)
Save the file and launch a job with the wait option. |
|
|
|
|
save(self)
Write an input file to name.in. |
|
|
|
|
saveAs(self,
file_)
Write an input file to name.in and set the object's name attribute. |
|
|
|
|
_setNameFile(self,
input)
Set the name and file properties from a named input file or jobname. |
|
|
|
|
_getName(self)
Return the name of the job. |
|
|
|
|
_setName(self,
name)
Set the name of the job and update the filename. |
|
|
|
|
getAtomCount(self,
zmat=0)
Return the number of atoms for the specified zmat. |
|
|
|
|
getValue(self,
key)
Return the &gen section value for keyword 'key'. |
|
|
|
|
getDefault(self,
key)
Return the default value for &gen section keyword 'key'. |
|
|
|
|
setValue(self,
key,
value)
Set the &gen section keyword 'key' to the value provided. |
|
|
|
|
setValues(self,
dict_)
Set multiple &gen section keywords from the provided dictionary
'dict_'. |
|
|
|
|
deleteKey(self,
key)
Remove a key from the &gen section. |
|
|
|
|
deleteKeys(self,
keys)
Remove a list of keys from the &gen section. |
|
|
|
|
getNonDefault(self)
Return a dictionary of all non-default keys except 'multip' and
'molchg', which must be retrieved explicitly since they are connected
to the geometry. |
|
|
|
|
setDirective(self,
name,
value)
Set a file specification directive. |
|
|
|
|
getDirective(self,
name)
Get a file specification directive. |
|
|
|
|
getDirectives(self)
Get all file specification directives, except for MAEFILE, which is
weeded out by the mmjag function itself. |
|
|
|
|
writeMaefile(self,
filename=None,
struct=None)
Write an associated .mae file and set the MAEFILE directive. |
|
|
|
|
_getRestart(self)
Get the restart name associated with the input file. |
|
|
|
|
getStructure(self,
zmat=0)
Return a Structure representation of the specified zmat section. |
|
|
|
|
setStructure(self,
struct,
zmat=0)
Set one of the zmat sections from the provided Structure (or MMCT
handle). |
|
|
|
|
_setCounterpoise(self,
atom,
value,
zmat=0)
Set the counterpoise status (True or False) for the specified atom. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|