pbc_wrap_batched¶
- torch_sim.transforms.pbc_wrap_batched(positions, cell, system_idx)[source]¶
Apply periodic boundary conditions to batched systems.
This function handles wrapping positions for multiple atomistic systems (systems) in one operation. It uses the system 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: