# US 2023/0273179 A1 · Stability check for thermal compositional simulation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273179 A1
- Document ID: US20230273179A1
- Status: Published application
- Kind: A1
- Application number: 17/998,723
- Filed: 2021-05-13
- Published: 2023-08-31
- Earliest claimed: 2020-05-15
- Assignees: Schlumberger Technology Corporation
- Applicants: Schlumberger Technology Corporation
- Inventors: Mohammad Reza HEIDARI
- Web page: https://patentgrep.com/patent/US20230273179A1

## CPC

- G01N 33/2823: {Raw oil, drilling fluid or polyphasic mixtures}
- G06F 17/11: for solving equations {, e.g. nonlinear equations, general mathematical optimization problems (optimization specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 30/23: using finite element methods [FEM] or finite difference methods [FDM]
- G06F 30/28: using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
- E21B 2200/20: Computer models or simulations, e.g. for reservoirs under production, drill bits
- G06F 2113/08: Fluids
- G06F 2113/14: Pipes
- G01N: INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES (measuring or testing apparatus or processes other than immunoassay, involving enzymes or microorganisms C12M, C12Q)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- E21B: EARTH OR ROCK DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS

## Abstract

Systems and methods are provided for determining a phase state of a thermal compositional fluid sample. An exemplary method includes: providing a first set of parameters from an oilfield operation for a thermal compositional fluid sample; constructing a mass balance function for testing whether a phase of the thermal compositional fluid sample exists; inputting a sequence of time-steps to a numerical iterations technique; solving a system of nonlinear mass and energy conservation equations associated with the thermal compositional fluid sample; determining whether the system of nonlinear mass and energy conservation equations converges to provide a first solution; determining an existing phase state of the thermal compositional fluid sample; performing a stability test on the existing phase of the thermal compositional fluid sample; determining whether the thermal compositional fluid sample includes a new phase state; and updating the first set parameters based on the results from the stability test.

## Claims

### Claim 1

A method for determining a phase state of a thermal compositional fluid sample comprising:
providing, using one or more computing device processors, a first set of parameters from an oilfield operation for a thermal compositional fluid sample;
constructing, using the one or more computing device processors, a mass balance function for testing whether a phase of the thermal compositional fluid sample exists based on the first set of parameters;
inputting, using the one or more computing device processors, a sequence of time-steps to a numerical iterations technique based on the mass balance function;
solving, using the one or more computing device processors, a system of nonlinear mass and energy conservation equations associated with the thermal compositional fluid sample using the numerical iterations technique;
determining, using the one or more computing device processors, whether the system of nonlinear mass and energy conservation equations converges over a single step to provide a first solution to the system of nonlinear mass and energy conservation equations;
in response to the system of nonlinear mass and energy conservation equations converging, determining, using the one or more computing device processors, an existing phase state of the thermal compositional fluid sample as indicated by the first solution;
in response to determining the existing phase state, performing, using the one or more computing device processors, a stability test on the existing phase of the thermal compositional fluid sample based on the first solution;
determining, using the one or more computing device processors, whether the thermal compositional fluid sample includes an appearance of a new phase state based on results from the stability test; and
updating, using the one or more computing device processors, the first set parameters based on the results from the stability test to be applied to a next iteration of the numerical iterations technique.

### Claim 2 (depends on 1)

The method of claim 1, wherein providing the first set of parameters comprises providing pressure, temperature, or molar rate of the thermal compositional fluid sample.

### Claim 3 (depends on 1)

The method of claim 1, wherein constructing the mass balance function comprises constructing a monotonic mass balance equation in a gas phase split.

### Claim 4 (depends on 1)

The method of claim 1, wherein inputting the sequence of time-steps to the numerical iterations technique comprises providing an initial time-step to form the sequence of time-steps.

### Claim 5 (depends on 1)

The method of claim 1, wherein inputting the sequence of time-steps to the numerical iterations technique comprises utilizing a Newton-Raphson numerical technique.

### Claim 6 (depends on 1)

The method of claim 1, wherein solving the system of nonlinear mass and energy conservation equations comprises utilizing the system of nonlinear mass and energy conservation equations to test for existence of oleic, gaseous and aqueous phases in the thermal compositional fluid sample.

### Claim 7 (depends on 1)

The method of claim 1, wherein performing the stability test comprises confirming a simulator architecture associated with performing the stability test.

### Claim 8 (depends on 1)

The method of claim 1, wherein performing the stability test comprises performing the stability test on a set of primary variables used by a simulator.

### Claim 9 (depends on 7)

The method of claim 7, wherein performing the stability test comprises computing a component mole fraction for the new phase and the existing phase based on the stability test.

### Claim 10

A method for determining a phase state of a thermal compositional fluid sample comprising:
providing, using one or more computing device processors, a first set of parameters from an oilfield operation for a thermal compositional fluid sample;
constructing, using the one or more computing device processors, a mass balance function for testing whether a phase of the thermal compositional fluid sample exists based on the first of parameters;
providing, using the one or more computing device processors, a first set of equilibrium k-values for one or more hydrocarbon components of the thermal compositional fluid sample between an oleic phase and a gaseous phase based on the mass balance function;
providing, using the one or more computing device processors, a second equilibrium k-value for a water component of the thermal compositional fluid sample between an aqueous phase and the gaseous phase;
determining, using the one or more computing device processors, a current phase state of the thermal compositional fluid sample based on the first set of equilibrium k-values and the second equilibrium k-value; and
in response to determining the current phase state of the thermal compositional fluid sample, determining, using the one or more computing device processors, whether the thermal compositional fluid sample includes an appearance of a new phase state based on the current phase state of the thermal compositional fluid sample.

### Claim 11 (depends on 10)

The method of claim 10, wherein providing the first set of equilibrium k-values and providing the second equilibrium k-value comprise measuring the first set of equilibrium k-values and the second equilibrium k-value over a range of temperature and pressure applicable to a recovery operation of the thermal compositional fluid sample.

### Claim 12

A system for determining a phase state of a thermal compositional fluid sample, the system comprising:
one or more computing device processors; and
one or more computing device memories, coupled to the one or more computing device processors, the one or more computing device memories storing instructions executed by the one or more computing device processors, wherein the instructions are configured to:
provide a first set of parameters from an oilfield operation for a thermal compositional fluid sample;
construct a mass balance function for testing whether a phase of the thermal compositional fluid sample exists based on the first of parameters;
input a sequence of time-steps to a numerical iterations technique based on the mass balance function;
solve a system of nonlinear mass and energy conservation equations associated with the thermal compositional fluid sample using the numerical iterations technique;
determine whether the system of nonlinear mass and energy conservation equations converges over a single step to provide a first solution to the system of nonlinear mass and energy conservation equations;
in response to the system of nonlinear mass and energy conservation equations converging, determine an existing phase state of the thermal compositional fluid sample as indicated by the first solution;
in response to determining the existing phase state, perform a stability test on the existing phase of the thermal compositional fluid sample based on the first solution;
determine whether the thermal compositional fluid sample includes an appearance of a new phase state based on results from the stability test; and
update the first set of parameters based on the results from the stability test to be applied to a next iteration of the numerical iterations technique.

### Claim 13 (depends on 12)

The method of claim 12, wherein the first set of parameters comprises pressure, temperature, or molar rate of the thermal compositional fluid sample.

### Claim 14 (depends on 12)

The method of claim 12, wherein the mass balance function is monotonic in a gas phase split.

### Claim 15 (depends on 12)

The method of claim 12, wherein the sequence of time-steps comprises an initial time-step to form the sequence of time-steps.

### Claim 16 (depends on 12)

The method of claim 12, wherein the numerical iterations technique is a Newton-Raphson numerical technique.

### Claim 17 (depends on 12)

The method of claim 12, wherein the system of nonlinear mass and energy conservation equations are used to test for existence of oleic, gaseous and aqueous phases in the thermal compositional fluid sample.

### Claim 18 (depends on 12)

The method of claim 12, wherein the stability test is used to compute a mole fraction for the new phase and the existing phase.

### Claim 19 (depends on 12)

The method of claim 12, wherein the stability test requires identifying a simulator architecture used for performing the stability test.

### Claim 20 (depends on 12)

The method of claim 12, wherein the stability test is performed on a set of primary variables used by a simulator.
