home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
oilfield
/
moncarlo.lzh
/
READ.ME
< prev
next >
Wrap
Text File
|
1987-03-27
|
6KB
|
126 lines
THREE ELEMENT MONTE CARLO PROGRAM
(TO ADVANCE SCREEN, PRESS ANY KEY)
Thank you for your interest in the simple three element
Monte Carlo program originally developed and published in my
paper SPE 15921 "Assessing Risk and Uncertainty in Evaluating
Hydrocarbon Producing Properties" (Presented at SPE Eastern
Regional Meeting held in Columbus, Ohio, November 12-14,
1986). If you have any questions or suggestions please feel
free to call or write:
Forrest A. Garb
Gruy Engineering Corporation
150 W. Carpenter Freeway
Irving, Tx 75039
(214) 659-3333
This disk contains the files required to run four simple
basic programs useful in learning statistical distribution
and the probability concepts used in Monte Carlo modeling.
While utility files are contained on the disk you have been
provided, the programs of interest are:
1. READ.ME (THIS FILE)
2. MONCAR.BAS
3. MC1000.BAS
4. TRIDIS.BAS
5. RANDIS.BAS
A brief description of the four programs is presented
below. All of the programs are in BASICA language and
include prompting for the necessary data.
1. READ.ME
This is the file that you are now viewing. It is
included as a tutor to reduce my time in explaining how to
run the programs. It can be viewed by typing MORE<A:READ.ME
(and could be printed by keying CTRL PrtSc. first)
2. MONCAR.BAS
This is the primary Monte Carlo program we are
going to study. It is a three element probability analysis
demonstrating the Monte Carlo simulation technique in the
most simple of fashions. It prompts for input data to
describe the distribution of (a.)thickness, (b.) area and
(c.)recovery factor for a reservoir. The operator is per
mitted to select random or triangular distribution for the
input data. If rectangular (random) distribution is
selected, then only maximum and minimum values for the vari
ables are prompted. If triangular distribution is selected,
then the most likely value is also requested for the three
variables. After entry of the data the program calculates
distribution curves for the data input then starts a 100
cycle sequence as follows.
1. Computer selects a random number between zero and
one.
2. Using this number normalized as a percent of samples
(between zero and 100 percent),the program calcu
lates the value for the reservoir thickness (feet)
for this trial (based on the thickness distribution
determined from the input data).
3. Computer generation of a second random number.
4. Determination of the value for the area (acres) for
this trial.
5. Computer generation of a third random number.
6. Determination of the value for the recovery (barrels
per acre-foot) for this trial.
7. Calculation of reserve by producting h*A*RF
When 100 cycles of reserves have been calculated by mul
tiplying thickness times area times recovery, the 100 reserve
values are ordered in descending order and are printed out if
a hard copy has been requested. A ten percentile segment
distribution is then output followed by the data for a histo
gram. For only three elements, (h,A,RF) the 100 cycles has
been shown to be adequate for a reasonably smooth output.
3. MC1000.BAS
This is a very similar program to the 100 cycle version
above, however the program executes 1000 cycles instead of
100 to insure smooth histogram output. The program requires
more run time, so in the interest of time, the output of the
individual cycle solutions to hard copy is eliminated.
4. RANDIS.BAS
A small basic program which is a 100 cycle random sample
generator and ordering procedure. It is much like the Monte
Carlo model, but for one variable. It could be used for
example, to develop 100 random well reserves in a basin and
then to arrange them in order and percentiles.
5. TRIDIS.BAS
A small basic program to describe the distribution
curve for data having a most likely occurrence. This is a
calculation which is included in Moncar and MC1000.
The source code for all of the above programs is
included as they are coded in interpretive basic and are not
compiled programs. One could add additional variables dupli
cating the logic presented in this simple version thus
expanding the simple program into a useful tool.
------------------------------------------------------------
HOW TO RUN A PROGRAM
------------------------------------------------------------
Make drive A the default drive.
If you are in DOS, just type the name of the program
ie.( MONCAR, MC1000, TRIDIS, or RANDIS ). Automatic batch
files will take over and you will be prompted from the pro
gram for the necessary input data. If you are in Basic and
the program is already loaded from a previous execution, then
just key run (F2). If you are in Basic and want to load a
different program then key load (F3),type the name (such as
MONCAR), key enter, then key run (F2).