Analysis of Flexible Media Using Immersed Finite Element Method