Sie sind auf Seite 1von 5

TM4112

Project Reservoir Simulation 1 2017/2018


Assignment #1; due date: 25/09/2017

1. Code a table look-up subroutine look_up.f90 using sequential search. Use a


linear interpolation between table values. look_up.f90 must have the arguments
below:

subroutine look_up(tabx, taby, n, x, y)


implicit none
real (kind=8), dimension (n):: tabx, taby
real (kind=8):: x, y
integer n
! tabx: vector of independent variables
! taby: vector of dependent variables
! n: number of table entries
! x: argument
! y: interpolated table value
:
:
end subroutine look_up

2. Code fluid property function for Bo, o, Rs, Bw, w. The subroutine look_up.f90
is of use. The function for Bo, for example, may have the following structure:

function bo(p)
implicit none
:
:
call look_up(tfldp, tbo, nfld, p, bo)
return
end function bo

Test your code for the following PVT data with the main program like:

Program reservoir_sim
implicit none
! nfld is the number of PVTO table entries
read (5,*) nfld
do i=1, nfld
read (5,8) tfldp(i), tbo(i), tuo(i), trs(i)
enddo
! Read PVTW
:
:
do i=1, 50
press=50.*float(i)
write (6,*) press,bo(press),uo(press),rs(press)
& bw(press),uw(press)
enddo
!
do i=1, 50

write (7,*) press,dbop(press),duop(press),


& drsp(press),dbwp(press),duwp(press)
enddo
:
:

3. Code fluid property function for dBo/dp, do/dp, dRs/dp, dBw/dp, dw/dp. The
subroutine look_up.f90 is of use. The function for dBo/dp, for example, may have
the following structure:

function dbop(p)
implicit none
:
:
call look_up(tfldp, tbo, nfld, p, y)
pp = p 0.001
call look_up(tfldp, tbo, nfld, pp, yy)
dbop = (y-yy)/(p-pp)
return
end function dbop

Test your code for the same PVT data above.

Submit your subroutine program look_up.f90, function program, and plots of Bo,
o, Bw, w versus p and for dBo/dp, do/dp, dRs/dp, dBw/dp, dw/dp versus p.

Data
/ + no. of PVT table entries [npvto]
/ |
/ v
10
///
// PVT PROPERTIES OF LIVE OIL
// RS POIL FVFO VISO
// PVTO
0.001 14.7 1.062 1.04
0.0905 264.7 1.15 0.975
0.18 514.7 1.207 0.91
0.371 1014.7 1.295 0.83
0.636 2014.7 1.435 0.695
0.775 2514.7 1.5 0.641
0.93 3014.7 1.565 0.594
1.269 4014.7 1.695 0.51
1.269 5014.7 1.671 0.549
1.269 9014.7 1.579 0.74
// PVT PROPERTIES OF WATER
//
// REF. PRES. REF. FVF COMPRESSIBILITY REF VISCOSITY VISCOSIBILITY
// PVTW
4014.7 1.029 3.13D-6 0.31 0

Das könnte Ihnen auch gefallen