apply_pbc
compute.apply_pbc(
regions,
maxima,
maxima_radii,
ase_atoms,
wall_thickness=1,
return_conn=False,
minimum_overlap_fraction=0.5,
)Pad a region-label array with periodic boundary images.
It takes a 3D array of regions and returns a 3D array of regions with periodic boundary conditions applied
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| regions | the regions array | required | |
| maxima | the list of maxima | required | |
| maxima_radii | the radius of each region | required | |
| ase_atoms | The atoms object from ASE | required | |
| wall_thickness | The thickness of the wall in Angstroms, defaults to 1 (optional) | 1 |
|
| return_conn | if True, returns a list of lists of connected regions, defaults to False (optional) | False |
|
| minimum_overlap_fraction | This is the minimum fraction of overlap at the wall region between two regions for them to be considered for connected via PBC. Then we check the maxima locations also to make sure, they are not separated by periodic windows. | 0.5 |
Returns
| Name | Type | Description |
|---|---|---|
| a list of connected components. Each connected component is a list of regions a.k.a the PBC group. |