iodata.formats.fchk module¶
Gaussian FCHK file format.
- dump_one(f, data)[source]¶
Dump a single frame into a Gaussian Formatted Checkpoint file.
- Parameters:
f (
TextIO) – A writeable file object.data (
IOData) – An IOData instance which must have the following attributes initialized:atnums,atcorenums. If the following attributes are present, they are also dumped into the file:atcharges,atcoords,atfrozen,atgradient,athessian,atmasses,charge,energy,lot,mo,one_rdms,obasis_name,extra,moments.
Notes
- load_many(lit)[source]¶
Load multiple frames from a XYZ file.
- Parameters:
lit (
LineIterator) – The line iterator to read the data from.- Yields:
result (dict) – A dictionary with IOData attributes. The following attribtues are guaranteed to be loaded:
atcoords,atgradient,atnums,atcorenums,energy,extra,title.- Return type:
Notes
Trajectories from a Gaussian optimization, relaxed scan or IRC calculation are written in groups of frames, called “points” in the Gaussian world, e.g. to discrimininate between different values of the constraint in a relaxed geometry. In most cases, e.g. IRC or conventional optimization, there is only one “point”. Within one “point”, one can have multiple geometries and their properties. This information is stored in the
extraattribute:ipointis the counter for a pointnpointis the total number of points.istepis the counter within one “point”nstepis the total number of geometries within in a “point”.reaction_coordinateis only present in case of an IRC calculation.
- load_one(lit)[source]¶
Load a single frame from a Gaussian Formatted Checkpoint file.
- Parameters:
lit (
LineIterator) – The line iterator to read the data from.- Return type:
- Returns:
result (dict) – A dictionary with IOData attributes. The following attributes are guaranteed to be loaded:
atcharges,atcoords,atnums,atcorenums,lot,mo,obasis,obasis_name,run_type,title. The following may be loaded if present in the file:energy,atfrozen,atgradient,athessian,atmasses,one_rdms,extra,moments.
- prepare_dump(data, allow_changes, filename)[source]¶
Check the compatibility of the IOData object with the FCHK format.
- Parameters:
- Return type:
- Returns:
data – The given
IODataobject.- Raises:
PrepareDumpError – If the given
IODatainstance is not compatible with the WFN format.