Evolution of mesh and boudaries for FSI problems

Hello,

I need to implement a Fluid-Structure Interaction problem, with a fabric structure immersed in a fluid.

The fluid and solid problems would be resolved one after the other at each iteration: at iteration N, we compute the deformation of the structure, then the fluid parameters with the modified boundary.

I am having trouble translating the modification of the boundary caused by the deformation into code. What tool should I use to adapt the mesh and boundary at each iteration ?

If you could direct me to an example (other than the one in the documentation) I would appreciate it immensely.

Right now I am trying to implement it in 2d but I will eventually need to go 3d.

Thank you for your time.