Heat transfer of oscillating and steady flows in a channel filled with porous media