Solve BEM problems in a periodic box.