Package org.jmol.adapter.readers.quantum
Class QCJSONReader
-
- All Implemented Interfaces:
javajs.api.GenericLineReader
public class QCJSONReader extends MoldenReader
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.SlaterSorter
-
Nested classes/interfaces inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
BasisFunctionReader.MOEnergySorter
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhaveEnergyprivate Map<String,Object>jobprivate intjobCount(package private) StringlastBasisIDprivate intmodelCount-
Fields inherited from class org.jmol.adapter.readers.quantum.MoldenReader
doSort, loadGeometries, loadVibrations, modelAtomCount, optOnly, orbitalType, vibOnly
-
Fields inherited from class org.jmol.adapter.readers.quantum.MopacSlaterReader
atomicNumbers, MIN_COEF
-
Fields inherited from class org.jmol.adapter.readers.quantum.SlaterReader
slaterArray, slaters
-
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 QCJSONReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalizeSubclassReader()optional reader-specific method run first.private static Map<String,Object>getMapSafely(Map<String,Object> map, String key)Safely get a Map from a Map using a key.protected voidinitializeReader()private voidprocessJob(Map<String,Object> job)private booleanreadBasis(String moBasisID)private booleanreadFreqsAndModes(ArrayList<Object> vibrations)private booleanreadGaussianBasis(ArrayList<Object> listG, ArrayList<Object> listS)private booleanreadMolecularOrbitals(Map<String,Object> molecular_orbitals)Read basis and orbital information.(package private) booleanreadSlaterBasis(ArrayList<Object> listS)private voidreadSteps()private voidsortMOs()private float[]toFloatArray(double[] da)-
Methods inherited from class org.jmol.adapter.readers.quantum.MoldenReader
checkLine, rd, readSlaterBasis
-
Methods inherited from class org.jmol.adapter.readers.quantum.MopacSlaterReader
createSphericalSlaterByType, scaleSlater
-
Methods inherited from class org.jmol.adapter.readers.quantum.SlaterReader
addSlater, addSlater, getSlaterConstCartesian, getSlaterConstDSpherical, setMOs, setSlaters, sortOrbitalCoefficients, sortOrbitals
-
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, 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
-
-
-
-
Method Detail
-
initializeReader
protected void initializeReader()
- Overrides:
initializeReaderin classMoldenReader
-
processJob
private void processJob(Map<String,Object> job) throws Exception
- Parameters:
job-- Throws:
Exception
-
finalizeSubclassReader
public void finalizeSubclassReader() throws ExceptionDescription copied from class:AtomSetCollectionReaderoptional reader-specific method run first.- Overrides:
finalizeSubclassReaderin classMoldenReader- Throws:
Exception
-
readFreqsAndModes
private boolean readFreqsAndModes(ArrayList<Object> vibrations) throws Exception
- Throws:
Exception
-
readMolecularOrbitals
private boolean readMolecularOrbitals(Map<String,Object> molecular_orbitals) throws Exception
Read basis and orbital information.- Parameters:
molecular_orbitals-- Returns:
- true if successful
- Throws:
Exception
-
toFloatArray
private float[] toFloatArray(double[] da)
-
readSlaterBasis
boolean readSlaterBasis(ArrayList<Object> listS) throws Exception
- Throws:
Exception
-
readGaussianBasis
private boolean readGaussianBasis(ArrayList<Object> listG, ArrayList<Object> listS) throws Exception
- Throws:
Exception
-
sortMOs
private void sortMOs()
-
-