An effective computational implementation of the no-tension model for masonry structures