7 tipsandtraps upd

31
OLGA Tips and Traps

Upload: hoangnm1187

Post on 06-Aug-2015

49 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 7 TipsandTraps Upd

OLGA Tips and Traps

Page 2: 7 TipsandTraps Upd

Pipeline discretisation

• For each pipeline GEOMETRY we must specify the number of calculation segments (sections) per pipe

• The number of sections is a compromise: accuracy vs computation time

• The number of sections is important when temperatures, pressuresand velocities change rapidly

Page 3: 7 TipsandTraps Upd

Pipeline discretisation cont.

• Some terrain effects are lost if grid is too coarse– due to the staggered grid solution scheme

• Example case:– 3000 SCF/BBL GOR multiphase production– very hilly terrain

Hilly Terrain Multiphase Pipeline Profile

2500270029003100

0 6000 13500 19000Distance (m)

Elev

atio

n (m

)

Page 4: 7 TipsandTraps Upd

Effect of pipeline discretisation

Pressure drop varying for varying number of segments

320

360

400

0 2 4 6 8 10 12 14 16 18Multiplication factor for # of segments

Tota

l pre

ssur

e dr

op(p

si)

Page 5: 7 TipsandTraps Upd

Pipeline discretisationsummary

• Check sensitivity to discretisation– Finer discretisation reduces errors and increase computing

time• Try to use at least 2 segments for any pipe• Try not to violate the following rule:

Li Li+1

0.5 ≤ Li / Li+1 ≤ 2 for all i

Page 6: 7 TipsandTraps Upd

Pipeline discretisation and time step

• The time step HT is limited by the CFL criterion for implicit solutions (default = ON)

CFL: HT < min ( Lsection/Ufluid)

• You may also limit HT by the 2nd derivative of pressure (default = OFF)

• Use DTCONTROL to change defaults

• Moreover, HT is always limited byController action and Slugtracking

Page 7: 7 TipsandTraps Upd

SHUT-IN simulations

• In some cases OLGA gives un-physical pressure rises in a pipeline that has been shut-in for a while, where the temperature is falling.

• Ways of getting around it:– Reduce the time step and/or reduce the ratio of

MAXDT/ MINDT to limit the changes in time-step.– Re-section the pipeline with somewhat shorter

sections where there are liquid interfaces.• The problem is mainly due to limitations in the

Fluid Table approach and the best solution is to use either Compositional Tracking or the Black Oil model.– Black oil parameters may have to be tuned with PVTsim

to work properly

Page 8: 7 TipsandTraps Upd

Shut-in continued

• The main source of the problem is flashing of liquid to gas when the gas-liquid interface crosses section boundaries due to movements caused by the numerics. There is usually no equivalent condensation, and the result is a slight increase in pressure over time.

• Most frequent problem cases:– several gas/liquid interfaces and relatively little

gas (pressure increases quite rapidly when extra gas is created),

– the liquid density decreases with pressure – there are sections filled with liquid

Page 9: 7 TipsandTraps Upd

Steady state - an example

FLOWLINE

Elev

atio

n [m

]

0

-1

-2-2.5

Horizontal length [m]

150010005000

Elevation profile 2

PIPE ID = 0.5 m

total # of sections: 20

Page 10: 7 TipsandTraps Upd

Steady state example cont.

Total liquid inventory in % of pipe volume

0

5

10

15

20

25

30

35

0 5 10 15 20 25Flowrate (kg/s)

(%)

Steady state preprocessorDynamic steady state

Page 11: 7 TipsandTraps Upd

Steady state example cont.

Total liquid inventory in % of pipe volume

0

4

8

12

16

12 14 16Flowrate (kg/s)

(%)

Steady state preprocessorDynamic steady state

Page 12: 7 TipsandTraps Upd

General observation

• At lower flowrates and a pipe with dips and humps (gravity dominated flow) an obtained steady state solution may be meaningless since the flow in reality may exhibit continuous fluctuations.

Page 13: 7 TipsandTraps Upd

Steady state stratified flow • All steady state stratified flow models solve the same type of

equation by iterating on liquid holdup (OLGA uses time stepping to “iterate” to a dynamic steady state solution)

• The equation has normally only one root, but it may havemultiple roots for:– upward inclination angles– low liquid velocities– low/medium gas velocities

• Stability analysis show that only one root is stable• The existence of multiple roots is now demonstrated by

experiments• OLGA does not always converge to the minimum liquid holdup

solution (maximum gas volume fraction)

Page 14: 7 TipsandTraps Upd

Stratified flow - possible steady state solutions

α = gas volume fraction ≤ 1

1.0

0.5

0.0

-0.5

0.6 0.7 0.8 0.9

F(α)

the solution to F (α) =0 is found by iteration, starting at α =1

liquid holdup = 1- α

UsL = 0.001 m/s

ϕ = 0.2 °

Usg = 0.8 m/s

0.75

0.70.65

Page 15: 7 TipsandTraps Upd

Stratified flow - conclusion

• Be concerned whether OLGA finds the right liquid inventory for high GOR flow in hilly terrain

• OLGA should find the right liquid inventory after pigging or after a rate change from a high to a lower rate

Page 16: 7 TipsandTraps Upd

Initial conditions

WELL

Pressure boundary

reservoir pressure

The steady state pre-processor may have problems finding a solution at t = 0

Use INITIALCONDITIONS and specify

- a high gas volume fraction (void fraction) everywhere

- pressure gradient with correct direction

Page 17: 7 TipsandTraps Upd

Network

• OLGA was designed to handle converging networks

Split nodes and closed loops are also possible

Page 18: 7 TipsandTraps Upd

Loop line design case Schematic

Gas Plant

Cluster 1

Cluster 2

Cluster 3

Page 19: 7 TipsandTraps Upd

Node Node

Pressure boundary

Pressure boundary

Source1 Source 2 Source 3

Loop line design case- single branch OLGA model

P plant

Page 20: 7 TipsandTraps Upd

Loop line design case closed loop OLGA model

Source1

Source2 Source3

Terminal Node Pressure boundary

Merging Node

splitting Node

Terminal Node Closed boundary

Page 21: 7 TipsandTraps Upd

A typical network

to e.g. flare

SD Valve

Blow Down Valve

Page 22: 7 TipsandTraps Upd

Possible OLGA model

Source

BDV back pressureBDV

SDV

Separator pressureNode:

INTERNAL

ClosedNODE

Pressure NODE

Pressure NODE

Page 23: 7 TipsandTraps Upd

BDV

SDVQ

Pb

PsFlow direction

Blow down simulation

Normal operation

Source flow = Q

BDV opening = 0

SDV opening = 1

Blow down

Source flow = 0

BDV opening = 1

SDV opening = 0

Page 24: 7 TipsandTraps Upd

Bubble / Dew points

• OLGA does NOT check against dew points– In the gas region - outside the 2-phase region, the

predicted gas mass fraction can be different from 1 due to linear interpolation across the dew point line

• Above bubble point – no mass transfer– i.e. gas is not condensed/dissolved

• When actual P,T is close to critical then fluid properties could be dubious

Page 25: 7 TipsandTraps Upd

Phase envelope

0

1000

2000

3000

4000

5000

6000

-100 0 100 200 300 400 500 600 700 800 900

Temperature/°F

Crit P

TEST 4 BHS OIL C10+

Table Points Gas mass fraction could be < than 1 due to linear interpolation

Page 26: 7 TipsandTraps Upd

Water vapour and free water

• No separate mass equation for water vapour in basic OLGA

• Assumption:– The gas phase is always saturated with water vapour

Water

Liquid water

Water vapour

FlashingOK

No check on available

wat.vapour

Page 27: 7 TipsandTraps Upd

Mass transfer of water

• Water vapour mass fraction from fluid table:

• Change in water vapour mass fraction due to change in pressure and temperature:

TT

Rswpp

RswRsw Δ∂∂

+Δ∂

∂=Δ

gas

OvapourHsw m

mR 2=

Page 28: 7 TipsandTraps Upd

Saturated and undersaturated gas

If there is a change in Rsw due to changes of P,Twater may condense even if no water vapour is left in the gas

• Be careful simulating undersaturated gases with standard OLGA

• Possible to turn off water flashing

Page 29: 7 TipsandTraps Upd

Standard volume flow in sources and wells

• You may specify e.g. PHASE = OIL in SOURCEQoil , GOR (or GLR) and Water Cut. (Equivalent for gas)

• All the variables are assumed to be at standard conditions• Standard conditions (1 atm. and 60 F) must be a point

within the fluid table P&T boundaries • If you do not specify GOR the fluid table value is used• On terminal nodes you specify GOR (or GLR) and WC

Page 30: 7 TipsandTraps Upd

Equivalent mass rate is calculated :

– calculates volume flow of gas using GOR – calculates volume flow of water using WC– converts to mass flows using std. densities– adds up mass flow for each phase

wc: watercut fraction [0, 1]

)1

( STDw

STDg

STDo

STDotot wc

wcGORQm ρρρ−

+⋅+=&

Page 31: 7 TipsandTraps Upd

Standard conditions – tips

• Your specified GOR should be ≈ to the GOR of the fluid table

• Use a dense grid in the PVT table around std. cond.– fluid densities are taken from interpolation in PVT table

• OLGA expects that GOR is from a 0. stage flash