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:
javajs.api.GenericLineReader
- Direct Known Subclasses:
GamessReader,GaussianReader,GenNBOReader,JaguarReader,NWChemReader,PsiReader,QchemReader
public class MOReader extends BasisFunctionReader
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
Fields Modifier and Type Field Description protected booleanallowNoOrbitalsprivate static java.lang.StringDC_LISTprivate static java.lang.StringDS_LISTprotected java.lang.StringenergyUnitsprivate static java.lang.StringFC_LISTprivate static java.lang.StringFS_LISTintgaussianCountfloat[][]gaussiansprivate booleangetNBOChargesprivate booleangetNBOsprivate booleanhaveCoeffMapprotected booleanhaveNboChargesprotected booleanhaveNboOrbitalsprotected intHEADER_GAMESS_OCCUPANCIESprotected intHEADER_GAMESS_ORIGINALprotected intHEADER_GAMESS_UK_MOprotected intHEADER_NONEprivate intiMo0private java.util.Map<java.lang.String,java.lang.Object>lastMoDataprotected javajs.util.Lst<java.lang.String>moTypesprotected booleanorbitalsReadprivate static java.lang.StringP_LISTintshellCount-
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 MOReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCoef(java.util.Map<java.lang.String,java.lang.Object> mo, float[] coefs, java.lang.String type, float energy, float occ, int moCount)protected voidaddMOData(int nColumns, javajs.util.Lst<java.lang.String>[] data, java.util.Map<java.lang.String,java.lang.Object>[] mos)booleancheckAndRemoveFilterKey(java.lang.String key)Prior to filterMO all extraneous filter keys must be removed.protected booleancheckNboLine()protected voidgetMOHeader(int headerType, java.lang.String[] tokens, java.util.Map<java.lang.String,java.lang.Object>[] mos, int nThisLine)private voidgetNboCharges()protected voidgetNboTypes()protected voidinitializeReader()protected voidreadMolecularOrbitals(int headerType)private voidreadSecondOrderData()voidsetMOData(boolean clearOrbitals)-
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, checkLine, 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
-
shellCount
public int shellCount
-
gaussianCount
public int gaussianCount
-
gaussians
public float[][] gaussians
-
energyUnits
protected java.lang.String energyUnits
-
moTypes
protected javajs.util.Lst<java.lang.String> moTypes
-
getNBOs
private boolean getNBOs
-
getNBOCharges
private boolean getNBOCharges
-
haveNboCharges
protected boolean haveNboCharges
-
haveNboOrbitals
protected boolean haveNboOrbitals
-
orbitalsRead
protected boolean orbitalsRead
-
lastMoData
private java.util.Map<java.lang.String,java.lang.Object> lastMoData
-
allowNoOrbitals
protected boolean allowNoOrbitals
-
HEADER_GAMESS_UK_MO
protected final int HEADER_GAMESS_UK_MO
- See Also:
- Constant Field Values
-
HEADER_GAMESS_OCCUPANCIES
protected final int HEADER_GAMESS_OCCUPANCIES
- See Also:
- Constant Field Values
-
HEADER_GAMESS_ORIGINAL
protected final int HEADER_GAMESS_ORIGINAL
- See Also:
- Constant Field Values
-
HEADER_NONE
protected final int HEADER_NONE
- See Also:
- Constant Field Values
-
haveCoeffMap
private boolean haveCoeffMap
-
P_LIST
private static final java.lang.String P_LIST
- See Also:
- Constant Field Values
-
DS_LIST
private static final java.lang.String DS_LIST
- See Also:
- Constant Field Values
-
DC_LIST
private static final java.lang.String DC_LIST
- See Also:
- Constant Field Values
-
FS_LIST
private static final java.lang.String FS_LIST
- See Also:
- Constant Field Values
-
FC_LIST
private static java.lang.String FC_LIST
-
iMo0
private int iMo0
-
-
Method Detail
-
initializeReader
protected void initializeReader() throws java.lang.Exception- Overrides:
initializeReaderin classAtomSetCollectionReader- Throws:
java.lang.Exception
-
checkAndRemoveFilterKey
public boolean checkAndRemoveFilterKey(java.lang.String key)
Prior to filterMO all extraneous filter keys must be removed.- Parameters:
key-- Returns:
- true if the key existed; filter is set null if this is the only key
-
checkNboLine
protected boolean checkNboLine() throws java.lang.Exception- Returns:
- true if need to read line
- Throws:
java.lang.Exception
-
getNboCharges
private void getNboCharges() throws java.lang.Exception- Throws:
java.lang.Exception
-
getNboTypes
protected void getNboTypes() throws java.lang.Exception- Throws:
java.lang.Exception
-
readMolecularOrbitals
protected void readMolecularOrbitals(int headerType) throws java.lang.Exception- Throws:
java.lang.Exception
-
addCoef
public void addCoef(java.util.Map<java.lang.String,java.lang.Object> mo, float[] coefs, java.lang.String type, float energy, float occ, int moCount)
-
getMOHeader
protected void getMOHeader(int headerType, java.lang.String[] tokens, java.util.Map<java.lang.String,java.lang.Object>[] mos, int nThisLine) throws java.lang.Exception- Throws:
java.lang.Exception
-
addMOData
protected void addMOData(int nColumns, javajs.util.Lst<java.lang.String>[] data, java.util.Map<java.lang.String,java.lang.Object>[] mos)
-
setMOData
public void setMOData(boolean clearOrbitals)
-
readSecondOrderData
private void readSecondOrderData() throws java.lang.Exception- Throws:
java.lang.Exception
-
-