@@ -120,10 +120,8 @@ def calculate_cost_of_non_vertical_section(model: Model, length_m: float, well_c
120
120
f'{ fixed_well_cost_name } (fixed cost per well) instead.'
121
121
)
122
122
123
- casing_factor = 1.0
124
- if not NonverticalsCased :
125
- # assume that casing & cementing costs 50% of drilling costs
126
- casing_factor = 0.5
123
+ # assume that casing & cementing costs 50% of drilling costs
124
+ casing_factor = 1.0 if NonverticalsCased else 0.5
127
125
128
126
if model .economics .Nonvertical_drilling_cost_per_m .Provided or well_correlation is WellDrillingCostCorrelation .SIMPLE :
129
127
cost_of_non_vertical_section = casing_factor * ((num_nonvertical_sections * nonvertical_drilling_cost_per_m * length_per_section_m )) * 1E-6
@@ -2286,13 +2284,16 @@ def Calculate(self, model: Model) -> None:
2286
2284
self .injection_well_cost_adjustment_factor .value )
2287
2285
2288
2286
if hasattr (model .wellbores , 'numnonverticalsections' ) and model .wellbores .numnonverticalsections .Provided :
2289
- self .cost_lateral_section .value = calculate_cost_of_non_vertical_section (model , tot_horiz_m ,
2290
- self .wellcorrelation .value ,
2291
- self .Nonvertical_drilling_cost_per_m .value ,
2292
- model .wellbores .numnonverticalsections .value ,
2293
- self .per_injection_well_cost .Name ,
2294
- model .wellbores .NonverticalsCased .value ,
2295
- self .production_well_cost_adjustment_factor .value )
2287
+ self .cost_lateral_section .value = calculate_cost_of_non_vertical_section (
2288
+ model ,
2289
+ tot_horiz_m ,
2290
+ self .wellcorrelation .value ,
2291
+ self .Nonvertical_drilling_cost_per_m .value ,
2292
+ model .wellbores .numnonverticalsections .value ,
2293
+ self .Nonvertical_drilling_cost_per_m .Name ,
2294
+ model .wellbores .NonverticalsCased .value ,
2295
+ self .production_well_cost_adjustment_factor .value
2296
+ )
2296
2297
else :
2297
2298
self .cost_lateral_section .value = 0.0
2298
2299
# cost of the well field
0 commit comments