Mesoscopic study on historic masonry