PORE-SCALE, MULTI-COMPONENT, MULTI-PHASE FLUID MODEL AND METHOD
This application claims priority to U.S. Provisional Patent Application No. 62/780,575, filed on Dec. 17, 2018, entitled “PORE-SCALE, MULTI-COMPONENT, MULTI-PHASE FLUID MODEL AND METHOD,” the disclosure of which is incorporated herein by reference in its entirety. Embodiments of the subject matter disclosed herein generally relate to a method for calculating compressible, multi-component, multi-phase fluid flows with partial miscibility based on realistic equations of state, within a given medium. In reservoir engineering and chemical flow, it is desired to calculate a fluid flow through a porous medium. Thus, the study of multi-component and multi-phase fluid systems plays an important role in the thorough and accurate understanding of flow behaviors in a large range of applications. For example, in reservoir engineering, when a numerical simulation is performed to estimate the amount of oil stored in the reservoir and the best way to extract that oil, it is desired to determine whether the studied fluid (e.g., oil and water) can remain in one single phase or will split into multi phases including oil phase, water phase, gas phase, etc. Thermodynamic equilibrium conditions are the basic rules to control the physical properties of the mixture fluid flow, such as composition, density and whether the phase split occurs. Recently, a realistic equation of state (e.g., Peng-Robinson equation of state as introduced in) has attracted interest to being incorporated into the multi-component, multi-phase flow simulation to study the thermodynamical mechanism as it can be applied in many areas, especially in pore scale modeling of subsurface fluid flow [2, 3, 4]. In this regard, the main cause of capillarity, a major immiscible two-phase flow mechanism for systems with a strong wettability preference, is often attributed onto the surface tension, which is mainly determined by the phase behaviors of the multi-component fluids. To better capture the phase properties and behaviors of the various fluids, diffuse interphase models based on Peng-Robinson equation of state have been widely studied in recent years. To understand the physical phenomena involving multiple phases, such as liquid droplets, gas bubbles, and phase change and separation, it is necessary to model and simulate the interface between these phases. Understanding and modeling the interface between phases have been approached by at least three main methodologies at different scales. In the first methodology, Molecular Dynamics and Monte Carlo methods are the main microscopic approaches, which are computationally more challenging as well as more accurate. In the second methodology, which is known as the sharp interface model, a zero-thickness, two-dimensional entity is used to model the interface, where the molar density experiences a jump across the interface. The third approach is known as the diffuse interface model, gradient theory, or phase field theory. In this approach, the interface between two phases is described as a continuum three-dimensional entity which separates the two bulk single-phase fluid regions. The traditional diffuse interface model, e.g., Cahn Hilliard Equation, lacks consistency with the thermodynamics equations, which challenges the energy dissipation property of the numerical scheme, and thus, the simulation time step is limited to a large order. Some new developments were proposed, with van der Waals equation of state considered and incorporated with the hydrodynamic equations (N-S equations), and this improvement is called the “Dynamic van der Waals” model (see). For a multi-component, two-phase flow model using the Peng-Robinson equation of state, the main challenge is the strong non-linearity of the bulk Helmholtz free energy density. Besides this problem, the tight coupling relationship of the molar densities and flow velocity through the convection term in the mass equation and stress force arises from the momentum balance equation. A method that tried to overcome these deficiencies was developed based on a convex-concave splitting of the Helmholtz free energy, which leads to a non-linear and coupled system of mass and momentum balance equations. However, the existing methods are still time and computer intensive as non-linearities are present in the equations to be solved. Thus, there is a need for a new method that can simulate compressible, multi-component, multi-phase flows with partial miscibility based on realistic equations of state and also can reduce the time necessary for a computing system for determining the flow. According to another embodiment, there is a method for calculating a fluid flow in a given underground medium, the method including receiving initial molar densities for components of the fluid; introducing a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng-Robinson equation of state; calculating a molar density niof each component of the fluid based on a discretized scalar auxiliary variable rk; and determining the flow of the fluid based on the calculated molar densities ni. According to another embodiment, there is a computing device for calculating a fluid flow in a given underground medium, the computing device including an interface for receiving initial molar densities for components of the fluid; and a processor connected to the interface. The processor is configured to apply a scalar auxiliary variable r to an inhomogeneous Helmholtz free energy equation with a Peng-Robinson equation of state; calculate a molar density niof each component of the fluid based on a discretized scalar auxiliary variable; and determine the flow of the fluid based on the calculated molar densities ni. According to still another embodiment, there is a non-transitory computer readable medium including computer executable instructions, wherein the instructions, when executed by a processor, implement instructions for calculating a fluid flow in a given underground medium, as discussed herein. The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate one or more embodiments and, together with the description, explain these embodiments. In the drawings: The following description of the embodiments refers to the accompanying drawings. The same reference numbers in different drawings identify the same or similar elements. The following detailed description does not limit the invention. Instead, the scope of the invention is defined by the appended claims. The following embodiments are discussed, for simplicity, with regard to a flow of oil and water in the subsurface of the earth. However, the embodiments discussed herein are applicable to other fluids in other media. Reference throughout the specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with an embodiment is included in at least one embodiment of the subject matter disclosed. Thus, the appearance of the phrases “in one embodiment” or “in an embodiment” in various places throughout the specification is not necessarily referring to the same embodiment. Further, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. According to an embodiment, a linear and decoupled numerical scheme is developed for a multi-component, multi-phase fluid flow, which is also energy stable (i.e., to keep consistent with the Thermodynamic second law, the total energy in a system should decay), and which can speed up the calculations performed by a computing system. The scheme is designed to ensure the physical consistency of the various parameters of the described subsurface. According to this embodiment, a new comprehensive model is able to simulate the multi-component, multi-phase fluid flow, based on incorporating a realistic equation of state (e.g., Peng-Robinson equation of state) with the Diffuse Interface Model and also using the scalar auxiliary variable (SAV). The next paragraphs describe the basic thermodynamic formulations based on the Peng-Robinson equation of state for a single component fluid. Then, a linear evolution of the molar density, as well as the SAV intermediate term, are derived and the computation scheme is then detailed. Afterwards, the single-component system is extended to a multi-component system using a similar process. Furthermore, some examples are presented to illustrate the improvements achieved by the novel scheme for a realistic petroleum industry example. Then, the robustness and efficiency of the new scheme are verified through comparisons with existing experimental data. The Peng-Robison equation of state for the single component fluid is now discussed in preparation of introducing the novel scheme. Note that the Peng-Robinson equation of state describes a gas under given conditions, relating to pressure, temperature and a volume of the constituent matter. A real homogeneous fluid system 100 having a single component is considered to have a diffuse interface 110 between two phases 120 and 130, as illustrated in where f(n) is the total (inhomogeneous) Helmholtz energy, and n is the molar density, which represents the particle number per unit volume for the single component as given by equation: The homogeneous Helmholtz free energy f0(n) of a homogeneous fluid with the Peng-Robinson equation of state is given by: where R is the gas constant, having a value of 8.31432 J/(mol·K), T is the temperature of the fluid, “i” describes the components of the fluid, and M is the total number of components. Parameter a=a(T) is the pressure correction coefficient and b=b(T) is the volume correction, and they have the following expressions: In equations (4) and (5), yirepresents the mole fraction of the ith component of the fluid, and kijrepresents the binary interaction of the Peng-Robison equation of state. The aiand biparameters in equations (4) and (5) are given by: where Tciand Pciare the properties (i.e., the critical temperature and critical pressure) of the ith component of the fluid. The term mihas the form: The parameter ωican be calculated as being: The gradient contribution f∇(n) can be described by the relation: where cijis the influence parameter, which is defined by: and βijis the binary coefficient, but it usually treated to be zero in most calculations. However, computing the total Helmholtz energy density, which is described by equations (1) and (9), is not straightforward and is also computationally intensive because of the non-linearity of the equations. Thus, according to an embodiment, the total Helmholtz free energy F, which is the integral over a given volume in space of the total Helmholtz free energy density f(n), can be written using the Peng-Robinson equation of state as follows: where Ω represents the considered volume, x is a three-dimensional coordinate describing a point in the volume Ω, and C is the influence parameter, similar to cijdiscussed above in equation (10). The homogenous term Epof the total Helmholtz free energy F has the form: To simplify the calculations of the Helmholtz free energy F for a flow of a multi-component fluid underground (which is associated with an oil and/or gas reservoir), the scalar auxiliary variable (SAV) scheme is used to introduce the following term: where C0is a constant used to make sure that Ep+C0≥0. With the scalar auxiliary variable, the total Helmholtz free energy F can be rewritten as follows: Then, the original problem (also called gradient flow in the art) for calculating the flow in the subsurface, which is described by equation (15), can be written as following by using equation (14), where μ is the chemical potential, With equation (16), the single-component, multi-phase system can be rewritten as: The set of equations (17) can be discretized using, for example, a finite difference formula (which is a family of implicit methods for the numerical integration of ordinary differential equations; they are linear multistep methods that, for a given function and time, approximate the derivative of that function using information from already computed times, thereby increasing the accuracy of the approximation): where h is the approximation, and k is an integer that describes successive values of an associated parameter (e.g., r or n) as this parameter changes in time and/or space. The evolution scheme for the molar density n can then be calculated as: It is noted that equations (19) and (20) are now linear and thus, they do not require intensive CPU resources for solving them. A method that implements the above discussed algorithm is now discussed with regard to The above method may be extended to a multi-component fluid as now discussed. The multi-component fluid is considered to have “i” components, where i varies from 1 to any integer. For this case, nirepresents the molar density for the i-th component and μiis the chemical potential for the i-th component. With this convention, the multi-component fourth-order model with the Peng-Robinson equation of state can be written as follows: where Ni0is the total particle amount of the i-th component at the initial state, and N0is the total particle amount of all the components at the initial state, Di>0 is the diffusion coefficient of the i-th component, and Jiis the diffusion flux. The total chemical potential μiof the i-th component is a combination of two parts: Similarly, the Helmholtz free energy F of the total system has two components: where the homogenous Helmholtz free energy part has the form: and the gradient part has the form: Here, the term in SAV is defined as: Thus, by using equation (26), the chemical potential described by equation (22) can be rewritten as: The SAV discretized scheme for the multicomponent multiphase flow then becomes: where the intermediate functions L can be defined as: The method discussed with regard to The discretizing step may include applying a finite difference algorithm. In one application, the scalar auxiliary variable r is equal to a square root of a sum of (1) a homogeneous Helmholtz energy part of the inhomogeneous Helmholtz free energy with the Peng-Robinson equation of state, and (2) a constant. The method may further include iteratively calculating the scalar auxiliary variable and the molar density until the molar density converges, and/or obtaining two linear equations for calculating the scalar auxiliary variable and the molar density. The methods discussed herein have been tested as now discussed. First, tests were conducted on pore-scale, i.e., a single pore. In reservoir simulation, pore-scale study is important as it can represent the fundamental flow behaviors in subsurface porous media (reservoir). In oil and gas reservoir, the pore radius can be very small (micrometers or even nanometers). Thus, the flow property of the simulated fluid is not visible and for this reason, it is customary in the art, to simulate a single droplet of fluid to represent the small-scale fluid flow. The simulations discussed herein also indicate the efficiency and robustness of the algorithm that calculates the single pore. The entire domain (space volume) Ω for which the calculations are performed can be represented by a volume defined as Ω=2·10−8m3, which is associated with the volume of a single pore located in the subsurface porous media, which is described by a uniform mesh of 200*200*200 grids and the time step is 0.0001s. To prove the conservation property of the methods illustrated in The equations derived above with the SAV scheme improve the efficiency of the computing device that implements these calculations as now discussed. The CPU time needed by the computing device for each numerical simulation with an increasing number of the mesh size is presented in The previous examples applied the method shown in The method discussed above may be extended to simulate a multi-component, multi-phase, fluid flow at a larger scale (note that the previous figures illustrate a single pore). In this case, the oil-water separation process is simulated with several droplets. The specific velocity in each case (of It is also possible to study the effect of temperature on the oil-water separation. In this regard, A computing device 1500 suitable for performing the activities described in the above embodiments is now discussed with regard to Server 1501 may also include one or more data storage devices, including hard drives 1512, CD-ROM drives 1514 and other hardware capable of reading and/or storing information, such as DVD, etc. In one embodiment, software for carrying out the above-discussed steps may be stored and distributed on a CD-ROM or DVD 1516, a USB storage device 1518 or other form of media capable of portably storing information. These storage media may be inserted into, and read by, devices such as CD-ROM drive 1514, disk drive 1512, etc. Server 1501 may be coupled to a display 1520, which may be any type of known display or presentation screen, such as LCD, plasma display, cathode ray tube (CRT), etc. A user input interface 1522 is provided, including one or more user interface mechanisms such as a mouse, keyboard, microphone, touchpad, touch screen, voice-recognition system, etc. The server may be part of a larger network configuration as in a global area network (GAN) such as the Internet 1528, which allows ultimate connection to various landline and/or mobile computing devices. The disclosed embodiments provide methods and systems for determining a fluid flow in various conditions, for example, in the subsurface of the Earth. It should be understood that this description is not intended to limit the invention. On the contrary, the embodiments are intended to cover alternatives, modifications and equivalents, which are included in the spirit and scope of the invention as defined by the appended claims. Further, in the detailed description of the embodiments, numerous specific details are set forth in order to provide a comprehensive understanding of the claimed invention. However, one skilled in the art would understand that various embodiments may be practiced without such specific details. Although the features and elements of the present embodiments are described in the embodiments in particular combinations, each feature or element can be used alone without the other features and elements of the embodiments or in various combinations with or without other features and elements disclosed herein. This written description uses examples of the subject matter disclosed to enable any person skilled in the art to practice the same, including making and using any devices or systems and performing any incorporated methods. The patentable scope of the subject matter is defined by the claims, and may include other examples that occur to those skilled in the art. Such other examples are intended to be within the scope of the claims. A method for calculating a fluid flow in a given underground medium, the method including receiving initial molar densities for components of the fluid; introducing a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng-Robinson equation of state; calculating a molar density niof each component of the fluid based on a discretized scalar auxiliary variable rk; and determining the flow of the fluid based on the calculated molar densities ni. 1. A method for calculating a fluid flow in a given underground medium, the method comprising:
receiving initial molar densities for components of the fluid; introducing a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng-Robinson equation of state; calculating a molar density niof each component of the fluid based on a discretized scalar auxiliary variable rk; and determining the flow of the fluid based on the calculated molar densities ni. 2. The method of applying an inhomogeneous Helmholtz free energy equation for the fluid; and modifying the inhomogeneous Helmholtz free energy equation based on the Peng-Robinson equation of state to obtain the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state. 3. The method of discretizing the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state. 4. The method of solving the discretized inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state to obtain the discretized scalar auxiliary variable. 5. The method of 6. The method of 7. The method of 8. The method of iteratively calculating the scalar auxiliary variable and the molar density until the molar density converges. 9. The method of obtaining two linear equations for calculating the discretized scalar auxiliary variable and the discretized molar density. 10. A computing device for calculating a fluid flow in a given underground medium, the computing device comprising:
an interface for receiving initial molar densities for components of the fluid; and a processor connected to the interface and configured to, apply a scalar auxiliary variable r to an inhomogeneous Helmholtz free energy equation with a Peng-Robinson equation of state; calculate a molar density niof each component of the fluid based on a discretized scalar auxiliary variable; and determine the flow of the fluid based on the calculated molar densities ni. 11. The device of receive an inhomogeneous Helmholtz free energy equation for the fluid; and modify the inhomogeneous Helmholtz free energy equation based on Peng-Robinson equation of state to obtain the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state. 12. The device of discrete the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state. 13. The device of solve the discretized inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state to obtain the discretized scalar auxiliary variable. 14. The device of 15. The device of 16. The device of 17. The device of iteratively calculate the scalar auxiliary variable and the molar density until the molar density converges. 18. The device of obtain two linear equations for calculating the discretized scalar auxiliary variable and the discretized molar density. 19. A non-transitory computer readable medium including computer executable instructions, wherein the instructions, when executed by a processor, implement instructions for calculating a fluid flow in a given underground medium, the instructions comprising:
receiving initial molar densities for components of the fluid; introducing a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng-Robinson equation of state; calculating a molar density niof each component of the fluid based on a discretized scalar auxiliary variable rk; and determining the flow of the fluid based on the calculated molar densities ni. 20. The medium of applying an inhomogeneous Helmholtz free energy equation for the fluid; modifying the inhomogeneous Helmholtz free energy equation based on Peng-Robinson equation of state to obtain the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state; discretizing the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state; and solving the discretized inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state to obtain the discretized scalar auxiliary variable.CROSS-REFERENCE TO RELATED APPLICATIONS
BACKGROUND
Technical Field
Discussion of the Background
SUMMARY
BRIEF DESCRIPTION OF THE DRAWINGS
DETAILED DESCRIPTION
REFERENCES



















