@@ -2332,20 +2332,21 @@ def Calculate(self, model: Model) -> None:
2332
2332
vert_depth_km = model .reserv .InputDepth .quantity ().to ('km' ).magnitude
2333
2333
model .wellbores .injection_reservoir_depth .value = vert_depth_km
2334
2334
2335
- tot , vert , horiz = calculate_total_drilling_lengths_m (model .wellbores .Configuration .value ,
2335
+ tot_m , tot_vert_m , tot_horiz_m = calculate_total_drilling_lengths_m (model .wellbores .Configuration .value ,
2336
2336
model .wellbores .numnonverticalsections .value ,
2337
2337
model .wellbores .Nonvertical_length .value / 1000.0 ,
2338
2338
vert_depth_km ,
2339
2339
model .wellbores .nprod .value ,
2340
2340
model .wellbores .ninj .value )
2341
2341
2342
2342
else :
2343
- tot = vert = model .reserv .depth .quantity ().to ('km' ).magnitude
2344
- horiz = 0.0
2343
+ tot_m = tot_vert_m = model .reserv .depth .quantity ().to ('km' ).magnitude
2344
+ tot_horiz_m = 0.0
2345
2345
if not model .wellbores .injection_reservoir_depth .Provided :
2346
2346
model .wellbores .injection_reservoir_depth .value = model .reserv .depth .quantity ().to ('km' ).magnitude
2347
2347
else :
2348
2348
model .wellbores .injection_reservoir_depth .value = model .wellbores .injection_reservoir_depth .quantity ().to ('km' ).magnitude
2349
+
2349
2350
self .cost_one_production_well .value = calculate_cost_of_one_vertical_well (model , model .reserv .depth .quantity ().to ('m' ).magnitude ,
2350
2351
self .wellcorrelation .value ,
2351
2352
self .Vertical_drilling_cost_per_m .value ,
@@ -2362,12 +2363,13 @@ def Calculate(self, model: Model) -> None:
2362
2363
self .injection_well_cost_adjustment_factor .value )
2363
2364
2364
2365
if hasattr (model .wellbores , 'numnonverticalsections' ) and model .wellbores .numnonverticalsections .Provided :
2365
- cost_nonvertical_section = calculate_cost_of_non_vertical_section (model , horiz , self .wellcorrelation .value ,
2366
+ cost_nonvertical_section = calculate_cost_of_non_vertical_section (model , tot_horiz_m ,
2367
+ self .wellcorrelation .value ,
2366
2368
self .Nonvertical_drilling_cost_per_m .value ,
2367
2369
model .wellbores .numnonverticalsections .value ,
2368
2370
self .per_injection_well_cost .Name ,
2369
2371
model .wellbores .NonverticalsCased .value ,
2370
- 1.0 )
2372
+ self . production_well_cost_adjustment_factor . value )
2371
2373
else :
2372
2374
cost_nonvertical_section = 0.0
2373
2375
# cost of the well field
0 commit comments