Immersed boundary method for multiphase transport phenomena