@@ -638,6 +638,8 @@ class Outputs:
638638 This class handles all the outputs for the GEOPHIRESv3 model.
639639 """
640640
641+ VERTICAL_WELL_DEPTH_OUTPUT_NAME = 'Well depth'
642+
641643 def __init__ (self , model :Model , output_file :str = 'HDR.out' ):
642644 model .logger .info (f'Init { __class__ !s} : { __name__ } ' )
643645 self .ParameterDict = {}
@@ -860,7 +862,7 @@ def PrintOutputs(self, model: Model):
860862 summary .append (OutputTableItem ('Number of injection wells' , '{0:10.0f}' .format (model .wellbores .ninj .value )))
861863 summary .append (OutputTableItem ('Flowrate per production well' , '{0:10.1f}' .format (model .wellbores .prodwellflowrate .value ),
862864 model .wellbores .prodwellflowrate .CurrentUnits .value ))
863- summary .append (OutputTableItem ('Well depth (or total length, if not vertical)' ,
865+ summary .append (OutputTableItem (Outputs . VERTICAL_WELL_DEPTH_OUTPUT_NAME ,
864866 '{0:10.1f}' .format (model .reserv .depth .value ),
865867 model .reserv .depth .CurrentUnits .value ))
866868
@@ -926,7 +928,7 @@ def PrintOutputs(self, model: Model):
926928
927929 engineering_parameters .append (OutputTableItem ('Number of Production Wells' , '{0:10.0f}' .format (model .wellbores .nprod .value )))
928930 engineering_parameters .append (OutputTableItem ('Number of Injection Wells' , '{0:10.0f}' .format (model .wellbores .ninj .value )))
929- engineering_parameters .append (OutputTableItem ('Well depth (or total length, if not vertical)' ,
931+ engineering_parameters .append (OutputTableItem (Outputs . VERTICAL_WELL_DEPTH_OUTPUT_NAME ,
930932 '{0:10.1f}' .format (model .reserv .depth .value ),
931933 model .reserv .depth .CurrentUnits .value ))
932934 engineering_parameters .append (OutputTableItem ('Water loss rate' , '{0:10.1f}' .format (model .reserv .waterloss .value * 100 ),
@@ -1613,7 +1615,7 @@ def PrintOutputs(self, model: Model):
16131615 f .write (f' Number of production wells: { model .wellbores .nprod .value :10.0f} ' + NL )
16141616 f .write (f' Number of injection wells: { model .wellbores .ninj .value :10.0f} ' + NL )
16151617 f .write (f' Flowrate per production well: { model .wellbores .prodwellflowrate .value :10.1f} ' + model .wellbores .prodwellflowrate .CurrentUnits .value + NL )
1616- f .write (f' Well depth (or total length, if not vertical): { model .reserv .depth .value :10.1f} ' + model .reserv .depth .CurrentUnits .value + NL )
1618+ f .write (f' { Outputs . _field_label ( Outputs . VERTICAL_WELL_DEPTH_OUTPUT_NAME , 49 ) } { model .reserv .depth .value :10.1f} ' + model .reserv .depth .CurrentUnits .value + NL )
16171619
16181620 if model .reserv .numseg .value == 1 :
16191621 f .write (f' Geothermal gradient: { model .reserv .gradient .value [0 ]:10.4g} ' + model .reserv .gradient .CurrentUnits .value + NL )
@@ -1669,7 +1671,7 @@ def PrintOutputs(self, model: Model):
16691671 f .write (NL )
16701672 f .write (f' Number of Production Wells: { model .wellbores .nprod .value :10.0f} ' + NL )
16711673 f .write (f' Number of Injection Wells: { model .wellbores .ninj .value :10.0f} ' + NL )
1672- f .write (f' Well depth (or total length, if not vertical): { model .reserv .depth .value :10.1f} ' + model .reserv .depth .CurrentUnits .value + NL )
1674+ f .write (f' { Outputs . _field_label ( Outputs . VERTICAL_WELL_DEPTH_OUTPUT_NAME , 49 ) } { model .reserv .depth .value :10.1f} ' + model .reserv .depth .CurrentUnits .value + NL )
16731675 f .write (f' Water loss rate: { model .reserv .waterloss .value * 100 :10.1f} ' + model .reserv .waterloss .CurrentUnits .value + NL )
16741676 f .write (f' Pump efficiency: { model .surfaceplant .pump_efficiency .value :10.1f} ' + model .surfaceplant .pump_efficiency .CurrentUnits .value + NL )
16751677 f .write (f' Injection temperature: { model .wellbores .Tinj .value :10.1f} ' + model .wellbores .Tinj .CurrentUnits .value + NL )
@@ -2163,3 +2165,7 @@ def o(output_param: OutputParameter):
21632165
21642166
21652167 model .logger .info (f'Complete { __class__ !s} : { sys ._getframe ().f_code .co_name } ' )
2168+
2169+ @staticmethod
2170+ def _field_label (field_name :str , print_width_before_value : int ) -> str :
2171+ return f'{ field_name } :{ " " * (print_width_before_value - len (field_name ) - 1 )} '
0 commit comments