Applications
OpenProcessSim
Introduction Background Overview Installation Simulation Manual Programmer's Manual Numerical Methods

Background to Process Simulation

Process simulators are used to simulate processes in the process industries such as,

Process simulators predominantly fall into one of two categories, either steady state or dynamic, and, broadly, the method of solving the simulation ranges from fully equation based to fully modular based, but is generally a combination of the two.

Steady State Simulation

In a steady state simulator, the model is run until the calculated results for the current iteration do not significantly differ from the previous one. Real world features that cause the process to be dynamic, (i.e. the thermal mass of the equipment, equipment volumes, controllers) are excluded. The user does not care how long it takes the process to steady out, only that it does.

Steady state simulators are used for process

Steady state simulators are typically equation based models. The mathematical equations that describe how the process equipment operates, (e.g. pumps, valves, heat exchangers, vessels, …) respond to changes in the operating conditions are coded into "modules" that correspond to the physical item of process equipment. The equations and/or correlations implemented have typically been developed based experiments. These are often generalisations and may not scale well.

As the simulation modules are developed from mathematical models that describe the under lying process, equation based models are often called "first principles models". An alternative is to use regressed process data as polynomials or neural networks. However, these models are not valid outside the range of the process data used, they can not be used for prediction.

Steady state process models do not require process control. The simulation engineer specifies the values of key parameters, (typically model boundaries, e.g. product production rate and purity, feed flow, …). The simulator solves the model to determine all the intermediate process values that will result in the specified values being met. The engineer can further constrain the model by specifying limits on the intermediate process values, (e.g. maximum temperatures, pressures).

Dynamic Simulation

Dynamic simulators are used for process design, operator training and for optimum process control. Process design and operator training dynamic simulators are generally built using first principles models, while optimum process control models are often implemented using Laplace transform models obtained from "stepping" the actual process.

Dynamic process design simulators are the "next stage up" from steady state models, with factors such as equipment thermal mass and volumes are added. Process stream specifications are removed and key operating conditions are maintained using PID controllers. The simulators are used to study the response of the process to sudden changes in operating conditions, (e.g. if a boiler trips will the steam header pressure drop to the steam turbine trip point?).

The level of detail incorporated into an Operator Training Simulator is significantly higher.

The basic dynamic process model, (e.g. includes thermal mass of the system; equipment volumes; indicated liquid levels related to level tappings, equipment geometry and liquid density), is extended;

However Fire & Gas Systems are not included.

Operator Training Simulators are used for training operators, typically;

Operator Training Simulator can also be used by commissioning teams during the planning of an initial start-up of a new chemical process plant. Their use allows the teams to reduce the start-up time of the new chemical plant by enabling the team to;

This allows detection of incorrect configuration, missing control loops, equipment and process lines and the identification of the required additions or modifications to be made prior to plant start-up.

The major problem for operator training simulator implementers is the vast number of calculations that are required, and which have to be done in real time, as the simulator must have the look and feel of the real process to the trainee and respond to their changes via the control system. Therefore for large models, or models making heavy use of complex physical property calculations, i.e. flash / distillation columns, the accuracy of the physical property prediction routines must be reduced. Of course the side effect is that more "tuning" of the model is required and it may need to verified against a steady state model.

Like steady state simulators, dynamic simulations can be built using process data, rather than creating a first principles model. The process data is fitted to a Laplace Transform. This has proved highly successful in the field of optimum process control because,

However,

Equation vs. Sequential Modular Based Simulators

This refers to how the simulation engine solves the equations that characterise the physical process equipment being simulated.

In equation based simulators, the simulation engine implements the mathematical equations that describe the physical process in an equation solver that uses appropriate techniques to solve the equations simultaneously.

In modular based process simulators the mathematical equations that describe the physical process are coded into modules, these modules are then solved sequentially by the simulation engine.

The benefits and drawbacks of sequential modular simulation engines are,

The benefits of equation based simulation engines are,

The drawbacks of equation based simulation engines, which are mostly due to equation based solvers solving all the equations simultaneously, are,

Hybrid Simulation Engine

Some process simulators combine equation based and sequential modular based techniques, a hybrid simulation engine. The equation based solver is used to solve properties that are tightly coupled, or where execution order has an effect on the speed of solution. For example,

However with dynamic simulators it is possible for there to be a mismatch between values calculated by the equation solver and what the module calculates during the sequential pass, based on the values provided by the equation solver. The situation occurs in equipment with a volume. The equation solver will be based on the assumption that the pressure of the equipment will only change based on the flow difference. But if there is a phase change in the outlet, e.g. the vessel goes empty, for the same volumetric flow the flow for the new phase will be different, and because the vapour holdup is much lower than the liquid holdup, there can be large changes in vessel pressure.