WO2020128664A1 - Pore-scale, multi-component, multi-phase fluid model and method - Google Patents

Pore-scale, multi-component, multi-phase fluid model and method Download PDF

Info

Publication number
WO2020128664A1
WO2020128664A1 PCT/IB2019/059501 IB2019059501W WO2020128664A1 WO 2020128664 A1 WO2020128664 A1 WO 2020128664A1 IB 2019059501 W IB2019059501 W IB 2019059501W WO 2020128664 A1 WO2020128664 A1 WO 2020128664A1
Authority
WO
WIPO (PCT)
Prior art keywords
equation
fluid
free energy
peng
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/IB2019/059501
Other languages
French (fr)
Inventor
Shuyu Sun
Tao Zhang
Xiaolin Fan
Yiteng LI
Jingfa LI
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
King Abdullah University of Science and Technology KAUST
Original Assignee
King Abdullah University of Science and Technology KAUST
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by King Abdullah University of Science and Technology KAUST filed Critical King Abdullah University of Science and Technology KAUST
Priority to US17/298,969 priority Critical patent/US20220035071A1/en
Publication of WO2020128664A1 publication Critical patent/WO2020128664A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V20/00Geomodelling in general
    • EFIXED CONSTRUCTIONS
    • E21EARTH OR ROCK DRILLING; MINING
    • E21BEARTH OR ROCK DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS
    • E21B49/00Testing the nature of borehole walls; Formation testing; Methods or apparatus for obtaining samples of soil or well fluids, specially adapted to earth drilling or wells
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/28Design optimisation, verification or simulation using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
    • EFIXED CONSTRUCTIONS
    • E21EARTH OR ROCK DRILLING; MINING
    • E21BEARTH OR ROCK DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS
    • E21B47/00Survey of boreholes or wells
    • E21B47/10Locating fluid leaks, intrusions or movements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/08Fluids

Definitions

  • 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.
  • 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.
  • a realistic equation of state e.g., Peng- Robinson equation of state as introduced in [1]
  • Peng- Robinson equation of state as introduced in [1]
  • 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.
  • diffuse interphase models based on Peng-Robinson equation of state have been widely studied in recent years.
  • 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.
  • 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
  • the traditional diffuse interface model 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 [5]).
  • a method for calculating a fluid flow in a given underground medium 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 m of each component of the fluid based on a discretized scalar auxiliary variable r k ; and determining the flow of the fluid based on the calculated molar densities m.
  • 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 m of 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 m.
  • 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.
  • Figure 1 illustrates an interface between two phases of a fluid
  • Figure 2 is a flowchart of a method for calculating a flow of a fluid having a single component
  • Figure 3 is a flowchart of a method for calculating a flow of a fluid having plural components
  • Figures 4A to 4D illustrate an oil droplet calculated with the above method
  • Figure 5 illustrates that a mass of the model used to calculate the flow of fluid is stable and Figure 6 illustrates that the energy of the fluid is decreasing in time;
  • Figure 7 compares the CPU time for calculating the fluid flow with the present method and a traditional convex-splitting method
  • Figures 8A to 8D illustrate how the present method calculates the interface between a liquid component and a gas component for a fluid flow
  • Figures 9A and 9B illustrate the mass conservation for the fluid flow
  • Figure 10 illustrates that the total free energy of the fluid flow dissipates
  • Figures 11 A to 11 F illustrate the movement of three droplets of oil in water, when released from a vertical electrode and calculated with the method of Figure 3;
  • Figures 12A to 12F illustrate the movement of three droplets of oil in water, when released from a horizontal electrode and calculated with the method of Figure 3;
  • Figure 13 illustrates the rising velocity of the droplets illustrated in Figures 11A to 12F;
  • Figure 14 illustrates the rising velocity of oil droplets in water as a function of the temperature
  • Figure 15 illustrates a computing system that implements one or more of the methods discussed herein.
  • 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.
  • 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).
  • a realistic equation of state e.g., Peng-Robinson equation of state
  • SAV scalar auxiliary variable
  • 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.
  • Peng-Robison equation of state for the single component fluid is now discussed in preparation of introducing the novel scheme.
  • 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 Figure 1.
  • the diffuse interface model with the gradient contribution is selected.
  • the Helmholtz free energy is used as the kernel.
  • f(n) is the total (inhomogeneous) Helmholtz energy
  • n is the molar density, which represents the particle number per unit volume for the single component as given by equation:
  • 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
  • M is the total number of components.
  • equations (4) and (5) yi represents the mole fraction of the ith component of the fluid, and kij represents the binary interaction of the Peng-Robison equation of state.
  • a; and bi parameters in equations (4) and (5) are given by:
  • T Ci and P c/ are the properties (i.e., the critical temperature and critical pressure) of the ith component of the fluid.
  • mi has the form:
  • the parameter w* can be calculated as being:
  • c,y is the influence parameter, which is defined by:
  • 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:
  • E p of the total Helmholtz free energy F has the form:
  • the scalar auxiliary variable (SAV) scheme is used to introduce the following term:
  • 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):
  • n 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:
  • step 200 the molar density Y" 0 of the single component fluid is received, as well as the identity of the single component (e.g., propane, ethene, etc.).
  • step 202 the parameters C, a, and b discussed above are determined for the single component.
  • step 204 the Helmholtz free energy of the single component is selected and in step 206, the Helmholtz free energy is modified based on the Peng-Robinson equation of state.
  • step 208 the scalar auxiliary variable is introduced (see equation (13)), and in step 210, the Helmholtz free energy with the Peng-Robinson equation of state (see equation (15)) is transformed based on the scalar auxiliary variable to obtain the SAV Helmholtz free energy with the Peng-Robinson equation of state (see equation (16)).
  • step 212 the SAV Helmholtz free energy with the Peng-Robinson equation of state is discretized, for example, with a finite difference approximation, to obtain the discrete value of the molar density of the component and the variable r of the SAV scheme (see equation (18)).
  • step 214 the value of scalar auxiliary variable /* is calculated (see equation (19)) and in step 216, the value of the molar density n k is calculated (see equation (20)) based on the value of the scalar auxiliary variable /*.
  • step 218 determination is made in step 218 that a result of the molar density converges, i.e., n k+ 1 n k £ E, where e is a small predetermined convergence criteria.
  • the loop stops at step 218, and the flow of the component is estimated in step 220, based on the molar density n k+1 of the component.
  • the molar densities calculated in step 216 are considered to be static values, i.e., constants at a given time. However, by being able to determine the molar densities at each point in a given volume, and plotting these values, the distribution of the fluid in the subsurface could be visualized.
  • the flow of the fluid can be visualized in step 220.
  • 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.
  • m represents the molar density for the i-th component and m* is the chemical potential for the i-th component.
  • the multi-component fourth-order model with the Peng-Robinson equation of state can be written as follows:
  • is the total particle amount of the i-th component at the initial state
  • is the total particle amount of all the components at the initial state
  • Di > 0 is the diffusion coefficient of the i-th component
  • m* of the i-th component is a combination of two parts:
  • the Helmholtz free energy F of the total system has two components:
  • such a method is illustrated in Figure 3 and includes a step 300 of receiving initial molar densities for components of the fluid; a step 302 of applying an inhomogeneous Helmholtz free energy equation for the fluid; a step 304 of 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; a step 306 of introducing a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng- Robinson equation of state; a step 308 of discretizing the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state; a step 310 of solving the discretized inhomogeneous Helmholtz free energy equation with the Peng- Robinson equation of state to obtain the discretized scalar auxiliary variable; a step 312 of calculating a molar density m
  • the discretizing step may include applying a finite difference algorithm.
  • 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.
  • pore-scale i.e., a single pore.
  • pore-scale study is important as it can represent the fundamental flow behaviors in subsurface porous media (reservoir).
  • the pore radius can be very small (micrometers or even nanometers).
  • 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.
  • Figures 4A to 4D show the molar density 400 calculated for a droplet 402 of liquid nC4, which is the main component of oil.
  • Figures 4A to 4D show the evolution history of the 3D simulation of the droplet 402, which describes a cube liquid droplet in Figure 4A, which changes its shape into a perfect ball shape in Figure 4D, after an iteration of 3000 steps (steps 214 and 216 in Figure 2) performed by a computing device that implements the method.
  • This transformation of the droplet 402 is due to the surface tension.
  • a very short CPU time is needed for arriving at the 3D simulation shown in Figure 4D, which indicates that the calculations performed by the computing device using this novel scheme are quick, reaching the steady state in a matter of a few minutes compared to hours or days for the existing methods.
  • Figure 4A shows the droplet 402 after one step
  • Figure 4B shows the droplet after 1000 steps
  • Figure 4C shows the droplet 402 after 2000 steps
  • Figure 4D shows the droplet 402 after 3000 steps.
  • Figures 2 and 3 both the mass conservation and the energy dissipation for the model discussed above is calculated, as illustrated in Figures 5 and 6.
  • Figure 5 shows that the total mass 500 is conserved during the above noted computations
  • Figure 6 shows that the total free energy J 600 is dissipated, which is consistent with the 2 nd law of thermodynamics.
  • the methods introduced herein conserve the mass and dissipates the total free energy, which is consistent with what is expected for a model that describes a fluid flow.
  • FIG. 11A to 11 F illustrate the rising and fusion process of three oil droplets 1100, 1102 and 1104 formed in a tank 1110 filled with water 1120.
  • the initial conditions require that the droplets 1100, 1102, and 1104 are generated on an electrode plate 1130 placed vertically in the tank 1110 as shown in Figure 11A. It can be seen that the three droplets begin to merge in Figure 11C and they are completely merged in Figure 11 F.
  • Figures 12A to 12F show similar droplets 1200, 1202, and 1204 being generated on a horizontal electrode plate 1130 (see Figure 12A). It is noted that the rising process is faster if the plate is put vertically (reach to the tank earlier), which is preferred during separation process. A faster motion means that the oil in water can be separated faster. Note that the shape and position of the droplets in the figures are calculated based on equations (28) and (29).
  • Figure 14 illustrates the average rising velocity of the oil droplets as a function of temperature, with curve 1400 corresponding to an environment temperature of 283.15K and curve 1402 corresponding to 323.15K. It is noted that the higher the temperature, the better is for the droplet motion. This is so because a higher temperature results in a lower surface tension, which is preferred for the phase motion. Besides, if the separation tank is heated from the top (see curve 1404), the rising of droplets will be accelerated compared to the case when the tank is heated from the bottom (see curve 1402), for the same temperature 323.15K. This result can be helpful to optimize the oil-water separation process for a real well.
  • Computing device 1500 may include a server 1501.
  • a server 1501 may include a central processor (CPU) 1502 coupled to a random access memory (RAM) 1504 and to a read-only memory (ROM) 1506.
  • ROM 1506 may also be other types of storage media to store programs, such as programmable ROM (PROM), erasable PROM (EPROM), etc.
  • Processor 1502 may communicate with other internal and external components through input/output (I/O) circuitry 1508 and bussing 1510 to provide control signals and the like.
  • I/O input/output
  • Processor 1502 carries out a variety of functions as are known in the art, as dictated by software and/or firmware instructions.
  • 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.
  • 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.
  • GAN global area network
  • 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Fluid Mechanics (AREA)
  • Geology (AREA)
  • Mining & Mineral Resources (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Algebra (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Geochemistry & Mineralogy (AREA)
  • Environmental & Geological Engineering (AREA)
  • Geophysics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method for calculating a fluid flow in a given underground medium, the method including receiving (300) initial molar densities for components of the fluid; introducing (306) a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng-Robinson equation of state; calculating (312) a molar density n i of each component of the fluid based on a discretized scalar auxiliary variable r k ; and determining (314) the flow of the fluid based on the calculated molar densities n i .

Description

PORE-SCALE, MULTI-COMPONENT, MULTI-PHASE
FLUID MODEL AND METHOD
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Patent Application No. 62/780,575, filed on December 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.
BACKGROUND
TECHNICAL FIELD
[0002] 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.
DISCUSSION OF THE BACKGROUND
[0003] 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.
[0004] 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 [1]) 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.
[0005] 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.
[0006] 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 [5]).
[0007] 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 [6]
[0008] 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.
SUMMARY
[0009] 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 m of 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 m.
[0010] 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 m of 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 m.
[0011] 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. BRIEF DESCRIPTON OF THE DRAWINGS
[0012] 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:
[0013] Figure 1 illustrates an interface between two phases of a fluid;
[0014] Figure 2 is a flowchart of a method for calculating a flow of a fluid having a single component;
[0015] Figure 3 is a flowchart of a method for calculating a flow of a fluid having plural components;
[0016] Figures 4A to 4D illustrate an oil droplet calculated with the above method;
[0017] Figure 5 illustrates that a mass of the model used to calculate the flow of fluid is stable and Figure 6 illustrates that the energy of the fluid is decreasing in time;
[0018] Figure 7 compares the CPU time for calculating the fluid flow with the present method and a traditional convex-splitting method;
[0019] Figures 8A to 8D illustrate how the present method calculates the interface between a liquid component and a gas component for a fluid flow;
[0020] Figures 9A and 9B illustrate the mass conservation for the fluid flow;
[0021] Figure 10 illustrates that the total free energy of the fluid flow dissipates; [0022] Figures 11 A to 11 F illustrate the movement of three droplets of oil in water, when released from a vertical electrode and calculated with the method of Figure 3;
[0023] Figures 12A to 12F illustrate the movement of three droplets of oil in water, when released from a horizontal electrode and calculated with the method of Figure 3;
[0024] Figure 13 illustrates the rising velocity of the droplets illustrated in Figures 11A to 12F;
[0025] Figure 14 illustrates the rising velocity of oil droplets in water as a function of the temperature; and
[0026] Figure 15 illustrates a computing system that implements one or more of the methods discussed herein.
DETAILED DESCRIPTION
[0027] 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.
[0028] 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.
[0029] 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.
[0030] 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 Figure 1. To describe the phenomenon around the interface 110, the diffuse interface model with the gradient contribution is selected. For this scheme, the Helmholtz free energy is used as the kernel. For describing the behavior of the system at the interface 110, this approach uses not only the homogeneous Helmholtz free energy density /0(n), but also a gradient term / (n): f(n) = /b00 + /v00, (1)
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:
N
n
V (2)
[0031] The homogeneous Helmholtz free energy f0(n ) of a homogeneous fluid with the Peng-Robinson equation of state is given by:
fo(n) = tideal(n) + f0 excess(n),
Figure imgf000012_0001
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:
Figure imgf000012_0002
[0032] In equations (4) and (5), yi represents the mole fraction of the ith component of the fluid, and kij represents the binary interaction of the Peng-Robison equation of state. The a; and bi parameters in equations (4) and (5) are given by:
Figure imgf000013_0001
where TCi and Pc/ are the properties (i.e., the critical temperature and critical pressure) of the ith component of the fluid. The term mi has the form:
nii = 0.37464 + 1.542260 ;— 0.26992w?, for o ; < 0.49, and mi = 0.379642 + 1.4850306w; - 0.164423w? + 0.01666666 w?, /qG w* > 0.49 (7) [0033] The parameter w* can be calculated as being:
Figure imgf000013_0002
The gradient contribution / (n) can be described by the relation:
Figure imgf000013_0003
where c,y is the influence parameter, which is defined by:
cij - (l - bίί)L[<:ί<:ί· (1°)
and ij is the binary coefficient, but it usually treated to be zero in most calculations. [0034] 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:
Figure imgf000014_0001
where W represents the considered volume, x is a three-dimensional coordinate describing a point in the volume W, and C is the influence parameter, similar to c,y discussed above in equation (10). The homogenous term Ep of the total Helmholtz free energy F has the form:
Figure imgf000014_0002
[0035] 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:
Figure imgf000014_0003
where Co is a constant used to make sure that Ep + C0 ³ 0. [0036] Wth the scalar auxiliary variable, the total Helmholtz free energy F can be rewritten as follows:
Figure imgf000015_0001
[0037] Then, the original problem (also called gradient flow in the art) for calculating the flow in the subsurface, which is described by equation (15),
nt + cA2n = Am0, (15)
can be written as following by using equation (14),
nt = Am,
r
m = —CAn + m0(h), (16)
jEp + C0
Figure imgf000015_0002
dn. dv d f
where m is the chemical potential, nt =—, rt =— , and m0 = -^ . With equation (16), the single-component, multi-phase system can be rewritten as:
r
nt + CA2n - Am0( ) = 0 , and
JEP + C0
Figure imgf000015_0003
[0038] 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):
Figure imgf000016_0002
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:
Figure imgf000016_0001
[0039] 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 Figure 2. In step 200, the molar density Y"0 of the single component fluid is received, as well as the identity of the single component (e.g., propane, ethene, etc.). In step 202, the parameters C, a, and b discussed above are determined for the single component.
In step 204, the Helmholtz free energy of the single component is selected and in step 206, the Helmholtz free energy is modified based on the Peng-Robinson equation of state. In step 208, the scalar auxiliary variable is introduced (see equation (13)), and in step 210, the Helmholtz free energy with the Peng-Robinson equation of state (see equation (15)) is transformed based on the scalar auxiliary variable to obtain the SAV Helmholtz free energy with the Peng-Robinson equation of state (see equation (16)). Then, in step 212, the SAV Helmholtz free energy with the Peng-Robinson equation of state is discretized, for example, with a finite difference approximation, to obtain the discrete value of the molar density of the component and the variable r of the SAV scheme (see equation (18)). In step 214, the value of scalar auxiliary variable /* is calculated (see equation (19)) and in step 216, the value of the molar density nk is calculated (see equation (20)) based on the value of the scalar auxiliary variable /*. These steps are repeated until a
determination is made in step 218 that a result of the molar density converges, i.e., nk+ 1 nk £ E, where e is a small predetermined convergence criteria. When the value of the molar density converges, the loop stops at step 218, and the flow of the component is estimated in step 220, based on the molar density nk+1 of the component. Note that the molar densities calculated in step 216 are considered to be static values, i.e., constants at a given time. However, by being able to determine the molar densities at each point in a given volume, and plotting these values, the distribution of the fluid in the subsurface could be visualized. If the values of the molar densities are calculated at successive points in time, and these values are plotted in a dynamic way, the flow of the fluid can be visualized in step 220. [0040] 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, m represents the molar density for the i-th component and m* is 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:
Figure imgf000018_0001
where N° is the total particle amount of the i-th component at the initial state, and N° is the total particle amount of all the components at the initial state, Di > 0 is the diffusion coefficient of the i-th component,
Figure imgf000018_0002
is the diffusion flux. The total chemical potential m* of the i-th component is a combination of two parts:
Figure imgf000018_0003
Similarly, the Helmholtz free energy F of the total system has two components:
F = Fb + Fv, (23)
where the homogenous Helmholtz free energy part has the form:
Fb = f fb(n)dx, (24) and the gradient part has the form: Fv =— f CijVrii Vnijdx. (25)
2 Ja
Here, the term in SAV is defined as:
Figure imgf000019_0001
Thus, by using equation (26), the chemical potential described by equation (22) can be rewritten as:
Figure imgf000019_0002
The SAV discretized scheme for the multicomponent multiphase flow then becomes:
Figure imgf000019_0003
Figure imgf000020_0002
where the intermediate functions L can be defined as:
Figure imgf000020_0001
[0041] The method discussed with regard to Figure 2 may be used with the mathematics presented in equations (21) to (30), so that a flow for a multi- component fluid can be calculated. One skilled in the art would understand that step 200 of the method would have to be changed to receive the molar density for all the components and step 202 to calculate the specific parameters of all the components. For example, such a method is illustrated in Figure 3 and includes a step 300 of receiving initial molar densities for components of the fluid; a step 302 of applying an inhomogeneous Helmholtz free energy equation for the fluid; a step 304 of 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; a step 306 of introducing a scalar auxiliary variable r into an inhomogeneous Helmholtz free energy equation F with a Peng- Robinson equation of state; a step 308 of discretizing the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state; a step 310 of solving the discretized inhomogeneous Helmholtz free energy equation with the Peng- Robinson equation of state to obtain the discretized scalar auxiliary variable; a step 312 of calculating a molar density m of each component of the fluid based on a discretized scalar auxiliary variable rk; and a step 314 of determining the flow of the fluid based on the calculated molar densities r\\.
[0042] 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.
[0043] 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.
[0044] The entire domain (space volume) W for which the calculations are performed can be represented by a volume defined as W = 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. Figures 4A to 4D show the molar density 400 calculated for a droplet 402 of liquid nC4, which is the main component of oil. The droplet (oil droplet) 402 is considered to be at T= 350K in a region of about (0.3L, 0.7L)3, and the rest of the domain 404 is full of the nC4 in the gas phase. Figures 4A to 4D show the evolution history of the 3D simulation of the droplet 402, which describes a cube liquid droplet in Figure 4A, which changes its shape into a perfect ball shape in Figure 4D, after an iteration of 3000 steps (steps 214 and 216 in Figure 2) performed by a computing device that implements the method. This transformation of the droplet 402 is due to the surface tension. A very short CPU time is needed for arriving at the 3D simulation shown in Figure 4D, which indicates that the calculations performed by the computing device using this novel scheme are quick, reaching the steady state in a matter of a few minutes compared to hours or days for the existing methods. Note that Figure 4A shows the droplet 402 after one step, Figure 4B shows the droplet after 1000 steps, Figure 4C shows the droplet 402 after 2000 steps and Figure 4D shows the droplet 402 after 3000 steps. [0045] To prove the conservation property of the methods illustrated in
Figures 2 and 3, both the mass conservation and the energy dissipation for the model discussed above is calculated, as illustrated in Figures 5 and 6. Note that Figure 5 shows that the total mass 500 is conserved during the above noted computations, while Figure 6 shows that the total free energy J 600 is dissipated, which is consistent with the 2nd law of thermodynamics. Thus, the methods introduced herein conserve the mass and dissipates the total free energy, which is consistent with what is expected for a model that describes a fluid flow.
[0046] 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 Figure 7, and compared with the traditional convex-splitting scheme [6] It can be seen that with increasing the mesh size (plotted on the X axis), the CPU time (shown on the Y axis) needed for the convex splitting scheme 702 increases rapidly while the novel methods illustrated in Figures 2 and 3 show the CPU time 700 slightly increasing with the size of the mesh, indicating that a computing system that implements the novel methods can handle very large mesh sizes in an acceptable CPU time. This is due to the specific form of equations (19) and (20).
[0047] The previous examples applied the method shown in Figure 2, i.e. , for a single-component fluid. However, in realistic reservoir simulations, a multi- component fluid is usually encountered. Thus, for the next simulation, a two-phase (liquid and gas phases) binary component fluid mixture is simulated to verify the proposed method illustrated in Figure 3. The mixture fluid consists of methane (CFU) and n-decane (nCioh ). The temperature of the whole domain is assumed to stay constant at a temperature T = 450 K during the simulation. The initial condition is illustrated in Figures 8A and 8B, which considers that there is a square liquid droplet 800 of the first component, and a square liquid droplet 804 of the second
component, in the middle of the domain. A gas mixture 802 is provided for the rest of the domain. Then, as shown in Figures 8C and 8D, there will be a significant difference in the molar density of the liquid and gas phases of the two components. After a given number of iterations, e.g., 1500 in this example, there is a clear gas- liquid interface 810 for the first component and 812 for the second embodiment, with a certain thickness and the interface changes from a square to a circle after a certain number of iterations. Similar to the single component case, the mass for each phase is conserved (see Figures 9A and 9B) and the total free energy F of the fluid system dissipates (see Figure 10).
[0048] 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. Figures 11A to 11 F illustrate the rising and fusion process of three oil droplets 1100, 1102 and 1104 formed in a tank 1110 filled with water 1120. The initial conditions require that the droplets 1100, 1102, and 1104 are generated on an electrode plate 1130 placed vertically in the tank 1110 as shown in Figure 11A. It can be seen that the three droplets begin to merge in Figure 11C and they are completely merged in Figure 11 F. Figures 12A to 12F show similar droplets 1200, 1202, and 1204 being generated on a horizontal electrode plate 1130 (see Figure 12A). It is noted that the rising process is faster if the plate is put vertically (reach to the tank earlier), which is preferred during separation process. A faster motion means that the oil in water can be separated faster. Note that the shape and position of the droplets in the figures are calculated based on equations (28) and (29).
[0049] The specific velocity in each case (of Figures 11 A to 12F) is shown in Figure 13. It is noted that for the case having the electrode plate disposed with a vertical orientation, as illustrated in Figure 11 A, the droplets 1100, 1102, and 1104 will experience a faster velocity 1300 at the beginning, and when they reach the top, their velocity decreases to zero, while for the case having the electrode plate disposed with a horizontal orientation, as in Figure 12A, the velocity 1302 will slowly increase from a minimum value.
[0050] It is also possible to study the effect of temperature on the oil-water separation. In this regard, Figure 14 illustrates the average rising velocity of the oil droplets as a function of temperature, with curve 1400 corresponding to an environment temperature of 283.15K and curve 1402 corresponding to 323.15K. It is noted that the higher the temperature, the better is for the droplet motion. This is so because a higher temperature results in a lower surface tension, which is preferred for the phase motion. Besides, if the separation tank is heated from the top (see curve 1404), the rising of droplets will be accelerated compared to the case when the tank is heated from the bottom (see curve 1402), for the same temperature 323.15K. This result can be helpful to optimize the oil-water separation process for a real well.
[0051] A computing device 1500 suitable for performing the activities described in the above embodiments is now discussed with regard to Figure 15. Computing device 1500 may include a server 1501. Such a server 1501 may include a central processor (CPU) 1502 coupled to a random access memory (RAM) 1504 and to a read-only memory (ROM) 1506. ROM 1506 may also be other types of storage media to store programs, such as programmable ROM (PROM), erasable PROM (EPROM), etc. Processor 1502 may communicate with other internal and external components through input/output (I/O) circuitry 1508 and bussing 1510 to provide control signals and the like. Processor 1502 carries out a variety of functions as are known in the art, as dictated by software and/or firmware instructions.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
References
[1] D.-Y. Peng and D. B. Robinson. A new two-constant equation of state. Industrial Engineering Chemistry Fundamentals, 15(1):59-64;
[2] C. M. Elliott and A. Stuart. The global dynamics of discrete semilinear parabolic equations. SIAM journal on numerical analysis, 3(6): 1622- 1663;
[3] T. Jindrova and J. Mikyska. Fast and robust algorithm for calculation of two- phase equilibria at given volume, temperature, and moles. Fluid Phase Equilibria, 353:101-114;
[4] J. Kou and S. Sun. Thermodynamically consistent modeling and simulation of multi-component two-phase ow with partial miscibility. Computer Methods in Applied Mechanics and Engineering, 331 :623-649; and
[5] Onuki, A. Dynamic van der Waals theory. Physical Review E, 75(3), 036304, 2007.
[6] Q. Peng. A convex-splitting scheme for a diuse interface model with Peng- Robinson equation of state. Advances in Applied Mathematics and Mechanics,
9(5): 1162-1188.

Claims

WHAT IS CLAIMED IS:
1. A method for calculating a fluid flow in a given underground medium, the method comprising:
receiving (300) initial molar densities for components of the fluid;
introducing (306) a scalar auxiliary variable r into an inhomogeneous
Helmholtz free energy equation F with a Peng-Robinson equation of state;
calculating (312) a molar density m of each component of the fluid based on a discretized scalar auxiliary variable rk; and
determining (314) the flow of the fluid based on the calculated molar densities ni.
2. The method of Claim 1 , further comprising:
applying (302) an inhomogeneous Helmholtz free energy equation for the fluid; and
modifying (304) 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 Claim 2, further comprising:
discretizing (308) the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state.
4. The method of Claim 3, further comprising:
solving (310) 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 Claim 3, wherein the discretizing step includes applying a finite difference algorithm.
6. The method of Claim 1 , wherein the fluid is a multi-component, multi-phase fluid.
7. The method of Claim 1 , wherein 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.
8. The method of Claim 1 , further comprising:
iteratively calculating the scalar auxiliary variable and the molar density until the molar density converges.
9. The method of Claim 1 , further comprising:
obtaining two linear equations for calculating the discretized scalar auxiliary variable and the discretized molar density.
10. A computing device (1500) for calculating a fluid flow in a given
underground medium, the computing device (1500) comprising:
an interface (1508) for receiving (300) initial molar densities for components of the fluid; and
a processor (1502) connected to the interface (1508) and configured to, apply (306) a scalar auxiliary variable r to an inhomogeneous Helmholtz free energy equation with a Peng-Robinson equation of state;
calculate (312) a molar density r\\ of each component of the fluid based on a discretized scalar auxiliary variable; and
determine (314) the flow of the fluid based on the calculated molar densities ni.
11. The device of Claim 10, wherein the processor is further configured to: receive (302) an inhomogeneous Helmholtz free energy equation for the fluid; and
modify (304) 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 Claim 11 , wherein the processor is further configured to: discrete (308) the inhomogeneous Helmholtz free energy equation with the
Peng-Robinson equation of state.
13. The device of Claim 12, wherein the processor is further configured to: solve (310) 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 Claim 12, wherein the discretizing step includes applying a finite difference algorithm.
15. The device of Claim 10, wherein the fluid is a multi-component, multi phase fluid.
16. The device of Claim 10, wherein 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.
17. The device of Claim 10, wherein the processor is further configured to: iteratively calculate the scalar auxiliary variable and the molar density until the molar density converges.
18. The device of Claim 11 , wherein the processor is further configured to: 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 (300) initial molar densities for components of the fluid;
introducing (306) a scalar auxiliary variable r into an inhomogeneous
Helmholtz free energy equation F with a Peng-Robinson equation of state;
calculating (312) a molar density m of each component of the fluid based on a discretized scalar auxiliary variable rk; and
determining (314) the flow of the fluid based on the calculated molar densities ni.
20. The medium of Claim 19, further comprising:
applying (302) an inhomogeneous Helmholtz free energy equation for the fluid;
modifying (304) 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 (308) the inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state; and
solving (310) the discretized inhomogeneous Helmholtz free energy equation with the Peng-Robinson equation of state to obtain the discretized scalar auxiliary variable.
PCT/IB2019/059501 2018-12-17 2019-11-05 Pore-scale, multi-component, multi-phase fluid model and method Ceased WO2020128664A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/298,969 US20220035071A1 (en) 2018-12-17 2019-11-05 Pore-scale, multi-component, multi-phase fluid model and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201862780575P 2018-12-17 2018-12-17
US62/780,575 2018-12-17

Publications (1)

Publication Number Publication Date
WO2020128664A1 true WO2020128664A1 (en) 2020-06-25

Family

ID=68542690

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2019/059501 Ceased WO2020128664A1 (en) 2018-12-17 2019-11-05 Pore-scale, multi-component, multi-phase fluid model and method

Country Status (2)

Country Link
US (1) US20220035071A1 (en)
WO (1) WO2020128664A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117191648A (en) * 2023-09-08 2023-12-08 江苏大学 A prediction method for the surface tension of (H2+N2)/H2O system based on linear gradient theory and PR state equation
CN120317175B (en) * 2025-04-07 2025-12-09 长江大学 Diffusion coefficient calculation method considering nano finite field effect

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7526418B2 (en) * 2004-08-12 2009-04-28 Saudi Arabian Oil Company Highly-parallel, implicit compositional reservoir simulator for multi-million-cell models
CA2803068C (en) * 2010-07-29 2016-10-11 Exxonmobil Upstream Research Company Method and system for reservoir modeling
WO2015084655A1 (en) * 2013-12-04 2015-06-11 Schlumberger Canada Limited Construction of digital representation of complex compositional fluids
CA2920879A1 (en) * 2013-12-20 2015-06-25 Halliburton Energy Services, Inc. Methods and systems for monitoring spontaneous potentials in downhole environments
WO2017079178A1 (en) * 2015-11-02 2017-05-11 Schlumberger Technology Corporation Cloud-based digital rock analysis and database services
CA3033003A1 (en) * 2016-08-08 2018-02-15 Board Of Regents, The University Of Texas System Coinjection of dimethyl ether and steam for bitumen and heavy oil recovery

Non-Patent Citations (9)

* Cited by examiner, † Cited by third party
Title
C. M. ELLIOTTA. STUART: "The global dynamics of discrete semilinear parabolic equations", SIAM JOURNAL ON NUMERICAL ANALYSIS, vol. 3, no. 6, pages 1622 - 1663
D.-Y. PENGD. B. ROBINSON: "A new two-constant equation of state", INDUSTRIAL ENGINEERING CHEMISTRY FUNDAMENTALS, vol. 15, no. 1, pages 59 - 64
FAN XIAOLIN ET AL: "Modeling Pore-Scale Oil-Gas Systems Using Gradient Theory with Peng-Robinson Equation of State", PROCEDIA COMPUTER SCIENCE, ELSEVIER, AMSTERDAM, NL, vol. 80, 1 June 2016 (2016-06-01), pages 1364 - 1373, XP029565813, ISSN: 1877-0509, DOI: 10.1016/J.PROCS.2016.05.434 *
J.S. SUN: "Thermodynamically consistent modeling and simulation of multi-component two-phase ow with partial miscibility", COMPUTER METHODS IN APPLIED MECHANICS AND ENGINEERING, vol. 331, pages 623 - 649
JISHENG KOU ET AL: "Thermodynamically consistent modeling and simulation of multi-component two-phase flow model with partial miscibility", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 25 November 2016 (2016-11-25), XP080734682 *
KOU JISHENG ET AL: "Multi-scale diffuse interface modeling of multi-component two-phase flow with partial miscibility", JOURNAL OF COMPUTATIONAL PHYSICS, LONDON, GB, vol. 318, 10 May 2016 (2016-05-10), pages 349 - 372, XP029550727, ISSN: 0021-9991, DOI: 10.1016/J.JCP.2016.04.055 *
ONUKI, A: "Dynamic van der Waals theory", PHYSICAL REVIEW E, vol. 75, no. 3, 2007, pages 036304
Q. PENG: "A convex-splitting scheme for a diuse interface model with Peng-Robinson equation of state", ADVANCES IN APPLIED MATHEMATICS AND MECHANICS, vol. 9, no. 5, pages 1162 - 1188
T. JINDROVAJ. MIKYSKA: "Fast and robust algorithm for calculation of two-phase equilibria at given volume, temperature, and moles", FLUID PHASE EQUILIBRIA, vol. 353, pages 101 - 114, XP028682847, DOI: 10.1016/j.fluid.2013.05.036

Also Published As

Publication number Publication date
US20220035071A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
Adami et al. A generalized wall boundary condition for smoothed particle hydrodynamics
Beuth et al. Solution of quasi‐static large‐strain problems by the material point method
Ville et al. Convected level set method for the numerical simulation of fluid buckling
Soh et al. An algorithm to calculate interfacial area for multiphase mass transfer through the volume-of-fluid method
Kimmritz et al. On the convergence of the modified elastic–viscous–plastic method for solving the sea ice momentum equation
Choi et al. Generation of regular and irregular waves in Navier-Stokes CFD solvers by matching with the nonlinear potential wave solution at the boundaries
Le Brocq et al. West Antarctic balance calculations: impact of flux-routing algorithm, smoothing algorithm and topography
CA2770602C (en) System and method of hydrocarbon formation modeling
Fuster An energy preserving formulation for the simulation of multiphase turbulent flows
Caltagirone et al. On primitive formulation in fluid mechanics and fluid-structure interaction with constant piecewise properties in velocity-potentials of acceleration
Biscarini et al. Detailed simulation of complex hydraulic problems with macroscopic and mesoscopic mathematical methods
Gladstone et al. Grounding line migration in an adaptive mesh ice sheet model
Müller et al. Solver-based vs. grid-based multilevel Monte Carlo for two phase flow and transport in random heterogeneous porous media
Samuel et al. Modeling advection in geophysical flows with particle level sets
US20220035071A1 (en) Pore-scale, multi-component, multi-phase fluid model and method
Wiklund et al. Boundary condition considerations in lattice Boltzmann formulations of wetting binary fluids
KR102026154B1 (en) The method for numerical simulation of shallow water waves in shallow flows
Manzke Development of a scalable method for the efficient simulation of flows using dynamic goal-oriented local grid-adaptation
Frei et al. Eulerian techniques for fluid-structure interactions: Part II–Applications
WO2020070571A1 (en) Physics-preserving impes scheme and system
Walters et al. Semi-Lagrangian methods for a finite element coastal ocean model
Löfgren et al. Increasing numerical stability of mountain valley glacier simulations: implementation and testing of free-surface stabilization in Elmer/Ice
Agarwal Numerical Methods for Fast Simulation of a Red Blood Cell
Özgen et al. Modeling shallow water flow and transport processes with small water depths using the hydroinformatics modelling system
Ahmadullah et al. Construction of hydraulically balanced water distribution network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19802283

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19802283

Country of ref document: EP

Kind code of ref document: A1