This paper presents a micromechanical modeling strategy for complex multibody interactions and the associated numerical framework. The strategy rests on a periodic multibody method in the framework of the NonSmooth Contact Dynamics approach of Moreau (1988) extended to classical domain decomposition problems. Many complex interactions can be taken into account: interactions between discrete elements, between discrete or rigid bodies, (quasistatic) contact or impact, friction or adhesion, decohesion (cracking), etc. The associated numerical platform, Xper, is composed of three independent libraries with Object Oriented Programming. The ability of this computational approach is illustrated by two examples of fracture in heterogeneous materials.