The present invention relates generally to control of an industrial process by an automation system.
A process control or automation system is used to automatically control an industrial process such as chemical, oil refineries, paper and pulp factories. The process automation system often uses a network to interconnect sensors, controllers, operator terminals and actuators. Process automation involves using computer technology and software engineering to help power plants and factories operate more efficiently and safely.
Process simulation is a model-based representation of industrial processes and unit operations in software for studying and analyzing the behavior and performance of actual or theoretical systems. Simulation studies are performed, not on the real-world system, but on a (usually computer-based) model of the system created for the purpose of studying certain system dynamics and characteristics. The purpose of any model is to enable its users to draw conclusions about the real system by studying and analyzing the model. The major reasons for developing a model, as opposed to analyzing the real system, include economics, unavailability of a “real” system, and the goal of achieving a deeper understanding of the relationships between the elements of the system.
Process simulation always uses models which introduce approximations and assumptions but allow the description of a property over a wide range of properties, such as temperatures and pressures, which might not be covered by real data. Models also allow interpolation and extrapolation—within certain limits—and enable the search for conditions outside the range of known properties. In process automation, the simulator may use measurements to show not only how the plant is working but to simulate different operating modes and find the optimal strategy for the plant.
Simulation can be used in task or situational training areas in order to allow operators to anticipate certain situations and be able to react properly as well as to test and select alternatives based on some criteria, to test why certain phenomena occur in the operations of the system under consideration, to gain insight about which variables are most important to performance and how these variables interact, to identify bottlenecks in the process, to better understand how the system really operates (as opposed to how everyone thinks it operates), and to compare alternatives and reduce the risks of decisions.
Basic process simulator may be run with no real-time connection to a simulated process. This approach is illustrated in
A tracking simulator, on the other hand, has the ability to adapt its behavior to reality. A tracking simulator 5 is a process simulator that runs in real-time in parallel with the real process and is provided with a connection to the real process 3, as illustrated in
p(k)=p(k−1)+Ke(k) (1)
wherein p(k) is the updated simulation parameter, K is a parameter update constant, and e(k) is an error between the real process measurement and the respective simulator output, and k is an index, wherein k=1, 2, . . . , .
p(k−1)=1/Z*p(k) (2)
wherein 1/Z is a single element buffer, delaying the signal with one sample instant.
As a result, the output of the adder 82 is the updated estimated parameter p(k) according to the equation above. The parameter p(k) is applied to the simulator 9 and also feedbacked to the 1/Z unit 83. Main problems associated with this type of known tracking simulator are that the parameter update is relatively slow and that it is difficult and cumbersome to select or calculate the parameter update constants K for the process parameters. It should be noted that typically there is a high number of process parameters that should be tracked and updated in the simulation model, each requiring an individual parameter update constant K.
Fukano et al., Application of Tracking Simulator to Steam Reforming Process, Yokogawa Technical Report English Edition, NO. 43 (2007), p. 13-16 discloses an application example for a tracking simulator.
An object of the present invention is to provide a new method of simulating an industrial process. This object of the invention is achieved by the subject matter of the attached independent claims. The preferred embodiments of the invention are disclosed in the dependent claims.
An aspect of the invention is a method of simulating an industrial process, comprising
receiving a plurality of control inputs provided by an automation system controlling the industrial process,
receiving a plurality of process measurements from the industrial process,
simulating the industrial process simultaneously and in parallel with the industrial process using a model of the industrial process,
providing a plurality of simulation outputs from the model of the industrial process, each of said plurality of simulation outputs being a simulated version of a respective one of said plurality of process measurements,
adjusting the model of the industrial process with a plurality of adjusting parameters generated based on said plurality of process measurements and said plurality of simulation outputs, and
generating said at least one of said plurality of adjusting parameters by a proportional integral (PI) or proportional integral derivate (PID) controller or a like controller.
According to an embodiment, the method comprises configuring the proportional integral (PI) or proportional integral derivate (PID) controller or the like controller by an automatic controller tuning tool of the automation system.
According to an embodiment, the method comprises generating at least one other of said plurality of adjusting parameters by means other than a proportional integral (PI) or proportional integral derivate (PID) controller or a like controller.
According to an embodiment, the method comprises generating at least one other of said plurality of adjusting parameters by a search-based optimization algorithm.
According to an embodiment, said search-based optimization algorithm comprises Nelder-Mead algorithm and/or Squares of Errors (SE) calculation.
According to an embodiment, the method comprises generating and outputting a soft measurement which estimates the internal behaviour or parameter of the industrial process but which is not feasible to measure from the industrial process.
According to an embodiment, said outputting comprises displaying said soft measurement data on a screen and/or storing the soft measurement data in a storage media.
According to an embodiment, said outputting comprises sending the soft measurement data to the automation system for controlling or optimizing the industrial process and/or to a maintenance system for maintenance purposes.
Another aspect of the invention is use of a method according to any one of above embodiments for estimating future behaviour of the industrial process.
Another aspect of the invention is use of a method according to any one of above embodiments for testing response of the industrial process to different control situations.
Another aspect of the invention is a tracking simulator comprising means for implementing a method according to any one of above embodiments.
Another aspect of the present invention is an automation system comprising means for implementing a method according to any one of above embodiments.
Another aspect of the invention is a computer program comprising program code for performing a method according to any one of above embodiments when said program is run on a computer.
Another aspect of the invention is a computer program product comprising program code means stored on a computer readable medium for performing a method according to any one of above embodiments when said program product is run on a computer.
In the following the invention will be described in greater detail by means of exemplary embodiments with reference to the attached drawings, in which
An exemplary embodiment of the invention is illustrated in
A process 3 that is controlled by an automation system 2 typically includes a high number of field devices, such as actuators, valves, pumps and sensors, in a plant area (field). There are various alternative ways to arrange an interconnection between an automation system 2 and a process 3 (e.g. field devices), such as two-wire twisted pair loop (4 to 20 mA analog signal), HART (Highway Addressable Remote Transducer) protocol, and other field buses (e.g. Fieldbus and Profibus). However, it is to be understood that the type or implementation of an interconnection between an automation system 2 and a process 3, e.g. between a control room and field devices, may be based on any one of the alternatives described above, or on any combination of the same, or on any other implementation. A practical plant configuration may, and typically does, include several types of automation lines or field buses in parallel, since the plant is updated and extended gradually over a long period of time.
Process measurements 21 may include any measurement of any desired variables or properties in a process 3, such as a flow rate, a pressure, a temperature, a valve position, etc. These process variables can be measured with dedicated sensors arranged in the field of a process plant. Inputs 24 from an automation system 2 to a process 3 and to a simulator 29 may include, but are not limited to, control inputs to field devices.
A process 3 is typically controlled by control loops/circuits. A control loop or circuit may contain, for instance, a process to be controlled, a controlled field device, a measuring sensor/transmitter, and a controller. The controller may give the field device a control signal as an analog current signal or a digital control message, for example. The measuring sensor may measure a controlled variable, and a measurement product obtained is fed back to the controller, where it is compared with a given reference value. On the basis of the difference variable, the controller calculates the updated control for the field device. Usually the controller functions in such a manner that it minimizes the difference variable by a suitable control algorithm, such as a PI or PID algorithm. This control algorithm is typically tuned for each field device during mounting or operation.
In the exemplary embodiment shown in
More specifically, in this exemplary embodiment, each pair of the process measurements 21-1 . . . 21-N and the simulator outputs 22-1 . . . 22-N are applied as inputs to a respective PI or PID or like controller 20-1 . . . 20-N which outputs a respective update or adjusting parameter 23-1 . . . 23-N to the simulator unit 29. It should be appreciated that the number N (wherein N=1, 2, 3, . . . ) can be freely selected. It should also be appreciated that the number of process measurements 21, simulator outputs 22, controllers 20 and/or update parameters 23 may differ from each other in a same embodiment.
PI and PID controllers are typically used to automatically adjust some variable to hold a measurement (or process variable) at a set-point. The set-point is where you would like the measurement to be. Error is defined as the difference between set-point and measurement. The output of PI and PID controllers will change in response to a change in measurement or set-point.
PI is an acronym for “proportional and integral”. PI controller is a controller that includes elements with these two functions. PID is an acronym for “proportional, integral, and derivative.” A PID controller is a controller that includes elements with those three functions. Acronyms PI and PID may also be used at the element level: the proportional element is referred to as the “P element,” the integral element as the “I element,” and the derivative element as the “D element”. It may be said the elements P, I and D of a controller produce outputs with the following nature:
An exemplary updating apparatus or algorithm using PI controller 20 may operate according to the equation (3):
p(k)=p(k−1)+Kie(k)+Kp(e(k)−e(k−1)) (3)
wherein
p(k) is the updated parameter,
e(k) is an error between the real process measurement and the respective simulator output,
Kp is a proportional gain,
Ki is an update constant, and
k is an index, wherein k=1, 2, . . . , .
In a PI controller portion, the comparator 201 receives the process measurement 21 to one input (+) and the simulator output 22 to another input (−) and outputs the error signal e(k). The error signal e(k) is applied to a 1/Z unit 202 and to one input (−) of a comparator 203. The 1/Z unit 202 may be a single-element buffer that delays the signal with one sample instant. The previous parameter value e(k−1), which is a value of e(k) of at its previous calculation cycle, is applied to another input (−) of comparator 203. As a consequence, a rate of error signal e(k)−e(k−1) (i.e. the change) is outputted from the comparator 203 and then multiplied by the proportional gain Kp in a multiplier 204. The output Kp(e(k)−e(k−1)) of the multiplier 204 is applied to one input (+) of an adder 206. The Kp(e(k)−e(k−1)) is the P part of the PI controller.
In the exemplary embodiment, the error signal e(k) from the comparator 201 is also applied to a multiplier 205, which multiplier 205 multiplies the error signal e(k) by the constant K and outputs Kie(k) to another input (+) of the adder 206. the Kie(k) is the I part of the PI controller.
To the third input (+) of the adder 206 is applied the previous updated parameter p(k−1), which is a value of p(k) of at its previous calculation cycle from a 1/Z unit 207. The 1/Z unit 207 may be a single-element buffer that delays the signal with one sample instant. The adder 206 outputs the new updated estimated parameter p(k) 23 for the simulator unit 29. The updated parameter p(k) is also applied to the 1/Z unit 207.
The inventive tracking simulator wherein the model parameter(s) is updated using a proportional integral (PI) or proportional integral derivate (PID) controller or a like controller, enables fast update of the model parameters. Thus, the model parameters and thereby the simulation model more accurately and faster track the changes in the real process in comparison with the conventional tracking simulators.
It should be appreciated that, in addition to using the one or more proportional integral (PI) and/or proportional integral derivate (PID) controller and/or a like controller for updating one or more parameters of a tracking simulator, there may also be one or more other type of arrangements for updating one or more other parameters of the same tracking simulator. In other words, all parameters are not necessarily updated using a proportional integral (PI) or proportional integral derivate (PID) controller or a like controller. For example, sometimes the direction of a parameter p(k) affecting on an output value 22 may change with an operating point of the process. In that case, a PI controller can not be utilized to update such parameter, but the Nelder-Mead algorithm, or any similar search-based optimization algorithm can preferably be applied in addition to the one or more PI/PID controllers discussed above. Exemplary embodiment of such “hybrid” tracking simulator is illustrated in
Another significant advantage is that a tracking simulator, which is based on use of PI or PID or similar controllers, can be tuned using autotuning tools which are presently used for tuning PI and PID controllers in the real process. Thus, such autotuning tools are readily available in the automation system. In the exemplary embodiments of
Let us examine the tracking simulation and the autotuning thereof by means of an example wherein the real process is a heat exchanger. A simplified block diagram of this arrangement is illustrated in
A tracking simulator 52 is provided that models heat exchanger 41 simultaneously and in parallel with the heat exchanger 41. The simulator 52 provides a simulated hot output 22-1, which represents the fluid in the hot outgoing pipe 43, and a simulated cold output 22-2, which represents the cold fluid in the cold outgoing pipe 45. In the exemplary embodiment, a “simulated” hot incoming pipe 53 and a “simulated” cold incoming pipe 54 are not simulated values but provided by measuring the fluid temperature Thot,in of the real hot incoming pipe 42 by a temperature sensor 47, and by measuring the fluid temperature Tcoldt,in of the real cold incoming pipe 44 by a temperature sensor 48, respectively. Control inputs from an automation system are not shown in
In the exemplary embodiment illustrated, the simulation model 52 of the heat exchanger contain four simulation parameters 23-1, 23-2, 23-3, and 23-4, which are arranged to be updated by PI controllers 20-1, 20-2, 20-3, and 20-4, respectively.
A temperature sensor 46 is arranged to measure the fluid temperature Tcold,out of the cold outgoing pipe 45 and to provide the measured temperature to one input of the PI controller 20-1 as a process measurement 21-1. The simulated cold output 22-2 of the simulator 52 is applied to another input of the PI controller 20-1. The updated parameter 23-1 of the PI controller 20-1 is h*A, wherein h is a heat transfer coefficient and A is a heat exchange area of the heat exchanger.
A flow meter (flow indicator) 50 is arranged to measure the flow rate Fcold of the cold incoming pipe 44 and to provide the measured flow rate to one input of the PI controller 20-2 as a process measurement 21-2. The simulated cold input 52 (i.e. the measured temperature Tcold,in) of the simulator 52 is applied to another input of the PI controller 20-2. The updated parameter 23-2 of the PI controller 20-2 is Δp,cold, i.e. a pressure difference in the cold input.
A flow meter (flow indicator) 51 is arranged to measure the flow rate Fhot of the hot outgoing pipe 43 and to provide the measured flow rate to one input of the PI controller 20-3 as a process measurement 21-3. The simulated hot output 22-1 of the simulator 52 is applied to another input of the PI controller 20-3. The updated parameter 23-3 of the PI controller 20-3 is Δp,hot, i.e. a pressure difference in the hot output.
A temperature sensor 49 is arranged to measure the fluid temperature Thot,out of the hot outgoing pipe 43 and to provide the measured temperature to one input of the PI controller 20-4 as a process measurement 21-4. The simulated hot output 22-1 of the simulator 52 is applied to another input of the PI controller 20-4. The updated parameter 23-4 of the PI controller 20-4 is Cp, hot, wherein Cp,hot is the heat capacity of the hot fluid.
At the setup of the tracking simulator, after the process measurement inputs to the simulator 52 and the PI controllers 20-1 . . . 20-4 have been connected, the real-time simulation can be started. The PI controllers 20-1 . . . 20-4 are autotuned by an autotuning tool (e.g. DNAautotune) and connected to an automatic mode. As a result, the PI controllers 20-1 . . . 20-4 will estimate the unknown parameters 23.
By means of embodiments of the present invention, an ordinary process simulator can be readily extended to a tracking simulator, which can be used for many purposes, including soft sensors, prediction of future plant behaviour, visualization of profiles and shapes, parameter estimation, and plant optimization.
Some embodiments of the invention may generate and output a soft measurement which estimates the internal behaviour or parameter of the industrial process but which is not feasible to measure from the industrial process. In some embodiments the outputting may comprises displaying said soft measurement data and/or other simulation data on a screen and/or storing the soft measurement data and/or other simulation data in a digital storage media. In some embodiments of the invention, the outputting may comprise sending the soft measurement data and/or other simulation data to the automation system for controlling or optimizing the industrial process and/or to a maintenance system for maintenance purposes.
The techniques described herein may be implemented by various means. For example, these techniques may be implemented in hardware (one or more devices), firmware (one or more devices), software (one or more modules), or combinations thereof. For a firmware or software, implementation can be through modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in any suitable, processor/computer-readable data storage medium(s) or memory unit(s) and executed by one or more processors/computers. The data storage medium or the memory unit may be implemented within the processor/computer or external to the processor/computer, in which case it can be communicatively coupled to the processor/computer via various means as is known in the art. Additionally, components of systems described herein may be rearranged and/or complimented by additional components in order to facilitate achieving the various aspects, goals, advantages, etc., described with regard thereto, and are not limited to the precise configurations set forth in a given figure, as will be appreciated by one skilled in the art.
The description and the related figures are only intended to illustrate the principles of the present invention by means of examples. Various alternative embodiments, variations and changes are obvious to a person skilled in the art on the basis of this description. The present invention is not intended to be limited to the examples described herein but the invention may vary within the scope and spirit of the appended claims.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FI10/50564 | 6/30/2010 | WO | 00 | 1/11/2013 |