Modeling and simulation of dynamics of chemical reactors