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,
text=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,
follow_links=0,
validate=None)
Write an input file to name.in. |
|
|
|
saveAs(self,
file_,
follow_links=0,
validate=None)
Write an input file to name.in and set the object's name attribute. |
|
|
|
saveAsBatch(self,
file_)
Write a batch file to file_.bat. |
|
|
str
|
|
str
|
getZmatText(self,
zmat=0)
Return the input file text corresponding to the specified Z matrix. |
|
|
str or tuple
|
_getTempFile(self,
return_handle=False)
Get a temporary file |
|
|
str
|
_writeTempFile(self,
text)
Write the specified text to a temporary file |
|
|
|
_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_'. |
|
|
|
__getitem__(self,
key)
Return the &gen section value for keyword 'key'. |
|
|
|
__setitem__(self,
key,
value)
Set the &gen section keyword 'key' to the value provided. |
|
|
|
__delitem__(self,
key)
Remove a key from the &gen section. |
|
|
|
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. |
|
|
bool
|
isNonDefault(self,
key)
Has the specified key been set to a non-default value? |
|
|
|
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,
structs=None)
Write an associated .mae file and set the MAEFILE directive. |
|
|
str or NoneType
|
getMaefilename(self,
dont_create=False)
Get the filename of the Maestro file containing the input structure. |
|
|
|
_getRestart(self)
Get the restart name associated with the input file. |
|
|
|
getStructure(self,
zmat=0)
Return a Structure representation of the specified zmat section. |
|
|
|
getStructures(self)
Return a list of all available structure representations for zmat
sections |
|
|
|
setStructure(self,
struct,
zmat=0,
set_molchg_multip=True)
Set one of the zmat sections from the provided Structure (or MMCT
handle). |
|
|
|
_checkStructures(self,
structures)
Raise RuntimeError if structure with a lower number zmat structure is
undefined when a higher number zmat structure is defined (e.g., zmat2
being defined when zmat1 is not). |
|
|
bool
|
hasStructure(self,
zmat=0)
Does this handle have a structure for the specified zmat section? |
|
|
|
resetStructure(self,
struct,
molchg,
multip,
zmat=0)
Redefine the connectivity and formal charges for the input CT,
and store the new structure in the current mmjag object, in the
&zmat section indicated by the zmat argument. |
|
|
|
|
|
_setCounterpoise(self,
atom,
value,
zmat=0)
Set the counterpoise status (True or False) for the specified atom. |
|
|
str
|
preflight(self)
Run a preflight check and return any warnings. |
|
|
|
|
|
|
dict
|
|
bool
|
sectionDefined(self,
sect)
Determine if the specified section is defined |
|
|
|
|
|
|
|
|
int
|
scanCount(self)
This function returns the total number of scan coordinates. |
|
|
tuple
|
|
|
setScanCoordinate(self,
coord_type,
atoms,
initial_value,
final_value,
num_steps,
step)
This function defines scan coordinate. |
|
|
|
|
|
constrainInternal(self,
atom1,
atom2,
atom3=0,
atom4=0)
Constrain an internal coordinate (bond, angle or torsion) |
|
|
int
|
constraintCount(self)
This function returns the total number of constraints. |
|
|
|
constraints(self)
Generator function that yields constraints instead of returning a
list. |
|
|
tuple or None
|
|
|
setConstraint(self,
coordinate_type,
atoms,
value)
This function defines constraint. |
|
|
|
setActiveCoord(self,
coordinate_type,
atoms)
This function defines an active coordinate. |
|
|
|
|
str or NoneType
|
getAtomicBasis(self,
atom_num)
Get the per-atom basis set for the specified atom |
|
|
dict
|
|
|
clearAtomicBases(self)
Clear all per-atom basis sets |
|
|
|
|
|
|
|
|
|
clearChargeConstraints(self)
Clear all CDFT charge constraints |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|