C++ program in discrete model of solid-gas reactions in porous material

The porous material gas-solid reaction model can be divided into continuum models and discrete models. The latter has a fairly simple form and need not to solve complicated partial differential equations and is easily realized on computer. But discrete models always required to do large amount of computing, hence certain requirement in terms of computing speed as well as memory are also indispensable. Here we have built simulation programs in C++ language. Taking advantage of container variable in C++ language, we can treat the vector flexibly and efficiently. We have built a network class that encapsulates functions of network-generating, network-labeling, and network-changing during reaction. The program has capable of treating large discrete network of different kinds of link type in a comparatively high speed. We have simulated porous material gas-solid reaction in chemical controlled regime, the relationship between reaction rate and solid conversion matches experiment results reported in literature.