Spaciotemporal optimization of mesh moving techniques for fluid-structure interactions