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
public class GenNBOReader extends MOReader
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
Fields Modifier and Type Field Description private booleanaddBetaSetprivate booleanalphaOnlyprivate booleanbetaOnlyprivate static StringDC_LISTprivate static StringDS_LISTprivate static StringFC_LISTprivate static StringFS_LISTprivate static StringGC_LISTprivate static StringGS_LISTprivate static StringHC_LISTprivate static StringHS_LISTprivate static StringIC_LISTprivate static StringIS_LISTprivate booleanis47Fileprivate booleanisOpenShellprivate booleanisOutputFileprivate intnAOs(package private) NBOParsernboParserprivate StringnboTypeprivate intnNOsprivate intnOrbitals0private intnStructuresprivate static StringP_LISTprivate static StringPS_LISTprivate static StringSP_LISTprivate static StringSPS_LISTprivate StringtopoType-
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, orbitalMaps, orbitals, shells
-
Fields inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addedData, addedDataKey, addVibrations, allow_a_len_1, 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, isPrimitive, isSequential, isTrajectory, latticeCells, latticeScaling, latticeType, line, lstNCS, matUnitCellOrientation, modDim, modelNumber, ms, mustFinalizeModelSet, next, out, packingError, prevline, primitiveToCrystal, ptLine, ptSupercell, reader, readerName, requiresBSFilter, reverseModels, rotateHexCell, sgName, stateScriptVersionInt, strSupercell, symmetry, templateAtomCount, thisBiomolecule, trajectorySteps, ucItems, unitCellOffset, unitCellParams, useAltNames, useFileModelNumbers, validation, vibrationNumber, vibsFractional, vwr
-
-
Constructor Summary
Constructors Constructor Description GenNBOReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckLine()private booleanfillSlater(int[] slater, int n, int pt, int ng)protected voidfinalizeSubclassReader()optional reader-specific method run first.private voidgetAlphasAndExponents()private booleangetFile31()private voidgetFile46()read the labels from xxxx.46private StringgetFileData(String ext)private int[]getIntData()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>getStructureList()private voidgetStructures(String type)protected voidinitializeReader()private booleanreadData31(String line1)private Map<String,String[]>readData46(String labelKey)read labels and not proper number of NOs, nNOs, for this nboTypeprivate voidreadData47()private voidreadMOs()private voidreadNBO37Occupancies(int pt)Read occupancies from .37 file.static booleanreadNBOCoefficients(Map<String,Object> moData, String nboType, Viewer vwr)Called by setNBOType in IsoExt when use issues NBO TYPE xxxprivate Map<String,String[]>readOutputProperties(String data)private booleanresetDF()private voidsetLabels(Map<String,String[]> map, String key, String line)private voidsetMap(Map<String,String[]> map, String labelKey, int nNOs, boolean doAll)static 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, checkAndRemoveFilterKey, checkNboLine, getMOHeader, getNboTypes, readMolecularOrbitals, setMOData
-
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, 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, 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
-
isOutputFile
private boolean isOutputFile
-
nboType
private String 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
private String topoType
-
nStructures
private int nStructures
-
nboParser
NBOParser nboParser
-
addBetaSet
private boolean addBetaSet
-
P_LIST
private static String P_LIST
-
PS_LIST
private static String PS_LIST
-
SP_LIST
private static String SP_LIST
-
SPS_LIST
private static String SPS_LIST
-
DS_LIST
private static String DS_LIST
-
DC_LIST
private static String DC_LIST
-
FS_LIST
private static String FS_LIST
-
FC_LIST
private static String FC_LIST
-
GS_LIST
private static String GS_LIST
-
GC_LIST
private static String GC_LIST
-
HS_LIST
private static String HS_LIST
-
HC_LIST
private static String HC_LIST
-
IS_LIST
private static String IS_LIST
-
IC_LIST
private static String IC_LIST
-
-
Method Detail
-
initializeReader
protected void initializeReader() throws Exception- Overrides:
initializeReaderin classMOReader- Throws:
Exception
-
finalizeSubclassReader
protected void finalizeSubclassReader() throws ExceptionDescription copied from class:AtomSetCollectionReaderoptional reader-specific method run first.- Overrides:
finalizeSubclassReaderin classAtomSetCollectionReader- Throws:
Exception
-
checkLine
protected boolean checkLine() throws Exception- Overrides:
checkLinein classAtomSetCollectionReader- Returns:
- true if need to read new line
- Throws:
Exception
-
getStructureList
private javajs.util.Lst<Object> getStructureList()
-
getFile46
private void getFile46()
read the labels from xxxx.46- Throws:
Exception
-
fillSlater
private boolean fillSlater(int[] slater, int n, int pt, int ng)
-
resetDF
private boolean resetDF()
-
readData46
private Map<String,String[]> readData46(String labelKey) throws Exception
read labels and not proper number of NOs, nNOs, for this nboType- Returns:
- Throws:
Exception
-
readNBOCoefficients
public static boolean readNBOCoefficients(Map<String,Object> moData, String nboType, Viewer vwr)
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
-
getNBOOccupanciesStatic
private static void getNBOOccupanciesStatic(javajs.util.Lst<Map<String,Object>> orbitals, int nAOs, int pt, String data, int len, int[] next)
-
readNBO37Occupancies
private void readNBO37Occupancies(int pt) throws ExceptionRead occupancies from .37 file. Called by readMOs.- Parameters:
pt-- Throws:
Exception
-
-