Main class for generating crystals.
|
|
__init__(self,
asymmetric_unit,
space_group=None,
a_param=None,
b_param=None,
c_param=None,
alpha_param=None,
beta_param=None,
gamma_param=None,
ncella=1,
ncellb=1,
ncellc=1,
origin=[0.0, 0.0, 0.0],
bonding='none',
bond_orders='none',
translate='none',
translate_type='atoms',
keep_edge_atoms=False,
cov_offset=0.45,
intact_molecules=None,
fract_offset=0.0001,
no_pbc_bonding=False,
use_existing_pbc_bonds=False,
logger=None)
Create an instance. |
|
|
|
|
handleSettings(self)
Handle the settings of this crystal build. |
|
|
|
|
handleIntactMoleculesSettings(self)
Handle the settings for intact molecules. |
|
|
|
bool
|
doBonding(self)
Determine if this script should handle the bonding both inside and
between unit cells. |
|
|
|
bool
|
doBondOrders(self)
Determine if this script should handle the assignment of bond orders
both inside and between unit cells. |
|
|
|
bool
|
doTranslation(self)
Determine if a translation to the first unit cell should be
performed. |
|
|
|
|
getLatticeParameters(self)
Get lattice parameters. |
|
|
|
|
checkInputParams(self)
Check input parameters. |
|
|
|
|
updateLatticeProperties(self)
Update the lattice properties for the asymmetric unit structure. |
|
|
|
|
setAsuColor(self)
Set the color scheme to use for the ASU structure. |
|
|
|
mmcrystal handle
|
|
|
|
determineBasisVectors(self)
Determine the lattice vectors in the cartesian basis and the
cartesian vectors in the lattice basis. |
|
|
|
|
|
|
|
labelSymEquivPos(self)
Label the symmetry equivalent positions. |
|
|
|
|
labelAsuAtoms(self,
astructure)
Label the atoms that make up an ASU, i.e. |
|
|
|
|
|
|
|
|
|
|
setStructureProperties(self)
Set some structure properties. |
|
|
|
|
setChorusProperties(self,
astructure,
ncella=1,
ncellb=1,
ncellc=1)
Set the chorus structure properties on the given structure. |
|
|
|
|
printCrystalParams(self)
Print some crystal parameters. |
|
|
|
|
updateFractionals(self,
next_cell,
indexa,
indexb,
indexc)
Update the fractional coordinates of the next unit cell. |
|
|
|
|
setAsuAtomsFalse(self,
astructure)
Set the ASU atom labels to false for this structure. |
|
|
|
|
|
|
list
|
getIntactExtents(self)
Return the extents needed to un-PBC-ify all disconnected molecules in
the unit cell, i.e. |
|
|
|
list
|
getBaseExtents(self)
Return the base extents, these plus those extents needed for intact
molecules specify the size of the super cell to be built. |
|
|
|
list
|
getFinalExtents(self,
extra_a,
extra_b,
extra_c)
Return the final extents to use for building the super cell from
which to collect intact molecules. |
|
|
|
|
disableConnectabilities(self,
pbc_bonds)
Disable the connectabilities of all PBC bonds that belong to infinite
molecules. |
|
|
|
|
trimCell(self,
cell,
to_keep)
Delete all atoms in the given cell except those in the provided list. |
|
|
|
|
getIntactMolecules(self,
extra_a,
extra_b,
extra_c)
Collect intact molecules from the super cell. |
|
|
|
|
|
|
|
uniquifyMolecules(self)
Uniquify the molecules. |
|
|
|
|
getPBCBonds(self,
cell)
Return a PBCBonds object for the given cell. |
|
|
|
|
extendUniqueIntactMolecules(self)
Extend the unique intact molecules. |
|
|
|
|
buildCrystalSuperCellWithIntactMolecules(self)
Build a crystal super cell while keeping intact molecules at the unit
cell boundaries. |
|
|
|
|
orchestrate(self)
Orchestrate the construction of the crystal. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
|
SPACE_GROUP_KEY = 's_pdb_PDB_CRYST1_Space_Group'
|
|
|
A_KEY = 'r_pdb_PDB_CRYST1_a'
|
|
|
B_KEY = 'r_pdb_PDB_CRYST1_b'
|
|
|
C_KEY = 'r_pdb_PDB_CRYST1_c'
|
|
|
ALPHA_KEY = 'r_pdb_PDB_CRYST1_alpha'
|
|
|
BETA_KEY = 'r_pdb_PDB_CRYST1_beta'
|
|
|
GAMMA_KEY = 'r_pdb_PDB_CRYST1_gamma'
|
|
|
SPACE_GROUP_ID_KEY = 'i_matsci_Space_Group_ID'
|
|
|
CHORUS_BOX_BASE_KEY = 'r_chorus_box_'
|
|
|
CHORUS_BOX_AX_KEY = 'r_chorus_box_ax'
|
|
|
CHORUS_BOX_AY_KEY = 'r_chorus_box_ay'
|
|
|
CHORUS_BOX_AZ_KEY = 'r_chorus_box_az'
|
|
|
CHORUS_BOX_BX_KEY = 'r_chorus_box_bx'
|
|
|
CHORUS_BOX_BY_KEY = 'r_chorus_box_by'
|
|
|
CHORUS_BOX_BZ_KEY = 'r_chorus_box_bz'
|
|
|
CHORUS_BOX_CX_KEY = 'r_chorus_box_cx'
|
|
|
CHORUS_BOX_CY_KEY = 'r_chorus_box_cy'
|
|
|
CHORUS_BOX_CZ_KEY = 'r_chorus_box_cz'
|
|
|
CHORUS_BOX_A_KEYS = ['r_chorus_box_ax', 'r_chorus_box_ay', 'r_...
|
|
|
CHORUS_BOX_B_KEYS = ['r_chorus_box_bx', 'r_chorus_box_by', 'r_...
|
|
|
CHORUS_BOX_C_KEYS = ['r_chorus_box_cx', 'r_chorus_box_cy', 'r_...
|
|
|
NUM_DECIMAL_COORDS = 4
|
|
|
MSGWIDTH = 80
|
|
|
GENERAL_VEC_1 = matrix([[ 1...
|
|
|
GENERAL_VEC_2 = matrix([[ 0...
|
|
|
GENERAL_VEC_3 = matrix([[ 0...
|
|
|
F1F2F3_FORMAT = '(%.4f, %.4f, %.4f)'
|
|
|
F1F2F3_KEY = 's_matsci_f1f2f3'
|
|
|
F1_KEY = 'r_matsci_f1'
|
|
|
F2_KEY = 'r_matsci_f2'
|
|
|
F3_KEY = 'r_matsci_f3'
|
|
|
FRACT_KEYS = ['r_matsci_f1', 'r_matsci_f2', 'r_matsci_f3']
|
|
|
SYMMETRY_LABEL_KEY = 'i_matsci_Symmetry_Label'
|
|
|
ASU_LABEL_KEY = 'b_matsci_ASU_Atom'
|
|
|
CM_TO_ANGSTROM = 100000000.0
|
|
|
UNIT_CELL_FORMULA_KEY = 's_m_Unit_Cell_Formula'
|
|
|
UNIT_CELL_VOLUME_KEY = 'r_m_Unit_Cell_Volume/Ang.^3'
|
|
|
UNIT_CELL_DENSITY_KEY = 'r_m_Unit_Cell_Density/g/cm^3'
|