Eclipse Field Management Scripting

The following script shows the example on how to add Water Vapor Calculation in Gas into Eclipse Reservoir Simulation, also manage the Well Choke Back Strategy in the model.

1. Add the following Keyword in RUNSPEC section:

UDQDIMS
20 20 20 20 20 20 20 20  /
UDADIMS
5 5 /
ACTDIMS
20 20 80 80 /

2. Add the following keywords(UDQ, ACTIONX) into SCHEDULE section:

—————————————————————————————————–
— Calculate Water Vapor in Gas + Formation Water — added by TRR
—————————————————————————————————–

UDQ

— Reservoir Pressure Upper Channel (Volume Weighted)
DEFINE WUP1A (RGIP_NUM 1 * RPR__NUM 1)+(RGIP_NUM 2 * RPR__NUM 2)+(RGIP_NUM 3 * RPR__NUM 3)  /
DEFINE WUP1B  WUP1A+(RGIP_NUM 4 * RPR__NUM 4)+(RGIP_NUM 5 * RPR__NUM 5)+(RGIP_NUM 6 * RPR__NUM 6) /
DEFINE WUP1 WUP1B/(RGIP_NUM 1 + RGIP_NUM 2 + RGIP_NUM 3 + RGIP_NUM 4 + RGIP_NUM 5 + RGIP_NUM 6) /

— Reservoir Pressure Lower Channel (Volume Weighted)
DEFINE WUP2A (RGIP_NUM 7 * RPR__NUM 7)+(RGIP_NUM 8 * RPR__NUM 8)+(RGIP_NUM 9 * RPR__NUM 9)+(RGIP_NUM 10 * RPR__NUM 10) /
DEFINE WUP2 WUP2A/(RGIP_NUM 7+ RGIP_NUM 8+ RGIP_NUM 9+ RGIP_NUM 10) /

— Upper Channel Water Vapor Coefficient
DEFINE WUPRV1 -3.54466E-18*WUP1^5+5.68997E-14*WUP1^4-3.65323E-10*WUP1^3+1.19068E-06*WUP1^2-0.002038654*WUP1+1.959921856 /

— Lower Channel Water Vapor Coefficient
DEFINE WUPRV2 -2.69048E-18*WUP2^5+4.66481E-14*WUP2^4-3.23763E-10*WUP2^3+1.14019E-06*WUP2^2-0.002105798*WUP2+2.189204524 / — correct Water Vapor for lower
–DEFINE WUPRV2 -3.54466E-18*WUP2^5+5.68997E-14*WUP2^4-3.65323E-10*WUP2^3+1.19068E-06*WUP2^2-0.002038654*WUP2+1.959921856 / — incorrect Water Vapor for lower

— Total Water Volume (Formation water + Water Vapor)
DEFINE WUPRT1 WUPRV1*WGPR ‘LOC-1’ /1000 /
DEFINE WUPRT2 WUPRV2*WGPR ‘LOC-2’ /1000 /
DEFINE FUTOT WWPR ‘LOC-1’ + WWPR ‘LOC-2’ + WUPRT1 ‘LOC-1’ + WUPRT2 ‘LOC-2’ /
/

—————————————————————————————————–
— Initiates a set of keywords to be processed when a SET of conditions are satisfied — added by TRR
—————————————————————————————————–

— below 60000 Separator pressure set to 190

ACTIONX
ACT1 10000 /
GGPR FIELD <= 60000 and /
GGPR FIELD >=  30000 /
/
GCONPROD
–Group  Cntrl  Oil  Wtr   Gas    Liq  
   FIELD  GRAT    1*   1*  60000   1*  /  10″
/
GRUPNET
–Name     Press    VFP  ALQ   SUB-SEA_MANIFOLD
FIELD     190                            /
/
ENDACTIO
/

— below 30000 all wells will be shut
ACTIONX
ACT2 10000 /
GGPR FIELD < 30000 /
/
WELOPEN
‘LOC*’ ‘SHUT’ /
/
ENDACTIO
/

——————
— LOC-1
——————

— LOC-1 High rate

ACTIONX
ACT3 10000 /
WGPR ‘LOC-1’ >= 40000 and /
WWPR ‘LOC-1’ > WWPR  ‘LOC-2’ and /
FUTOT >= 150 /
/
WCONPROD
 ‘LOC-1’    ‘OPEN’ ‘GRAT’ 2* 30000 2*  1*  1*   1   7* /
/
ENDACTIO
/

— LOC-1 Mid rate

ACTIONX
ACT4 10000 /
WGPR ‘LOC-1’ < 40000 and /
WGPR ‘LOC-1’ > 10000 and /
WWPR ‘LOC-1’ > WWPR ‘LOC-2’ and /
FUTOT >= 150 /
/
WCONPROD
 ‘LOC-1’    ‘OPEN’ ‘GRAT’ 2* 10000 2*  1*  1*   1   7* /
/
ENDACTIO
/

ACTIONX
ACT4 10000 /
WGPR ‘LOC-1’ < 40000 and /
WGPR ‘LOC-1’ > 10000 and /
WWPR ‘LOC-1’ > WWPR ‘LOC-2’ and /
FUTOT >= 150 /
/
WCONPROD
 ‘LOC-1’    ‘OPEN’ ‘GRAT’ 2* 10000 2*  1*  1*   1   7* /
/
ENDACTIO
/
— LOC-1 Low rate

ACTIONX
ACT5 10000 /
WGPR ‘LOC-1’ <= 10000 and /
WWPR ‘LOC-1’ > WWPR ‘LOC-2’ and /
FUTOT >= 150 /
/
WELOPEN
 ‘LOC-1’ ‘SHUT’ /
 /
ENDACTIO
/

–Action one time When one of the well shut in

ACTIONX
ACT9 1 /
WWPR ‘LOC-1’ = 0 and /
WWPR ‘LOC-2’ < 120 /
/
WCONPROD
 ‘LOC-2’    ‘OPEN’ ‘GRAT’ 2* 110000 2*  1*  1*   1   7* /
/
ENDACTIO
/

——————
— LOC-2
——————

— LOC-2 High rate

ACTIONX
ACT6 10000 /
WGPR ‘LOC-2’ >= 40000 and /
WWPR ‘LOC-2’ > WWPR  ‘LOC-1’ and /
FUTOT >= 150 /
/
WCONPROD
 ‘LOC-2’    ‘OPEN’ ‘GRAT’ 2* 30000 2*  1*  1*   1   7* /
/
ENDACTIO
/

— LOC-2 Mid rate

ACTIONX
ACT7 10000 /
WGPR ‘LOC-2’ < 40000 and /
WGPR ‘LOC-2’ > 10000 and /
WWPR ‘LOC-2’ > WWPR ‘LOC-1’ and /
FUTOT >= 150 /
/
WCONPROD
 –‘LOC-2’    ‘OPEN’ ‘GRAT’ 2* 10000 2*  1*  1*   1   7* /
 ‘LOC-2’    ‘OPEN’ ‘GRAT’ 2* 20000 2*  1*  1*   1   7* /
/
ENDACTIO
/

— LOC-2 Low rate

ACTIONX
ACT8 10000 /
WGPR ‘LOC-2’ <= 10000 and /
WWPR ‘LOC-2’ > WWPR ‘LOC-1’ and /
FUTOT >= 150 /
/
WELOPEN
 ‘LOC-2’ ‘SHUT’ /
 /
ENDACTIO
/
–Action one time When one of the well shut in
ACTIONX
ACT10 1 /
WWPR ‘LOC-2’ = 0 and /
WWPR ‘LOC-1’ < 120 /
/
WCONPROD
 ‘LOC-1’    ‘OPEN’ ‘GRAT’ 2* 110000 2*  1*  1*   1   7* /
/
ENDACTIO
/

No comments yet.

Post your comment