AbstractThis paper introduces an efficient method to automatically generate and mesh a periodic three-dimensional microstructure for matrix-inclusion composites. Such models are of major importance in the field of computational micromechanics for homogenization purposes utilizing unit cell models. The main focus of this contribution is on the creation of cubic representative volume elements (RVEs) featuring a periodic geometry and a periodic mesh topology suitable for the application of periodic boundary conditions in the framework of finite element simulations. Our method systematically combines various meshing tools in an extremely efficient and robust algorithm. The RVE generation itself follows a straightforward random sequential absorption approach resulting in a randomized periodic microstructure. Special emphasis is placed on the discretization procedure to maintain a high quality mesh with as few elements as possible, thus, manageable for computer simulations applicable to high volume concentrations, high number of inclusions and complex inclusion geometries. Examples elucidate the ability of the proposed approach to efficiently generate large RVEs with a high number of anisotropic inclusions incorporating extreme aspect ratios but still maintaining a high quality mesh and a low number of elements.