1 Introduction

Concrete is by far the most widely used construction material worldwide (Meyer 2005) probably for the concept of eternity that has always been associated with it.

Instead, when exposed to its intended service environment, concrete is vulnerable to weathering action, chemical attack, abrasion and other process of deterioration influencing its original form, quality and serviceability.

Alkali-aggregate reaction, sulfate attack, steel corrosion and freeze-thaw cycles are among the major processes harming concrete strength. In fact, concrete has a porous structure and its durability is mainly determined by the ability to resist the penetration of aggressive substances. In particular, the carbon dioxide in atmosphere is responsible for one of the most important degradation phenomena: concrete carbonation. The environmental changes of recent decades are leading to a progressive increase of the carbon dioxide concentration in atmosphere. It results in a more and more aggressive environment for both human and building structures.

Concrete carbonation is determined by a series of chemical reactions that consume calcium hydroxide (Ca(OH)\(_2\)) and form calcium carbonate (CaCO\(_3\)). The reaction is fueled by carbon dioxide (CO\(_2\)), transported by water through the porous medium. It is well known that carbonation weakens buildings and causes serious damages to reinforced concrete. In fact, steel bars contained in the structures are protected from corrosion by a thin film of oxide. Such a layer is formed by the basic environment of the concrete, which has a pH-value of at least 13. In a carbonated zone, however, the overall environment becomes acid with the pH-value falling down to 9. The acid surrounding destroys the protective layer and corrosion of steel bars begins (Pedeferri 2010).

Carbonation has attracted research interests for several reasons. First of all, the structural issues already mentioned: many buildings, or bridges are made of reinforced concrete and knowledge about carbonation can help mitigating damages. Another factor is the complexity of the process that is still not completely understood: this requires a multidisciplinary approach at the intersection of chemistry, engineering, and mathematics. Finally, several historical buildings are made of concrete: mitigation of carbonation can help safeguards Cultural Heritage sites. Some examples of literature addressing with different mathematical models the mechanism of carbonation are (Ahsraf 2016; Chapwanya et al. 2009; Chen et al. 2019; Freddi and Mingazzi 2021; Kashef-Haghighi et al. 2015; Peter et al. 2008; Torgal et al. 2012; Radu et al. 2013; Mitchell et al. 2010). In the recent paper published by some of the authors, i.e. Bretti et al. (2022), a mathematical model formulated as a moving boundary problem was introduced. In particular, some free boundary problems describing the evolution of calcium carbonate stones under the attack of CO\(_2 \) dispersed in the atmosphere were introduced, taking into account both the shrinkage of concrete and the influence of humidity on the carbonation process.

The present work, instead, is not focused on the shrinkage phenomenon affecting concrete, but on the description of the porosity variation occurring during the carbonation process as the result of several intermediate chemical reactions involving the interplay of carbon dioxide with the water present into the pores.

The whole carbonation process is caused by diffusion/transport mechanism (that regulate the movement of carbon dioxide and water inside the porous material) and it can be stated by the following chemical equation

$$\begin{aligned} \mathrm{Ca(OH)}_{2(\mathrm{s})}+\mathrm{CO}_{2(\mathrm{g})}\longrightarrow \mathrm{CaCO}_{3(\mathrm{s})}+\mathrm{H}_2\mathrm{O}_{(\mathrm{l})} \end{aligned}$$

i.e. the gaseous carbon dioxide present in the atmosphere reacts with calcium hydroxide of concrete forming calcium carbonate and water.

The reaction starts from the external surface of the concrete element in the presence of a film of water to gradually penetrate the structure through the pore network characterizing the material. This reaction is the result of a series of equilibria that are established inside the pores of the cement matrix, where an aqueous solution is present (Coppola 2007).

However, such a reaction is the result of a series of intermediate reactions. We can subdivide such reactions in the following successive steps:

  1. (1)

    Gaseous CO\(_2\) dissolves in the aqueous pores generating carbonic acid (H\(_2\)CO\(_{3(aq)}\));

  2. (2)

    Carbonic acid realizes two successive dissociations ending with carbonate (CO\(_3^{2-}\)) and two hydrogen ions (2H\(^+\)); indeed, in general a Portland Cement I (object of the model) has a pH = 12.5\(-\)13.8 depending on the composition (Plusquellec et al. 2017), so we are in the conditions of pH>10;

  3. (3)

    Calcium hydroxide is dissociated in the aqueous solution. Dissociation results in two products:

    1. (a)

      Calcium ion (Ca\(^{2+}\)), that bonds with carbonate to form calcium carbonate,

    2. (b)

      Hydroxide (2OH\(^{2-}\)), that with the two ions of hydrogen forms two molecules of water.

The above processes describe the carbonation reactions. However, the newly formed calcium carbonate might not be stable. Thus, a new step shall be added:

  1. (4)

    CaCO\(_3\) disassociate itself into a calcium ion and into carbonate.

To our knowledge, this last step has never been considered by researchers that in general focuses on the formation of CaCO\(_3\) only.

Calcium carbonate is not very soluble in pure water. Although it is possible to estimate a solubility value of about 16 mg/l, it has to be considered that in presence of acidified water, it tends to dissolve and dissociate. In fact, at the normal partial atmospheric pressure of CO\(_2\), the solubility of CaCO\(_3\) is quite high, since is about three times higher than its solubility in pure water, see Ogino et al. (1987). When the partial pressure of environmental CO\(_2\) increases, as occurs for example in highly urbanized, industrial environments and in the vicinity of poorly ventilated surfaces, the pH of the solution drops and its solubility increases, for this reason this equilibrium must be considered in the global process (Coto et al. 2012; Mara 2019).

Therefore, this phenomenon might have an important effect on the deterioration of both common and hystorical buildings. A careful evaluation of this step by combining it with the carbonation process is particularly needed.

Thus, as can be seen, the general carbonation reaction of concrete is the result of a series of intermediate equilibria. In the model that will be described, the global process is considered through three main reactions.

1.1 Carbonic acid formation and rapid dissociation

$$\begin{aligned}&\mathrm{CO}_{2(\mathrm{aq})} + \mathrm{H}_2\mathrm{O}_{\mathrm{(l)}} \rightarrow \mathrm{H}_2\mathrm{CO}_{3(\mathrm{aq})} \end{aligned}$$
(1)
$$\begin{aligned}&\mathrm{H}_2\mathrm{CO}_{3(\mathrm{aq})}+\mathrm{H}_2\mathrm{O}_{(\mathrm{l})} \rightarrow \mathrm{HCO}^-_{3(\mathrm{aq})} + \mathrm{H}_3\mathrm{O}^+_{(\mathrm{aq})} \end{aligned}$$
(2)
$$\begin{aligned}&\mathrm{HCO}^-_{3(\mathrm{aq})} +\mathrm{H}_2\mathrm{O}_{(\mathrm{l})}\rightarrow \mathrm{CO}^{2-}_{3(\mathrm{aq})} + \mathrm{H}3\mathrm{O}^+_{(\mathrm{aq})}. \end{aligned}$$
(3)

The two dissociation reactions of carbonic acid are extremely fast, while the hydration reaction of CO\(_2\) is slow, so it is this latter reaction that controls step 1 of the process. As a result the CO\(^{2-}_3\) ion can be directly considered as the final product of the three equilibria and the slow kinetics of carbonic acid formation.

1.2 Formation of calcium carbonate

Strictly, it should consider first the dissociation reaction of calcium hydroxide and then the subsequent equilibria that lead to the formation of CaCO\(_3\):

$$\begin{aligned} \mathrm{Ca(OH)}_{2(\mathrm{s})}\rightarrow \mathrm{Ca}^{2+} _{(\mathrm{aq})} + 2\mathrm{OH}]^-_{(\mathrm{aq})} . \end{aligned}$$
(4)

Nevertheless, considering that the previous reaction is nearly instantaneous and taking into account that the diffusion coefficient of calcium hydroxide is very low, the concentration of the calcium ions in solution can be directly considered. From the reaction stoichiometry \([\mathrm{Ca(OH)}_2] = [\mathrm{Ca}^{2+}]\), we can write the reaction that leads to the formation of calcium carbonate in the following way:

$$\begin{aligned} \mathrm{Ca(OH)}_{2 (\mathrm{s})} + \mathrm{CO}^{2-}_{3 (\mathrm{aq})} + 2\mathrm{H}_3 \mathrm{O}^+_{(\mathrm{aq})} \rightarrow \mathrm{CaCO}_{3 (s)} + 4\mathrm{H}_2\mathrm{O}_{(\mathrm{l})}. \end{aligned}$$
(5)

The initial conditions—that will be defined later—will consider the concentration of the calcium ion in solution.

1.3 Dissolution of the calcium carbonate in the aqueous phase

With the aim of a better understanding of the microstructural changes in the material due to carbonation, after the formation of calcium carbonate, the following dissociation equilibrium is finally considered:

$$\begin{aligned} {\mathrm{CaCO}_{3 (\mathrm{s})} + \mathrm{H}_3\mathrm{O}^+_{(\mathrm{aq})} \rightleftarrows \mathrm{Ca}^{2+}_{(\mathrm{aq})} + \mathrm{HCO}^{-}_{3(\mathrm{aq})} + \mathrm{H}_2 \mathrm{O}_{(\mathrm{l})}}. \end{aligned}$$
(6)

Summing up, in our study, we are going to consider the following chemical reactions:

$$\begin{aligned}&\mathrm{CO}_2 + \mathrm{H}_2\mathrm{O} \rightarrow \mathrm{H}_2\mathrm{CO}_3 \end{aligned}$$
(7)
$$\begin{aligned}&\mathrm{H}_2\mathrm{CO}_3 \rightarrow \mathrm{HCO}_3^-+ \mathrm{H}_3\mathrm{O}^+ \rightarrow \mathrm{CO}_3^{2-}+2 \mathrm{H}_3\mathrm{O}^+ \end{aligned}$$
(8)
$$\begin{aligned}&\mathrm{Ca(OH)}_{2} + \mathrm{CO}_{3}^{2-} + 2 \mathrm{H}_3\mathrm{O}^+ \rightarrow \mathrm{CaCO}_{3} + 4 \mathrm{H}_2\mathrm{O} \end{aligned}$$
(9)
$$\begin{aligned}&{\mathrm{CaCO}_3 + \mathrm{H}_3\mathrm{O}^+ \rightarrow \mathrm{Ca}^{2+} + \mathrm{HCO}_3^{-} + \mathrm{H}_2 \mathrm{O}}. \end{aligned}$$
(10)

Due to the multiplicity of phenomena—i.e. transport, diffusion and chemical reactions and the great variability of concrete in terms of composition and microstructure, the construction of reliable forecast models is complex. In addition, the carbonation process is known to depend on several parameters. Among the different parameters, we can mention: the water/cement ratio, the carbon dioxide concentration in the environment, the ambient moisture. While the first is a structural property of concrete, the other two depends on the environmental conditions and in general cannot be controlled (Pedeferri 2010).

The carbonation mechanism is a rather slow process in ambient conditions. In order to speed up experimental settings, several authors set cement specimen in accelerated conditions, i.e., they increase the concentration of carbon dioxide in a laboratory room above the natural exposure values. A higher concentration of carbon dioxide in the atmosphere increases the internal-external concentration gradient, consequently increasing the diffusion speed towards the cement matrix and therefore the possibility of reacting with the concrete (Pu et al. 2012). To give some numbers, in a natural environment, carbon dioxide concentration varies in the range [0.03–1%]. It has been shown that for 20% carbon dioxide concentration, the carbonation front can reach in one week the same depth reached by the natural carbonation front in one year. In general, numerous studies agree that for CO\(_2\) concentrations as high as 3.5%, accelerated carbonation is comparable to natural carbonation (Auroy et al. 2018). Accelerated carbonation was not always found to be representative of natural carbonation, especially for the microstructural changes of the material. It is recommended that a 20% CO\(_2\) limit is not exceeded to allow comparison with natural carbonation (Anstice et al. 2005; Groves et al. 1990; Leemann and Moro 2017).

Another manageable parameter to accelerate carbonation is humidity. Reliable results can be obtained exposing samples to relative humidity (RH) ranging from 50 to 70%, values for which the carbonation rate was found to be maximal. It represents a compromise between the disadvantaged transport of CO\(_2\) in the aqueous phase and the reaction that occurs only in the presence of water (Galan et al. 2013). Temperature favors the diffusion of CO\(_2\) towards the concrete, up to 60 \(^\circ \) C the absorption of carbon dioxide increases with the temperature (Pu et al. 2012; Sun 2011).

Carbonation generates important changes in concrete microstructure, a consequence of the chain reactions that takes place. As mentioned, the most important and representative parameter of these changes is the study of the porosity of the material. The dissolution of calcium hydroxide occurs almost instantaneously, the porosity that is formed as a result of this reaction is immediately occupied by the precipitation of calcium carbonate, a compound characterized by an approximately 11.7% greater volume. Following the formation of CaCO\(_3\), the porosity of the material is reduced (Ishida and Li 2008).

Considering the effect of carbon dioxide on the solubility of the formed CaCO\(_3\), the calcium carbonate in turn tends to dissociate in water (Coto et al. 2012), the porosity will consequently increase over time. Therefore, stop modeling at the decrease in porosity generated by the formation of CaCO\(_3\) is misleading for final data interpretation. According to the authors it is mandatory to consider the reaction (4) and to monitor the system evolution over time. Only in this way it will be possible to have an in-depth description of the degradation phenomenon of the material. The goal of this work is to provide a more accurate mathematical forecasting model that considers simultaneously the transport and diffusion phenomena, the totality of the chemical reactions of the process, and the evolution over time of cement that has undergone carbonation. The dissolution reaction of the CaCO\(_3\) formed is here considered and it results in a change in porosity not foreseen by classic models.

2 Materials and methods

Literature provides many experiments for the evaluation of the effects of carbonation on cement materials. As mentioned, the phenomenon in natural conditions is very slow, that is the reason why most of the experiments are carried out in conditions of accelerated carbonation. Typically 2–10 cm in size concrete samples are selected. After casting, test specimens are cured for 28 days, in order to allow the concrete to reach the appropriate resistance. Two ends of each cylinder are coated with epoxy resin or paraffin wax to ensure that carbon dioxide could diffuse only into the specimens in a two-dimensional mode. Once selected the test conditions (i.e. CO\(_2\) concentration, temperature, humidity and time), the samples are transferred to a sealed chamber and subjected to carbonation (Chang and Chen 2006).

At the end of the test, the specimens are splitted, the freshly split surface is cleaned and sprayed with a phenolphthalein pH indicator. This indicator turns color depending of pH concrete. In the non-carbonated part, where the concrete is still highly alkaline, a purple-red colour is obtained. In the carbonated part of the specimen where the pH is reduced, no coloration occurred (Villain and Thiery 2006). From this simple test, the carbonation depth can be derived, as shown in Fig. 1, where a picture of a laboratory test on a concrete sample reacting to the phenolphthalein is represented.

Fig. 1
figure 1

Carbonation depth obtained from the phenolphthalein spray test (mm). As can be observed, the sample is coloured pink only in the portion not yet carbonated (right side)

Other more in-depth analysis can be performed to quantify the effect of carbonation on the material. SEM microscope observations and X-rays analyses are generally preferred to identify the presence of CaCO\(_3\) formed and residual Ca(OH)\(_2\) not yet reacted with CO\(_2\). From the comparison of the sample before and after carbonation, it is easy to see the transition from a structure rich in calcium hydroxide and a structure mainly composed of CaCO\(_3\), which clearly indicates the reaction with CO\(_2\) has taken place (Thiery et al. 2007; Villain et al. 2007).

To evaluate the effect of carbonation on porosity, fundamental parameter for process control, gammadensimetry and mercury intrusion analysis can be chosen. To test the mathematical model we referred to a carbonation experiment (Pan et al. 2018) performed on a type Portland cement specimen, with the characteristics detailed in Table 1:

Table 1 Material characteristics of the specimen considered in our study. Values taken from Pan et al. (2018)

As mentioned, the specimens are first polymerized, in this case at \(20\,^\circ \)C and 70% relative humidity for 24 h and then turned out and placed in a seasoning environment at 20 ± \(3\,^\circ \)C and 90% RH for 28 days. Subsequently, samples are placed in a drying oven at \(50\,^\circ \)C for 48 h. The carbonation test is carried out at T = \(20\,^\circ \)C and 70% humidity for CO\(_2\) concentrations 0.03, 3 and 20%.

3 The mathematical model

The process of carbonation takes place into water that penetrates the porous matrix transporting the aggressive substances (i.e. carbon dioxide and carbonic acid). Thus, we have to consider the filtration of water and the transport and diffusion phenomena of such substances. Moreover, we have to take into account the chemical reactions involved.

3.1 Water movement

First of all we consider the movement of water into the porous matrix, i.e.

$$\begin{aligned} \frac{\partial w}{\partial t}=-\frac{\partial }{\partial z} F(w)+r_w , \end{aligned}$$

where w is the moisture content and \(r_w\) a chemical reaction term that will be specified later on.

F is the water flux into the concrete and is given by the Darcy’s law

$$\begin{aligned} F(w)=-D(w, \varepsilon )\frac{\partial w}{\partial z}, \end{aligned}$$

with \(D(w,\varepsilon )\) is water diffusivity and depends on both the moisture content and porosity (in general, we have that \(0\le w\le \varepsilon \)). A possible choice for diffusivity is Chapwanya et al. (2009):

$$\begin{aligned} D(w,\varepsilon )=\left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}}D^*(w) \end{aligned}$$

with \(w_{min}\) is the residual water content, \(\varepsilon _0\) is the initial porosity and \(D^*(w)\) the following function:

$$\begin{aligned} D^*(w)=Ae^{Bw} \end{aligned}$$

with A and B shape parameters for water diffusivity, suitable constants taken from Chapwanya et al. (2009) and reported in Table 2.

3.2 Carbon dioxide

We describe the aqueous phase of carbon dioxide. In this setting, and after being dissolved in water, \(CO_2\) is subject to three processes: water transport through the porous matrix; aqueous diffusion according to Fick’s law; chemical reactions. All of the above processes are included in the following equation

$$\begin{aligned} \frac{\partial (wa)}{\partial t}=\underbrace{\frac{\partial }{\partial z}\left( D(w,\varepsilon ) a \frac{\partial w}{\partial z}\right) }_{\text {transport}}+\underbrace{\frac{\partial }{\partial z}\left( D_a w\frac{\partial a}{\partial z}\right) }_{\text {diffusion}}+\underbrace{r_a}_{\text {reaction}} \end{aligned}$$

where a is the concentration of carbon dioxide and \(D_a\) is its diffusivity in water.

3.3 Carbonate

We then proceed to describe carbonate evolution in water. To be precise, we should have described the evolution of carbonic acid. However, since carbonic acid dissolves very quickly, we can model directly the transport, diffusion, and chemical processes involving carbonate. As it is the case of carbon dioxide, carbonate is subject of transport and diffusion in water. Moreover, it is involved in two chemical reactions: the first one between water and carbon dioxide forming carbonate; the second one between carbonate and calcium hydroxide. All the above processes are summed up into the following equation

$$\begin{aligned} \frac{\partial (wb)}{\partial t}=\frac{\partial }{\partial z}\left( D(w,\varepsilon ) b \frac{\partial w}{\partial z}\right) +\frac{\partial }{\partial z}\left( D_b w\frac{\partial b}{\partial z}\right) +r_b. \end{aligned}$$

3.4 Calcium hydroxide

Calcium hydroxide consumes when in contact with carbonate. In what follows, we assume that calcium hydroxide is subjected only to this chemical reaction and is not transported nor it diffuses in water. Thus, it evolves according to the following equation:

$$\begin{aligned} \frac{\partial i}{\partial t}=r_i. \end{aligned}$$

3.5 Calcium carbonate

Calcium carbonate is the result of two reactions: it is produced by the reaction between calcium hydroxide and carbonate; it dissolves by the production of carbonate and calcium ions.

$$\begin{aligned} \frac{\partial c}{\partial t}=r_c. \end{aligned}$$

3.6 Calcium ion

Finally, calcium ion is produced by the dissolution of calcium carbonate

$$\begin{aligned} \frac{\partial e}{\partial t}=r_e. \end{aligned}$$

3.7 Chemical reaction terms

Using the procedure outlined in Alì et al. (2007), we define the reaction terms as follows

$$\begin{aligned} r_w= & {} m_w(\omega _{ib}-\omega _{a}), \end{aligned}$$
(11)
$$\begin{aligned} r_a= & {} -m_a\omega _{a}, \end{aligned}$$
(12)
$$\begin{aligned} r_b= & {} {-m_b(\omega _{ib}-\omega _{a})}, \end{aligned}$$
(13)
$$\begin{aligned} r_i= & {} -m_i\omega _{ib}, \end{aligned}$$
(14)
$$\begin{aligned} r_c= & {} m_c(\omega _{ib}-\omega _{c}), \end{aligned}$$
(15)
$$\begin{aligned} r_e= & {} m_e\omega _{c}, \end{aligned}$$
(16)

where the terms \(m_k,\;k=w,a,b,i,c,e\) indicates the molar masses of the respective substances, while the \(\omega \)’s describe the single chemical reactions and are defined as follows:

$$\begin{aligned} \omega _{a}= & {} \nu \frac{a}{m_a}, \\ \omega _{ib}= & {} \mu \left( \frac{i}{m_i}\cdot \frac{b}{m_b}\right) , \\ \omega _{c}= & {} \delta \frac{c}{m_c}, \end{aligned}$$

with \(\nu \), \(\mu \) e \(\delta \) the reaction rates.

3.8 Porosity

One of the main consequences of carbonation is the change of porosity (\(\varepsilon \)). In particular, porosity will change due to the following processes:

  1. (1)

    Calcium hydroxide dissolution with the resulting formation of calcium carbonate,

  2. (2)

    Dissolution of calcium carbonate.

The first process will lower the value of the porosity, while the second will increase it. Thus, porosity will depends on the concentration of calcium hydroxide, calcium carbonate, and calcium ion, i.e. \(\varepsilon =\varepsilon (i,c,e)\). However, we can represent porosity as function of only calcium hydroxide and calcium ion. In fact, we have that:

$$\begin{aligned} \frac{\partial }{\partial t}\left( \frac{i}{m_i}+\frac{c}{m_c}+\frac{e}{m_e}\right) =0, \end{aligned}$$

i.e.

$$\begin{aligned} \frac{i}{m_i}+\frac{c}{m_c}+\frac{e}{m_e}=\frac{i_0}{m_i}+\frac{c_0}{m_c}+\frac{e_0}{m_e}, \end{aligned}$$

where \(i_0\), \(c_0\) and \(e_0\) are the initial concentrations of calcium hydroxide, calcium carbonate, and calcium ion, respectively. Then, we can express function c in terms of i and e. Following the same arguments of Alì et al. (2007), we define the porosity as

$$\begin{aligned} \varepsilon =\varepsilon _1+(\varepsilon _0-\varepsilon _1)\frac{i}{i_0}+\varepsilon _2\left( \frac{e}{e_0}-1\right) , \end{aligned}$$
(17)

where:

\(\varepsilon _0\):

is the initial porosity,

\(\varepsilon _1\):

is the porosity when calcium hydroxide is completely consumed,

\(\varepsilon _2\):

is the variation of porosity due to dissociation of calcium carbonate.

The values of the above parameters that we chose for our simulations are listed in Table (2); here we report some comments on how we chose those values.

In general, the porosity of concrete is a datum; in our case we took a value \(\varepsilon _{0}=0.2\) as reported in Papadakis et al. (1989).

The value of \(\varepsilon _1\) has been chosen from reference (Pan et al. 2018, Table 7), where values of carbonated stones are listed for several carbon dioxide concentrations; in particular, we choose the value between the resulting porosities of stones exposed at \(3\%\) and \(20\%\) \(CO_2\) concentrations.

Regarding \(\varepsilon _2\), its choice is much more involved. In fact, we could not find any reference in the literature permitting us to estimate a credible value for such parameter, thus we apply two different approaches to find it. Since we followed the methods in Alì et al. (2007), we first use the theoretical approach given by the following expression:

$$\begin{aligned} \varepsilon _2=\frac{V_c}{m_e}e_0, \end{aligned}$$

with \(V_c\) the molar volume of calcium carbonate, while the other constants have been already defined above. Thus, we can determine the value of \(\varepsilon _2\) as \(8.2\cdot 10^{-3}\).

On the other hand, we can also proceed as follows. After a lot of time, we can imagine that both carbon hydroxide and calcium carbonate will be completely consumed by the described chemical reactions. Thus, as t goes to infinity, we have the following expression for calcium ion:

$$\begin{aligned} e_\infty =e_0+m_e\left( \frac{i_0}{m_i}+\frac{c_0}{m_c}\right) , \end{aligned}$$

while for porosity we obtain:

$$\begin{aligned} \varepsilon =\varepsilon _1+\varepsilon _2\left( \frac{e_\infty }{e_0}-1\right) =\varepsilon _1+\varepsilon _2\frac{m_e}{e_0}\left( \frac{i_0}{m_i}+\frac{c_0}{m_c}\right) . \end{aligned}$$

If we also assume that for long time the porosity will increase to its maximum value, i.e. \(\varepsilon =1\), by using the values in Table 2 we can estimate \(\varepsilon _2\) as:

$$\begin{aligned} \varepsilon _2=\frac{1-\varepsilon _1}{\frac{i_0}{m_i}+\frac{c_0}{m_c}}\frac{e_0}{m_e}=0.29. \end{aligned}$$

In the end, we determined a range of values for \(\varepsilon _2\), that is

$$\begin{aligned} \varepsilon _2\in [8.2\cdot 10^{-3},2.9\cdot 10^{-1}]. \end{aligned}$$

However, the upper bound on such an estimate is quite large, since it is difficult that porosity will attain its maximum value.

3.9 The complete model

Summing up, the complete model reads as:

$$\begin{aligned} \frac{\partial w}{\partial t}= & {} \frac{\partial }{\partial z}\left( \left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}}D^*(w) \frac{\partial w}{\partial z}\right) +r_w \end{aligned}$$
(18)
$$\begin{aligned} \frac{\partial (wa)}{\partial t}= & {} \frac{\partial }{\partial z}\left( a \left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}}D^*(w) \frac{\partial w}{\partial z}\right) +\frac{\partial }{\partial z}\left( D_a w\frac{\partial a}{\partial z}\right) +r_a \end{aligned}$$
(19)
$$\begin{aligned} \frac{\partial (wb)}{\partial t}= & {} \frac{\partial }{\partial z}\left( b\left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}}D^*(w) \frac{\partial w}{\partial z}\right) +\frac{\partial }{\partial z}\left( D_b w\frac{\partial b}{\partial z}\right) +r_b \end{aligned}$$
(20)
$$\begin{aligned} \frac{\partial i}{\partial t}= & {} r_i \end{aligned}$$
(21)
$$\begin{aligned} \frac{\partial e}{\partial t}= & {} r_e \end{aligned}$$
(22)
$$\begin{aligned} \frac{c}{m_c}= & {} \frac{i_0}{m_i}+\frac{c_0}{m_c}+\frac{e_0}{m_e}-\frac{i}{m_i}-\frac{e}{m_e} \end{aligned}$$
(23)
$$\begin{aligned} \varepsilon= & {} \varepsilon _1+(\varepsilon _0-\varepsilon _1)\frac{i}{i_0}+\varepsilon _2\left( \frac{e}{e_0}-1\right) . \end{aligned}$$
(24)

3.10 Initial and boundary conditions

To complete the mathematical model, we need to impose suitable initial and boundary conditions for the unknown functions. In what follows we consider a concrete specimen in the domain [0, L], with \(L>0\). The boundary \(z=0\) identifies the surface in contact with the ambient air; the porous medium exchanges humidity, carbon dioxide, and carbonate with the environment through this boundary.

First of all, we do not need to define boundary conditions for the variables i, c, and e, since these are solutions of ODEs. The spatial evolution of calcium hydroxide, calcium carbonate, and calcium ion depends on the spatial evolution of the other variables. Concerning the other unknowns, we impose a zero flux condition at the right boundary \(z=L\), i.e.

$$\begin{aligned} \frac{\partial f}{\partial z}=0\;\text { for }f=w,\,a,\,b. \end{aligned}$$

Concerning the surface in contact with ambient air, we impose a Dirichlet condition for water, i.e.

$$\begin{aligned} w(0,t)\equiv \bar{w} \end{aligned}$$

where the constant \(\bar{w}\) is the value of the environmental moisture content computed as \(\bar{w}= SVD(T)*RH\), where SVD is the saturated vapor density in [\(g/cm^3\)] computed as in Bretti et al. (2022):

$$\begin{aligned} SVD(T) = 10^{-6} \times (5.018 + 0.32321 T + 8.1847\times 10^{-3} T^2 + 3.1243 \times 10^{-4} T^3), \end{aligned}$$
(25)

for a relative humidity of \(RH=80\%\) and temperature \(T=25\,^{\circ }C\).

Then we impose flux condition at the left boundary for carbon dioxide, i.e.

$$\begin{aligned} \frac{\partial a}{\partial z}(0,t)=-K_a(a(0,t)-\bar{a}), \end{aligned}$$

with \(K_a\) an unknown constant describing the penetration rate of carbon dioxide that will be determined by calibration and \(\bar{a}\) the value of external carbon dioxide concentration, meaning that the flux of carbon dioxide depends on the difference between internal and external carbon dioxide concentration. Moreover, we assume null-flux condition at the left boundary for carbonate:

$$\begin{aligned} \frac{\partial b}{\partial z}(0,t)= 0. \end{aligned}$$

The mathematical model will describe the evolution of the carbonation process in the time interval [0, T], with \(T>0\). For each of the functions we impose suitable initial conditions of the form

$$\begin{aligned} f(z,0)\equiv f_0\;\text { for }f=w,\,a,\,b,\,c,\,i,\,e. \end{aligned}$$

The values of the parameters introduced in this Section are listed in Table 2.

4 Numerical approximation of the mathematical model

We mesh the interval [0, L] with a step \(\Delta z = \frac{L}{N+2}\) and we denote

$$\begin{aligned} \lambda = \frac{\Delta t}{\Delta z}, z_j = j \Delta z, j=0,...,N+1. \end{aligned}$$

We also set \(w^n_j=w(z_j,t_n)\) the approximation of the function w at the height \(z_j\) and at the time \(t_n\). A consistent approximation of \(\partial _z(u(z)\partial _z v)\) by means of Taylor expansions is the following first order approximation:

$$\begin{aligned} \Delta _j(u,v):= \frac{(u_j + u_{j+1})(v_{j+1}-v_j) - (u_{j-1} + u_j)(v_j-v_{j-1})}{2 \Delta z^2}. \end{aligned}$$

Then, the discretization in explicit form of equation (18) is:

$$\begin{aligned} \frac{w^{n+1}_j- w^{n}_j}{\Delta t }&=D_w \Delta _j \left( \left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}}, w^n\right) \nonumber \\&\quad +\frac{m_w \mu }{m_i m_b} \frac{i_j^{n+1} b_j^n + i_j^n b_j^{n+1}}{2} - \frac{\nu m_w}{m_a} a_j^n. \end{aligned}$$
(26)

Note that in the formula above we approximate the reaction term \(m_w (\omega _{ib}-\omega _{a})\) with the non-standard approximation for source terms already applied in Reale et al. (2019). Now, if we consider the velocity field computed in the Eq. (26) and we set it as \(V= D_w \left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}} \partial _z w \), we can rewrite Eqs. (19) and (20), respectively, as:

$$\begin{aligned} \partial _t(w a) - D_w \partial _z (a V) = D_a \partial _z (w \partial _z a) - \nu a , \end{aligned}$$
(27)

and

$$\begin{aligned} \partial _t(w b) - D_w \partial _z (b V) = D_b \partial _z (w \partial _z b) - \frac{\mu }{m_i} i b + \nu a \frac{m_b}{m_a} + \delta c \frac{m_b}{m_c}. \end{aligned}$$
(28)

We can assume:

$$\begin{aligned} V^n_{j} = D_w \left( \frac{\varepsilon ^n_j -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}} \frac{w^n_{j+1} - w^n_{j-1}}{2 \Delta z}, \ \text { for } j=1,\ldots ,N, \end{aligned}$$

with the boundary values set as follows:

$$\begin{aligned} V^n_{0}= & {} 0;\\ V^n_{N+1}= & {} 0. \end{aligned}$$

Therefore, the approximation scheme for (27) reads as:

$$\begin{aligned} \frac{(w a)^{n+1}_{j}- (w a)^{n}_{j} }{\Delta t } =&\frac{V^n_{j+1} a^n_{j+1}-V^n_{j-1} a^n_{j-1}}{2\Delta z} \\&+\frac{|V^n_{j+1}| a^n_{j+1}- 2|V^n_{j}| a^n_{j} + |V^n_{j-1}| a_{j-1}^n}{2\Delta z}\\&+D_a \Delta _j(w^n, a^n) - \nu a_j^{n+1}. \end{aligned}$$

For discretizing (28) we apply an implicit-explicit approximation scheme for the reaction term:

$$\begin{aligned} \frac{(w b)^{n+1}_{j}- (w b)^{n}_{j} }{\Delta t } =&\frac{V^n_{j+1} b^n_{j+1}-V^n_{j-1} b^n_{j-1}}{2\Delta z}\\&+\frac{|V^n_{j+1}| b^n_{j+1}- 2|V^n_{j}| b^n_{j} +|V^n_{j-1}| b_{j-1}^n}{2\Delta z}\\&+D_b \Delta _j(w^n, b^n) - \frac{\mu }{2m_i} (i_j^{n+1} b_j^n + i_j^n b_j^{n+1}) \\&+ \frac{m_b}{m_a} \nu a_j^{n}. \end{aligned}$$

The scheme above is convergent under the CFL condition

$$\begin{aligned} \Delta t \le \Delta ^2 z/D_a. \end{aligned}$$

Then, using an implicit-explicit approximation of equation (21), we can write the discretized problem as:

$$\begin{aligned} w^{n+1}_j&= w^{n}_j + \Delta t D_w \Delta _j \left( \left( \frac{\varepsilon -w_{min}}{\varepsilon _0-w_{min}}\right) ^{\frac{19}{6}}, w^n\right) \nonumber \\&\quad + \Delta t m_w \left( \frac{\mu }{m_i m_b} \frac{i_j^{n+1} b_j^n + i_j^n b_j^{n+1}}{2 } - \frac{\nu a^n_j}{m_a}\right) , \ j=1,\ldots ,N, \nonumber \\ a_j^{n+1}&= \frac{1}{w^{n}_j + \nu \Delta t} \left\{ (w a)^{n}_{j} + \Delta t \frac{|V^n_{j+1}| a^n_{j+1}- 2|V^n_{j}| a^n_{j} + |V^n_{j-1}| a_{j-1}^n}{2\Delta z} \right. \nonumber \\&\quad \left. +\Delta t \frac{V^n_{j+1} a^n_{j+1}-V^n_{j-1} a^n_{j-1}}{2\Delta z} + \Delta t D_a \Delta _j(w^n, a^n)\right\} , \ \quad j=1,\ldots ,N,\nonumber \\ b_j^{n+1}&= \frac{1}{w^{n}_j + \Delta t \frac{\mu }{2 m_i}i^n_j}\left\{ (w b)^{n}_{j} + \Delta t \frac{|V^n_{j+1}| b^n_{j+1}- 2|V^n_{j}| b^n_{j} + |V^n_{j-1}| b_{j-1}^n}{2\Delta z} \right. \nonumber \\&\quad \left. +\Delta t \frac{V^n_{j+1} b^n_{j+1}-V^n_{j-1} b^n_{j-1}}{2\Delta z} + \Delta t D_b \Delta _j(w^n, b^n) \right. \nonumber \\&\quad \left. + \Delta t \frac{\nu m_b}{m_a} a_j^n - \Delta t \frac{\mu }{2 m_i} i_j^{n+1} b_j^n \right\} \nonumber \\&\ \ \qquad j=1,\ldots ,N,\nonumber \\ i_{j}^{n+1}&= \frac{1}{1 + \frac{\Delta t}{2} \frac{\mu b^n_j }{ m_b}} \left\{ i_{j}^n - \frac{\Delta t }{2} \frac{\mu }{m_b} i^n_j b^{n+1}_j \right\} ,\nonumber \\ e^{n+1}_j&= e^n_j + \Delta t \delta \frac{m_e}{m_c} c^n_j,\nonumber \\ c^{n+1}_j&= c_0 + m_c \left( \frac{1}{m_i}(i_0 - i^n_j)+\frac{1}{m_e}(e_0-e^n_j)\right) , \end{aligned}$$
(29)
$$\begin{aligned} \varepsilon ^{n+1}_j&= \varepsilon _1+(\varepsilon _0-\varepsilon _1)\frac{i^n_j}{i_0}+\varepsilon _2\left( \frac{e^n_j}{e_0}-1\right) . \end{aligned}$$
(30)

with suitable discretization of boundary conditions for w, a and b described above.

5 Numerical results

For the numerical tests we assumed the values of the parameters reported in Table 2.

Table 2 Parameters of the model (1824)

Considering that the values of the chosen kinetic constants refer to an aqueous solution under ideal conditions, it was decided to act on these parameters. In Fig. 2 the plots of the profiles of the quantities obtained by the algorithm based on the mathematical model (1824) are depicted assuming all the parameters as in Table 2 at the initial time \(t=0\) (on the left) and at \(t=\)28 days (on the right). Notice that time \(t = 0\) represents the time when the the diffusion of \(CO_2\) in the aqueous phase has already taken place in the cement matrix and the carbonic acid formation reaction has begun. Indeed, the \({\mathrm{CO}_2}_{(\mathrm{g})} \rightarrow {\mathrm{CO}_2}_{(\mathrm{aq})}\) reaction that is regulated by Henry’s law was not included in the model, but was directly considered the diffusion of carbon dioxide in the aqueous phase. This choice is also justified because the diffusion coefficient in the gas phase is greater than the one in the liquid phase (Chen et al. 2019).

As shown in Fig. 2, the model perfectly describes the real phenomenon: carbon dioxide a (magenta line) penetrates the material and is immediately consumed, the reaction leads to the consumption of water w (blue line) which in fact decreases. The carbonate ion b is the result of two equilibria, the first in which it forms (8) and the second in which it is consumed to form Ca CO\(_3\) (9); the yellow curve that describes the trend of b represents the sum of these two reactions. Calcium hydroxide i decreases due to the rapid dissolution reaction until it reaches a minimum value and then increases without returning to the initial value (green line); in a similar way the calcium carbonate c,  considered zero at the beginning, is formed until it reaches a maximum and then decreases due to the reaction that leads to its dissolution (red line). The calcium ion e, for the considerations made previously relating to the rapid dissolution of calcium hydroxide, is involved only in the dissociation reaction of calcium carbonate, during which it is consumed (black line).

As can be seen from the porosity profile \(\varepsilon \), represented with a cyan line at the bottom of the same Figure, the carbonation process leads to an increase in the porosity value. However, for longer times, see the right picture in Fig. 3, we observe a decreasing trend up to the spatial coordinate corresponding to the point of penetration of the external agents in the sample and after that point, an increasing profile that reaches the value \(\varepsilon _0\) is observed.

Moreover, in the left picture of Fig. 3 we depict the profile of the porosity at the left endpoint \(x_0\) for time \(T=56\) for three different values of \(\varepsilon _2\), i.e. \(\varepsilon _2 = 0.009, 0.015, 0.025\). As can be observed, the qualitative behavior of the porosity is substantially the same, since the porosity initially decreases and then, after about 20 days starts increasing. Assuming higher/smaller values for \(\varepsilon _2\) determines a higher/smaller curvature of the porosity profile.

Fig. 2
figure 2

Profiles of numerical solutions to the system (1824) at time \(t=0\) (on the left) and \(t=28\) days (on the right), obtained with model parameters in Table 2 and with concentration of carbon dioxide of 20%. The depicted variables are the concentration of water, carbon dioxide, carbonate, calcium hydroxide, calcium carbonate, and calcium ion (in g/cm\(^3\)) and the non dimensional porosity profile (cyan line). The figures depict the profile on the space dimension (length of the specimen in cm) (color figure online)

Fig. 3
figure 3

Left panel: Profile of the porosity at \(x_0\) across [0, 56] days for \(\varepsilon _2 = 0.008\) (green curve), \(\varepsilon _2=0.015\) (magenta curve), \(\varepsilon _2=0.025\) (blue curve). Right panel: Profile of the porosity at time \(T=56\) days for \(\varepsilon _2 = 0.015\) (color figure online)

In conclusion, looking at the graphs depicted above, the main features of our model are on one hand its ability of reproducing the formation as well as the consumption of \(CaCO_3\) and, on the other hand, the change in the behavior of porosity.

5.1 Comparison with experimental data

Here we present some numerical tests to make a validation of our model against laboratory outcomes. A multiplicity of data obtained on cementitious materials following accelerated carbonation tests are available in scientific literature, (García-González et al. 2006; Hussain et al. 2016; Kashef-Haghighi et al. 2015; Pan et al. 2018; Talukdar et al. 2012). Accelerated carbonation experiments differ in the imposed starting parameters that usually vary in the following ranges: a \(CO_2\) concentration between 3 and 20%, for a relative humidity in the range 60–\(70\%\), with a temperature in the chamber varying between 25 and 35 \(^\circ \)C. Observations are generally performed at 7, 14 and 28 days. We refer to data contained in Pan et al. (2018) where the initial parameters set are those most frequently found in literature. More in detail, in Pan et al. (2018) where the content of calcium hydroxide and calcium carbonate are calculated based on the thermal analysis results for carbon dioxide concentration, see Table 5 of the paper. Using data in Pan et al. (2018), we also look at the relationship between carbonation depth and the content of calcium hydroxide and calcium carbonate at different carbon dioxide concentrations, i.e. the natural concentration in the air corresponding to 0.03% for one year, and the accelerated conditions: at concentration of 3% for 28 days and at concentration of 20% for carbonation times of 14 and 28 days. Regardless of the carbon dioxide concentration, the content of calcium hydroxide always increases with depth, and calcium carbonate shows an opposite trend.

Fig. 4
figure 4

Plots of the profiles derived from experimental data (line-circles) taken from Pan et al. (2018) and numerical results obtained by the model (line-points) at time \(t=14\) days (top) and at time \(t=28\) days (bottom). On the left: profile of measured versus computed Ca(OH)\(_2\) and on the right: profile of measured versus computed CaCO\(_3\). The y-axis depicts the concentration of the substances (in g/cm\(^3\)), while the x-axis shows the length of the specimen (in cm)

Fig. 5
figure 5

Plots of the time evolution (in days) of calcium hydroxide (left picture) and calcium carbonate (right picture) concentrations (in units g/cm\(^3\)) at \(x=x_0\). Parameters assumed as in Table 2

Under the condition of high carbon dioxide concentration (20%) after 14 days the Ca(OH)\(_2\) content in the completely carbonated zone (0–3 mm) layer was higher than that at a lower carbon dioxide concentration. On the contrary, when the carbonation time is prolonged to 28 days, the residual Ca(OH)\(_2\) in the (0–3 mm layer) was almost equal to that in the natural conditions after one year. For this reason, we decided to simulate with our model the case of 20% of carbon dioxide concentration.

In Fig. 4 plots of the profiles derived from experimental data (line-circles) taken from Pan et al. (2018) for carbon dioxide concentration of 20% and the related numerical results obtained by the model (line-points) using parameters in Table 2 at time \(t=14\) days (top) and at time \(t=28\) days (bottom) are depicted. As can be observed from the bottom pictures in Fig. 4 the qualitative behavior for the calcium hydroxide profile is very close to the experimental one after 28 days and it also shows a quantitative accordance from the spatial point of 0.5 cm until the top endpoint of the specimen (1.8–2 cm). For the calcium carbonate depicted in the top pictures of Fig. 4 the situation is a bit different, since there is a qualitative difference between the experimental data VS the numerically obtained profile; moreover, the concentration level is lower for the calcium carbonate computed by the model. Such a different behavior is due to the fact that in the article from which the data was taken only the formation process is detected, while in the model there are two reactions for CaCO\(_3\): the formation of calcium carbonate and its dissociation over time. The model, indeed, refers to an ideal concrete, with an initial concentration of CaCO\(_3\) equal to zero, and all the calcium carbonate is due only to the carbonation reaction. It is worth noting that experimentally it is difficult to have a sample under these conditions, as the formation of CaCO\(_3\) already occurs during the production of the concrete itself.

Figure 5 shows the graphs for calcium hydroxide (green line) and calcium carbonate (red line) as a function of time at the starting point \(x_0\), obtained by the model in the time window [0, 28] days for the parameters assumed as in Table 2.

As already seen in the previous graphs, there is a perfect correspondence between the rapid consumption of Ca(OH)\(_2\) and the rapid formation of CaCO\(_3\), in fact the minimum and maximum of the two curves occur for the same value of time. It should be remembered that the experiment is carried out in conditions of accelerated carbonation (concentration considerably higher than CO\(_2\) in the atmosphere) and that the reactions considered do not take into account the other balances and competitive reactions that can be established inside the concrete, a porous material and therefore continuously exposed to the external environment. In the interpretation of these results it should be taken into account that the real process will not proceed so quickly towards complete carbonation and the simplified hypotheses made will not lead to such clear-cut results, but it is important because in addition to perfectly describing the main phases of the carbonation phenomenon, highlights the possibility that the calcium carbonate dissolution reaction may take place, a reaction responsible for an increase in porosity not foreseen by the other models.

All the simulations were performed with a code developed in Matlab \(\textcircled {c}\). The computational time for a simulation on the complete model with fixed parameters until time \(t=28\) days, takes about 150 s on an Intel(R) Core(TM) i7-3630 QM CPU 2.4 GHz.

6 Conclusion

A mathematical model for the description of the effects of carbonation on concrete has been here developed. Considering the dissolution of calcium carbonate as part of the set of reactions has made it possible to arrive at a more realistic model than those provided in the scientific literature to date. We believe that our results can contribute to the resolution of a long-standing controversy concerning the effects of carbonation on the cement microstructures. The outcomes of our simulations indicate that for long observation times, porosity tends to increase. This deduction opens up a completely different scenario, as increased porosity implies a major fragility for the cementitious material. A more porous medium has a greater susceptibility to chemical degradation and may also suffer from structural weaknesses. In view of the relevance of the results, the research team intends to continue to develop the topic in a comprehensive manner by setting up ad-hoc laboratory experiments by varying the type of concrete and the atmospherical conditions.

In this respect, a very compelling challenge would be to extrapolate the accelerated testing conditions to real performance as to use accelerated testing for the kinetic study in terms of predicting the degradation rate under natural conditions. The model we are here proposing could be used as a starting point to develop mathematical simulations capable of estimating the change in porosity on cementitious materials exposed for a long time to interaction with atmospheric CO\(_2\). This study will include not only the oldest reinforced concrete structures of civil engineering (roads, bridges, infrastructures) but also buildings of the 20th century that nowadays enter fully into the cultural heritage as buildings of industrial archaeology or works of great architects of the last century such as Le Corbusier. Our interest is to understand how today’s increasingly CO\(_2\)-rich environment affects the chemical and physical characteristics of old reinforced concrete materials. Such a predictive study of cultural heritage materials is being designed and evolved.