Gassim
From textbook Gas Reservoir Engineering by Lee and Wattenbarger VBA program in Excel Intended for student usage Analytical, numerical, transformation methods
Gassim
1D or 2D Cartesian or radial grid Single phase gas or liquid
Data organization
Single section Grid section Schedule section
Single section
Each data has one value (except CNST) Specifies: Grid size Reservoir temperature, reference pressure Gas gravity, Sw, cf, cw Whether radial coordinates Whether liquid (with Bo, o) Specifies certain run controls: Matrix methods Newton iterations
Single Value Input Data 20 1 0.5 (radial coordinates) 0.000015 3000 1 0 Bo, rcf/scf mo, cp 1.475 0.72 (liquid case) Grid Input Data
Schedule Data
Grid Section
Specifies data for each gridblock Specifies grid dimensions 2D (DELX, DELY and H) radial (RR, DELY) Grid data: permeability porosity thickness initial pressure
END DELX 110 DELY 150 H 30 . . . END CMNT Schedule Data . . . END
Schedule Section
Controls well specifications location (NAME) constant rate (QG) contant pwf (PWF) Controls time schedule output 1 means output at TIME output 2 means output each timestep Controls timesteps (DELT, ALPH, DTMX)
Schedule example
NAME 1 3 5 0 QG 1 12000 TIME 365 END
Well 1 is located at I = 3, j = 5 and produces at a constant rate of 12,000 scf/day for 365 days
Schedule example
NAME 2 6 8 0 PWF 2 1500 TIME 730 END
Well 2 is located at I = 6, j = 8 and produces at a constant BHP of 1500 psia for 730 days
Schedule example
NAME 1 3 NAME 2 6 QG 1 TIME 365 PWF 2 TIME 730 END 5 0 8 0 12000
1500
Well 1 produces at a constant rate of 12,000 scf/day for 730 days. Well 2 produces at constant BHP after 365 days until 730 days.
Timestep control
DELT sets the first t for the time period ALPH sets t equal to ALPH time the previous timesteps t (after the first timestep in the period) DTMX sets a maximum value for t
Timestep example
DELT ALPH DTMX TIME 1 1.5 10 60
The timestep sequence is
1 1.5 2.25 3.375 5.06 7.59 10 10 10 10
Timestep control
Well conditions (QO or PWF) change after a TIME data line, a small DELT should be included so the new rate/pressure conditions start with small timesteps
DELT ALPH NAME NAME QG TIME 1 1.5 1 3 5 0 2 6 8 0 1 12000 365
DELT 1
PWF 2 1500 TIME 730 END