This document provides source code for a simulation block called Reactor that models a reactor process for a training course on PCS 7. The block contains input and output variables to control filling valves, a mixer motor, and monitor temperature and level values. The code defines the block attributes, declares the input, in-out, and output variables, and contains the algorithm to simulate the reactor process over time based on the input conditions and parameter values provided.