Modeling of the production of secondary gaseous products in confined atmospheres