A comparison between the SLaMA method and NLFEA for 2D and 3D analyses of masonry structure