direct numerical simulation of transport phenomena on pore-space images
DESCRIPTION
Direct Numerical Simulation of Transport Phenomena on Pore-space Images. Peyman Mostaghimi, Martin Blunt, Branko Bijeljic 11 th January 2010, Pore-scale project meeting. Flow at pore scale. In petroleum science and engineering, scales of interest may vary from molecular level to a mega level. - PowerPoint PPT PresentationTRANSCRIPT
Peyman Mostaghimi, Martin Blunt, Branko Bijeljic11th January 2010, Pore-scale project meeting
Direct Numerical Simulation of Transport Phenomena on Pore-space Images
1
Flow at pore scaleIn petroleum science and engineering, scales of interest may vary from molecular level to a mega level.
The pore scale is of the order of a typical pore which is in the range few microns. Modelling fluid flow at the pore scale can provide a predictive tool for estimating rock and flow properties at larger scales.
One of the most used ways to capture the morphology of a porous medium as the main input for pore scale modelling is micro-CT imaging.
MotivationNetwork modelling – the representation of the pore space by an equivalent representation of pores and throats – has been successful: we now understand trends in recovery with wettability and can predict single and multi-phase properties.
However…….the extraction of networks involves ambiguities and there are some cases where the method does not work so well.
Now have direct three-dimensional imaging of pore spaces.
Why not simulate multiphase flow directly on these images?
Micro-CT imaging AND DIRECT SIMULATION
Post processing Micro-CT images, a matrix can be generated for a core which shows whether there is a solid inside the voxel or a pore. Zero means that voxel is a pore and one means it is a solid phase.Two methods to simulate fluid flow in porous media directly without the need for simplified geometries: - the lattice Boltzmann method (Edo)- conventional computational fluid dynamics algorithms based on the relevant flow and conservation equations.
Governing equations
Conservation of mass:
Navier-Stokes equation:
Steady-state and incompressible flow:
0 vt
vvvv 2.
Pt
0 vvvv 2. P
Dimensionless analysis
0
~vvv
00
0
/~
lvPPP
0~ l
220
2~ l00Re vl
vPvv ~~~~)~~.~Re( 2
110/.10
/10/1010Re 523
3365
msNmkgsmm
The dimensionless steady-state Navier-Stokes equation:
Reynolds number for flow in porous media:
v20 PStokes Equation :
FORMULATION
0
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
zw
yv
xu
zP
zw
yw
xw
yP
zv
yv
xv
xP
zu
yu
xu
u Equation(u: velocity in x-direction)
v Equation(v: velocity in y-direction)
w Equation(w: velocity in z-direction)
p Equation
Gridding
Marker-and-cell grid:
Existence of solid phase in each grid causes six velocity components be zero in the 3 dimensional models.
Discretized Form
xPP
zuuu
yuuu
xuuu KJIKJIKJiKJiKJiKJiKJiKJiKJiKJiKJi
,,1,,2
1,,,,1,,2
,1,,,,1,2
,,1,,,,1 1)(
2)(
2)(
2
yPP
z
vvv
y
vvv
x
vvv KJIKJIKjIKjIKjIKjIKjIKjIKjIKjIKjI
,1,,,2
1,,,,1,,2
,1,,,,1,2
,,1,,,,1 1)(
2
)(
2
)(
2
zPP
zwww
ywww
xwww KJIKJIkJIkJIkJIkJIkJIkJIkJIkJIkJI
1,,,,2
1,,,,1,,2
,1,,,,1,2
,,1,,,,1 1)(
2)(
2)(
2
0,,1,,,,,1,,,,,1
zww
yvv
xuu kJIkJIKjIKjIKJiKJi
iKJIKJInbnbKJiKJi Appuaua ,,,,1,,,, jKJIKJInbnbKjIKjI Appvava ,,,1,,,,, kKJIKJInbnbkJIkJI Appwawa ,,1,,,,,,
The momentum equations can be rewritten as:
SIMPLE algorithm• The SIMPLE (Semi-Implicit Method for pressure-Linked Equations)
Algorithm: 1. Guess the pressure field p* 2. Solve the momentum equations to obtain u*,v*,w* by algebraic
mutigrid solver 3. Solve the p’ equation (The pressure-correction equation) by algebraic
mutigrid solver 4. p=p*+p’ 5. Calculate u, v, w from their starred values using the velocity-correction equations 6. Solve the discretization equation for other variables, such as temperature, concentration, and turbulence quantities. 7. Treat the corrected pressure p as a new guessed pressure p*, return to step 2, and repeat the whole procedure until a converged solution is obtained.
Storing matrices in CRS and AMG for solving all linear systems of equations.
Boundary Condition
0pu 0Nu iKJIKJInbnbKJiKJi Appuaua ,,,,1,,,, jKJIKJInbnbKjIKjI Appvava ,,,1,,,,, kKJIKJInbnbkJIkJI Appwawa ,,1,,,,,,
. . . Boundary Condition
)(8
)(2
32
2
2
yOy
yuy
yuuu pn
)(2
)( 32
2
2
yOyyuy
yuuu ps
22
2
)(344
38
y
uuu
yu spn
COMPARISON OF THE Three METHODS FOR BC FOR FLOW BETWEEN TWO INFINITE PARALEL PLATES
first method second method third method
VELOCITY PROFILE FOR FLOW BETWEEN TWO INFINITE PARALEL PLATES
We see non-zero velocity even for one block within the channel and for more than one we see agreement to within machine accuracy with the analytical solution.
Lid-driven Cavity
DISPERSION MODELLING
When a miscible fluid is injected in a flowing fluid in a saturated porous media, it will spread by various mechanisms including advection and diffusion.
In brief, dispersion is the spread or mixing of flowing fluids due to all these mechanisms.
To model advection term we use stream tracing algorithm and for diffusion we apply random walk method.
DiffusionAdvection XXtxttx )()(
STREAMLINE TRACINGInterpolation to estimate the velocity vectors at a point within the grid block
KJiiKJiKJi uxx
xuu
u ,,,,,,1 )(
KjIjKjIKjI vyy
yvv
v ,,,,,1, )(
kJIkkJIkJI wzz
zww
w ,,,,1,, )(
)ln(,,,,1 i
e
KJiKJix u
uuu
x
)ln(,,,1, i
e
KjIKjIy v
vvv
y
)ln(1,,1,, i
e
kJIkJIz w
wwwz
),,min( zyx
)1.( ,,,,1
,,,,10
KJiKJi uux
iKJiKJi
euuu
xxx
)1.( ,1,,1,
,1,,1,0
KjIKjI vvy
iKjIKjI
evvvyyy
)1.( 1,,1,,
1,,1,,0
kJIkJI wwz
ikJIkJI
ewwwzzz
The time of flight:
The coordinates of exit location:
Diffusion
tDm 2
CosSinXX ..0
SinSinYY ..0
CosZZ .0
Random walking method for both advection and diffusion:
tDtxVtxttx m 2)()()(
Random walking method just for diffusion part of flow :
advection diffusion
tDXtxttx madvection 2)()(
. . . Diffusion
Gridding:Resolution:
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50
0.51
1.52
2.53
3.54
4.55
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50
0.51
1.52
2.53
3.54
4.55
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50
1
2
3
4
5
m851.8
5050
m 4255.4 m 702.170 3.6Pe 4.0Pe
m
avg
DLu
Pe
tDm 2
. . . Particle tracking
Gridding: Resolution:Sandpack LV60B
338338m851.8
. . . Particle tracking
Gridding: Resolution:Sandpack LV60B
338338m851.8
. . . Particle tracking
Gridding: Resolution:Sandpack LV60B
338338m851.8
DISPERSION COEFFIEICENT
The average of positions of particles:
Variance of X can be calculated:
And the longitudinal dispersion coefficient:
For showing the importance of diffusion, dispersion is modelled for a range Peclet number:
N
tXtXX
N
ii
i
1
)()(
N
tYtYY
N
ii
i
1
)()(
N
tZtZZ
N
ii
i
1
)()(
N
XtXXtX
N
ii
i
1
2
22))((
))((
dtdDL
2
m
avg
DLu
Pe
(Bijeljic et al. 2004)
Multiphase flow at the pore scale
Having the interface at different saturations, the flow of each phase can be modelled by the Stokes solver and the relative permeability can be predicted. Also for reactive transport (Branko), the code can be used to simulate the flow at each time step.
Courtesy of Masa Prodanovic
Many thanks for your attention