The work is devoted to mathematical modelling of behaviour of a porous medium with isolated voids filled with chemical substance within the framework of mathematical models of thermomechanical behaviour of the matrix and thermochemical processes in pores. To describe the processes in the medium three-dimensional equations of thermomechanics are used. The processes in the pores are described by a self-consistent model taking into account chemical reactions and phase equilibrium. The mathematical model of the medium and the corresponding computational algorithm are briefly described. The results of parametric calculations using realistic thermophysical constants, the component composition of the substance inside the pores, the scheme of chemical reactions and thermodynamic parameters are presented and demonstrate the need for complex, coupled models for considering the described processes.