@@ -855,7 +855,7 @@ def test_field_gathering_cost(self):
855
855
856
856
self .assertEqual (fg_cost , result .result ['CAPITAL COSTS (M$)' ]['Field gathering system costs' ]['value' ])
857
857
858
- def test_temperature_limitations (self ):
858
+ def test_ags_temperature_limitations (self ):
859
859
client = GeophiresXClient ()
860
860
861
861
with self .assertRaises (RuntimeError ) as e :
@@ -864,6 +864,8 @@ def test_temperature_limitations(self):
864
864
'Is AGS' : True ,
865
865
'Well Geometry Configuration' : 1 ,
866
866
'Injection Temperature' : 60 ,
867
+ 'Gradient 1' : 60 ,
868
+ 'Reservoir Depth' : 8 ,
867
869
'Cylindrical Reservoir Input Depth' : 8 ,
868
870
'Economic Model' : 3 ,
869
871
}
@@ -877,14 +879,24 @@ def test_temperature_limitations(self):
877
879
'Is AGS' : True ,
878
880
'Closed-loop Configuration' : 2 ,
879
881
'Gradient 1' : 25 ,
882
+ 'Reservoir Depth' : 3 ,
880
883
'Injection Temperature' : 60 ,
881
884
'Economic Model' : 4 ,
882
885
}
883
886
)
884
887
client .get_geophires_result (params )
885
888
self .assertIn ('failed to validate CLGS input value' , str (e .exception ))
886
889
890
+ def test_negative_electricity_production_raises_error (self ):
891
+ client = GeophiresXClient ()
887
892
with self .assertRaises (RuntimeError ) as e :
888
- params = GeophiresInputParameters ({'Power Plant Type' : 2 , 'Maximum Temperature' : 600 })
893
+ params = GeophiresInputParameters (
894
+ {
895
+ 'Reservoir Depth' : 5 ,
896
+ 'Gradient 1' : 112 ,
897
+ 'Power Plant Type' : 2 ,
898
+ 'Maximum Temperature' : 600 ,
899
+ }
900
+ )
889
901
client .get_geophires_result (params )
890
- self .assertIn ('Check maximum temperature for power plant type ' , str (e .exception ))
902
+ self .assertIn ('Electricity production calculated as negative ' , str (e .exception ))
0 commit comments