A numerical recipe for modelling hydration and heat flow in hardening concrete