Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This research aims to view the effects of surfactant in EOR while accounting for
- Analyze and visualize results to gain insights into SP flooding dynamics

## Requirements
- ```Python 3.13.1``` (with dependencies listed in ```requirements.txt```)
- ```Python 3.14.3``` (with dependencies listed in ```requirements.txt```)

### Installing Dependencies
1. cd to the location of the repository within your computer
Expand Down
22 changes: 11 additions & 11 deletions lib/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,17 +1475,17 @@ def run(self):

## STEP 2.7: Updating the cummulative oil captured, Production rate, and the residual oil in place
# arrays for exporting to CSV files
if (t_cal == 0):
self.COC[0,t_cal] = ocut
else:
self.COC[0,t_cal] = self.COC[0,t_cal - 1] + ocut

self.ProdRate[0,t_cal] = ocut/dt
self.CROIP[0,t_cal] = ROIP

t_cal += 1

self._export_results()
# if (t_cal == 0):
# self.COC[0,t_cal] = ocut
# else:
# self.COC[0,t_cal] = self.COC[0,t_cal - 1] + ocut
#
# self.ProdRate[0,t_cal] = ocut/dt
# self.CROIP[0,t_cal] = ROIP
#
# t_cal += 1
#
# self._export_results()

except Exception as e:
print(e)
2 changes: 1 addition & 1 deletion lib/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
user_dict = {
"simulation_id": 1,
"model_type": MODEL["No_Shear_Thinning"],
"reservoir_geometry": GEOMETRY["Rectilinear"],
"reservoir_geometry": GEOMETRY["Quarter Five Spot"],
"permeability": PERMEABILITY["Heterogeneous"],
"polymer_type": POLYMER["Xanthane"],
"polymer_concentration": 0.001,
Expand Down
6 changes: 3 additions & 3 deletions lib/water.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def compute_water_saturation(
(Qmod[cnt][i] / dt_array[cnt][i])
+ g1 * (1 - f[cnt][i])
+ (
(D_g[cnt][i] + D_g[cnt][i + 1]) / (dx**2)
(D_g[cnt][i] + D_g[cnt+1][i + 1]) / (dx**1)
+ (D_g[cnt + 1][i] + D_g[cnt][i]) / (dx**2)
)
* surfactant.concentration_matrix[cnt][i]
Expand All @@ -599,7 +599,7 @@ def compute_water_saturation(
- (D_s[cnt + 1][i] + D_s[cnt][i]) / (dy**2)
)

BB[j][i + 1] = (D_s[cnt][i] + D_s[cnt][i + 1]) / (dx**2)
BB[j][i + 1] = (D_s[cnt][i] + D_s[cnt][i + 1]) * (dx**2)
elif i == m - 1: # last/rightmost column
DD[i] = (
Qmod[cnt][i] / dt_array[cnt][i]
Expand Down Expand Up @@ -1001,7 +1001,7 @@ def compute_water_saturation(

BB[j][i] = 1 / dt_array[cnt][i] - (
(1 / (2 * dx**2))
* (D_s[cnt][i - 1] + 2 * D_s[cnt][i] + D_s[cnt][i + 1])
* (D_s[cnt][i] + 2 * D_s[cnt][i] + D_s[cnt][i + 1])
+ (1 / (2 * dy**2))
* (
D_s[cnt - 1][i]
Expand Down
Loading