@@ -12,11 +12,11 @@ Ny = 50 # number of cells in y direction
12
12
W = 0.02 # [m] length of the domain in x direction
13
13
H = 0.07 # [m] length of the domain in y direction
14
14
# m = createMesh1D(Nx, W)
15
- m = createMeshCylindrical2D (Nx, Ny, W, H) # creates a 2D mesh
15
+ m = createMesh2D (Nx, Ny, W, H) # creates a 2D mesh
16
16
# # define the physical parametrs
17
17
# all the Corey-type relperm parametrs are defined for the oil-wet and water-wet
18
18
# cases
19
- k0 = 0.005e -12 # [m^2] average reservoir permeability
19
+ k0 = 0.01e -12 # [m^2] average reservoir permeability
20
20
phi0 = 0.45 # average porosity
21
21
mu_oil = 2e-3 # [Pa.s] oil viscosity
22
22
mu_water = 1e-3 # [Pa.s] water viscosity
@@ -117,7 +117,7 @@ rec_fact=zeros(1)
117
117
t_day= zeros (1 )
118
118
t = 0.0
119
119
dt0= dt
120
- dsw_alwd= 0.01
120
+ dsw_alwd= 0.001
121
121
dp_alwd= 100.0 # Pa
122
122
while (t< t_end)
123
123
# for i=1:5
@@ -149,7 +149,7 @@ while (t<t_end)
149
149
uw= - labdaw.* pgrad
150
150
Mbcsw, RHSbcsw = boundaryConditionTerm (BCs)
151
151
RHS_sw= - divergenceTerm (uw)
152
- sw_new= solveExplicitPDE (sw_old, dt/ phi0 , RHS_sw, BCs)
152
+ sw_new= solveExplicitPDE (sw_old, dt, RHS_sw, BCs, phi )
153
153
154
154
error_p = maximum (abs ((internalCells (p_new)- internalCells (p)). / internalCells (p_new)))
155
155
error_sw = maximum (abs (internalCells (sw_new)- internalCells (sw)))
@@ -177,11 +177,11 @@ while (t<t_end)
177
177
rec_fact= push! (rec_fact, (oil_init- domainInt (1 - sw))/ oil_init)
178
178
t_day= push! (t_day, t)
179
179
# print(t)
180
- # GR.imshow(sw.value[2:end-1,2:end-1])
181
- # visualizeCells(1-sw)
182
- GR. plot (t_day/ 3600 / 24 , rec_fact)
183
- # xlabel('time [day]')
184
- # ylabel('recovery factor')
185
- # title([num2str(t/3600/24) ' day']) drawnow
180
+ GR. imshow (sw. value[2 : end - 1 ,2 : end - 1 ])
181
+ # visualizeCells(1-sw)
182
+ # GR.plot(t_day/3600/24, rec_fact)
183
+ # xlabel('time [day]')
184
+ # ylabel('recovery factor')
185
+ # title([num2str(t/3600/24) ' day']) drawnow
186
186
end
187
187
end # imb_impes
0 commit comments