Package org.jmol.adapter.readers.quantum
Class MoldenReader
- java.lang.Object
-
- All Implemented Interfaces:
javajs.api.GenericLineReader
- Direct Known Subclasses:
QCJSONReader
public class MoldenReader extends MopacSlaterReader
A molecular structure and orbital reader for MolDen files. See http://www.cmbi.ru.nl/molden/molden_format.html updated by Bob Hansonfor Jmol 12.0/12.1 adding [spacegroup] [operators] [cell] [cellaxes] for Jmol 14.3.7 adding [STO] ANGS MOPAC -- optional zeta in ANGS -- optional mopac scaling - Author:
- Matthew Zwier
-
-
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 javajs.util.BSbsAtomOKprivate javajs.util.BSbsBadIndexprivate intbufLenprotected booleandoSortprivate booleanhaveEnergyprivate javajs.util.Lst<java.lang.String>lineBufferprotected booleanloadGeometriesprotected booleanloadVibrationsprotected intmodelAtomCountprivate int[]nSPDFprotected booleanoptOnlyprotected java.lang.StringorbitalTypeprivate intptLineBufprotected booleanvibOnly-
Fields inherited from class org.jmol.adapter.readers.quantum.MopacSlaterReader
_AM1_C, allowMopacDCoef, atomicNumbers, MIN_COEF, MOPAC_TYPES, mopacBasis
-
Fields inherited from class org.jmol.adapter.readers.quantum.SlaterReader
scaleSlaters
-
Fields 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, shellCount
-
Fields inherited from class org.jmol.adapter.readers.quantum.BasisFunctionReader
alphaBeta, dfCoefMaps, ignoreMOs, moData, nCoef, nOrbitals, orbitalMaps, orbitals, shells, slaterArray, slaters
-
Fields 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, centroidPacked, continuing, debugging, desiredModelNumber, desiredSpaceGroupIndex, desiredVibrationNumber, doApplySymmetry, doCentralize, doCentroidUnitCell, 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, paramsCentroid, paramsLattice, 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 MoldenReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckLine()private booleancheckOrbitalType(java.lang.String line)private booleancheckSymmetry()private voidcreateLineBuffer()voidfinalizeSubclassReader()optional reader-specific method run first.private voidfixOrbitalType()private java.lang.String[]getMoTokens(java.lang.String line)protected voidinitializeReader()java.lang.Stringrd()private voidreadAtoms()private voidreadAtomSet(java.lang.String atomSetName, boolean isBohr, boolean asClone)private booleanreadFreqsAndModes()private booleanreadGaussianBasis()private booleanreadGeometryOptimization()private booleanreadMolecularOrbitals()(package private) booleanreadSlaterBasis()private voidskipTo(java.lang.String key)private voidsortMOs()-
Methods inherited from class org.jmol.adapter.readers.quantum.MopacSlaterReader
addSlaterBasis, createMopacSlaters, createSphericalSlaterByType, getMopacAtomZetaSPD, scaleSlater, setMOData
-
Methods inherited from class org.jmol.adapter.readers.quantum.SlaterReader
addSlater, addSlater, getSlaterConstCartesian, getSlaterConstDSpherical, getSlaters, setMOs, setSlaters, sortOrbitalCoefficients, sortOrbitals
-
Methods inherited from class org.jmol.adapter.readers.quantum.MOReader
addCoef, addMOData, checkNboLine, getMOHeader, getNboTypes, readMolecularOrbitals
-
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, 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, 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 Detail
-
loadGeometries
protected boolean loadGeometries
-
loadVibrations
protected boolean loadVibrations
-
vibOnly
protected boolean vibOnly
-
optOnly
protected boolean optOnly
-
doSort
protected boolean doSort
-
orbitalType
protected java.lang.String orbitalType
-
modelAtomCount
protected int modelAtomCount
-
lineBuffer
private javajs.util.Lst<java.lang.String> lineBuffer
-
bsAtomOK
private javajs.util.BS bsAtomOK
-
bsBadIndex
private javajs.util.BS bsBadIndex
-
nSPDF
private int[] nSPDF
-
haveEnergy
private boolean haveEnergy
-
ptLineBuf
private int ptLineBuf
-
bufLen
private int bufLen
-
-
Method Detail
-
initializeReader
protected void initializeReader()
- Overrides:
initializeReaderin classMOReader
-
checkLine
protected boolean checkLine() throws java.lang.Exception- Overrides:
checkLinein classAtomSetCollectionReader- Returns:
- true if need to read new line
- Throws:
java.lang.Exception
-
checkSymmetry
private boolean checkSymmetry() throws java.lang.Exception- Throws:
java.lang.Exception
-
finalizeSubclassReader
public void finalizeSubclassReader() throws java.lang.ExceptionDescription copied from class:AtomSetCollectionReaderoptional reader-specific method run first.- Overrides:
finalizeSubclassReaderin classAtomSetCollectionReader- Throws:
java.lang.Exception
-
readAtoms
private void readAtoms() throws java.lang.Exception- Throws:
java.lang.Exception
-
readSlaterBasis
boolean readSlaterBasis() throws java.lang.Exception- Throws:
java.lang.Exception
-
readGaussianBasis
private boolean readGaussianBasis() throws java.lang.Exception- Throws:
java.lang.Exception
-
readMolecularOrbitals
private boolean readMolecularOrbitals() throws java.lang.Exception- Throws:
java.lang.Exception
-
rd
public java.lang.String rd() throws java.lang.Exception- Overrides:
rdin classAtomSetCollectionReader- Throws:
java.lang.Exception
-
createLineBuffer
private void createLineBuffer() throws java.lang.Exception- Throws:
java.lang.Exception
-
sortMOs
private void sortMOs()
-
getMoTokens
private java.lang.String[] getMoTokens(java.lang.String line) throws java.lang.Exception- Throws:
java.lang.Exception
-
checkOrbitalType
private boolean checkOrbitalType(java.lang.String line)
-
fixOrbitalType
private void fixOrbitalType()
-
readFreqsAndModes
private boolean readFreqsAndModes() throws java.lang.Exception- Throws:
java.lang.Exception
-
readGeometryOptimization
private boolean readGeometryOptimization() throws java.lang.Exception- Throws:
java.lang.Exception
-
skipTo
private void skipTo(java.lang.String key) throws java.lang.Exception- Throws:
java.lang.Exception
-
readAtomSet
private void readAtomSet(java.lang.String atomSetName, boolean isBohr, boolean asClone) throws java.lang.Exception- Throws:
java.lang.Exception
-
-