Periodic Boundary Conditions on Unit Cell

Does anyone know to apply periodic boundary conditions on a unit cell of a repetitive unit cell of a cellular structure?