Aspects of the present invention generally relate to property models used by simulation, optimization, and related applications. More particularly, aspects of the present invention relate to systems and methods for determining values of dynamic properties in industrial processes in less time than existing solutions.
Dynamic process simulation typically involves performing calculations using dynamic property functions, which can be extremely computationally intensive. One technique that has been utilized in an effort to reduce the computational burden associated with calculating dynamic property functions includes substituting an approximation for the functions. One such approximation, known as a Taylor series expansion, permits the extrapolation of a function given a reference point and independent variable sensitivity about that point. Existing solutions often require use of a second-order Taylor series expansion in approximation calculations, which is time-consuming and computationally intensive.
Aspects of the invention permit super-linear approximation, which does not require calculating second-order derivatives and represents real properties over a much wider range than existing solutions.
A method embodying aspects of the invention includes simulating with a simulation module a continuous process that uses a dynamic equation representing a dynamic property of the continuous process. In the method, a local module determines a super-linear approximate value of the dynamic property. The super-linear approximate value is based on only first-order derivatives of a series expansion of the dynamic equation and is automatically updated over the continuous process. Using the simulation module, the method continues by determining a solution for the dynamic equation based on the super-linear approximate value. One or more devices of the continuous process are then controlled based on the determined solution.
Moreover, using the local module, the method continues by determining an error value between at least two terms of the series expansion and updating the super-linear approximate value with a rigorous value when the determined error value is greater than a predetermined value.
A processor-readable medium embodying aspects of the invention has processor-executable instructions stored thereon that, when executed, perform a method of generating a super-linear approximate value of a dynamic physical property associated with an industrial process. The method includes receiving one or more values of a dynamic physical property associated with an industrial process. The method also includes generating a first-order series expansion of a dynamic equation relating to the dynamic physical property. The method further includes generating a super-linear approximate value of the dynamic physical property based at least in part on the first-order series expansion and updating the super-linear approximate value over a range of values of the dynamic physical property. A simulation module simulates the industrial process based at least in part on the dynamic equation solved as a function of the super-linear approximate value.
A system embodying aspects of the invention includes a subtraction-differentiation module, a negation module, a logarithm-subtraction-differentiation module, and a first summation module. The subtraction-differentiation module is adapted to perform a subtraction operation and a differentiation operation on previous and current property values. The negation module is adapted to perform a negation operation on results of the subtraction-differentiation module. The logarithm-subtraction-differentiation module is adapted to perform logarithm, subtraction, and differentiation operations on the previous and current property values. The first summation module is adapted to perform an addition operation on results of the subtraction-differentiation module, the negation module, and the logarithm-subtraction-differentiation module as well as a result of a previous rigorously calculated property value in order to generate a current super-linear approximate property value. A processor is adapted to perform a simulation of an industrial process based at least in part on a dynamic equation solved as a function of the current super-linear approximate value
Other objects and features will be in part apparent and in part pointed out hereinafter.
Corresponding reference characters indicate corresponding parts throughout the drawings.
The communication infrastructure 102 is capable of facilitating the exchange of data among various components of system 100, including simulation device 104, client device 106, storage medium 108, and components of fluid processing system 120. The communication infrastructure 102 in the embodiment of
The simulation device 104 is adapted to provide dynamic simulation, optimization, and other capabilities with respect to industrial and other continuous processes (e.g., fluid processing system 120). In the exemplary embodiment of
Referring further to
The storage medium 108 of
Still referring to
Referring further to
The I/O interface 206 of
The simulation module 210 of
The module interface 212 of
Still referring to
The solver 216 of
Opera, a solver available from Schneider Electric as part of the ROMeo System. Further details regarding solvers are provided in, for example, U.S. Pat. No. 7,676,352 and U.S. Pat. No. 7,987,082, each of which has been incorporated by reference in its entirety.
Referring yet again to
With continued reference to
The local flash module 222 of
During an exemplary operation of simulation device 104 (e.g., execution of processor executable instructions stored in memory 204 by processor 202 that comprise simulation module 210), simulation module 210 effects a simulation of a process model defined by modeling engine 214 that represents fluid processing system 120. The simulation by simulation module 210 is one level (e.g., “top” level) of a multi-level simulation hierarchy. The simulation module 210 utilizes equations, the variables (e.g., pressure, temperature, composition, etc.) of which are assumed to have at least been initialized, although the values of such variables may have not yet converged upon a correct solution of the equations. For example, simulation module 210 may be assumed to have defined values for the variables characterizing aspects of the process model simulating fluid processing system 120. During further operation of simulation module 210, calls are made to local thermo module 220 and local flash module 222 in order to calculate values of various properties at identified aspects of the process model. For example, local thermo module 220 and local flash module 222 may include embedded mass and energy balance equations that comprise another level (e.g., “lower” level) of the multi-level simulation hierarchy. Further details regarding calls made to local thermo module 220 are described herein. Using the calculated values received from local thermo module 220 and local flash module 222, simulation module 210 computes a new solution for the values of the variables characterizing the identified aspects of the process model. This process is then repeated until simulation module 210 determines that the values of the variables have converged upon a correct solution.
At step 306, local thermo module 220 receives one or more property values 302, 304 from simulation module 210. In an embodiment, the property values are a previous independent property value 302, which represents the property value during a previous time period, and a current independent property value 304, which represents the property value during a current time period. Step 306 is accomplished in an embodiment by processor 202 executing processor-executable instructions that comprise simulation module 210 directing that the property value is passed as an argument to processor-executable instructions that comprise local thermo module 220. In another embodiment, step 306 is accomplished by processor 202 executing processor-executable instructions that comprise simulation module 210 directing that a reference, such as an address location of memory 204, is passed as an argument to processor-executable instructions that comprise local thermo module 220. In the embodiment of
At step 308, local thermo module 220 calculates a super-linear Taylor series expansion of the received property values to result in a super-linear approximate property value 310. In an embodiment, the super-linear Taylor series expansion is a modified first-order Taylor series expansion that introduces curvature to represent the real property calculation in a wider range of process conditions than a conventional first-order Taylor series expansion. In an exemplary single-variable embodiment, the super-linear Taylor series expansion is represented by Equation 1:
which simplifies to Equation 2:
In another exemplary multi-variable embodiment, the super-linear Taylor series expansion is represented by Equation 3:
In an embodiment, step 308 is accomplished by processor 202 executing processor-executable instructions stored in memory 204 that comprise local thermo module 220 for calculating the super-linear Taylor series expansion. Further details regarding calculation of the super-linear Taylor series expansion during step 308 are described herein.
Referring further to Equation 2, the super-linear approximate value is based on first-order derivatives of a series expansion of the dynamic equation and is automatically updated over the continuous process. In an embodiment, the approximated super-linear value is updated with a “true” rigorous value if an error was detected to be significant enough. This error is, for example, the difference between the super-linear value and a simple-linear value. If the super-linear form is represented by Equation 2, above, the simple linear form is:
Thus, if the difference between the two forms is significant enough (user adjustable), then y1 is calculated by the original thermodynamic model, which represents a “rigorous” model, such as shown in Equation 1, without canceling the second and third terms on the right-hand-side of “=” sign. Moreover, when an update occurs, the newly calculated y1 by the rigorous thermodynamic model is used as y0 for further super-linear approximation.
At step 312, local thermo module 220 calculates an error value 314 representing the difference between the calculated super-linear Taylor series expansion and a basic linear first-order Taylor series expansion of the property. In accordance with aspects of the invention, the first and second terms of Equation 1 are equivalent to a basic linear first-order Taylor series expansion of the property and the third and fourth terms of Equation 1 are equivalent to a second-order derivative of the Taylor series expansion. In an embodiment, step 312 is accomplished by processor 202 executing processor-executable instructions stored in memory 204 that comprise local thermo module 220 for calculating the error value 314 representing the “error,” i.e., difference, between the super-linear and basic linear Taylor series expansions. In an exemplary embodiment, the error is represented by Equation 5:
In another exemplary multi-variable embodiment, the error is represented by Equation 6:
Further details regarding calculation of the error at step 312 are described herein.
Still referring to
When local thermo module 220 determines that error value 314 is not acceptable at step 312 (e.g., the error is greater than a predetermined threshold value), local thermo module 220 performs a rigorous update of the indicated property at step 318 before proceeding back to step 308. In an embodiment, step 318 is accomplished by processor 202 executing processor-executable instructions stored in memory 204 that comprise local thermo module 220 for rigorously updating the current independent property value 304. When local thermo module 220 determines that the error is acceptable at step 316 (e.g., the error is equal to or less than a predetermined threshold value), local thermo module 220 returns the super-linear approximate property value 310 to simulation module 210 at step 320. In an embodiment, step 320 is accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220 directing that super-linear approximate property value 310 is passed as an argument to processor-executable instructions that comprise simulation module 210. In another embodiment, step 320 is accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220 directing that a reference, such as an address location of memory 204, is passed as an argument to processor-executable instructions that comprise simulation module 210.
The subtraction-differentiation module 402 is adapted to receive inputs, perform subtraction and differentiation operations on the received inputs, and output a result. In accordance with aspects of the invention, subtraction-differentiation module 402 receives data and/or signals indicative of previous independent property value 302 (e.g., x0) and current independent property value 304 (e.g., x1). The subtraction-differentiation module 402 performs a subtraction operation to subtract previous independent property value 302 from current independent property value 304 (e.g., x1−x0). The subtraction-differentiation module 402 then differentiates the result of the subtraction operation (e.g., (x1−x0) (dy/dx)) and provides data and/or a signal indicative of the differentiated result as an output value. In an embodiment, the subtraction operation performed by subtraction-differentiation module 402 is accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220. In another embodiment, the subtraction operation performed by subtraction-differentiation module 402 is accomplished by a circuit including resistors and an operational amplifier (i.e., op-amp) configured as a difference amplifier, as will be apparent to one skilled in the art. In an embodiment, the differentiation operation performed by subtraction-differentiation module 402 is accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220. In another embodiment, the differentiation operation performed by subtraction-differentiation module 402 is accomplished by a circuit including resistors, capacitors, and an op-amp configured as a differentiator (e.g., active high-pass filter), as will be apparent to one skilled in the art.
The negation module 404 is adapted to receive inputs, perform a negation operation, and output a result. In an embodiment, negation module 404 receives data and/or a signal indicative of a value of the output of subtraction-differentiation module 402, negates the received value (e.g., −(x1−x0) (dy/dx)), and outputs data and/or a signal indicative of the value of the result. In an embodiment, the negation operation performed by negation module 404 is accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220. In another embodiment, the negation operation performed by negation module 404 is accomplished by a circuit including resistors and an op-amp configured as an inverting amplifier, as will be apparent to one skilled in the art.
The logarithm-subtraction-differentiation module 406 is adapted to receive inputs, perform logarithm, subtraction, and differentiation operations on the received inputs, and output a result. In an embodiment, logarithm-subtraction-differentiation module 406 receives data and/or a signal indicative of previous independent property value 302 (e.g., x0) and current independent property value 304 (e.g., x1). The logarithm-subtraction-differentiation module 406 determines a value of the logarithm of each of previous independent property value 302 (e.g., In(x0)) and current independent property value 304 (e.g., In(x1)). The logarithm operations performed by logarithm-subtraction-differentiation module 406 are accomplished in an embodiment by processor 202 executing processor-executable instructions that comprise local thermo module 220. In another embodiment, the logarithm operations performed by logarithm-subtraction-differentiation module 406 are accomplished by a circuit including resistors, a diode, and an op-amp configured as a logarithmic amplifier, as will be apparent to one skilled in the art. The logarithm-subtraction-differentiation module 406 then performs a subtraction operation on the logarithm values of previous independent property value 302 from the logarithm of current independent property value 404 (e.g., (In(x1)−In(x0))). In accordance with aspects of the invention, the subtraction operation performed by logarithm-subtraction-differentiation module 406 may be accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220 or by a circuit including resistors and an operational amplifier (i.e., op-amp) configured as a difference amplifier, as further described herein. The logarithm-subtraction-differentiation module 406 then differentiates the result of the subtraction operation (e.g., (In(x1)−In(x0)) (dy/dIn(x))). In accordance with aspects of the invention, the differentiation operation performed by logarithm-subtraction-differentiation module 406 may be accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220 or by a circuit including resistors, capacitors, and an op-amp configured as a differentiator as further described herein. The logarithm-subtraction-differentiation module 406 then provides data and/or a signal indicative of the result as an output value.
The summation modules 408 are each adapted to receive inputs, perform an addition operation, and output a result. In an embodiment, summation module 408-A receives data and/or signals indicative of values of the outputs of subtraction-differentiation module 402, negation module 404, and logarithm-subtraction-differentiation module 406 and a previous rigorously calculated value 414. Similarly, summation module 408-B receives data and/or signals indicative of a value of the output of subtraction-differentiation module 402 and a previous rigorously calculated value 414 (e.g., a simple-linear set of first-order terms). In another embodiment, summation module 408-C receives data and/or signals indicative of a value of the outputs of logarithm-subtraction-differentiation module 406 and the previous rigorously calculated value 414 (e.g., a super-linear approximate set of first-order terms). Each summation module 408 performs an addition (i.e., summation) operation on the received values and then provides data and/or a signal indicative of the result as an output value. In an embodiment, the addition operations performed by summation modules 408 are accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220. In another embodiment, the addition operations performed by summation modules 408 are accomplished by circuits including resistors and an op-amp configured as summing amplifiers, as will be apparent to one skilled in the art. In an embodiment, the result of an addition operation performed by summation module 408-B is referred to as a simple-linear value and the result of an addition operation performed by summation module 408-C is referred to as a super-linear approximate value.
The magnitude modules 410 are each adapted to receive inputs, perform a magnitude (i.e., absolute value) operation, and output a result. In an embodiment, magnitude modules 410 receive data and/or signals indicative of values of the outputs of summation module 408-B and 408-C. The magnitude modules determine the magnitude of the received values (i.e., the non-negative value without regard to sign) and outputs data and/or a signal indicative of the value of the result. The magnitude operations performed by magnitude modules 410 are accomplished in an embodiment by processor 202 executing processor-executable instructions that comprise local thermo module 220. In another embodiment, the magnitude operations performed by magnitude modules 410 are accomplished by circuits including resistors, diodes, and op-amps configured as absolute value amplifiers (e.g., full-wave rectifiers), as will be apparent to one skilled in the art.
The error module 412 is adapted to receive inputs, perform a percent error operation, and output a result. In an embodiment, error module 412 receives data and/or signals indicative of values of the outputs of magnitude modules 410, performs a percent error operation on the values, and outputs data and/or a signal indicative of the value of the result (e.g., error value 314). And the percent error operation performed by error module 412 is accomplished by processor 202 executing processor-executable instructions that comprise local thermo module 220 in accordance with an embodiment of the invention.
At step 710, local thermo module 220 calculates a super-linear approximation value of the indicated independent property of interest. In an exemplary embodiment, step 710 comprises super-linear approximation process 300, as further described herein. Upon calculating the super-linear approximated values, local thermo module 220 returns the values to simulation module 210 at step 712. At step 714, simulation module 210 uses the super-linear approximated values to determine a new solution for the values of the variables and repeats the process until simulation module 210 determines that the values of the variables have converged upon a correct solution. In an embodiment, upon completion of step 714, the process advances to step 716 in which simulation device 104 transmits the results to client device 106 and client device 106 displays the results via a graphical user interface at step 718. In another embodiment, upon completion of step 714, the process advances to step 720 in which simulation device 104 transmits data to components of fluid processing system 120 (e.g., process controller 128) for controlling process components (e.g., pump 122, valves 124) at step 722.
Embodiments of the present invention may comprise a special purpose computer including a variety of computer hardware, as described in greater detail below.
Embodiments within the scope of the present invention also include computer-readable media for carrying or having computer-executable instructions or data structures stored thereon. Such computer-readable media can be any available media that can be accessed by a special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code means in the form of computer-executable instructions or data structures and that can be accessed by a general purpose or special purpose computer. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a computer-readable medium. Thus, any such connection is properly termed a computer-readable medium. Combinations of the above should also be included within the scope of computer-readable media. Computer-executable instructions comprise, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions.
The following discussion is intended to provide a brief, general description of a suitable computing environment in which aspects of the invention may be implemented. Although not required, aspects of the invention will be described in the general context of computer-executable instructions, such as program modules, being executed by computers in network environments. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of the program code means for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represent examples of corresponding acts for implementing the functions described in such steps.
Those skilled in the art will appreciate that aspects of the invention may be practiced in network computing environments with many types of computer system configurations, including personal computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. Aspects of the invention may also be practiced in distributed computing environments where tasks are performed by local and remote processing devices that are linked (either by hardwired links, wireless links, or by a combination of hardwired or wireless links) through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
An exemplary system for implementing aspects of the invention includes a special purpose computing device in the form of a conventional computer, including a processing unit, a system memory, and a system bus that couples various system components including the system memory to the processing unit. The system bus may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. The system memory includes read only memory (ROM) and random access memory (RAM). A basic input/output system (BIOS), containing the basic routines that help transfer information between elements within the computer, such as during start-up, may be stored in ROM. Further, the computer may include any device (e.g., computer, laptop, tablet, PDA, cell phone, mobile phone, a smart television, and the like) that is capable of receiving or transmitting an IP address wirelessly to or from the internet.
The computer may also include a magnetic hard disk drive for reading from and writing to a magnetic hard disk, a magnetic disk drive for reading from or writing to a removable magnetic disk, and an optical disk drive for reading from or writing to removable optical disk such as a CD-ROM or other optical media. The magnetic hard disk drive, magnetic disk drive, and optical disk drive are connected to the system bus by a hard disk drive interface, a magnetic disk drive-interface, and an optical drive interface, respectively. The drives and their associated computer-readable media provide nonvolatile storage of computer-executable instructions, data structures, program modules, and other data for the computer. Although the exemplary environment described herein employs a magnetic hard disk, a removable magnetic disk, and a removable optical disk, other types of computer readable media for storing data can be used, including magnetic cassettes, flash memory cards, digital video disks, Bernoulli cartridges, RAMs, ROMs, solid state drives (SSDs), and the like.
The computer typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by the computer and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media include both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media are non-transitory and include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, SSDs, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired non-transitory information, which can accessed by the computer. Alternatively, communication media typically embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Program code means comprising one or more program modules may be stored on the hard disk, magnetic disk, optical disk, ROM, and/or RAM, including an operating system, one or more application programs, other program modules, and program data. A user may enter commands and information into the computer through a keyboard, pointing device, or other input device, such as a microphone, joy stick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit through a serial port interface coupled to the system bus. Alternatively, the input devices may be connected by other interfaces, such as a parallel port, a game port, or a universal serial bus (USB). A monitor or another display device is also connected to the system bus via an interface, such as video adapter 48. In addition to the monitor, personal computers typically include other peripheral output devices (not shown), such as speakers and printers.
One or more aspects of the invention may be embodied in computer-executable instructions (i.e., software), routines, or functions stored in system memory or non-volatile memory as application programs, program modules, and/or program data. The software may alternatively be stored remotely, such as on a remote computer with remote application programs. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types when executed by a processor in a computer or other device. The computer executable instructions may be stored on one or more tangible, non-transitory computer readable media (e.g., hard disk, optical disk, removable storage media, solid state memory, RAM, etc.) and executed by one or more processors or other devices. As will be appreciated by one of skill in the art, the functionality of the program modules may be combined or distributed as desired in various embodiments. In addition, the functionality may be embodied in whole or in part in firmware or hardware equivalents such as integrated circuits, application specific integrated circuits, field programmable gate arrays (FPGA), and the like.
The computer may operate in a networked environment using logical connections to one or more remote computers. The remote computers may each be another personal computer, a tablet, a PDA, a server, a router, a network PC, a peer device, or other common network node, and typically include many or all of the elements described above relative to the computer. The logical connections include a local area network (LAN) and a wide area network (WAN) that are presented here by way of example and not limitation. Such networking environments are commonplace in office-wide or enterprise-wide computer networks, intranets and the Internet.
When used in a LAN networking environment, the computer is connected to the local network through a network interface or adapter. When used in a WAN networking environment, the computer may include a modem, a wireless link, or other means for establishing communications over the wide area network, such as the Internet. The modem, which may be internal or external, is connected to the system bus via the serial port interface. In a networked environment, program modules depicted relative to the computer, or portions thereof, may be stored in the remote memory storage device. It will be appreciated that the network connections shown are exemplary and other means of establishing communications over wide area network may be used.
Preferably, computer-executable instructions are stored in a memory, such as the hard disk drive, and executed by the computer. Advantageously, the computer processor has the capability to perform all operations (e.g., execute computer-executable instructions) in real-time.
The order of execution or performance of the operations in embodiments of the invention illustrated and described herein is not essential, unless otherwise specified. That is, the operations may be performed in any order, unless otherwise specified, and embodiments of the invention may include additional or fewer operations than those disclosed herein. For example, it is contemplated that executing or performing a particular operation before, contemporaneously with, or after another operation is within the scope of aspects of the invention.
Embodiments of the invention may be implemented with computer-executable instructions. The computer-executable instructions may be organized into one or more computer-executable components or modules. Aspects of the invention may be implemented with any number and organization of such components or modules. For example, aspects of the invention are not limited to the specific computer-executable instructions or the specific components or modules illustrated in the figures and described herein. Other embodiments of the invention may include different computer-executable instructions or components having more or less functionality than illustrated and described herein.
When introducing elements of aspects of the invention or the embodiments thereof, the articles “a”, “an”, “the” and “said” are intended to mean that there are one or more of the elements. The terms “comprising”, “including”, and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements.
Having described aspects of the invention in detail, it will be apparent that modifications and variations are possible without departing from the scope of aspects of the invention as defined in the appended claims. As various changes could be made in the above constructions, products, and methods without departing from the scope of aspects of the invention, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.