replicate¶
- mdhelper.algorithm.utility.replicate(cell_dims: ndarray[float], cell_pos: ndarray[float], n_cells: ndarray[int]) ndarray[float] [source]¶
Replicate point(s) in an unit cell along the
-, -, and -directions.- Parameters:
- cell_dimsnumpy.ndarray
Dimensions of the unit cell.
Shape:
.- cell_posnumpy.ndarray
Positions of the
points inside the unit cell.Shape:
.- n_cellsnumpy.ndarray
Number of times to replicate the unit cell in each direction.
Shape:
.
- Returns:
- posnumpy.ndarray
Positions of the original and replicated points.