The fast Fourier transform (FFT) based homogenization method of Moulinec and Suquet has been established as a fast, accurate, robust tool for periodic in solid mechanics. In finite element context, Pahr Zysset have introduced nonperiodic boundary conditions (PMUBC) problems. We show how to implement PMUBC efficiently an FFT-based code using discrete sine cosine transforms. Compared with the dom...