|
|
__init__(self,
resnum,
generation,
pre_frag=None,
is_branching=False,
pre_backbone=[],
template_frag=None,
molnum=None)
PolymerFragment class stores the connectivity, dihedral angle, and
anthoer other information for polymer in-cell grow. |
|
|
|
|
preDeepCopy(self,
next_original_frag,
molnum)
Deep copy the fragment attributes except those linking different
fragments. |
|
|
|
PolymerFragment
|
deepCopy(self,
molnum)
Deep copy the fragment class from the INI fragment. |
|
|
|
|
setFragDihedralPool(self,
dihe_min,
dihe_max,
dihe_num,
dihe_exclude)
Set the dihedral angle pool and rand for each fragment. |
|
|
|
|
markSidegroupFrag(self,
template_polymer)
Mark the side group polymer fragment, if the 3rd atom in the dihedral
angle is in side group (not backbone atom). |
|
|
|
|
resetFragDihedralPool(self)
Reset the dihedral angle pool of all following fragment according to
rand in each fragment. |
|
|
|
iterator to generate PolymerFragment
|
fragments(self,
next_frags)
Yield the first fragment of next_frags and append the children of
that fragment to next_frags for recursion. |
|
|
|
|
adjustAtomIds(self,
pre_atomnum)
Adjust atom ids in PolymerFragment when multipe chains are added into
the cell. |
|
|
|
|
markBranchingFrag(self)
Mark the branching fragments. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|