Dynamic impact analysis of masonry buildings subjected to flood actions