Nonuniform TFA for periodic masonry walls