Phase field methods, algorithms and simulations on the complex fluid system