Viscosity in molecular dynamics with periodic boundary conditions.