pbc_wrap_batched¶
- torch_sim.transforms.pbc_wrap_batched(positions, cell, batch)[source]¶
Apply periodic boundary conditions to batched systems.
This function handles wrapping positions for multiple atomistic systems (batches) in one operation. It uses the batch indices to determine which atoms belong to which system and applies the appropriate cell vectors.
- Parameters:
- Returns:
- Tensor of wrapped positions in real space with
same shape as input positions.
- Return type: