Documente Academic
Documente Profesional
Documente Cultură
Problem 1.
(a) Consider the pressure equation
x R = (, +)
(A1)
ut = uxx ,
(A2)
u(x, t = 0) = u0 (x) =
0, x 0;
.
1, x > 0.
Find an expression for the exact solution of (A1) and (A2) by using the fact that the
solution with = 1 is given by
x
2 t
1
2
(A3)
u(x, t) =
e d.
Make use of an appropriate rescaling of the time variable t to get t that depends on
. Derive equation for v(x, t) where v(x, t) = u(x, t).
(b) The task is the same as in (a) but make use of an appropriate rescaling of space variable x to get x
that depends on . Derive equation for v(
x, t) and make use of (A3)
to get the solution of (A1) with initial data (A2).
- Illustrate the eect of on the solution by making a rough sketch of the solution
u(x, t) for a fixed time t and a small value of and a large value of .
(c) In order to derive the solution (A3) of (A1) with initial data (A2) for = 1, the idea
that is used is to relate the time variable t and the space variable x in a special way.
Introduce a variable y that describes this relation and a variable v(y) and rewrite
the PDE (partial dierential equation) ut = uxx with initial data (A2) as and ODE
(ordinary dierential equation) in terms of v(y). Find conditions for v at y = .
(d) Consider
ut = uxx + g(u),
x (0, 1)
u(0, t) = u(1, t) = 0
u(x, t = 0) = u0 (x)
1
We want to derive an upper bound for the quantity 0 u2 dx.
1
1
- Find a condition on g(u) which will ensure that 0 u2 dx 0 u20 dx.
- In particular, give an example of a g(u) that satisfies this condition.
(e) Now, consider a pressure equation (obtained by combing the mass balance equation
with Darcys law) which takes the following form
()
pt = pxx ,
x (0, 1),
p(0, t) = p(1, t) = 1
p(x, t = 0) = p0 (x)
1
k
0 (c + cr )
where k, , 0 , c, and cr are constants (permeability, viscosity, porosity, and compressibility constants) with initial data
{
1 2x, 0 x < 12 ;
()
p0 (x) =
2x 1, 12 x 1.
- Consider a discretization of the domain [0, 1] composed of M cells and discretization
parameters x and t. Formulate a discrete version of (*) (explicit scheme). Make
sure that the boundary condition is taken into account in the scheme for cell 1 and
cell M.
- If = 1, what is the stability condition for this scheme?
(f) Make a sketch of the initial data p0 (x) and the solution p(x, t) at some time t > 0 in
one and the same figure.
- Assume that k = 1. Make a sketch of the corresponding initial fluid velocity u0 (x)
and u(x, t) and explain the motion of fluid and the corresponding change in pressure.
Refer to relevant equations when you explain.
- What will be the stationary solution (the solution as time goes to infinity) for
pressure p and velocity u?
Problem 2. We consider a transport equation of the form
(B1)
(B2)
x (, +)
Myfunction
2
1.5
1
y-values
0.5
0
-0.5
-1
-1.5
-2
0.5
1.5
2
x-values
2.5
3.5
b) Wewanttopickoutthesmallestpositiverootofthisequation.Filloutthefollowingtableand
alsocommentuponhowaccuratethesolutionis!
Iteration
x1
x2
x3
f(x1)
f(x2)
f(x3)
1
c) ExplainhowyouwanttochangethecodeinAppendixBinordertofindtherootwhichyou
foundinexerciseb)
Exercise4Iterativemethods
a) Considerthefunction f ( x ) x 2 2 x 3 .Thishastherootsx1=1andx2=3.Consideralternate
reformulationsontheform x g (x ) andshowhowwecanpickoutthetworootsbyiterations.
Use x 0 4 asstartingpoint.
b) Writeamatlabcodethatperformstheiterationsfortheiterationdefinedby x (2 x 3)
Wewillbesatisfiedwhenthesolutionsatisfiesthefollowingrequirement x n 1 x n 0.001 .Hint:
ThecontrolstructureisthesameastheoneusedintheMatlabcodefortheLarsenmodelshownin
AppendixC.
Exercise5Wellpressures
a) Weareat4000metersTVD(trueverticaldepth)inawellandwearecirculatingwith2000lpm.
Thefrictionintheannulusis17bars.Themudweightmeasuredatsurfaceis1.5sg.Thewellis
temperaturedominatedandweexpectthatthiswillchangetheeffectivedownholemudweight
by0.02sg.CalculatetheeffectiveECD(insg)whencirculating!
b) Canyouestimatewhatthefrictionwillbeifweincreasethepumprateto3000lpm?
Onewellcontrolmethodisbasedonpumpingthekickbackintotheformation.Thisiscalled
bullheading.Inthiscasewewillcirculatemuddownthechokeandkilllinesimultaneouslyanditis
importantthattherateislargeenoughtoovercomegasmigrationintheannulussuchthatweare
abletoforcethekickdownwards.Inthefollowingcalculationswewillassumethatthedensityofthe
fluidisconstant.
c) Usethegassliprelationandshowthattheminimumrequirednegativeliquidvelocity(negative
meansindownwarddirection)tobeabletoforcethekickdownwardsisgivenbytheexpression:
vl
m
S
andshowthatifweassume20%gasweendupwith vl 0.57 (seeAppendixfor
s
K l
gassliprelation)forthemodelassumedhere.
d) Wewillpump500lpmdowneachlinesimultaneously.Verifybycalculationthatwewillbeable
toforcethekickdownwardintheannulus.Theouterdiameterofannulusis8.5andtheinner
diameteris5.
e) Thechokeandkilllinesare1000meterlong.Theestimatedfrictiongradientis0.01Bar/min
theselines.ThedistancefromtheBOPtoinjectionzoneis3000meterandtheannulusfriction
gradientisestimatedtobe0,005Bar/m.Themudweightis1.5sg.Thewellisvertical.Thewell
pressureattheinjectionzonemustbe610bartobeabletoforcethekickback.Theinjection
zoneis4000meterbelowtherigfloor(verticalwell).
Whatmustthepumppressurebewhenthebullheadingcirculationhasbeenestablished?
Exercise6Conservationlaws
a) Whatisthemaindifferencebetweenasteadystateandtransientflowmodel?Hereyoushould
alsogiveoneexampleofatransientandoneexampleofasteadystateflowsituation
b) Thefollowingshowsthetransientdriftfluxmixturemomentumequation.InAppendixD,wefind
thesteadystateversionofit.Whatkindofphysicalphenomenadoesthetransientmomentum
equationdescribewhichthesteadystateequationdont.
p fric
( A( l l vl g g v g )) ( A( l l vl2 g g v g2 )) A p A( mix g
)
z
t
z
z
M Q Mmassrate(kg/s),QVolumerate(m3/s), density(kg/m3)
Q v A QVolumerate(m3/s),vvelocitym/s.Aaream2
p h 0.0981 p(bar), density(sg),hverticaldepth(m)
P V
C ,fromIdealgaslaw
T
P V C ,Boyleslaw(temperatureisassumedconstant)
Appendix B
Main.m
%
%
%
%
%
Bisection.m
ftol = 0.01;
% Set number of iterations to zero. This number will tell how many
% iterations are required to find a solution with the specified accuracy.
noit = 0;
x1 = a;
x2 = b;
f1 = func(x1);
f2 = func(x2);
%
%
%
First include a check on whether f1xf2<0. If not you must adjust your
initial search intervall. If error is 1 and solution is set to zero,
then you must adjust the search intervall [a,b].
if (f1*f2)>=0
error = 1;
solution = 0;
else
% start iterating, we are now on the track.
x3 = (x1+x2)/2.0;
f3 = func(x3);
while (f3>ftol | f3 < -ftol)
noit = noit +1 ;
if (f3*f1) < 0
x2 = x3;
else
x1 = x3;
end
x3 = (x1+x2)/2.0;
f3 = func(x3);
f1 = func(x1);
end
error = 0;
solution = x3;
noit % This statement without ; writes out the number of iterations to
the screen.
end
func.m
function f = func(x)
f = x^2-4*x+2;
Appendix C
% Program where the Larsen Cuttings Transport Model is implemented
%
( A l l vl ) 0
z
Conservationofgasmass
( A g g v g ) 0
z
Conservationofmomentum.
p fric
p ( mix g
)
z
z
Gasslippagemodel(simple):
v g Kv mix S (K=1.2,S=0.55)
Liquiddensitymodel(simple)
l ( p ) lo
( p pO )
,assumewater: lo 1000 kg/m3, p O 100000 Pa , a L 1500 m/s
a L2
Gasdensitymodel(simple)
g ( p)
p
,idealgas: a g 316 m/s.
a g2
Frictionmodel
ThefrictionmodelpresentedhereisforaNewtonianfluidslikewater.Thegeneralexpressionforthe
frictionalpressurelossgradienttermisgivenby:
p fric
z
A (m2)
i phasedensities(kg/m3),liquid>i=l,gas>i=g
vi phasevelocities(m/s)
p pressure(Pa)
g gravityconstant9.81m/s2
i phasevolumefractionstakingvaluesbetween0and1. l g 1 .
mix l l g g mixturedensity
v mix l v l g v g mixturevelocity