@@ -871,12 +871,12 @@ def CalculateNonverticalPressureDrop(self, model:Model, time_operation: float, t
871
871
# nonvertical wellbore fluid conditions based on current temperature
872
872
rhowater = density_water_kg_per_m3 (
873
873
self .NonverticalProducedTemperature .value [year ],
874
- pressure = model .reserv .lithostatic_pressure ()
874
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
875
875
)
876
876
877
877
muwater = viscosity_water_Pa_sec (
878
878
self .NonverticalProducedTemperature .value [year ],
879
- pressure = model .reserv .lithostatic_pressure ()
879
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
880
880
)
881
881
vhoriz = self .q_circulation / rhowater / (math .pi / 4. * self .nonverticalwellborediameter .value ** 2 )
882
882
@@ -957,15 +957,15 @@ def Calculate(self, model: Model) -> None:
957
957
# MIR figure out how to calculate year and extract Tini from reserv Tresoutput array
958
958
year = math .trunc (self .time_operation .value / self .al )
959
959
self .NonverticalProducedTemperature .value [year ] = inverselaplace (
960
- self , 16 , 0 , model .reserv .lithostatic_pressure ())
960
+ self , 16 , 0 , model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude ))
961
961
# update alpha_fluid value based on next temperature of reservoir
962
962
963
963
self .alpha_fluid = self .WaterThermalConductivity .value / density_water_kg_per_m3 (
964
964
self .NonverticalProducedTemperature .value [year ],
965
- pressure = model .reserv .lithostatic_pressure ()
965
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
966
966
) / heat_capacity_water_J_per_kg_per_K (
967
967
self .NonverticalProducedTemperature .value [year ],
968
- pressure = model .reserv .lithostatic_pressure ()
968
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
969
969
) * 24.0 * 3600.0
970
970
self .time_operation .value += self .al
971
971
@@ -979,7 +979,7 @@ def Calculate(self, model: Model) -> None:
979
979
self .ProdTempDrop .value = self .tempdropprod .value
980
980
model .reserv .cpwater .value = heat_capacity_water_J_per_kg_per_K (
981
981
self .NonverticalProducedTemperature .value [0 ],
982
- pressure = model .reserv .lithostatic_pressure ()
982
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
983
983
)
984
984
if self .rameyoptionprod .value :
985
985
self .ProdTempDrop .value = RameyCalc (model .reserv .krock .value ,
@@ -1002,13 +1002,13 @@ def Calculate(self, model: Model) -> None:
1002
1002
if self .productionwellpumping .value :
1003
1003
self .rhowaterinj = density_water_kg_per_m3 (
1004
1004
model .reserv .Tsurf .value ,
1005
- pressure = model .reserv .lithostatic_pressure ()
1005
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
1006
1006
) * np .linspace (1 , 1 ,
1007
1007
len (self .ProducedTemperature .value ))
1008
1008
1009
1009
self .rhowaterprod = density_water_kg_per_m3 (
1010
1010
model .reserv .Trock .value ,
1011
- pressure = model .reserv .lithostatic_pressure ()
1011
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude )
1012
1012
) * np .linspace (1 , 1 , len (self .ProducedTemperature .value ))
1013
1013
1014
1014
self .DPProdWell .value , f3 , vprod , self .rhowaterprod = WellPressureDrop (model ,
@@ -1113,13 +1113,13 @@ def Calculate(self, model: Model) -> None:
1113
1113
1114
1114
rho_water = density_water_kg_per_m3 (
1115
1115
self .Tout [0 ],
1116
- pressure = model .reserv .lithostatic_pressure (),
1116
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude ),
1117
1117
)
1118
1118
1119
1119
1120
1120
model .reserv .cpwater .value = heat_capacity_water_J_per_kg_per_K (
1121
1121
self .Tout [0 ],
1122
- pressure = model .reserv .lithostatic_pressure (),
1122
+ pressure = model .reserv .lithostatic_pressure (model . reserv . rhorock . value , model . reserv . InputDepth . quantity (). to ( 'm' ). magnitude ),
1123
1123
) # Need this for surface plant output calculation
1124
1124
1125
1125
# set pumping power to zero for all times, assuming that the thermosphere wil always
0 commit comments