Package org.jmol.adapter.readers.quantum
Class QCJSONReader
- All Implemented Interfaces:
javajs.api.GenericLineReader
A molecular structure and orbital reader for MolDen files.
See http://www.cmbi.ru.nl/molden/molden_format.html
updated by Bob Hanson <hansonr@stolaf.edu> for Jmol 12.0/12.1
adding [spacegroup] [operators] [cell] [cellaxes] for Jmol 14.3.7
- Author:
- Matthew Zwier <mczwier@gmail.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jmol.adapter.readers.quantum.SlaterReader
SlaterReader.OrbitalSorter, SlaterReader.SlaterSorterNested classes/interfaces inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
BasisFunctionReader.MOEnergySorter -
Field Summary
FieldsFields inherited from class org.jmol.adapter.readers.quantum.MoldenReader
doSort, haveEnergy, loadGeometries, loadVibrations, modelAtomCount, optOnly, orbitalType, vibOnlyFields inherited from class org.jmol.adapter.readers.quantum.MopacSlaterReader
_AM1_C, allowMopacDCoef, atomicNumbers, MIN_COEF, MOPAC_TYPES, mopacBasisFields inherited from class org.jmol.adapter.readers.quantum.SlaterReader
scaleSlatersFields 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 TypeMethodDescriptionvoidoptional reader-specific method run first.getMapSafely(Map<String, Object> map, String key) Safely get a Map from a Map using a key.protected voidprivate voidprocessJob(Map<String, Object> job) private booleanreadBasisQC(String moBasisID) private booleanreadFreqsAndModesQC(ArrayList<Object> vibrations) private booleanreadGaussianBasisQC(ArrayList<Object> listG, ArrayList<Object> listS) private booleanreadMolecularOrbitalsQC(Map<String, Object> molecular_orbitals) Read basis and orbital information.(package private) booleanreadSlaterBasisQC(ArrayList<Object> listS) private voidprivate float[]toFloatArray(double[] da) Methods inherited from class org.jmol.adapter.readers.quantum.MoldenReader
checkLine, rd, readSlaterBasis, sortMOsMethods inherited from class org.jmol.adapter.readers.quantum.MopacSlaterReader
addSlaterBasis, createMopacSlaters, createSphericalSlaterByType, getMopacAtomZetaSPD, scaleSlater, setMODataMethods inherited from class org.jmol.adapter.readers.quantum.SlaterReader
addSlater, addSlater, getSlaterConstCartesian, getSlaterConstDSpherical, getSlaters, setMOs, setSlaters, sortOrbitalCoefficients, sortOrbitalsMethods inherited from class org.jmol.adapter.readers.quantum.MOReader
addCoef, addMOData, checkNboLine, getMOHeader, getNboTypes, readMolecularOrbitalsMethods 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, 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
-
job
-
jobCount
private int jobCount -
modelCount
private int modelCount -
lastBasisID
String lastBasisID
-
-
Constructor Details
-
QCJSONReader
public QCJSONReader()
-
-
Method Details
-
initializeReader
protected void initializeReader()- Overrides:
initializeReaderin classMoldenReader
-
processJob
- Parameters:
job-- Throws:
Exception
-
finalizeSubclassReader
Description copied from class:AtomSetCollectionReaderoptional reader-specific method run first.- Overrides:
finalizeSubclassReaderin classMoldenReader- Throws:
Exception
-
readSteps
- Throws:
Exception
-
readFreqsAndModesQC
- Throws:
Exception
-
readMolecularOrbitalsQC
Read basis and orbital information.- Parameters:
molecular_orbitals-- Returns:
- true if successful
- Throws:
Exception
-
toFloatArray
private float[] toFloatArray(double[] da) -
readBasisQC
- Throws:
Exception
-
readSlaterBasisQC
- Throws:
Exception
-
readGaussianBasisQC
private boolean readGaussianBasisQC(ArrayList<Object> listG, ArrayList<Object> listS) throws Exception - Throws:
Exception
-
getMapSafely
Safely get a Map from a Map using a key.- Parameters:
map-key-- Returns:
- the Map or null
-