Package org.jmol.adapter.readers.quantum
Class MoldenReader
- java.lang.Object
-
- org.jmol.adapter.smarter.AtomSetCollectionReader
-
- org.jmol.adapter.readers.quantum.BasisFunctionReader
-
- org.jmol.adapter.readers.quantum.SlaterReader
-
- org.jmol.adapter.readers.quantum.MopacSlaterReader
-
- org.jmol.adapter.readers.quantum.MoldenReader
-
- All Implemented Interfaces:
javajs.api.GenericLineReader
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 - 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 BSbsAtomOKprivate BSbsBadIndexprivate booleandoSortprivate booleanhaveEnergyprivate booleanloadGeometriesprivate booleanloadVibrationsprivate intmodelAtomCountprivate int[]nSPDFprivate booleanoptOnlyprivate java.lang.StringorbitalTypeprivate booleanvibOnly-
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, orbitals, shells
-
Fields inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addedData, addedDataKey, addVibrations, 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, isSequential, isTrajectory, latticeCells, latticeScaling, line, lstNCS, matUnitCellOrientation, modelNumber, ms, mustFinalizeModelSet, next, out, packingError, prevline, ptLine, ptSupercell, reader, readerName, reverseModels, sgName, stateScriptVersionInt, strSupercell, symmetry, templateAtomCount, thisBiomolecule, trajectorySteps, 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()voidfinalizeSubclassReader()optional reader-specific method run first.private voidfixOrbitalType()private java.lang.String[]getMoTokens(java.lang.String line)protected voidinitializeReader()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
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, discardPreviousAtoms, filterMO, fixSlaterTypes, getDfCoefMaps, getDFMap, getQuantumShellTag, getQuantumShellTagID, getQuantumShellTagIDSpherical, setMO
-
Methods inherited from class org.jmol.adapter.smarter.AtomSetCollectionReader
addAtomXYZSymName, addJmolScript, addPrimitiveLatticeVector, addSites, addSiteScript, appendLoadNote, appendUunitCellInfo, applySymmetryAndSetTrajectory, applySymTrajASCR, checkCurrentLineForScript, checkFilterKey, checkLastModel, checkLineForScript, clearUnitCell, cloneLastAtomSet, discardLinesUntilBlank, discardLinesUntilContains, discardLinesUntilContains2, discardLinesUntilNonBlank, discardLinesUntilStartsWith, doGetModel, doGetVibration, doPreSymmetry, 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
-
loadGeometries
private boolean loadGeometries
-
loadVibrations
private boolean loadVibrations
-
vibOnly
private boolean vibOnly
-
optOnly
private boolean optOnly
-
doSort
private boolean doSort
-
orbitalType
private java.lang.String orbitalType
-
modelAtomCount
private int modelAtomCount
-
bsAtomOK
private BS bsAtomOK
-
bsBadIndex
private BS bsBadIndex
-
nSPDF
private int[] nSPDF
-
haveEnergy
private boolean haveEnergy
-
-
Method Detail
-
initializeReader
protected void initializeReader()
- Overrides:
initializeReaderin classAtomSetCollectionReader
-
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
-
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
-
-