Вы находитесь на странице: 1из 8

SPE

Society of Petroleum Engineers

SPE 16502

Simulation of PVT Experiments


by L.W. Bouett, A. Sageev, and F.M. Orr Jr., Stanford U.
SPE Members

Copyright 1987, Society of Petroleum Engineers

This paper was prepared for presentation at the Petroleum Industry Applications of Microcomputers held in Del Lago on Lake Conroe, Montgomery,
Texas, June 23-26, 1987.

This paper was selected for presentation by an SPE Program Committee following review of information contained in an abstract submitted by the
author(s). Contents of the paper, as presented, have not been reviewed by the Society of Petroleum Engineers and are subject to correction by the
author(s). The material, as presented, does not necessarily reflect any position of the Society of Petroleum Engineers, its officers, or members. Papers
presented at SPE meetings are subject to publication review by Editorial Committees of the Society of Petroleum Engineers. Permission to copy is
restricted to an abstract of not more than 300 words. Illustrations may not be copied. The abstract should contain conspicuous acknowledgment of
where and by whom the paper is presented. Write Publications Manager, SPE, P.O. Box 833836, Richardson, TX 75083-3836. Telex, 730989 SPEDAL.

ABSTRACT • predict any resulting changes in phase behavior,


An interactive program was written to simulate pressure-
volume-temperature (PVT) experiments using a microcomputer. The • reflect those changes graphically, and
simulator is a real time representation of an actual PVT laboratory.
Operations that may be performed in the laboratory may also be • wait for another action to be taken.
performed on the simulator. The Peng-Robinson equation of state is
This process is then repeated indefinitely until either the simulation is
used to calculate phase behavior and the results of the calculations
terminated by the operator or an inappropriate action is taken which
are displayed on the microcomputer monitor in color. The monitor
results in an unexpected termination of the run.
represents graphically the condition of all of the physical components
of the PVT lab including ·pressures, fluid levels in vessels and the In the remaining sections of this paper we describe a PVT
status of valves and pumps. A printed record of every action taken simulator that meets those objectives. We describe the laboratory
during a run is kept if desired. A simulated experimental error equipment simulated and outline the structure and operation of the
results in an appropriate termination of the run. Program structure program. In addition, we illustrate program operation by performing
and operation are described, and examples of simulated PVT simulated transfer of fluids between vessels, constant composition
experiments are given. expansion and differential liberation experiments.

EQUIPMENT
INTRODUCTION
The components of the PVT system modeled in the simulator
Phase behavior plays a fundamental role in oil recovery
are shown schematically in Fig. 1. This system is similar to an actual
processes, ranging from the production of gas condensate reservoirs
apparatus designed for study of COrhydrocarbon mixtures 1• The
to the injection of C02 for enhanced oil recovery (EOR) purposes.
simulator screen is shown in Fig. 2. Labels in parentheses in the text
Reservoir engineers work routinely with data obtained from
refer to both Figs. 1 and 2. The system is centered around a 100 cm3
pressure-volume-temperature (PVT) experiments (for example R 8 ,
PVT cell (Visual Cell). In a typical experiment a single component
B 0 , and J.lg) but are sometimes less familiar with the experimental
or a mixture is transferred from a charging vessel (Charging Vessel 1,
procedures used to obtain the data than with the uses to which the
2 or 3) to the cell by using the hand pump (Hand Pump) to remove
data may be put. Students learning about the behavior of reservoir
mercury from the visual cell and to inject mercury into the charging
fluids need to understand how experiments are performed.
vessel. The mass of a component charged to the visual cell is
Researchers performing PVT experiments may find it useful to be
obtained from the volume of mercury transferred into the charging
able to predict the course of an experiment while it is being
vessel at a given pressure and temperature.
conducted.
Once a mixture of known overall composition is within the
This paper describes an interactive PVT simulator that allows visual cell, its volumetric behavior is investigated by injecting or
the user to become familiar with the experimental techniques used in removing mercury from the cell. After the pressure has changed, the
a PVT laboratory. Simulator experiments can be performed far more fluid is circulated using a small circulation pump (LC Pump) to mix
rapidly than actual experiments, and of course, avoid the potential the phases. When equilibrium is reached the circulation is stopped.
safety concerns inherent in high pressure experiments. Thus, a PVT Volumes of phases present in the cell are obtained by measuring the
simulator has considerable value as a teaching tool. heights of the mercury interface and the interfaces between the
In order to be useful, whether for training, practice or phases. Bubble point and dew point pressures can be obtained by
prediction, the simulator should allow the user to perform any of the noting the pressures at which the volume of the vapor or liquid phase
operations that would be performed during PVT experiments in the becomes zero.
physical laboratory. To accomplish this the simulator must: A sample of one of the phases can be removed from the system
for compositional analysis by using the motor-driven pump (Servo
• allow an action, such as opening a valve or turning on a Pump) to inject mercury into the cell at a known flow rate. As the
pump, to be taken, sample leaves the cell through one of the sampling loops (1 or 2}, it
193
2 SIMULATION OF PVT EXPERIMENTS SPE 16502

passes through a high-pressure densitometer (D-1 or D-2) and a green (pump oft). Pressure gauges are continuously updated and the ·
capillary tube of known internal diameter and length. The back-pressure regulator (BPR) set pressure is displayed digitally on
densitometer reports fluid density. The pressure drop along the the BPR. All vessels and components have descriptive labels and all
capillary tube is used along with capillary length and diameter to valves have numbers. Vessel labels and valve numbers may be
calculate fluid viscosity. Fluid pressure in the sampling line is displayed independently as 'desired. There is a block on the right of
maintained constant by a back-pressure regulator (BPR). the screen that reports the input temperatures relevant to the
Downstream of the BPR the fluid sample is at a pressure close to experiment. A clock displays real time. The 25m line reports
atmospheric. The sample is allowed to split into liquid and vapor in program status and messages and is used for data input.
a small separator vial (Centrifuge Tube). The amount of liquid is
determined by weight and the number of moles of vapor is measured
Program Operations
by monitoring the pressure in a vessel (Gas Vessel) that is evacuated
initially. Compositions of the liquid and vapor are determined by Program functions are implemented by pressing the appropriate
chromatography (Gas Chromatograph). The overall composition of function key, Fl through FlO. The function of each of these
the sample is then calculated from the amounts and compositions of special-purpose keys is summarized briefly in Table 1. As shown in
the two phases present at atmospheric pressure. Table 1, some function keys require data input, while others do not.
The apparatus shown in Fig. 1 is capable of measuring There are two basic operations: valves may be opened or
equilibrium phase compositions and fluid properties as well as closed, and fluid may be injected or withdrawn by either the hand
volumetric behavior of mixtures with changes in pressure. The pump (Hand Pump) or the motor-driven pump (Servo Pump). In
apparatus can be used, therefore, for standard constant-composition addition to these two basic operations, the following ancillary
expansions, differential liberation experiments, or more complex operations may be performed:
characterizations of the behavior of enhanced oil recovery fluid
systems. • the circulating (LC) pump may be cycled (graphic effect
only),
PROGRAM DESCRIPTION
• the BPR pressure may be set,
The PVT simulator mimics operation of the PVT laboratory
system by displaying a schematic diagram of the PVT apparatus on • the sample collection system may be evacuated,
the monitor screen. A typical screen display is shown in Fig. 2. The
user must open and close valves, and operate pumps, to charge fluids • the gas chromatograph (GC) may be charged with the fluids
into the PVT cell (Visual Cell), to compress or expand mixtures in in the sampling system (this also resets the sample collection
the cell, or to take samples for fluid property and phase composition system),
measurements. The operation of the PVT simulator is based on the
following assumptions: • the GC analysis may be displayed (if no sample has been
taken the analysis displayed is that of the visual cell), and
1. thermodynamic equilibrium is instantaneous,
2. Joule-Thompson cooling and heating effects are neglected, • vessel labels and valve numbers may be toggled on and off.
3. pressure changes take place isothermally,
4. mercury is incompressible, and Everything that may be done in the laboratory (and therefore in the
5. tubing in the system has no volume. simulator) is a combination of these operator actions.
The phase behavior of the fluid mixtures is calculated with the Peng- Since data are entered as strings it is possible to use the
Robinson equation of state (EOS). <BACKSPACE> key to return to the previous level of program
operation or to cancel a function key request altogether. This is
Data Input convenient if one decides not to perform a particular action.
Data are entered as strings. In this way it is possible for the
data entry module to check the validity of each number as it is Computation Of Phase Behavior
entered before adding it to the string. By validity is meant, for At the heart of the computation module of the simulator is the
example, that if the required input is numeric, only numbers may be Peng-Robinson equation-of-state (EOS)2• Since compositions,
entered. The 25m line is used for data input. Since data are checked volumes and temperatures are known by the simulator at all times, in
for validity and type when they are entered, a characteristic "beep" is single-phase liquid or vapor regions the resulting pressure is
sounded if there is a data input error. Error checking does not calculated directly by the EOS. In two-phase regions a flash
preclude one's making a mistake: for example, error checking will calculation is required. In a typical EOS flash calculation, pressure is
not allow toggling valve 50, since there is no valve 50 in the system; known and the EOS calculates phase volumes. Here the overall
it will, however, allow opening enough valves to create a loop that system volume is fixed, whether in a charging vessel, the visual cell,
could result in an unrecoverable material balance error. or either leg of the sampling system. Since the system volume is
fixed, the flash algorithm must iterate on pressure. It does this by
Graphic Screen first iterating on phase composition in the standard way until vapor
The PVT lab simulator makes extensive interactive use of and liquid fugacities are equal. Then it compares the sum of the
screen graphic capabilities. The visual cell is drawn large on the phase volumes predicted by the EOS to the fixed overall volume of
screen with an oversized viewport so that it may be seen easily. Fig. the system and adjusts the pressure until that sum matches the overall
2 is a typical screen display. Vapor and liquid volumes in the cell volume of the fixed system, within some error criterion. This is
are reported digitally on the screen in cc's and visually as similar to what actually happens in the laboratory; we change the
proportional areas within the cell viewport. Yellow mottled with overall system volume and circulate the fluids until equilibrium is
randomly-moving grey dots represents the vapor phase; brown achieved. The result is an equilibrium pressure.
represents the liquid phase; and grey represents mercury. The The equilibrium pressure algorithm described above is used
interfaces of the phases in the cell are reported accurately according repeatedly by the simulator. If the volume of a charging vessel is
to their relative volumes, although the interfaces are shown straight changed by injecting or withdrawing mercury, there must be a new
rather than curved. equilibrium pressure calculated. If a sample is taken through either
By opening the appropriate valve the pressure in the cell or of the sampling lines, it is likely that the sample fluid will form two
anywhere in the system may be seen. Valve position is reported phases in the low-pressure portion of the sampling system. In that
either as green (valve open) or red (valve closed). Pump status is case, the pressure calculated is reported as the pressure in the gas
reported by the color of the pump base either as red (pump on) or collection vessel (Gas Vessel).
194
SPE 16502 L.W. BOUETI, A. SAGEEV AND F.M. ORR 3

Computation Of Viscosity And Density • Using function key <F2>, close Valve 1.
In the PVT laboratory, fluid viscosity is calculated by observing The charging vessel is now isolated.
the pressure drop of fluid flowing through a capillary tube of known
diameter and length. Poiseulle' s Law is used to calculate viscosity, • Using function key <F2>, open Valve 8.
given the pressure drop and volumetric flowrate. The simulator uses The pressure on the gauge near Valve 8 now reads 55.584
the correlation of Lohrenz, Bray and Clark3 to calculate viscosity. psia (Fig. 3a). This is the pressure in the cell (Visual Cell).
Pressure drop is calculated based on the set flowrate of the motor- Since the cell pressure is so low relative to the charging vessel
driven pump (Servo Pump). If the motor-driven pump is started and pressure we will compress the cell contents to raise its
allowed to run sufficiently long, a stabilized pressure drop is achieved pressure. Since the hand pump has no mercury in it, we must
and no further pressure drop is displayed on the screen. A finite time first isolate the cell (Visual Cell) and fill the hand pump with
is required for the pressure drop to stabilize because the contents of mercury from the mercury supply vessel (Hg Supply).
the cell must be compressed to a pressure higher than that set for the
BPR. The change in cell volume required is calculated based on the • Using function key <F2>, close Valve 8.
overall compressibility of the cell contents at the start of the
compression step. Because the change in pressure is usually small in The cell (Visual Cell) is now isolated.
such steps, changes in phase composition are ignored. Then, from
the same data as those available in the laboratory, namely flowrate, • Using function key <F2>, open Valves 9 and 10.
pressure drop and the physical dimensions of the capillary tube, The tubing from the hand pump to the mercury supply vessel
viscosity may be calculated. (Hg Supply) is now open.
Molar and mass densities may be calculated directly at any time
since the simulator continuously tracks the molar compositions and • Press function key <FS>.
volumes of all phases in all vessels. The 25rn line prompts "Enter injection volume (cc):

Error Conditions • Enter the number "-30" and press <ENTER>.


Error conditions in the simulator generally are of two types: The simulator accepts the entry as a withdrawal and prompts
those which may actually happen in the laboratory and from which it "Press <ENTER> to withdraw fluid."
is difficult or impossible to recover, and those from which recovery
offers little or no teaching value on the simulator. Some errors in the • Press <ENTER>.
laboratory are nondestructive, such as venting a sample to atmosphere The simulator represents the withdrawal of 30 cc's of mercury
or introducing two phases into the sampling system. When a digitally on the hand pump. The color of the pump base
nondestructive error occurs in the simulator, the error is printed on changes from green to red to indicate that the pump is "ON".
the 25rn line and program execution is terminated. Other errors in The 25rn line informs "Withdrawing fluid ..." during
the laboratory are more serious, such as exceeding the working withdrawal, which is scaled to take about ten seconds. Then
pressure of the system tubing or a vessel. The simulator. handles there is a "beep" and the color of the pump base changes from
such errors by presenting a graphic consequence of the actlon: the red to green to indicate that the pump is "OFF". The volume
screen "blows up" to accompanying sound effects. of mercury in the pump (Hand Pump) is 30 cc's and is
Following a terminating error condition on the simulator the displayed digitally on the body of the pump.
graphic screen is restored and the 25rn line prints a closing message.
At this time, if the appropriate printer is attached to the system (see • Using function key <F2>, close Valve 10.
Appendix A for hardware and software requirements), the full- The mercury supply vessel (Hg Supply) is now isolated.
resolution color screen may be dumped to that printer. Otherwise,
pressing any key terminates the program. All terminating error • Using function key <F2>, open Valve 8.
conditions are reported in the printed log of the session if that option
The tubing from the Hand Pump to the cell (Visual Cell) is
has been selected.
now open.
TYPICAL EXPERIMENTS
• Press function key <FS>.
There are several types of experiments that may be run, such as
constant-composition expansion, depletion or differential liberation. The 25rn line prompts "Enter injection volume (cc):
Recall that simulator operation is really a sequence of a few basic
operations. Therefore, the logical combination of a given series of • Enter the number "5.147" and press <ENTER>.
operations comprises an experiment. The 25rn line prompts "Press <ENTER> to inject fluid."
Transfer Of Fluid From A Charging V~.ssel To The Visual Cell • Press <ENTER>.
An example system has been created that is shown in Table 2. This discharges the specified volume of mercury (5.147 cc's)
This system is an oil containing 50 mole percent n-Butane (n-C 4) and into the cell (Visual Cell). (In an actual simulation or
50 mole percent n-Decane (n-C 10). Charging Vessel 1 contains C02 • experiment, this volume would be entered as a sequence of
In our example we will first charge the cell (Visual Cell) with C02 mercury injections. We use only one volume step here for the
from the charging vessel. Refer to Figs. 2 and 3 while performing sake of simplicity). After the scaled ten-second delay, there is
the following operations. Table 1 summarizes the special function a "beep" as the pump shuts off. Since the fluid in the cell
keys. Initially, all the valves in the system are closed. (Visual Cell) is now a single-phase liquid, no flash is required
and the simulator redraws the fluid levels in the cell. Now
• Press function key <F2>. there is a total hydrocarbon volume of 31.839 cc's in the cell
The 25rn line prompts "Enter valve: (Visual Cell). The liquid volume is shown on the screen as
31.839 cc's and the vapor volume is given as 0.000 cc's. The
• Enter the number "01" and press <ENTER>. pressure is now 999.5 psia (Fig. 3b).
The color of Valve 1 changes from red (closed) to green
(open). The pressure on the gauge near Valve 8 now reads • Using function key <F2>, close Valve 8.
1000.0 psia. This is the pre'ssure in the charging vessel. We The cell (Visual Cell) is now isolated.
need to know the pressure in the charging vessel to ensure
that it is greater than or equal to the pressure in the cell • Using function key <F2>, open Valve 1.
(Visual Cell).
195
4 SIMULATION OF PVT EXPERIMENTS SPE 16502

The tubing between the hand pump and the charging vessel is The pump runs for ten seconds then "beeps" off. The. 25m
now open. line informs "Coming to equilibrium ... " while the flash is
being calculated. When the flash is complete there is a "beep"
• Using function key <F2>, open Valve 4. and the simulator redraws the fluid levels in the cell. Now
The valve at the top of the charging vessel is now open. there is a total C02-hydrocarbon volume of 64.853 cc's in the
cell (Visual Cell). The liquid volume is shown on the screen
• Using function key <F2>, open Valve 11. as 34.082 cc's and the vapor volume is given as 30.761 cc's.
The pressure is now 233.51 psia (Fig. 4).
The tubing from the top of the charging vessel to the cell
(Visual Cell) is now open. Since the pressures in both the • Press function key <F6>.
charging vessel and the cell are no longer isolated, an
equilibrium pressure must be achieved. The simulator This operates the circulating (LC) pump. On the simulator
accomplished this by first calculating the compressibilities of this has a graphic effect only. The color of the pump base
the fluids in each vessel. It is known that the change in changes from green to red to indicate the pump is "ON". The
volume in one vessel is equal to the negative change in 25m line informs "LC pump circulating ... ". The LC pump
volume in the other vessel. The equilibrium pressure is the runs for about ten seconds. There is a "beep" and the color of
same for both vessels and is equal to the original pressure plus the pump base changes from red to green to indicate the pump
the compressibility times the volume change in that vessel. is "OFF".
Thus the equilibrium pressure is easily calculated. The new This sequence may be repeated as many times as desired.
pressure, 999.9 psia, is reported on the gauge near Valve 8. There are few variations here: if the hand pump becomes filled (it
The procedure now is to inject a small volume of mercury into has a 30 cm3 capacity) it must be discharged into the mercury supply
the charging vessel using the hand pump. The pressure in the system vessel using a sequence similar to the charging of the hand pump
described previously.
will rise slightly. Next a small volume of mercury is withdrawn from
the cell (Visual Cell) with the hand pump to bring the system
pressure back down to the original pressure, 1000.0 psia. This is
Taking A Fluid Sample: Differential Liberation Experiment
done in small steps, being careful not to exceed the working pressure
limits of either the system tubing or any of the vessels. When At this point it is possible to· perform one step of a differential
enough fluid has been transferred into the cell (Visual Cell) by this liberation experiment. The starting condition is the same as that with
method, the charging operations continues. During the charge which we ended the constant-composition expansion. Refer to Figs.
operation, the transferred fluid is assumed to remain segregated from 2 and 5 while performing the following steps. Table 1 summarizes
the cell contents. the special function keys.

• Using function key <F2>, close Valve 11. • Using function key <F2>, close Valve 9.
This isolates the cell from the charging vessel. Here the The hand pump is now isolated.
simulator must recombine the contents of the cell, since
additional mass (C02 from the charging vessel) has been • Using function key <F2>, open Valve 7.
added. The 25m line informs "Recombining the VC ... ". The tubing is now open between the cell (Visual Cell) and the
Following recombination, the new overall composition of the motor-driven pump (Servo Pump). These two operations were
cell must be checked by the EOS. In our example it is still a necessary in order to set up the system to begin the
single-phase liquid. The pressure is reported as 999.7 psia differential liberation experiment. All of the operations which
(Fig. 3c). The phase volume in the cell (Visual Cell) is follow are part of that experiment.
34.853 cc's of liquid.
• Press function key <F7>.
• Using function key <F2>, close Valve 4. The 25m line prompts "Enter set pressure: The
This isolates the tubing leg between the charging vessel and BPR set pressure must be greater than or equal to the pressure
the cell. of the fluids to which it will be exposed when the sampling
line is opened to preclude fluid from flashing across the BPR.
• Using function key <F2>, close Valve 1. Under these conditions, the flash would not be at constant
The charging vessel is now completely isolated. pressure. A reasonable set pressure is 235 psia.

Constant Composition Expansion • Enter the number "235" and press <ENTER>.
The cell (Visual Cell) now c·ontains 20 mole percent C0 2 and The new BPR set pressure, 235 psia, is displayed digitally on
40 mole percent each of n-Butane (C 4) and n-Decane (C 10). The the BPR.
volume of the COz-hydrocarbon mixture is 34.853 cc's. The pressure
in the cell is 999.7 psia. We know the pressure by opening Valve 8. • Using function key <F2>, open Valve 19.
A constant-composition expansion may now be performed. Refer to The separator vial (Centrifuge Tube) and the gas vessel are
Figs. 2 and 4 while performing the following steps. Table 1 now ready to receive a sample.
summarizes the special function keys.
• Press function key <F8>.
• Using function key <F2>, open Valve 8.
Pressing this function key resets the sample collection system
The tubing from the hand pump to the cell is now open. The pressure to zero psia. This operation is scaled to take about
pressure on the gauge near Valve 8 reads 999.7 psia. ten seconds. To simulate the action of a vaccuum pump, the
pressure in the sampling system, shown on the gauge at the
• Press function key <FS>. gas vessel, may be seen falling to zero psia.
The 25m line prompts "Enter injection volume (cc):
• Using function key <F2>, open Valve 13.
• Enter the number "-30" and press <ENTER>. From Fig. 5 it may be seen that the upper sample leg is in the
The 25m line prompts "Press <ENTER> to withdraw fluid." vapor region of the cell. In order to sample the upper phase,
Valves 13, 15 and 17 must be opened. When Valve 13 is
• Press <ENTER>. opened the cell pressure, 233.51 psia, is d_isplayed on both of
196
SPE 1502 L.W. BOUETI, A. SAGEEV AND F.M. ORR 5

the pressure gauges on the upper sample leg. These pressure Now that the cell has been isolated, the simulator must
gauges will be used later to determine the increase in pressure recombine the contents of the cell. The 25m line informs
required in the cell (Visual Cell) in order to start fluid flowing "Recombining the VC " and there is a "beep" when the
through the capillary tube. calculation is complete.

• Using function key <F2>, open Valves 15 and 17. • Using function key <F2>, close Valves 15 and 17.
The sampling system is now ready for a vapor sample to be This isolates the cell and the sample leg up to the BPR.
taken from the cell.
• Using function key <F2>, close Valve 19.
• Press function key <F3>. The separator vial (Centrifuge Tube) has now been isolated
Pressing this function key causes a small drop-down frame to from the gas vessel.
appear at the lower left-hand corner of the screen. The 25m
line prompts "Enter rate (cc/min): __". This is the flow • Using function key <F2>, open Valves 20 and 21.
rate in cm3/min. for the motor-driven pump (Servo Pump). The sample in the gas vessel is now ready to be charged to
the gas chromatograph, using helium from the supply cylinder
• Enter the number "2" and press <ENTER>. (He Supply).
The 25m line now prompts "Enter max. delivery
(cc): __". This is the maximum delivery shutdown. • Press function key <F9>.
This function key provides a graphic effect. There is about a
• Enter the number "22" and press <ENTER>.
ten-second delay while the 25m line informs "Charging the
Since the motor-driven pump flow totalizer is zero, the drop- GC ... ". After the delay there is a "beep" and the sampling
down frame is erased from the screen at this time. The values system is reset to its original condition: the separator vial
that have been entered have been saved by the simulator. Had (Centrifuge Tube) is changed out and the gas vessel is purged
there been flow previously through the pump, the 25m line with helium at atmospheric pressure. At this time another
would have prompted, "Reset total delivery (Y/N)?" A single sample may be taken.
keystroke, either a "Y" or an "N", would have performed the
requested action and the drop-down frame would have been • Using function key <F2>, close Valves 20 and 21.
erased as before. The system is now ready for a vapor sample The system is now completely isolated.
to be taken.
• Press function key <FlO>.
• Press function key <F4>.
When this function key is pressed a drop-down frame appears
Pressing this function key starts the motor-driven pump (Servo at the upper ·right-hand corner of the screen. The frame
Pump). The pump base changes color from green to red to displays the analysis from the GC. The analysis of the sample
indicate that the pump is running. A subsequent <F4> taken in our example is shown in Fig: 8. The sample is all
function key request would immediately stop the pump. As vapor, comprising more than 75% C02 • The 25m line
the pump runs, the drop-down frame is redrawn on the screen. prompts "Press ESC to continue ... ". When the <ESC> key is
We may now watch as the delivery begins to climb. This is a pressed the sample analysis frame is erased and program
real-time function; the flow rate of 2.0 cm3 /min. takes exactly operations may continue.
one minute for each 2.0 cc's delivered.
Now we must watch the pressure gauges on the sample leg. At At this point in the differential liberation experiment we would
first, the pressure at both gauges climbs until it reaches that of the continue as we have just done, by withdrawing mercury from the cell
BPR set pressure, 235 psia. As the pump continues to deliver (Visual Cell) to lower the pressure (constant composition expansion),
mercury into the cell, the downstream pressure stops climbing. The then taking another sample. This sequence could continue until there
upstream pressure, however, continues to climb. This is because of is no more mercury left in the cell.
the higher pressure required in the cell due to the viscosity of the
fluid flowing through the capillary tube. In the example presented there are two basic operations:
opening and closing valves, and starting and stopping pumps. Each
The pressure at the upstream gauge in this example finally of the other operations was preliminary to performing one of the two
stabilizes when it reaches 246.38 psia. The pump delivery at this basic operations. By being c~eful we avoided the physical limits of
point is about 7.8 cc's of mercury into the cell (Fig. 6). The pump the apparatus: the cell has a finite volume, the hand pump has a finite
continues to deliver mercury to the cell until it has delivered 22.000 capacity and the vessels and tubing have working pressure limits.
cc's, the maximum delivery shutdown volume. Then the pump shuts
off. This is announced by a "beep" and the color of the pump base SUMMARY
changes from red to green. With the flow of mercury into the cell
stopped, the pressure at the upstream gauge now falls off until it The example PVT experiments described here indicate that a
reaches that of the BPR set pressure, 235 psia. reasonably realistic simulation of the operation of a PVT laboratory
can be made based on use of the Peng-Robinson equation of state to
At this point the simulator must do some internal bookkeeping represent the volumetric properties of components and to calculate
and check the contents and condition of the fluids in both the cell and phase equilibrium. A high resolution, full-color display of a scehmatic
the sampling system. In this example the vapor from the cell is a of the experimental apparatus coupled to a program structure that
single-phase vapor in the sampling system. Its pressure is calculated resolves system operations into a series of discrete steps, such as
by the EOS and displayed on the pressure gauge at the gas vessel. In opening a valve or operating a pump, allows the user to perform
this example it is 4.666 psia (Fig. 7). simulated experiments that mimic closely the actions taken in a
Next the fluid levels in the cell (Visual Cell) are changed to typical PVT experiment. Because the simulated apparatus contains
reflect the volume of mercury that has been injected. The system is equipment for density, viscosity and co"mposition measurements, the
now static. At this point it is possible to reset the motor-driven pump PVT simulator can be used to perform experiments that range in
(Servo Pump) flow totalizer and inject more mercury. In our complexity from simple constant composition expansions to
example we will now isolate the sampling system and determine the multiple-contact phase behavior experiments including sampling of
composition of the sample we have taken. the phases. Hence, the simulator described is a flexible tool for
instruction about procedures and observations typical of PVT
• Using function key <F2>, close Valve 13. experiments used in the oil industry. •

197
6 SIMULATION OF PVT EXPERIMENTS SPE 16502

REFERENCES APPENDIX B: SETUP PROGRAM


An independent setup program allows the user to select
Orr, F. M., Jr. and Sageev, A., "Reservoir Characterization For The components for one or more of the charging vessels and/or the visual
C0 2 Enhanced Oil Recovery Process," U.S. Dept. of Energy cell from a menu of standard components. The standard components
Rep. No. DOE/MC/22042-5, March 1987. are listed in Table C 1 of Appendix C. The program keeps internal
tables of standard component properties. These properties are critical
Peng, D.-Y. and Robinson, D.B.: "A New Two-Constant Equation pressure (Pc ), temperature (Tc), and volume (Vc); molecular weight
Of State," Ind. Eng. Chern. Fund. (1976) 15 59-64. (MW); and acentric factor (ro). The program also prompts for all of
the system parameters necessary to operate the simulator. These
Lohrenz, J., Bray, B.O., and Clark, C.R.: "Calculating Viscosities of parameters are pressures for each charging vessel, am?ient
Reservoir Fluids From Their Compositions," J. Pet. Tech. temperature, charging vessel temperature, oven temperature, vtsual
(October 1964) 1171-6; Trans., AIME, 231. cell volume, and either the number of moles in the visual cell or the
visual cell pressure.
Reid, R.C., Prausnitz, J.M., and Sherwood, T.K.: The Properties of
Gases and Liquids, McGraw-Hill Book Company, New York Pseudocomponents may be entered instead of, or along with,
(1977) 629-665. standard components. When pseudocomponents are used, all of the
required component properties must be entered along with a name for
the pseudocomponent.
APPENDIX A: SUMMARY OF HARDWARE AND SOFTWARE
Finally, a parameter file is written by the setup program, which
REQUIREMENTS
is used by the simulator driver.
The PVT simulator was written to run on an 8-megahertz IBM
PC/AT with an Enhanced Graphic Adaptor (EGA) card installed.
The graphics portion of the program requires that the EGA card have APPENDIX C: SUMMARY OF STANDARD COMPONENT
installed 256 kilobytes of memory. An Enhanced Color Monitor is PROPERTIES
also required and allows use of the full 350 x 640 pixel, 16-color
Table C 1 summarizes the properties of the standard components
palette resolution offered by the hardware.
available in the PVT lab simulator's setup program4• These
Since the program is modular, use of another graphic system properties are contained as internal tables ~ithin the se~p program.
would require modification of the graphic module only and not of the Properties of the components selected as mput are wntten by the
entire program. Use of a computer with a different clock speed setup program to the parameter file which is used by the simulator
would affect only the time required for calculations. driver. The components in boldface type that are boxed in Table C1
For full-color screen dumps an IBM Color Jetprinter Model are those of the ternary system used as an example in
3852-2 is required. In order to drive the Color Jetprinter the
appropriate driver, supplied by IBM, must be installed when the
system is initialized. This is an optional piece of hardware in terms Table 2. Component Properties For Example PVT Experiment
of program requirements but is recommended. Any printer will
accept the output from the computer for the log of operations, so that Component Tc, oK. Pc• atm. vc• _]£_
lbmol.
MW (i)
feature may be used with or without the Color Jetprinter.
The PVT simulator runs within the MS-DOS operating C0 2 304.2 72.9 0.0342 44.01 0.225
environment, Version 3.10 or higher. PVT LAB was written in n-Butane 425.2 37.47 0.0702 58.124 0.193
Microsoft'I'M QuickBASIC Version 2.0, a compiled language. n-Decane 617.6 20.8 0.0679 142.286 0.489

Table 1. Description Of Function Keys


Table C1. Properties Of Standard Components
Key Description
Component Tc, oK. Pc• atm. v J!.:._ MW (i)
F1 Toggle vessel labels and valve numbers on/off c. lbmol.
Methane 190.7 45.8 0.0991 16.043 0.007
F2 Open/close a valve; requires data input Ethane 305.43 48.2 0.0788 30.070 0.091
F3 Set PSI pump rate and maximum delivery; Propane 369.9 42.01 0.0737 44.097 0.145
reset delivery totalizer; requires data input i-Butane 425.2 36.0 0.0724 58.124 0.193

F4 Start/stop the PSI pump


n-Butane 408.1 37.47 0.0702 58.124 0.176 J
i-Pentane 425.2 32.9 0.0679 72.151 0.193
F5 Set HIP pump .injection/withdrawal volume; n-Pentane 460.4 33.31 0.0675 72.151 . 0.227
requires data input Hexane 469.8 29.92 0.0688 86.178 0.251
F6 Start the LC pump sequence Heptane 507.9 27.01 0.0691 100.205 0.296
Octane 540.16 24.64 0.0690 114.232 0.351
F7 Set BPR set pressure; requires data input Nonane 568.6 22.5 0.0684 128.259 0.394
F8 Evacuate the sampling system to zero psia Decane 617.6 20.8 0.0679 142.286 0.489 J
Nitrogen 126.2 33.5 0.0514 28.013 0.040
F9 Charge the GC with fluid from the sampling
system C02 304.2 72.9 0.0342 44.01 0.225 J
H 2S 373.6 88.9 0.0459 34.076 0.100
FlO Display GC analysis; if no sample has been Toluene 592.0 41.6 0.0549 92.141 0.257
taken, display visual cell analysis Water 647.3 217.6 0.0500 18.015 0.348
co 133.05 34.5 0.0532 28.010 0.041
Oxygen 154.75 50.13 0.0382 31.999 0.0213

198
SPE 1 6 50 2·4

12

11

------;==--~~
I I I
I I I
I
I
LC
Pump

Gas
Chromatograph
Centrifuge
Tube

Hand Pump Servo Pump


Hg Supply

Fig. 1-Experimental apparatus for PVT measurement.

? = Help l'lenu
Fig. 2-Simulator representation of PVT apparatus.

b c

Fig. 3-Transfer of fluids from a charging vessel to the PVT cell.

199
Fig. 4-Constant composition
expansion.

Fig. 5-Differential liberation experiment: opening the sampling leg.

PSI PUMP
Rate (ccllllin)
2.800
ltax . deli very
22.888 cc
Tota 1 deli uery
8.153 cc

Fig. 6-Differential liberation experiment: capillary tube pressure drop.

Fig. ?-Differential liberation experiment: post-sampling equilibrium. Fig. 8-Gas chromatograph sample analysis.

200

Вам также может понравиться