Simulations of free-surface flows with an embedded object by a coupling partitioned approach