Mechanics of grained or fibrous heterogeneous materials