A fluid model for ion heating due to ionization in a plasma flow