Multiscale modelling of granular materials in boundary value problems accounting for mesoscale mechanisms. (June 2021)