A numerical framework for simulating fluid-structure interaction phenomena