Condensation in periodic potential