Thermal Hydraulic Integrated NetworK-THiNK™ simulation code is the numerical engine running the operator training simulator. THINK computer code models fluids, gases, and solids network systems for piping, tanks, pumps, towers, washers, separators, and other components in a process or industrial plant. The THINK simulation engine is based on a modification of the finite element method. The finite element method calculates approximate solutions to partial differential equations for a complex system. A domain (network system) is divided up into a finite number of regions, known as elements, which are connected by nodes. Equations are solved for each region, and then all these equations are assembled to derive the governing matrix equations, which are solved through Gaussian elimination. 
THINK formulates the partial differential equations for mass, energy, and momentum of a pressure flow piping network (PFN) into discrete algebraic form and solves these equations in time and distance. The assembled element matrix uses links for vector components (such as flow) and nodes, or volumes, for scalar components (such as mass, energy, temperature, and pressure). THINK solves for the pressure, enthalpy, and mass flow of a given pressure flow network simultaneously. All other variables that are needed – such as quality, temperature, phase (liquid or gas) densities, and mixture density – are obtained through state equations  since these variables are functions of pressure, enthalpy, and mass flow.
State equations represent dependent variables (such as phase density) as a function of one or more independent variables (such as pressure). The state relations are usually represented as a table or a polynomial equation with the dependent variables interpolated as a function of the independent variables. This same approach is also used for state functions of pressure or enthalpy at saturation, or functions of pressure and enthalpy for single-phase conditions.
THINK conserves mass and energy between each simulated step by tracking the difference between state density and mixture density. The mixture density is obtained from the mixture density equation, which is a forcing function on the right hand side of the pressure solution. The conservation of energy during simulation is accomplished through the feedback process using pressures and mass flows.