A theoretical model for hot plasma flowing to a wall with recycling