3D Simulation of Exothermic and Endothermic reactions