Manage the building of a nanoparticle.
|
__init__(self,
supercell,
shape=' cube ' ,
origin=None,
params=None,
overwrite_vertices=[ ] ,
primary_alignment_dict=OrderedDict([('axis', '1'), ('vector', '1.0 0.0 0.0'), ('basis... ,
secondary_alignment_dict=OrderedDict([('axis', '1'), ('vector', '0.0 1.0 0.0'), ('basis... ,
include_axes=False,
term_frag=' hydrogen ' ,
term_bond_length=1.5,
allow_fragments=False,
logger=None,
no_term_faces=None)
Create an instance. |
|
|
|
checkInput(self)
Check user input. |
|
|
|
setMoleculeCompletion(self)
Set whether or not molecules should be completed at the nanoparticle
boundary. |
|
|
bool
|
isInside(self,
aatom)
Return whether or not the given atom is inside the shape. |
|
|
|
checkIntersectingBond(self,
atom1,
atom2)
Check if the bond given by the specified atoms can be intersected by
the shape of nanoparticle. |
|
|
|
partitionAtoms(self)
Return three non-overlapping lists of atom indices, (1) for atoms
inside the shape, (2) for atoms belonging to bonds which intersect
the shape boundary (a (inside, outside) tuple of atom indices for the
intersecting bonds), and (3) for atoms that lie outside of shape. |
|
|
|
removeAndRenumber(self,
to_remove=None,
renumber_map=None)
Remove the specified atoms from the nanoparticle and renumber all
collections of indices or just renumber the collections using the
specified renumber map. |
|
|
|
cutAwayExcess(self)
Remove the unneeded atoms from the crystalline supercell. |
|
|
|
handleOneToMany(self,
inside_index,
outside_indices)
Handle the one to many situation, i.e. |
|
|
list
|
handleManyToOne(self,
inside_indices,
outside_index)
Handle the many to one situation, i.e. |
|
|
|
configureBonds(self)
Configure the nanoparticle bonds that intersect the shape. |
|
|
|
doTermination(self)
Terminate the nanoparticle. |
|
|
|
setNanoparticleProperties(self)
Set nanoparticle properties. |
|
|
|
printParams(self)
Log the parameters. |
|
|
numpy.array
|
|
|
translateToPlane(self)
Translate the shape object so that the reference face is coplanar
with the requested crystal plane. |
|
|
|
overwriteVertices(self)
Overwrite the vertices of the shape object. |
|
|
|
runIt(self,
template_only=False)
Create the nanoparticle. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|