Résumé : Advanced 3D woven composites have become an enabling technology in many industrial applications due to their proven benefits, particularly the improvement of the out-of-plane mechanical behavior with respect to other reinforcement schemes. The latter property has been shown to be strongly affected by the effects of compaction during manufacturing. The present study proposes an automated framework, based on heuristic procedures, for the generation of representative volume elements (RVEs) of 3D woven composites, allowing to include global and local geometrical features induced by transverse compaction, such as overall thickness reduction, changes in yarn cross-sections and consistent global/local fiber fractions. The methodology is illustrated for three types of reinforcement, namely a plain weave, an angular through thickness interlock and a 3D orthogonal RVE. The resulting geometries generated by the proposed method compare favourably with typical observations from the literature in a quantitative manner. Finally, the proposed framework is integrated with a previously developed meshing strategy to allow damage studies for a selected architecture (plain weave) under torsional loading, presenting a complete computational chain by building cohesive zone finite element models from compacted RVEs. The torque-angle response curves obtained after the damage simulations show a decrease in stiffness and an increase of damage levels with compaction, which is in line with the expectations.