public class CrystalReader extends AtomSetCollectionReader
Modifier and Type | Field and Description |
---|---|
private int |
atomCount |
private int[] |
atomFrag |
private int |
atomIndexLast |
private javajs.util.V3[] |
directLatticeVectors |
private Double |
energy |
private boolean |
getLastConventional |
private boolean |
haveCharges |
private boolean |
havePrimitiveMapping |
private boolean |
inputOnly |
private boolean |
isLongMode |
private boolean |
isMolecular |
private boolean |
isPolymer |
private boolean |
isPrimitive |
private boolean |
isProperties |
private boolean |
isSlab |
private boolean |
isVersion3 |
private float[] |
nuclearCharges |
private float |
primitiveDensity |
private javajs.util.M3 |
primitiveToCryst |
private int[] |
primitiveToIndex |
private float |
primitiveVolume |
private javajs.util.P3 |
ptOriginShift |
private String |
spaceGroupName |
private javajs.util.List<String> |
vCoords |
private javajs.util.List<String> |
vPrimitiveMapping |
addVibrations, ANGSTROMS_PER_BOHR, applySymmetryToBonds, atomSetCollection, bsFilter, bsModels, calculationType, continuing, desiredModelNumber, desiredVibrationNumber, doApplySymmetry, doc, doCentralize, doCheckUnitCell, doPackUnitCell, doProcessLines, doReadMolecularOrbitals, fileName, fileOffset, filePath, fileScaling, filter, filterHetero, forcePacked, getHeader, haveModel, havePartialChargeFilter, htParams, ignoreFileSpaceGroupName, ignoreFileSymmetryOperators, ignoreFileUnitCell, iHaveFractionalCoordinates, iHaveSymmetryOperators, iHaveUnitCell, isBinary, isSequential, isTrajectory, latticeCells, line, matUnitCellOrientation, modelNumber, ms, mustFinalizeModelSet, next, notionalUnitCell, out, prevline, ptLine, ptSupercell, reader, readerName, reverseModels, spaceGroup, stateScriptVersionInt, strSupercell, symmetry, templateAtomCount, trajectorySteps, useAltNames, vibrationNumber, viewer
Constructor and Description |
---|
CrystalReader() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkLine() |
private void |
createAtomsFromCoordLines()
Now create atoms from the coordinate lines.
|
protected void |
finalizeReader()
optional reader-specific method run first.
|
private static String |
fixAtomName(String s)
MN33 becomes Mn33
|
private float |
fraction(String f) |
private int |
getAtomicNumber(String token) |
private int |
getAtomIndexFromPrimitiveIndex(int iPrim) |
private boolean |
getQuadrupoleTensors() |
protected void |
initializeReader() |
private void |
newAtomSet() |
private boolean |
readAtoms() |
private boolean |
readBornChargeTensors() |
private void |
readCoordLines()
Read coordinates, either input or crystallographic,
just saving their lines in a vector for now.
|
private boolean |
readData(String name,
int nfields)
For spin and magnetic moment data, read the data block
and save it as property_spin or propert_magneticMoment.
|
private void |
readEnergy() |
private boolean |
readFreqFragments()
Select only specific atoms for frequency generation.
|
private boolean |
readFrequencies() |
private boolean |
readGradient()
Read minimization measures
|
private boolean |
readHeader() |
private void |
readLatticeParams(boolean isNewSet)
Read the lattice parameters.
|
private boolean |
readPartialCharges() |
private void |
readPrimitiveMapping() |
private boolean |
readShift()
Read the origin shift
|
private boolean |
readTotalAtomicCharges() |
private void |
readTransformationMatrix()
Read transform matrix primitive to conventional.
|
private boolean |
setDirect() |
private void |
setEnergy() |
private void |
setFreqValue(float freq,
String[] data) |
private boolean |
setPrimitiveMapping()
Create arrays that maps primitive atoms to conventional atoms in a 1:1
fashion.
|
private void |
setPrimitiveVolumeAndDensity()
Read the primitive cell volume and density.
|
addJmolScript, addPrimitiveLatticeVector, addSites, addSiteScript, appendLoadNote, 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, getElementSymbol, getFilter, getFortranFormatLengths, getStrings, getSymmetry, getTokens, getTokensAt, getTokensFloat, getTokensStr, initializeSymmetry, initializeSymmetryOptions, initializeTrajectoryFile, isLastModel, newAtomSet, parseFloat, parseFloatRange, parseFloatStr, parseInt, parseIntAt, parseIntRange, parseIntStr, parseStringInfestedFloatArray, parseToken, parseTokenNext, parseTokenRange, parseTokenStr, parseTrimmedAt, parseTrimmedRange, processBinaryDocument, processDOM, read3Vectors, readDataObject, readLine, readLines, rejectAtomName, RL, set2D, setAtomCoord, setAtomCoordXYZ, setChainID, setElementAndIsotope, setFilter, setFilterAtomTypeStr, setFractionalCoordinates, setIsPDB, setLoadNote, setSpaceGroupName, setSymmetryOperator, setTransform, setU, setUnitCell, setUnitCellItem, setup, setupASCR
private boolean isVersion3
private boolean isPrimitive
private boolean isPolymer
private boolean isSlab
private boolean isMolecular
private boolean haveCharges
private boolean inputOnly
private boolean isLongMode
private boolean getLastConventional
private boolean havePrimitiveMapping
private boolean isProperties
private int atomCount
private int atomIndexLast
private int[] atomFrag
private int[] primitiveToIndex
private float[] nuclearCharges
private javajs.util.List<String> vCoords
private Double energy
private javajs.util.P3 ptOriginShift
private javajs.util.M3 primitiveToCryst
private javajs.util.V3[] directLatticeVectors
private String spaceGroupName
private float primitiveVolume
private float primitiveDensity
private javajs.util.List<String> vPrimitiveMapping
protected void initializeReader() throws Exception
initializeReader
in class AtomSetCollectionReader
Exception
protected boolean checkLine() throws Exception
checkLine
in class AtomSetCollectionReader
Exception
protected void finalizeReader() throws Exception
AtomSetCollectionReader
finalizeReader
in class AtomSetCollectionReader
Exception
private void readTransformationMatrix() throws Exception
Exception
private boolean readShift()
private float fraction(String f)
private void setPrimitiveVolumeAndDensity()
private void readLatticeParams(boolean isNewSet) throws Exception
isNewSet
- Exception
private boolean setPrimitiveMapping() throws Exception
Exception
private static String fixAtomName(String s)
s
- private int getAtomicNumber(String token)
private void readCoordLines() throws Exception
Exception
private void createAtomsFromCoordLines() throws Exception
Exception
private void readEnergy()
private void setEnergy()
private int getAtomIndexFromPrimitiveIndex(int iPrim)
private boolean readFreqFragments() throws Exception
Exception
private void setFreqValue(float freq, String[] data)
private boolean readGradient() throws Exception
Exception
private boolean readData(String name, int nfields) throws Exception
name
- nfields
- Exception