Package org.jmol.adapter.readers.quantum
Class MOReader
java.lang.Object
org.jmol.adapter.smarter.AtomSetCollectionReader
org.jmol.adapter.readers.quantum.BasisFunctionReader
org.jmol.adapter.readers.quantum.MOReader
- All Implemented Interfaces:
GenericLineReader
- Direct Known Subclasses:
AdfReader
,CsfReader
,DgridReader
,GamessReader
,GaussianReader
,GenNBOReader
,JaguarReader
,MoldenReader
,MopacGraphfReader
,NWChemReader
,OrcaReader
,PsiReader
,QchemReader
,WebMOReader
General methods for reading molecular orbital data, including embedded output
from the NBO program. In particular, when the AONBO keyword is included.
requires the following sort of construct:
public AtomSetCollection readAtomSetCollection(BufferedReader reader) {
readAtomSetCollection(reader, "some type");
}
protected boolean checkLine() {
if (line.indexOf(...)) {
doThis();
return true/false;
}
if (line.indexOf(...)) {
doThat();
return true/false;
}
return checkNboLine();
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
BasisFunctionReader.MOEnergySorter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected boolean
int
float[][]
protected boolean
protected boolean
protected final int
protected final int
protected final int
protected final int
protected boolean
int
Fields inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
alphaBeta, dfCoefMaps, ignoreMOs, moData, nCoef, nOrbitals, orbitals, shells, slaterArray, slaters
Fields inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addedData, addedDataKey, addVibrations, allow_a_len_1, allowPDBFilter, ANGSTROMS_PER_BOHR, applySymmetryToBonds, asc, baseAtomIndex, baseBondIndex, binaryDoc, bsFilter, bsModels, calculationType, CELL_TYPE_CONVENTIONAL, CELL_TYPE_PRIMITIVE, CELL_TYPE_SUPER, cellSlop, centroidPacked, checkNearAtoms, continuing, debugging, desiredModelNumber, desiredSpaceGroupIndex, desiredVibrationNumber, doApplySymmetry, doCentralize, doCentroidUnitCell, doCheckUnitCell, doConvertToFractional, doPackUnitCell, doProcessLines, doReadMolecularOrbitals, dssr, fileName, fileOffset, filePath, fileScaling, fillRange, filter, filterAllHetero, filterCased, filteredPrecision, filterHetero, floatifyJavaDouble, forcePacked, getHeader, haveAtomFilter, haveModel, havePartialChargeFilter, htParams, ignoreFileSpaceGroupName, ignoreFileSymmetryOperators, ignoreFileUnitCell, ignoreStructure, iHaveFractionalCoordinates, iHaveSymmetryOperators, iHaveUnitCell, is2D, isBinary, isConcatenated, isDSSP1, isFinalized, isMolecular, isPrimitive, isSequential, isSUPERCELL, isTrajectory, latticeCells, latticeScaling, latticeType, line, lowPrecision, lstNCS, matUnitCellOrientation, merging, modDim, modelNumber, ms, mustFinalizeModelSet, next, noHydrogens, noMinimize, noPack, optimize2D, out, paramsCentroid, paramsLattice, precision, prevline, primitiveToCrystal, ptLine, ptSupercell, reader, readerName, requiresBSFilter, reverseModels, rotateHexCell, sgName, slabXY, stateScriptVersionInt, strSupercell, symmetry, templateAtomCount, thisBiomolecule, trajectorySteps, ucItems, unitCellOffset, unitCellParams, useAltNames, useFileModelNumbers, validation, vibrationNumber, vibsFractional, vwr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected void
See MopacSlaterReaderprotected boolean
protected void
getMOHeader
(int headerType, String[] tokens, Map<String, Object>[] mos, int nThisLine) protected void
protected void
protected void
readMolecularOrbitals
(int headerType) void
setMOData
(boolean clearOrbitals) Methods inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
canonicalizeQuantumSubshellTag, clearOrbitals, discardPreviousAtoms, enableShell, filterMO, fixSlaterTypes, getDfCoefMaps, getDFMap, getQuantumShellTag, getQuantumShellTagID, getQuantumShellTagIDSpherical, setMO
Methods inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addAtomXYZSymName, addExplicitLatticeVector, addJmolScript, addSites, addSiteScript, appendLoadNote, appendUunitCellInfo, applySymmetryAndSetTrajectory, applySymTrajASCR, checkAndRemoveFilterKey, checkCurrentLineForScript, checkFilterKey, checkLastModel, checkLine, checkLineForScript, clearUnitCell, cloneLastAtomSet, discardLinesUntilBlank, discardLinesUntilContains, discardLinesUntilContains2, discardLinesUntilNonBlank, discardLinesUntilStartsWith, doGetModel, doGetVibration, doPreSymmetry, fill3x3, fillDataBlock, fillDataBlockFixed, fillFloatArray, fillFrequencyData, filterAtom, filterReject, finalizeMOData, finalizeModelSet, finalizeReaderASCR, finalizeSubclassReader, finalizeSubclassSymmetry, fixDoubleA, fixFloatA, fixFloatPt, forceSymmetry, fractionalizeCoordinates, getElementSymbol, getFilter, getFilterWithCase, getFortranFormatLengths, getInterface, getPackingRangeValue, getStrings, getSymmetry, getTokens, getTokensFloat, initializeSymmetry, initializeSymmetryOptions, initializeTrajectoryFile, isLastModel, newAtomSet, parseFloat, parseFloatRange, parseFloatStr, parseInt, parseIntAt, parseIntRange, parseIntStr, parsePrecision, 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, setPrecision, setSpaceGroupName, setSymmetryOperator, setTransform, setUnitCell, setUnitCellItem, setup, setupASCR
-
Field Details
-
shellCount
public int shellCount -
gaussianCount
public int gaussianCount -
gaussians
public float[][] gaussians -
energyUnits
-
moTypes
-
haveNboCharges
protected boolean haveNboCharges -
haveNboOrbitals
protected boolean haveNboOrbitals -
orbitalsRead
protected boolean orbitalsRead -
lastMoData
-
allowNoOrbitals
protected boolean allowNoOrbitals -
forceMOPAC
protected boolean forceMOPAC -
HEADER_GAMESS_UK_MO
protected final int HEADER_GAMESS_UK_MO- See Also:
-
HEADER_GAMESS_OCCUPANCIES
protected final int HEADER_GAMESS_OCCUPANCIES- See Also:
-
HEADER_GAMESS_ORIGINAL
protected final int HEADER_GAMESS_ORIGINAL- See Also:
-
HEADER_NONE
protected final int HEADER_NONE- See Also:
-
-
Constructor Details
-
MOReader
public MOReader()
-
-
Method Details
-
initializeReader
- Overrides:
initializeReader
in classAtomSetCollectionReader
- Throws:
Exception
-
checkNboLine
- Returns:
- true if need to read line
- Throws:
Exception
-
getNboTypes
- Throws:
Exception
-
readMolecularOrbitals
- Throws:
Exception
-
addSlaterBasis
protected void addSlaterBasis()See MopacSlaterReader -
addCoef
-
getMOHeader
protected void getMOHeader(int headerType, String[] tokens, Map<String, Object>[] mos, int nThisLine) throws Exception- Throws:
Exception
-
addMOData
-
setMOData
public void setMOData(boolean clearOrbitals)
-