Phase-field-based lattice Boltzmann model for multiphase ferrofluid flows