Effect of different frequency functions on ferrofluid FHD flow