Class GaussianReader
- java.lang.Object
-
- org.jmol.adapter.smarter.AtomSetCollectionReader
-
- org.jmol.adapter.readers.quantum.BasisFunctionReader
-
- org.jmol.adapter.readers.quantum.MOReader
-
- org.jmol.adapter.readers.quantum.GaussianReader
-
- All Implemented Interfaces:
javajs.api.GenericLineReader
- Direct Known Subclasses:
GaussianFchkReader
public class GaussianReader extends MOReader
Reader for Gaussian 94/98/03/09 output files. 4/11/2009 -- hansonr -- added NBO support as extension of MOReader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
BasisFunctionReader.MOEnergySorter
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowHighPrecisionprotected intcalculationNumberThe number of the calculation being interpreted.private java.lang.StringenergyKeyType of energy calculated, e.g., E(RB+HF-PW91).private java.lang.StringenergyStringCalculated energy with units (if possible).private intequivalentAtomSetsThe number of equivalent atom sets.private booleanhaveHighPrecisionprivate booleanisHighPrecisionprivate intmoModelSetprotected BSnamedSetsprivate intscanPointThe scan point, where -1 denotes no scan information.private static intSTD_ORIENTATION_ATOMIC_NUMBER_OFFSETWord index of atomic number in line with atom coordinates in an orientation block.private intstepNumber-
Fields inherited from class org.jmol.adapter.readers.quantum.MOReader
allowNoOrbitals, energyUnits, gaussianCount, gaussians, haveNboCharges, haveNboOrbitals, HEADER_GAMESS_OCCUPANCIES, HEADER_GAMESS_ORIGINAL, HEADER_GAMESS_UK_MO, HEADER_NONE, moTypes, orbitalsRead, shellCount
-
Fields inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
alphaBeta, dfCoefMaps, ignoreMOs, moData, nCoef, nOrbitals, orbitals, shells
-
Fields inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addedData, addedDataKey, addVibrations, allowPDBFilter, ANGSTROMS_PER_BOHR, applySymmetryToBonds, asc, baseAtomIndex, binaryDoc, bsFilter, bsModels, calculationType, continuing, debugging, desiredModelNumber, desiredSpaceGroupIndex, desiredVibrationNumber, doApplySymmetry, doCentralize, doCheckUnitCell, doConvertToFractional, doPackUnitCell, doProcessLines, doReadMolecularOrbitals, dssr, fileName, fileOffset, filePath, fileScaling, fillRange, filter, filterHetero, fixJavaFloat, forcePacked, getHeader, haveAtomFilter, haveModel, havePartialChargeFilter, htParams, ignoreFileSpaceGroupName, ignoreFileSymmetryOperators, ignoreFileUnitCell, ignoreStructure, iHaveFractionalCoordinates, iHaveSymmetryOperators, iHaveUnitCell, isBinary, isConcatenated, isDSSP1, isFinalized, isMolecular, isSequential, isTrajectory, latticeCells, latticeScaling, line, lstNCS, matUnitCellOrientation, modelNumber, ms, mustFinalizeModelSet, next, out, packingError, prevline, ptLine, ptSupercell, reader, readerName, reverseModels, sgName, stateScriptVersionInt, strSupercell, symmetry, templateAtomCount, thisBiomolecule, trajectorySteps, unitCellOffset, unitCellParams, useAltNames, useFileModelNumbers, validation, vibrationNumber, vibsFractional, vwr
-
-
Constructor Summary
Constructors Constructor Description GaussianReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckLine()Reads a Collection of AtomSets from a BufferedReader.private voidgetSpinDensities(int pt)protected voidinitializeReader()protected voidreadAtoms()protected voidreadBasis()(package private) voidreadDipoleMoment()protected voidreadFrequencies(java.lang.String key, boolean mustHave)Interprets the Harmonic frequencies section.protected voidreadMolecularOrbitals()(package private) voidreadPartialCharges()Reads partial charges and assigns them only to the last atom set.private voidreadSCFDone()Interprets the SCF Done: section.private voidsetEnergy()Interpret the Energy= line for non SCF type energy outputprivate voidsetNames(java.lang.String atomSetName, BS namedSets, int n)private voidsetProps(java.lang.String key, java.lang.String value, int n)-
Methods inherited from class org.jmol.adapter.readers.quantum.MOReader
addCoef, addMOData, checkAndRemoveFilterKey, checkNboLine, getMOHeader, getNboTypes, readMolecularOrbitals, setMOData
-
Methods inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
canonicalizeQuantumSubshellTag, discardPreviousAtoms, filterMO, fixSlaterTypes, getDfCoefMaps, getDFMap, getQuantumShellTag, getQuantumShellTagID, getQuantumShellTagIDSpherical, setMO
-
Methods inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addAtomXYZSymName, addJmolScript, addPrimitiveLatticeVector, addSites, addSiteScript, appendLoadNote, appendUunitCellInfo, applySymmetryAndSetTrajectory, applySymTrajASCR, checkCurrentLineForScript, checkFilterKey, checkLastModel, checkLineForScript, clearUnitCell, cloneLastAtomSet, discardLinesUntilBlank, discardLinesUntilContains, discardLinesUntilContains2, discardLinesUntilNonBlank, discardLinesUntilStartsWith, doGetModel, doGetVibration, doPreSymmetry, fillDataBlock, fillDataBlockFixed, fillFloatArray, fillFrequencyData, filterAtom, filterReject, finalizeMOData, finalizeModelSet, finalizeReaderASCR, finalizeSubclassReader, finalizeSubclassSymmetry, forceSymmetry, fractionalizeCoordinates, getElementSymbol, getFilter, getFortranFormatLengths, getInterface, getNewSymmetry, getStrings, getSymmetry, getTokens, getTokensFloat, initializeSymmetry, initializeSymmetryOptions, initializeTrajectoryFile, isLastModel, newAtomSet, parseFloat, parseFloatRange, parseFloatStr, parseInt, parseIntAt, parseIntRange, parseIntStr, parseToken, parseTokenNext, parseTokenRange, parseTokenStr, processBinaryDocument, processDOM, rd, read3Vectors, readDataObject, readLines, readNextLine, rejectAtomName, RL, set2D, setAtomCoord, setAtomCoordScaled, setAtomCoordTokens, setAtomCoordXYZ, setChainID, setElementAndIsotope, setFilter, setFilterAtomTypeStr, setFractionalCoordinates, setIsPDB, setLoadNote, setModelPDB, setSpaceGroupName, setSymmetryOperator, setTransform, setUnitCell, setUnitCellItem, setup, setupASCR
-
-
-
-
Field Detail
-
STD_ORIENTATION_ATOMIC_NUMBER_OFFSET
private static final int STD_ORIENTATION_ATOMIC_NUMBER_OFFSET
Word index of atomic number in line with atom coordinates in an orientation block.- See Also:
- Constant Field Values
-
energyString
private java.lang.String energyString
Calculated energy with units (if possible).
-
energyKey
private java.lang.String energyKey
Type of energy calculated, e.g., E(RB+HF-PW91).
-
calculationNumber
protected int calculationNumber
The number of the calculation being interpreted.
-
scanPoint
private int scanPoint
The scan point, where -1 denotes no scan information.
-
equivalentAtomSets
private int equivalentAtomSets
The number of equivalent atom sets.Needed to associate identical properties to multiple atomsets
-
stepNumber
private int stepNumber
-
moModelSet
private int moModelSet
-
namedSets
protected BS namedSets
-
isHighPrecision
private boolean isHighPrecision
-
haveHighPrecision
private boolean haveHighPrecision
-
allowHighPrecision
private boolean allowHighPrecision
-
-
Method Detail
-
initializeReader
protected void initializeReader() throws java.lang.Exception- Overrides:
initializeReaderin classMOReader- Throws:
java.lang.Exception
-
checkLine
protected boolean checkLine() throws java.lang.ExceptionReads a Collection of AtomSets from a BufferedReader.New AtomSets are generated when an
Input,StandardorZ-Matrixorientation is read. The occurence of these orientations seems to depend on (in pseudo-code):
if (opt=z-matrix) Z-Matrix; else Input;
if (!NoSymmetry) Standard;
Which means that ifNoSymmetryis used with a z-matrix optimization, no other orientation besidesZ-Matrixwill be present. This is important becauseZ-Matrixmay have dummy atoms while the analysis of the calculation results will not, i.e., theCenter Numbersin the z-matrix orientation may be different from those in the population analysis!Single point or frequency calculations always have an
Inputorientation. If symmetry is used aStandardwill be present too.- Overrides:
checkLinein classAtomSetCollectionReader- Returns:
- TRUE to read a new line
- Throws:
java.lang.Exception
-
getSpinDensities
private void getSpinDensities(int pt) throws java.lang.Exception- Throws:
java.lang.Exception
-
readSCFDone
private void readSCFDone() throws java.lang.ExceptionInterprets the SCF Done: section.The energyKey and energyString will be set for further AtomSets that have the same molecular geometry (e.g., frequencies). The energy, convergence, -V/T and S**2 values will be set as properties for the atomSet.
- Throws:
java.lang.Exception- If an error occurs
-
setProps
private void setProps(java.lang.String key, java.lang.String value, int n)
-
setNames
private void setNames(java.lang.String atomSetName, BS namedSets, int n)
-
setEnergy
private void setEnergy()
Interpret the Energy= line for non SCF type energy output
-
readAtoms
protected void readAtoms() throws java.lang.Exception- Throws:
java.lang.Exception
-
readBasis
protected void readBasis() throws java.lang.Exception- Throws:
java.lang.Exception
-
readMolecularOrbitals
protected void readMolecularOrbitals() throws java.lang.Exception- Throws:
java.lang.Exception
-
readFrequencies
protected void readFrequencies(java.lang.String key, boolean mustHave) throws java.lang.ExceptionInterprets the Harmonic frequencies section.The vectors are added to a clone of the last read AtomSet. Only the Frequencies, reduced masses, force constants and IR intensities are set as properties for each of the frequency type AtomSet generated.
- Parameters:
mustHave-key-- Throws:
java.lang.Exception- If no frequencies were encountered
-
readDipoleMoment
void readDipoleMoment() throws java.lang.Exception- Throws:
java.lang.Exception
-
readPartialCharges
void readPartialCharges() throws java.lang.ExceptionReads partial charges and assigns them only to the last atom set.- Throws:
java.lang.Exception- When an I/O error or discardlines error occurs
-
-