Modeling the growth and dissolution of clots in flowing blood