Analysis of the failure modes in masonry arches reinforced with FRP