original_docstring: Update logarithmic temperature differences in the heat exchanger.
docstring: Update logarithmic temperature differences in the heat exchanger.
docstring_tokens: Update logarithmic temperature differences in the heat exchanger .
code: def logarithmic_mean_temperature_differences_no_mixer(self):
          """Update logarithmic temperature differences in the heat exchanger."""
          logarithmic_mean_temperature_differences = np.zeros([self.number_operating_cases])
          for operating_case in self.range_operating_cases:
              temperature_difference_a = self.temperatures_hot_stream_after_hex[operating_case] - self.temperatures_cold_stream_before_hex[operating_case]
              temperature_difference_b = self.temperatures_hot_stream_before_hex[operating_case] - self.temperatures_cold_stream_after_hex[operating_case]
              if temperature_difference_a == temperature_difference_b:
                  logarithmic_mean_temperature_differences[operating_case] = temperature_difference_a
              elif temperature_difference_a <= 0 or temperature_difference_b <= 0:
                  logarithmic_mean_temperature_differences[operating_case] = np.nan
              else:
                  logarithmic_mean_temperature_differences[operating_case] = (temperature_difference_a - temperature_difference_b) / np.log(temperature_difference_a / temperature_difference_b)
          return logarithmic_mean_temperature_differences
code_tokens: def logarithmic_mean_temperature_differences_no_mixer ( self ) : logarithmic_mean_temperature_differences = np . zeros ( [ self . number_operating_cases ] ) for operating_case in self . range_operating_cases : temperature_difference_a = self . temperatures_hot_stream_after_hex [ operating_case ] - self . temperatures_cold_stream_before_hex [ operating_case ] temperature_difference_b = self . temperatures_hot_stream_before_hex [ operating_case ] - self . temperatures_cold_stream_after_hex [ operating_case ] if temperature_difference_a == temperature_difference_b : logarithmic_mean_temperature_differences [ operating_case ] = temperature_difference_a elif temperature_difference_a <= 0 or temperature_difference_b <= 0 : logarithmic_mean_temperature_differences [ operating_case ] = np . nan else : logarithmic_mean_temperature_differences [ operating_case ] = ( temperature_difference_a - temperature_difference_b ) / np . log ( temperature_difference_a / temperature_difference_b ) return logarithmic_mean_temperature_differences
short_docstring: Update logarithmic temperature differences in the heat exchanger.
short_docstring_tokens: Update logarithmic temperature differences in the heat exchanger .
comment: """Update logarithmic temperature differences in the heat exchanger."""