A coupled transport-reaction model for simulating autogenous self-healing in cementitious materials. Part I: Theory