Skip to content

Commit 7d230cb

Browse files
authored
Merge pull request #61 from daavid00/paper
Bug fix for the left bc pv on spe11c
2 parents c390cc9 + 4b103d6 commit 7d230cb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/pyopmspe11/utils/mapproperties.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def structured_handling_spe11bc(dic):
143143
dic (dict): Modified global dictionary
144144
145145
"""
146-
sensor1, sensor2, centers, corners = [], [], [], []
146+
sensor1, sensor2, centers, corners, pv_l = [], [], [], [], 0
147147
for k in range(dic["noCells"][2]):
148148
for i in range(dic["noCells"][0]):
149149
fgl = pd.Series(
@@ -183,6 +183,7 @@ def structured_handling_spe11bc(dic):
183183
dic["porv"].append(
184184
f"PORV {pv*dic['dy'][0]*dic['dz'][k]} 1 1 1 1 {k+1} {k+1} /"
185185
)
186+
pv_l = pv
186187
elif i == dic["noCells"][0] - 1 and (
187188
int(dic["ids_gmsh"][fgl][0]) != 1 and int(dic["ids_gmsh"][fgl][0]) != 7
188189
):
@@ -232,7 +233,7 @@ def structured_handling_spe11bc(dic):
232233
and int(dic["satnum"][-dic["noCells"][0] + i_i]) != 7
233234
):
234235
dic["porv"].append(
235-
f"PORV {pv*dic['dy'][j+1]*dic['dz'][k]} 1 1 "
236+
f"PORV {pv_l*dic['dy'][j+1]*dic['dz'][k]} 1 1 "
236237
+ f"{j+2} {j+2} {k+1} {k+1} /"
237238
)
238239
elif i_i == dic["noCells"][0] - 1 and (
@@ -389,7 +390,7 @@ def corner_point_handling_spe11bc(dic):
389390
dic (dict): Modified global dictionary
390391
391392
"""
392-
well1, well2, sensor1, sensor2, xtemp, ztemp, centers, corners = (
393+
well1, well2, sensor1, sensor2, xtemp, ztemp, centers, corners, pv_l = (
393394
[],
394395
[],
395396
[],
@@ -398,6 +399,7 @@ def corner_point_handling_spe11bc(dic):
398399
[],
399400
[],
400401
[],
402+
0,
401403
)
402404
dic["wellijk"] = [[] for _ in range(len(dic["wellCoord"]))]
403405
for i in range(dic["no_cells"]):
@@ -441,6 +443,7 @@ def corner_point_handling_spe11bc(dic):
441443
f"PORV { pv*dic['d_y'][0]*dic['d_z'][i]} 1 1 1 1 "
442444
+ f"{dic['ijk'][2]+1} {dic['ijk'][2]+1} /"
443445
)
446+
pv_l = pv
444447
elif dic["ijk"][0] == dic["noCells"][0] - 1 and (
445448
int(dic["ids_gmsh"][fgl][0]) != 1 and int(dic["ids_gmsh"][fgl][0]) != 7
446449
):
@@ -472,7 +475,7 @@ def corner_point_handling_spe11bc(dic):
472475
dic["d_zl"] = dic["d_z"][-dic["noCells"][0] + 1 + i]
473476
dic["porv"].append(
474477
"PORV "
475-
+ f"{pv*dic['d_y'][j+1]*dic['d_zl']} 1 1 "
478+
+ f"{pv_l*dic['d_y'][j+1]*dic['d_zl']} 1 1 "
476479
+ f"{j+2} {j+2} {dic['ijk'][2]+1} {dic['ijk'][2]+1} /"
477480
)
478481
elif i_i == dic["noCells"][0] - 1 and (

0 commit comments

Comments
 (0)