PBCAtomsMixin¶
-
class
sknano.core.atoms.mixins.
PBCAtomsMixin
(*args, xperiodic=False, yperiodic=False, zperiodic=False, **kwargs)[source] [edit on github][source]¶ Bases:
object
Mixin
Atoms
class for PBC.Parameters: yperiodic, zperiodic (xperiodic,) – True
for PBC along the given dimension. Default isFalse
.Attributes
pbc
Return boolean array of periodic boundaries set along x,y,z
axes.xperiodic
Return True
if periodic along thex
axis.yperiodic
Return True
if periodic along they
axis.zperiodic
Return True
if periodic along thez
axis.Methods
set_pbc
(dims)Set periodic boundaries along dims
.unset_pbc
()Turn of PBCs along all dimensions. Attributes Summary
pbc
Return boolean array of periodic boundaries set along x,y,z
axes.xperiodic
Return True
if periodic along thex
axis.yperiodic
Return True
if periodic along they
axis.zperiodic
Return True
if periodic along thez
axis.Methods Summary
set_pbc
(dims)Set periodic boundaries along dims
.unset_pbc
()Turn of PBCs along all dimensions. Attributes Documentation
-
pbc
¶ Return boolean array of periodic boundaries set along
x,y,z
axes.Returns: Returns a bool
ndarray
of thexperiodic
,yperiodic
,zperiodic
bool
attributes.Return type: ndarray
Methods Documentation
-
set_pbc
(dims)[source] [edit on github][source]¶ Set periodic boundaries along
dims
.Parameters: dims ( str
) –
-
unset_pbc
()[source] [edit on github][source]¶ Turn of PBCs along all dimensions.
-