@@ -143,7 +143,7 @@ def structured_handling_spe11bc(dic):
143
143
dic (dict): Modified global dictionary
144
144
145
145
"""
146
- sensor1 , sensor2 , centers , corners = [], [], [], []
146
+ sensor1 , sensor2 , centers , corners , pv_l = [], [], [], [], 0
147
147
for k in range (dic ["noCells" ][2 ]):
148
148
for i in range (dic ["noCells" ][0 ]):
149
149
fgl = pd .Series (
@@ -183,6 +183,7 @@ def structured_handling_spe11bc(dic):
183
183
dic ["porv" ].append (
184
184
f"PORV { pv * dic ['dy' ][0 ]* dic ['dz' ][k ]} 1 1 1 1 { k + 1 } { k + 1 } /"
185
185
)
186
+ pv_l = pv
186
187
elif i == dic ["noCells" ][0 ] - 1 and (
187
188
int (dic ["ids_gmsh" ][fgl ][0 ]) != 1 and int (dic ["ids_gmsh" ][fgl ][0 ]) != 7
188
189
):
@@ -232,7 +233,7 @@ def structured_handling_spe11bc(dic):
232
233
and int (dic ["satnum" ][- dic ["noCells" ][0 ] + i_i ]) != 7
233
234
):
234
235
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 "
236
237
+ f"{ j + 2 } { j + 2 } { k + 1 } { k + 1 } /"
237
238
)
238
239
elif i_i == dic ["noCells" ][0 ] - 1 and (
@@ -389,7 +390,7 @@ def corner_point_handling_spe11bc(dic):
389
390
dic (dict): Modified global dictionary
390
391
391
392
"""
392
- well1 , well2 , sensor1 , sensor2 , xtemp , ztemp , centers , corners = (
393
+ well1 , well2 , sensor1 , sensor2 , xtemp , ztemp , centers , corners , pv_l = (
393
394
[],
394
395
[],
395
396
[],
@@ -398,6 +399,7 @@ def corner_point_handling_spe11bc(dic):
398
399
[],
399
400
[],
400
401
[],
402
+ 0 ,
401
403
)
402
404
dic ["wellijk" ] = [[] for _ in range (len (dic ["wellCoord" ]))]
403
405
for i in range (dic ["no_cells" ]):
@@ -441,6 +443,7 @@ def corner_point_handling_spe11bc(dic):
441
443
f"PORV { pv * dic ['d_y' ][0 ]* dic ['d_z' ][i ]} 1 1 1 1 "
442
444
+ f"{ dic ['ijk' ][2 ]+ 1 } { dic ['ijk' ][2 ]+ 1 } /"
443
445
)
446
+ pv_l = pv
444
447
elif dic ["ijk" ][0 ] == dic ["noCells" ][0 ] - 1 and (
445
448
int (dic ["ids_gmsh" ][fgl ][0 ]) != 1 and int (dic ["ids_gmsh" ][fgl ][0 ]) != 7
446
449
):
@@ -472,7 +475,7 @@ def corner_point_handling_spe11bc(dic):
472
475
dic ["d_zl" ] = dic ["d_z" ][- dic ["noCells" ][0 ] + 1 + i ]
473
476
dic ["porv" ].append (
474
477
"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 "
476
479
+ f"{ j + 2 } { j + 2 } { dic ['ijk' ][2 ]+ 1 } { dic ['ijk' ][2 ]+ 1 } /"
477
480
)
478
481
elif i_i == dic ["noCells" ][0 ] - 1 and (
0 commit comments