A component-wise formulation for virtual testing of composites