CFD simulation of heat transfer in ferrofluids