Package org.jmol.adapter.readers.quantum
Class GenNBOReader
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.GenNBOReader
- All Implemented Interfaces:
javajs.api.GenericLineReader
NBO file nn reader will pull in other files as necessary
acknowledgments: Grange Hermitage, Frank Weinhold
upgrade to NBO 6 allows reading of resonance structures, including base structure
- Author:
- hansonr
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
BasisFunctionReader.MOEnergySorter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate booleanprivate booleanprivate booleanprivate int(package private) NBOParserprivate Stringprivate intprivate intprivate intprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate StringFields inherited from class org.jmol.adapter.readers.quantum.MOReader
allowNoOrbitals, energyUnits, forceMOPAC, gaussianCount, gaussians, haveNboCharges, haveNboOrbitals, HEADER_GAMESS_OCCUPANCIES, HEADER_GAMESS_ORIGINAL, HEADER_GAMESS_UK_MO, HEADER_NONE, lastMoData, moTypes, orbitalsRead, shellCountFields inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
alphaBeta, dfCoefMaps, ignoreMOs, moData, nCoef, nOrbitals, orbitalMaps, orbitals, shells, slaterArray, slatersFields 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, centroidPacked, continuing, debugging, desiredModelNumber, desiredSpaceGroupIndex, desiredVibrationNumber, doApplySymmetry, doCentralize, doCentroidUnitCell, doCheckUnitCell, doConvertToFractional, doPackUnitCell, doProcessLines, doReadMolecularOrbitals, dssr, fileName, fileOffset, filePath, fileScaling, fillRange, filter, filterAllHetero, filterCased, filterHetero, fixJavaFloat, forcePacked, getHeader, haveAtomFilter, haveModel, havePartialChargeFilter, htParams, ignoreFileSpaceGroupName, ignoreFileSymmetryOperators, ignoreFileUnitCell, ignoreStructure, iHaveFractionalCoordinates, iHaveSymmetryOperators, iHaveUnitCell, is2D, isBinary, isConcatenated, isDSSP1, isFinalized, isMolecular, isPrimitive, isSequential, isTrajectory, latticeCells, latticeScaling, latticeType, line, lstNCS, matUnitCellOrientation, merging, modDim, modelNumber, ms, mustFinalizeModelSet, next, noHydrogens, noPack, optimize2D, out, packingError, paramsCentroid, paramsLattice, 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 TypeMethodDescriptionprivate static voidprotected booleanprivate booleanfillSlater(int[] slater, int n, int pt, int ng) protected voidoptional reader-specific method run first.private voidprivate booleanprivate voidread the labels from xxxx.46private StringgetFileData(String ext) private int[]private static StringgetLabelKey(String labelKey) private static voidgetNBOOccupanciesStatic(javajs.util.Lst<Map<String, Object>> orbitals, int nAOs, int pt, String data, int len, int[] next) private javajs.util.Lst<Object>private voidgetStructures(String type) protected voidprivate booleanreadData31(String line1) readData46(String labelKey) read labels and not proper number of NOs, nNOs, for this nboTypeprivate voidprivate voidreadMOs()private voidreadNBO37Occupancies(int pt) Read occupancies from .37 file.static booleanCalled by setNBOType in IsoExt when use issues NBO TYPE xxxreadOutputProperties(String data) private booleanresetDF()private voidprivate voidstatic voidsetNboLabels(String[] tokens, int nLabels, javajs.util.Lst<Map<String, Object>> orbitals, int nOrbitals0, String moType) Methods inherited from class org.jmol.adapter.readers.quantum.MOReader
addCoef, addMOData, addSlaterBasis, checkNboLine, getMOHeader, getNboTypes, readMolecularOrbitals, setMODataMethods inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
canonicalizeQuantumSubshellTag, clearOrbitals, discardPreviousAtoms, enableShell, filterMO, fixSlaterTypes, getDfCoefMaps, getDFMap, getQuantumShellTag, getQuantumShellTagID, getQuantumShellTagIDSpherical, setMOMethods inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addAtomXYZSymName, addExplicitLatticeVector, addJmolScript, addSites, addSiteScript, appendLoadNote, appendUunitCellInfo, applySymmetryAndSetTrajectory, applySymTrajASCR, checkAndRemoveFilterKey, checkCurrentLineForScript, checkFilterKey, checkLastModel, checkLineForScript, clearUnitCell, cloneLastAtomSet, discardLinesUntilBlank, discardLinesUntilContains, discardLinesUntilContains2, discardLinesUntilNonBlank, discardLinesUntilStartsWith, doGetModel, doGetVibration, doPreSymmetry, fill3x3, fillDataBlock, fillDataBlockFixed, fillFloatArray, fillFrequencyData, filterAtom, filterReject, finalizeMOData, finalizeModelSet, finalizeReaderASCR, finalizeSubclassSymmetry, forceSymmetry, fractionalizeCoordinates, getElementSymbol, getFilter, getFilterWithCase, 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 Details
-
isOutputFile
private boolean isOutputFile -
nboType
-
nOrbitals0
private int nOrbitals0 -
is47File
private boolean is47File -
isOpenShell
private boolean isOpenShell -
alphaOnly
private boolean alphaOnly -
betaOnly
private boolean betaOnly -
nAOs
private int nAOs -
nNOs
private int nNOs -
topoType
-
nStructures
private int nStructures -
nboParser
NBOParser nboParser -
addBetaSet
private boolean addBetaSet -
P_LIST
-
PS_LIST
-
SP_LIST
-
SPS_LIST
-
DS_LIST
-
DC_LIST
-
FS_LIST
-
FC_LIST
-
GS_LIST
-
GC_LIST
-
HS_LIST
-
HC_LIST
-
IS_LIST
-
IC_LIST
-
-
Constructor Details
-
GenNBOReader
public GenNBOReader()
-
-
Method Details
-
initializeReader
- Overrides:
initializeReaderin classMOReader- Throws:
Exception
-
finalizeSubclassReader
Description copied from class:AtomSetCollectionReaderoptional reader-specific method run first.- Overrides:
finalizeSubclassReaderin classAtomSetCollectionReader- Throws:
Exception
-
checkLine
- Overrides:
checkLinein classAtomSetCollectionReader- Returns:
- true if need to read new line
- Throws:
Exception
-
getStructures
- Throws:
Exception
-
getStructureList
-
getFileData
- Throws:
Exception
-
getFile31
- Throws:
Exception
-
getFile46
private void getFile46()read the labels from xxxx.46 -
readOutputProperties
-
setLabels
-
readData47
- Throws:
Exception
-
getIntData
- Throws:
Exception
-
fillSlater
private boolean fillSlater(int[] slater, int n, int pt, int ng) -
resetDF
private boolean resetDF() -
getAlphasAndExponents
- Throws:
Exception
-
readData31
- Throws:
Exception
-
readData46
read labels and not proper number of NOs, nNOs, for this nboType- Returns:
- Throws:
Exception
-
setMap
-
getLabelKey
-
readNBOCoefficients
Called by setNBOType in IsoExt when use issues NBO TYPE xxx- Parameters:
moData-nboType-vwr-- Returns:
- true if sucessful or false if required file is missing
-
addAuxFile
-
getNBOOccupanciesStatic
-
readMOs
- Throws:
Exception
-
readNBO37Occupancies
Read occupancies from .37 file. Called by readMOs.- Parameters:
pt-- Throws:
Exception
-
setNboLabels
-